gitmyhub

clawpatch

TypeScript ★ 756 updated 3d ago

Review code. Patch bugs. Land PRs.

Clawpatch is a TypeScript command-line tool that automates code review and bug fixing. Instead of reviewing an entire codebase at once, it first builds a map of the project by breaking it into logical sections called feature slices — groupings of related code such as authentication, storage, API routes, or test suites. It then sends each slice to an AI provider for review, collects the findings, and stores them locally.

Once findings are recorded, the workflow becomes interactive. You can browse the list, mark items as false positives, and pick individual findings to attempt a fix. The fix step runs the AI provider in a mode where it can edit files in a separate working directory, applies suggested changes, then runs the project's own test and lint commands to validate the result. Crucially, clawpatch never commits, pushes, or opens a pull request automatically — a developer always reviews the changes manually before merging. It supports a wide range of project types including TypeScript, Python, Go, Java, Kotlin, Ruby, Rust, Swift, C and C++, and PHP. The default AI provider is the local Codex CLI, but it also supports Claude, Gemini, and other ACP-compatible coding agents through a pluggable provider interface.