Skip to content

Local Review

Running Warden locally is the fastest way to catch issues while the code is fresh.

Run Warden with no arguments to review the current branch against the default branch:

Terminal window
warden

Warden prefers the local origin/<default> ref when it exists. That mirrors the pull request workflow without requiring a network fetch.

For pre-commit workflows, analyze only what is staged:

Terminal window
warden --staged

This uses git diff --cached.

Use an explicit git range when the default branch is not the right comparison point:

Terminal window
warden main..HEAD
warden HEAD~3..HEAD

Pass files, directories, or an @file containing one target per line:

Terminal window
warden src/auth.ts
warden src/api/
warden @targets.txt

Skip trigger matching and run a specific skill:

Terminal window
warden --skill security-review
warden --skill code-review
warden --skill ./skills/api-review

Use --fix to apply suggested fixes interactively:

Terminal window
warden --fix

Warden prompts before applying each change.