Documentation Index
Fetch the complete documentation index at: https://mintlify.com/getsentry/warden/llms.txt
Use this file to discover all available pages before exploring further.
warden
The main Warden command runs code analysis on your repository using AI-powered skills. It can analyze specific files, git changes, or use triggers configured inwarden.toml.
Usage
Targets
Warden accepts multiple target types to specify what code to analyze:Specific file paths to analyze
Glob patterns to match multiple files (must be quoted)
Git references to analyze changes since a commit or between refs
When no targets are provided, Warden uses triggers from
warden.toml to analyze uncommitted changesFor ambiguous targets (no path separator, no extension), Warden checks if a file exists at that path before treating it as a git ref. Use
--git to force git ref interpretation.Options
Skill Selection
Run only the specified skill instead of all configured skills
Configuration
Path to the Warden configuration file
Model to use for analysis (fallback when not set in config)
Output Control
Output results in JSON format instead of human-readable format
Write full run output to a JSONL file for later replay
Filtering
Exit with code 1 if findings are at or above the specified severity levelValues:
off, critical, high, medium, low, infoOnly show findings at or above the specified severity in outputValues:
off, critical, high, medium, low, infoOnly show findings at or above the specified confidence levelValues:
off, high, medium, lowExecution Control
Automatically apply all suggested fixes without prompting
Maximum number of concurrent trigger/skill executions
Stop execution after the first finding is detected
Git Integration
Analyze only staged changes (git diff —cached)
Force ambiguous targets to be interpreted as git refs instead of files
Use cached remote skills without attempting network access
Verbosity
Show errors and final summary only
Show real-time findings and analysis details. Use
-vv for debug information including token counts and latenciesEnable debug output (equivalent to
-vv)Use log output mode (no animations, timestamped lines)
Force color output on or off (overrides auto-detection)
Help
Show help message with all commands and options
Show version number
Exit Codes
Analysis completed successfully with no failures
- Configuration error
- Invalid arguments
- Skill execution error
- Findings met
--fail-onthreshold
User interrupted execution with Ctrl+C
Examples
Analyze Specific Files
Analyze with Glob Patterns
Analyze Git Changes
Control Output
Fail on Severity
Automatic Fixes
Remote Skills
Environment Variables
Anthropic API key for Claude model access. Can be set in
.env.localDefault model to use when not specified in config or CLI
Sentry DSN for error tracking (optional)
Notes
- Warden loads environment variables from
.envand.env.localin the repository root - When no targets are specified, Warden uses triggers defined in
warden.toml - Skills are discovered from
.agents/skills/and.claude/skills/directories - Logs are automatically saved to
.warden/logs/when a run completes - Use
warden logsto view saved runs
Related Commands
- warden init - Initialize Warden configuration
- warden add - Add skills to configuration
- warden logs - View saved run logs
- warden sync - Update remote skills