ci: reduce wasted turns in Claude Code review workflow#720
Conversation
- Expose GH_TOKEN to MCP server for GitHub API authentication - Inject PR context (number, branches, title) directly into prompt - Disable MemCan tools unavailable in CI environment - Add missing Bash patterns (git status/remote/merge-base) to allowedTools - Remove overly broad Bash(bash *) wildcard from allowedTools - Add MCP→gh CLI fallback guidance and no-chaining instruction Saves ~8-13 API turns per review session and fixes MCP auth failures that were preventing reviews from completing. Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
|
Warning Rate limit exceeded
⌛ How to resolve this issue?After the wait time has elapsed, a review can be triggered using the We recommend that you space out your commits to avoid hitting the rate limit. 🚦 How do rate limits work?CodeRabbit enforces hourly rate limits for each developer per organization. Our paid plans have higher rate limits than the trial, open-source and free plans. In all cases, we re-allow further reviews after a brief timeout. Please see our FAQ for further information. ℹ️ Review info⚙️ Run configurationConfiguration used: Path: .coderabbit.yaml Review profile: CHILL Plan: Pro Run ID: 📒 Files selected for processing (1)
📝 WalkthroughWalkthroughThe GitHub Actions workflow for Claude code review is updated with PR metadata context (PR number, repository, base/head branches, title), GH_TOKEN authentication configuration, adjusted tool usage guidance prioritizing GitHub MCP tools for API operations, and expanded allowedTools list including additional git and bash commands. Changes
Estimated code review effort🎯 1 (Trivial) | ⏱️ ~3 minutes Possibly related PRs
Suggested labels
Poem
🚥 Pre-merge checks | ✅ 3✅ Passed checks (3 passed)
✏️ Tip: You can configure your own custom pre-merge checks in the settings. ✨ Finishing Touches🧪 Generate unit tests (beta)
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. Comment |
Add explicit mcp__plugin_claudius_github__get_me probe as the first action in the review prompt. The result (available/unavailable) is propagated to all sub-agent prompts so they never waste turns rediscovering MCP status. Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
Summary
GH_TOKENto the review step so the claudius MCP server can authenticate GitHub API calls (was causing permission-denied errors that stalled the entire review)Bash(git status/remote/merge-base)patterns toallowedTools; remove overly broadBash(bash *)wildcardEstimated savings: ~8-13 API turns per review session, plus fixing the MCP auth failure that was killing sessions entirely.
Test plan
claudius-reviewlabel to a test PR and confirming the review completes without permission errors🤖 Co-authored by Claudius the Magnificent AI Agent
Summary by CodeRabbit