ci: increase Claude Code max-turns to 20#94
Closed
YuminosukeSato wants to merge 1 commit intomainfrom
Closed
Conversation
Opus 4.6 needs more turns for thorough code reviews. Recent PR review used 6 turns and hit the 5-turn limit. Increasing to 20 turns allows for: - More comprehensive analysis - Deeper security checks - Better architectural insights Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
Contributor
There was a problem hiding this comment.
Pull request overview
This PR increases the maximum number of turns for Claude Code reviews from 5 to 20 to prevent incomplete reviews. The change was motivated by Opus 4.6 hitting the turn limit during PR #90, which required 6 turns but was capped at 5.
Changes:
- Increased
--max-turnsparameter from 5 to 20 in the Claude Code workflow configuration
💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Summary
Increase the maximum number of turns for Claude Code reviews from 5 to 20.
Problem
Opus 4.6 is hitting the 5-turn limit during code reviews. Recent PR review (PR #90) used 6 turns:
{ "subtype": "error_max_turns", "num_turns": 6, "total_cost_usd": 0.13078 }Changes
Benefits
More Comprehensive Reviews
Opus 4.6 performs deeper analysis than Sonnet 4.5:
Why 20 Turns?
Cost Implications
Trade-offs
Verification
After merging, Claude Code will be able to complete reviews without hitting turn limits.
🤖 Generated with Claude Code