----------------
🛠️ Tool
===================
Opening. Clawpatch is an automated code-review tool that treats a repository as a set of semantic features rather than a bag of files. The workflow maps features (routes, commands, packages, tests), sends bounded-context review requests to a local Codex provider, and persists findings and patch attempts under .clawpatch/ for audit and resumption.
Key features.
• Semantic mapping. Features include entrypoints, owned files, nearby tests and trust boundaries so the reviewer sees bounded context rather than unrelated files.
• Structured findings. Each finding stores category (bug, security, performance, docs-gap, test-gap, maintainability), severity (critical/high/medium/low), confidence, evidence (code snippets, file paths), and recommendations.
• Automated patch loop. An explicit fix→validate loop is available via clawpatch fix and clawpatch revalidate, and validation command outputs are recorded with the patch attempt.
• Safety controls. Clean-worktree checks, no implicit commits, and a persistent audit trail in .clawpatch/ keep changes under user control.
Technical implementation.
Clawpatch auto-detects project types (Node.js, TypeScript, Next.js, Python frameworks, Go, Rust, Swift). The default provider shells out to the local Codex CLI and enforces strict JSON schemas for provider responses. State files include config.json, project.json, and findings/ metadata so runs can be resumed and reports generated in Markdown or JSON.
Use cases.
• Focused reviews of risky features (routes, commands, config parsers) where context matters.
• CI gating for feature-level checks with persisted findings for triage.
• Assisted remediation where teams accept explicit patches and want recorded validation.
Installation & quick commands.
clawpatch init — initialize project and create .clawpatch/
clawpatch map — build semantic feature map
clawpatch review --limit 10 — run reviews in batches
clawpatch fix --finding <id> — apply a chosen fix
Limitations.
Clawpatch relies on a local Codex CLI provider by default, so review quality depends on provider capabilities and prompts. The source does not include independent validation of fix correctness across diverse codebases. Expect false positives/negatives typical of automated reviewers and verify patches manually before merging.
🔹 clawpatch #codex #code_review #static_analysis #tool
🔗 Source: https://clawpatch.ai/#overview







