warden.toml file controls all aspects of Warden’s behavior. Place it at the root of your repository.
File Structure
Version
Configuration schema version. Must be
1.Defaults Section
Settings applied to all skills unless overridden at the skill or trigger level.Output Control
Exit with code 1 when findings meet this severity threshold.Values:
Default: Not set (never fails)
"off", "high", "medium", "low"Default: Not set (never fails)
Only show findings at or above this severity level.Values:
Default: Shows all findings
"off", "high", "medium", "low"Default: Shows all findings
Maximum number of findings to report per skill run.Default: Unlimited
Minimum: 1
Minimum: 1
Post a report even when no findings are detected.Default:
falseFilter out findings below this confidence level.Values:
Default:
"off", "high", "medium", "low"Default:
"medium"GitHub Integration
Use
REQUEST_CHANGES review event when findings exceed failOn threshold.Default: falseFail the GitHub Actions check run when findings exceed
failOn threshold.Default: falseModel Configuration
Default Claude model for all skills.Example values:
Default: SDK default model
"claude-sonnet-4-20250514", "claude-opus-4-20250514"Default: SDK default model
Maximum agentic turns (API round-trips) per hunk analysis.Default: 50
Minimum: 1
Minimum: 1
Repository Settings
Base branch for comparisons (e.g.,
main, master, develop).Default: Auto-detected from repositoryPath patterns to exclude from all skill analyses. Uses glob syntax.
Performance Tuning
Delay in milliseconds between batch starts when processing files in parallel.Default: 0 (no delay)
Minimum: 0
Minimum: 0
Max retries for auxiliary Haiku calls (extraction repair, merging, deduplication, fix evaluation).Default: 5
Minimum: 1
Minimum: 1
Chunking Configuration
See Path Filtering for detailed chunking options.Runner Section
Controls Warden’s runtime behavior.Maximum concurrent file analyses across all skills.Default: 4
Minimum: 1
Minimum: 1
Logs Section
Manages log file retention and cleanup.How to handle expired log files.Values:
"ask"- Prompt in TTY before deletion (default)"auto"- Silently delete expired logs"never"- Keep all logs indefinitely
Number of days to retain log files before considering them expired.Default: 30
Minimum: 1
Minimum: 1
Complete Example
Environment Variables
These environment variables affect Warden’s behavior:| Variable | Purpose | Required |
|---|---|---|
WARDEN_ANTHROPIC_API_KEY | Claude API key | Yes (unless using Claude Code subscription) |
WARDEN_MODEL | Default model (lowest priority in precedence chain) | No |
WARDEN_STATE_DIR | Override cache location | No |
WARDEN_SKILL_CACHE_TTL | Cache TTL in seconds for unpinned remote skills | No |
Environment variables have lower precedence than configuration file settings. See Model Precedence for the complete hierarchy.
Validation
Warden validates your configuration on startup using Zod schemas. Common validation errors:Next Steps
Skill Configuration
Learn about individual skill settings
Triggers
Configure when and where skills run
Path Filtering
Control which files are analyzed
Severity Thresholds
Fine-tune finding severity and confidence levels