Skip to content

feat(review): Claude Code engine for reviews; release 1.7.0 - #19

Merged
jack1590 merged 2 commits into
mainfrom
feat/claude-engine
Oct 21, 2026
Merged

jack1590 merged 2 commits into
mainfrom
feat/claude-engine

Conversation

@jack1590

Copy link
Copy Markdown
Owner

Summary

 runReadOnlyAgent(input)
+  engine === 'claude' → runClaudeAgent: spawn `claude -p --model <id> --output-format json
+                              --tools Read,Grep,Glob --setting-sources \"\" --strict-mcp-config
+                              --no-session-persistence --permission-mode dontAsk`, prompt on stdin
   else → Cursor SDK (unchanged)
 project
+  engine: cursor | claude   (Settings → AI review switch; Claude status; Claude model list)
 review-service / local-review
+  agentBackendFor(project): Cursor key, or `claude` found on the login shell PATH

Evidence

  • Probe: lockdown flags return plain JSON (no personal hooks); claude-sonnet-5-5 runs; aliases resolve to older models; claude-opus-5-5 needs CLI ≥ 2.1.280 (local 2.1.267) → surfaced as a permanent failure.
  • Real run through runReadOnlyAgent({ engine: 'claude' }) on a one-file repo: opened the file, found add() subtracting, valid JSON, 37k tokens.
  • verify-review.ts: lockdown args, result parsing past CLI notices, usage/list price, permanent failures. typecheck, npm test, verify-project-config, verify:doc-versions pass.
  • Not yet a full PR review on the Claude engine (uses plan quota).

Merge Danger

Door: two-way

Blast Radius: review engine

Cursor stays the default; nothing changes until a project switches. Tagging v1.7.0 after merge publishes a release.

A project can run its review agents on Cursor (API key, as before) or on the
user's Claude Code CLI with their Claude plan login, no API key.

- packages/roku-review/claude-cli.ts runs `claude -p` per agent with
  read-only tools (Read, Grep, Glob), no MCP, no user/project/local settings
  (personal hooks and plugins stay out), no saved session; parses the JSON
  result past CLI notices and maps usage and list price.
- runReadOnlyAgent routes by engine; reviews, judge and device rulings take a
  backend. Plan limits and models the CLI does not support are permanent
  failures (no retry). Results record the engine.
- Main finds `claude` on the login shell's PATH and reports install/login
  status (no credentials). One helper serves PR and local branch reviews.
- Settings: engine switch, Claude Code status with Check again, Claude
  models with full ids and recommended picks, engine-aware checklist and
  unsaved-changes bar. PR panel: no Cursor key needed for Claude projects,
  engine on the review, cost shown as Claude plan usage.
@jack1590
jack1590 merged commit 9f2eb62 into main Oct 21, 2026
5 checks passed
@jack1590
jack1590 deleted the feat/claude-engine branch October 21, 2026 16:37
@coderabbitai

coderabbitai Bot commented Oct 21, 2026

Copy link
Copy Markdown

Important

  • 🔍 Trigger review

This repository does not receive automatic reviews because it has fewer than 10 stars.

⚙️ Run configuration
  • Configuration used: defaults
  • Review profile: CHILL
  • Plan: Advanced
  • Run ID: 15913ff5-58db-4339-91f7-a1c23cfcd8c2
  • Autofix · Keep fixing CodeRabbit findings and required CI, and resolving merge conflicts

Thanks for using CodeRabbit! It's free for OSS, and your support helps us grow. If you like it, consider giving us a shout-out.

❤️ Share

Comment @coderabbitai help to get the list of available commands.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant