Terminal Output
TTY Mode
When running in an interactive terminal, Warden uses colored, formatted output:Plain Text Mode (CI)
In non-TTY environments (CI/CD), Warden outputs plain text with timestamps:Verbosity Levels
src/cli/output/verbosity.ts
Quiet Mode
Verbose Mode
Debug Mode
JSONL Output
JSON Lines format for programmatic consumption and log archival.Enabling JSONL
Record Structure
Run Metadata
src/cli/output/jsonl.ts
Skill Record
Summary Record
JSONL Schema
src/cli/output/jsonl.ts
Parsing JSONL
src/cli/output/jsonl.ts
Log Files
Warden automatically saves JSONL logs to.warden/logs/:
src/cli/output/jsonl.ts
Log File Naming
Log Retention
Configure log cleanup inwarden.toml:
warden.toml
src/config/schema.ts
GitHub Output
PR Comments
Warden renders findings as markdown comments on pull requests:src/output/renderer.ts
Review States
src/output/types.ts
Inline Comments
src/output/renderer.ts
Formatting Utilities
Duration Formatting
src/cli/output/formatters.ts
Severity Formatting
src/cli/output/formatters.ts
Best Practices
Use JSONL for automation
Use JSONL for automation
Parse JSONL output in CI/CD pipelines:
Archive logs for auditing
Archive logs for auditing
Keep JSONL logs for cost tracking and trend analysis:
Customize verbosity per environment
Customize verbosity per environment
Monitor output size
Monitor output size
For large codebases, JSONL files can grow substantially. Use log rotation: