Increase MAX_TURNS from 50 to 75#112
Increase MAX_TURNS from 50 to 75#112ejc3 wants to merge 3 commits intoclaude-review-prompting-fixfrom
Conversation
The Claude review agent was running out of turns when reviewing large PRs with many files. Increased from 50 to 75 to allow more thorough reviews.
88829e7 to
3b6c63a
Compare
🔍 Claude ReviewSEVERITY: critical Findings[CRITICAL] PR metadata mismatch with actual code changes
The PR title and description claim to increase MAX_TURNS to 200, but the actual code only increases it to 75. This is a significant discrepancy that will:
Required Action: Either:
SummaryCritical mismatch between PR documentation (claiming 50→200) and actual implementation (50→75). The PR metadata must be corrected to match the code, or vice versa. Review by Claude | Run |
🔧 Auto-Fix CreatedI found issues and created a fix PR: #113 The fix updates the code to actually use 200 (as stated in the PR title and description) instead of the current value of 75. Please review and merge the fix PR first, then this PR. |
- Add STEP 0 to prompt: Wait for CI to pass before reviewing - Add instructions to run lint locally (cargo fmt, clippy) before committing - Add instructions to verify fix PRs pass CI before finishing - Add warning about editing files directly, no temp files - Add Rust toolchain (rustfmt, clippy) to all workflow jobs - Add fuse-backend-rs and fuser checkouts for workspace dependencies - Add build dependencies (libfuse3-dev, libclang-dev, clang) - Set FUSE_BACKEND_RS and FUSER env vars for cargo Tested: cargo fmt --check && cargo clippy --all-targets passes with new env vars
Claude review: wait for CI, run lint, verify fix PRs
🔍 Claude ReviewSEVERITY: medium Findings[MEDIUM] Lint enforcement workflow is split across multiple sections The prompt has a "CRITICAL: IF YOU MAKE CHANGES" section (lines 256-279) that instructs Claude to:
However, STEP 5 "FIX" (lines 352-408) which contains the actual commit workflow is:
Issue: The lint check instruction and commit step are in separate sections. Claude must remember to run lint (from the CRITICAL section) before executing step 5b (Commit). This split design is error-prone. Impact: Claude might commit without running lint, leading to CI failures on fix PRs (the exact problem this PR aims to prevent). Recommendation: Integrate the lint check directly into STEP 5:
SummaryThe PR correctly increases MAX_TURNS to 75 and adds valuable CI-awareness to the review workflow. However, the lint enforcement design splits the instruction across two sections, which could lead to Claude forgetting to run lint before committing. Review by Claude | Run |
🔧 Auto-Fix CreatedI found issues and created a fix PR: #120 The fix integrates lint enforcement and CI verification directly into STEP 5, preventing Claude from forgetting to run lint before committing. Please review and merge the fix PR first, then this PR. |
Summary
Increase MAX_TURNS from 50 to 75 to allow thorough reviews of large PRs.
50 turns wasn't enough for reviewing PRs with many files - the agent would run out of turns before completing its analysis.
Stacked on: claude-review-prompting-fix (PR #110)