rebase: raise the module agent turn budget to 400 - #169
Merged
Merged
Conversation
|
You have reached your Codex usage limits for code reviews. You can see your limits in the Codex usage dashboard. |
A flash-class module agent needs roughly 2.3x the turns of the pro tier on the same module (140+ turns vs 62), most of it shell exploration before the first edit. At the old ceiling of 150 the agent loop was truncated and RESTARTED from scratch, discarding its accumulated context -- one module burned 63 minutes across three truncated loops without finishing. 400 lets a loop reach a conclusion instead of being cut off mid-investigation. Exhausting the budget was never fatal (the engine restarts the loop rather than failing the module), so this is a throughput fix, not a correctness one. Co-Authored-By: Claude Opus 5 (1M context) <noreply@anthropic.com>
check_spec_freshness --strict flagged rebase_engine as STALE after the max_turns change. Records why the number matters: exhausting the budget restarts the agent loop rather than failing the module, so too low a ceiling makes the agent repeatedly re-explore from scratch. Co-Authored-By: Claude Opus 5 (1M context) <noreply@anthropic.com>
tzhouam
force-pushed
the
fix/rebase-module-turn-budget
branch
from
September 18, 2026 16:42
9dcd8aa to
d90deb6
Compare
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.
Change
Raise the rebase module agent turn budget from 150 to 400.
Why
A flash-class module agent needs roughly 2.3x the turns of the pro tier on the same module — 140+ turns versus 62 — with most of it shell exploration before the first edit.
At the old ceiling the agent loop was truncated and restarted from scratch, discarding accumulated context. One module burned 63 minutes across three truncated loops without finishing.
Scope
Throughput, not correctness. Exhausting the budget was never fatal — the engine restarts the loop rather than failing the module — so this removes wasted re-exploration rather than fixing a failure.
🤖 Generated with Claude Code