Skip to content

omp: hold no usage reserve on Claude Max - #380

Merged
hanthor merged 1 commit into
masterfrom
fix/omp-no-claude-reserve
Nov 18, 2026
Merged

hanthor merged 1 commit into
masterfrom
fix/omp-no-claude-reserve

Conversation

@hanthor

@hanthor hanthor commented Nov 16, 2026

Copy link
Copy Markdown
Owner

Removes the 10% usage reserve on Anthropic, so omp stays on Claude Max until its window is actually spent and only then falls back.

  • retry.usageReservePct 10 → 0. This is omp's usage-aware fallback threshold. It's a single global setting, but Claude heads every fallback chain, so in practice it governs when omp leaves Claude.
  • omp-route gets a separate Claude reserve, OMP_ROUTE_CLAUDE_RESERVE_PCT (default 0). The other candidates (Codex, Antigravity, Kiro) keep the 10% OMP_ROUTE_RESERVE_PCT.

Checked: bash -n passes. A fake ccleft probe with Claude at 5% left now picks Claude (ok), Codex at 5% is still skip, and Claude at 0% is skip.

The same commit is on feat/native-laptop-units (#348) as b7fef39, under units/omp/.

🤖 Generated with Claude Code

retry.usageReservePct 10 -> 0 and omp-route's Claude candidate reserve
10 -> 0 (OMP_ROUTE_CLAUDE_RESERVE_PCT), so sessions stay on Claude until
its window is actually spent. Other omp-route candidates keep 10%.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Signed-off-by: James Reilly <jreilly1821@gmail.com>
@hanthor
hanthor merged commit 33a0e3e into master Nov 18, 2026
10 checks passed
@hanthor
hanthor deleted the fix/omp-no-claude-reserve branch November 18, 2026 18:33
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