
Clawpatch
github.com/openclaw/clawpatch- Category
- AI Agents
- Rank
- No. 1306Tools index
Previous survey · No. 1312 ·
- Pricing
- Open Source
- Type
- AGENT
- Builder
- openclaw
- GitHub
- 810 stars
- Latest release
- v0.8.0
- Date
About
OpenClaw's agent for code review, bug-fixing, and PR landing — closes the loop from review comment to merged patch.
What it does
Clawpatch divides a repository into reviewable feature areas, sends each area to an installed coding agent, and keeps structured findings in project-local state. Maintainers can inspect findings, request a targeted repair, run configured validation, recheck the result, and explicitly publish a pull request.
Why it's ranked here
Clawpatch is compelling when repeatability matters more than a one-shot agent conversation. Deterministic mapping, persistent records, bounded parallel work, explicit repair attempts, and separate publication steps create an auditable workflow. Its value depends on an external coding harness, but that boundary also keeps model transport and authentication outside the tool.
What's good
The default mapper needs no model call and recognizes feature boundaries across many common language ecosystems. Reviews and revalidation request read-only provider execution. Repairs require a specific finding, reject dirty worktrees by default, record changed files and command results, and leave committing or pushing to a separate action.
Tradeoffs
Clawpatch requires Node.js 22 or newer plus an installed, authenticated coding-agent harness. Provider isolation differs, so write-capable agents still demand care with untrusted repositories. Validation only runs commands the project exposes or configuration supplies. Persistent project-local records improve resumability but add state that teams must manage alongside their source workflow.
How to use it well
Use it for maintained Git repositories where findings need triage, repairs need validation, and interrupted work must resume cleanly. Start with deterministic mapping, review a small bounded set, inspect evidence, then repair one finding at a time. It does not supply models, authentication, general CI hosting, or automatic merging.
Technical notes+
package.json defines an ESM npm package with Node.js >=22, TypeScript compilation, Vitest, and runtime dependencies on proper-lockfile and Zod. src/cli.ts parses global and command flags and dispatches init, map, review, CI, reporting, triage, fix, revalidation, diagnostics, lock cleanup, and pull-request commands. src/app.ts composes initialization, deterministic or provider-assisted mapping, status, and CI orchestration. src/fs.ts uses temporary files plus rename for JSON writes, while src/state.ts validates persisted records with Zod and combines exclusive lock files with proper-lockfile mutation locks. src/fix.ts blocks dirty source worktrees by default, snapshots changed paths around provider execution, runs detected validation commands, and records patch attempts. src/exec.ts runs child processes without spawn-level shell expansion, but configured command strings are deliberately passed through the platform shell and receive timeout, process-tree termination, and bounded-output handling. src/config.ts restricts Codex-specific provider settings to explicitly trusted configuration sources. src/detect.ts identifies languages, package managers, frameworks, and likely validation commands across multiple ecosystems.
Observed
- License
- MIT
- Primary language
- TypeScript
- Packaging
- ESM npm package installable globally with npm or pnpm
- Interface
- Command-line application with machine-readable JSON output support
- Runtime requirement
- Node.js 22 or newer
- Provider model
- Uses installed coding-agent harnesses and does not call model APIs directly
- State model
- Stores configuration, feature records, findings, patches, reports, runs, and locks in project-local state
Read from README.md, package.json, src/app.ts, src/cli.ts, src/fs.ts, src/id.ts, src/fix.ts, src/git.ts, src/exec.ts, src/ruby.ts, src/shell.ts, src/state.ts, src/types.ts, src/config.ts, src/detect.ts.
What it can do
Review code changes in pull requests
Pull request with code changes → Code review comments and feedback
Automatically fix bugs identified in code
Bug reports or identified code issues → Fixed code patches
Generate code patches from review comments
Code review comments and feedback → Executable code patches
Merge approved pull requests
Approved pull request → Merged code changes to main branch
Address review feedback automatically
Review comments and original code → Updated code addressing the feedback
Tags
Tech Stack
Media

Comments (0)
No comments yet
Editorially curated, with community endorsements as a secondary signal. Corrections welcome.