warden logs
View, replay, and manage saved Warden analysis logs. Logs are automatically saved to.warden/logs/ in JSONL format.
Usage
Subcommands
list (default)
List all saved analysis runs with summary information.- RUN - Short run ID (first 8 characters)
- DATE - Relative timestamp (e.g., “2h ago”, “yesterday”)
- FILES - Number of files analyzed
- FINDINGS - Severity breakdown (high / medium / low)
- TIME - Analysis duration
- COST - API costs in USD
- SHA - Git commit SHA (first 7 characters)
- MODEL - Claude model used
- SKILLS - Skills executed in the run
show
Display full results from one or more saved log files.show subcommand is optional when the first argument looks like a file or run ID:
gc
Garbage collect (remove) expired log files based on retention policy.warden.toml (default: 30 days):
Options
For list
Output log list as JSON array
For show
Output results in JSON format
Filter results to show only findings at or above severityValues:
off, critical, high, medium, low, infoFilter results to show only findings at or above confidence levelValues:
off, high, medium, lowShow detailed skill execution information
Show debug information including token counts and latencies
Global Options
Suppress non-error output
Force color output on or off
Log File Format
Log files are saved in JSONL (JSON Lines) format at.warden/logs/:
Filename Format
- timestamp:
YYYYMMDD-HHMMSSin local time - short-run-id: First 8 characters of UUID
JSONL Structure
Each line is a JSON object. First line contains run metadata:Exit Codes
- Logs listed successfully
- Results displayed successfully
- Garbage collection completed
- Not in a git repository
- Log file not found
- Failed to parse log file
- Invalid arguments
Examples
View Recent Runs
Filter Results
Export to JSON
Compare Runs
Clean Up Old Logs
CI/CD Integration
Automatic Logging
Logs are automatically created when Warden runs successfully:warden.toml:
Log Retention
Configure retention inwarden.toml:
warden logs gc periodically (e.g., in cron or CI) to clean up:
Use Cases
Debug Past Runs
Share Results
Compare Before/After
Cost Tracking
Related Commands
- warden - Run analysis (creates logs)
- warden sync - Update remote skills