| title | Quickstart |
|---|---|
| description | Get started with clawpatch in five minutes |
This guide walks through a complete review workflow from initialization to fixing findings.
- Install clawpatch
- Install Codex CLI (
brew install codex) for the default provider, or install the Grok Build CLI (curl -fsSL https://x.ai/cli/install.sh | bash) and pass--provider grokwhen reviewing - Have a project with code to review
cd your-project
clawpatch initThis creates .clawpatch/ with:
config.json- project configurationproject.json- detected project metadatafeatures/- feature records (created bymap)findings/- review findings (created byreview)patches/- patch attempts (created byfix)
Check project detection:
clawpatch statusclawpatch mapThis discovers reviewable features:
- npm package bins and root/workspace scripts
- Next.js routes
- Go packages and commands
- Java/Kotlin Gradle and Maven modules
- Python packages, console scripts, Flask/FastAPI/Django routes, and pytest suites
- C#/.NET projects, ASP.NET endpoints, source groups, and test projects
- JVM semantic role groups
- Ruby packages, Rails apps, executables, and tests
- Rust crates and binaries
- C/C++ standalone binaries and CMake/autotools targets
- SwiftPM targets and tests
- Laravel controllers, requests, jobs, commands, services, models, migrations, and tests
- Config files
Preview mapping without writing:
clawpatch map --dry-runCheck mapped features:
clawpatch status --json | jq '.features'Review a few features in parallel:
clawpatch review --limit 3 --jobs 3Using Grok instead of the default Codex provider:
clawpatch review --provider grok --limit 3 --jobs 3This:
- Selects 3 pending features
- Reviews them in parallel with 3 workers
- Calls the selected provider (Codex or Grok CLI) for each
- Persists findings under
.clawpatch/findings/ - Updates feature status
Progress goes to stderr, so you can pipe stdout:
clawpatch review --limit 5 --json | jq '.findings'clawpatch reportFilter by severity:
clawpatch report --severity highSave to file:
clawpatch report -o report.mdList findings:
clawpatch report --status openFix one:
clawpatch fix --finding <findingId>This:
- Validates worktree is clean
- Calls provider with patch instructions
- Runs validation commands
- Records patch attempt
- Shows diff
Review the changes and commit manually if satisfied.
After manual edits or to re-check a finding:
clawpatch revalidate --finding <findingId>clawpatch review --limit 999 --jobs 4clawpatch review --feature <featureId>clawpatch review --model claude-opus-4-20250514 --limit 5clawpatch review --model gpt-5.5 --reasoning-effort xhigh --limit 5clawpatch report --category securityclawpatch doctorIf a review run was interrupted:
clawpatch clean-locksAll commands support --json for machine-readable output:
clawpatch map --json
clawpatch review --json
clawpatch status --json- Feature Mapping - How features are discovered
- Code Review - Review process details
- Patching - Fix workflow explained
- Configuration - Customize behavior
- Providers - Provider options