Original Reddit post

Hi everyone, a few days ago I shared two tools I built for Claude Code

claude-remote-approver (phone-based permission approvals) and claude-plan-reviewer (rival AI plan reviews). The response was great, so I built the missing piece. The gap: plans get reviewed, but code doesn’t claude-plan-reviewer catches issues before Claude writes code. But once the plan is approved, Claude writes and commits freely. If the implementation has bugs, security issues, or missed edge cases, they go straight into your git history unchallenged. claude-code-reviewer: a rival AI reviews every commit claude-code-reviewer hooks into Claude Code’s Bash tool. When Claude runs git commit , the hook intercepts it, grabs git diff --staged , and sends the diff to a rival AI (Codex CLI or Gemini CLI) for code review. LGTM – commit goes through Issues found – commit is blocked, feedback is injected into Claude’s context, Claude fixes the code and tries again It’s the same “rival AI” concept as claude-plan-reviewer, but applied to the actual code. npm install -g claude-code-reviewer claude-code-reviewer setup GitHub: https://github.com/yuuichieguchi/claude-code-reviewer What it catches The rival AI reviews for: Bugs and logic errors Security vulnerabilities (injection, XSS, etc.) Performance issues Unhandled edge cases Resource leaks Error handling gaps Different models catch different things. In my experience, having a second set of eyes – even AI eyes – on the actual diff is surprisingly effective. Safety: you can’t get stuck A natural concern: “What if the reviewer keeps rejecting and I can never commit?” There’s a maxReviews setting (default: 2). After 2 rejections, the next commit is auto-allowed regardless. If the AI itself fails (timeout, API error), the default policy is to allow the commit. The full trilogy All three tools work together for a fully autonomous workflow: The workflow becomes: Give Claude a task and walk away Claude writes a plan – rival AI reviews it, Claude revises Claude implements the code and commits – rival AI reviews the diff, Claude fixes issues When Claude needs permission, your phone buzzes – tap Approve from wherever you are Come back to a completed, reviewed task Privacy note Staged diffs are sent to external AI services (OpenAI / Google). Be mindful of sensitive information in your staged changes. All three tools are MIT licensed, free, zero dependencies, Node.js 18+. Disclosure: I’m the author of all three tools. Completely free and open source. No paid tiers, no telemetry, no data collection. Happy to answer questions. submitted by /u/yuu1ch13

Originally posted by u/yuu1ch13 on r/ClaudeCode