Skip to content

rebase: raise the module agent turn budget to 400 - #169

Merged
tzhouam merged 2 commits into
mainfrom
fix/rebase-module-turn-budget
Sep 18, 2026
Merged

tzhouam merged 2 commits into
mainfrom
fix/rebase-module-turn-budget

Conversation

@tzhouam

@tzhouam tzhouam commented Sep 18, 2026

Copy link
Copy Markdown
Collaborator

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

@chatgpt-codex-connector

Copy link
Copy Markdown

You have reached your Codex usage limits for code reviews. You can see your limits in the Codex usage dashboard.
To continue using code reviews, add credits to your account and enable them for code reviews in your settings.

tzhouam and others added 2 commits September 19, 2026 00:40
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
tzhouam force-pushed the fix/rebase-module-turn-budget branch from 9dcd8aa to d90deb6 Compare September 18, 2026 16:42
@tzhouam
tzhouam merged commit 4e1b701 into main Sep 18, 2026
2 checks passed
@tzhouam
tzhouam deleted the fix/rebase-module-turn-budget branch September 18, 2026 16:45
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