Skip to content

Record the fast mode Claude actually ran - #195

Merged
BunsDev merged 3 commits into
mainfrom
claude-fast-state
Oct 13, 2026
Merged

BunsDev merged 3 commits into
mainfrom
claude-fast-state

Conversation

@BunsDev

@BunsDev BunsDev commented Oct 13, 2026

Copy link
Copy Markdown
Contributor

Claude fast mode never applied, for two separate reasons:

  • The account. Claude Code reports fast_mode_state: "off" with fast_mode_disabled_reason: "extra_usage_disabled" ("Fast mode requires usage credits"). That's why usage.speed read standard in the 2026-10-12 probe. A 2026-10-13 probe on Opus and Haiku with Claude Code 2.1.296 showed the same state.
  • Modex. Auto asked for Claude fast mode only on tier-0 and tier-1 models (Haiku and Sonnet), because it assumed every Claude model offers fast. Claude Code runs fast mode only on Opus 4.8 and newer Opus models. The docs list Opus 5.5, 5 and 4.8, and the CLI checks opus-4-8 / opus-5.

Modex also recorded the fast mode it asked for, not the one that ran, and never said why fast mode didn't apply.

Changes

  1. Read what ran. ClaudeBackend reads fast_mode_state (on / off / cooldown) and fast_mode_disabled_reason from system/init and result. The latest one wins. It returns TurnResult.fastMode { on, why }, with the CLI's ten reasons in words, for example "fast mode requires usage credits (extra_usage_disabled)". Reasons it doesn't recognize are reported verbatim.
  2. Record what ran. The runner stores the fast mode the CLI reported in lastTurn; Codex, which doesn't report it, keeps the requested value. Before this, the cache-hold step kept re-requesting a fast mode that had never applied.
  3. Say why. When Auto asked for fast mode and the CLI ran without it, the turn's route receipt is patched: fast: false, plus "Fast mode did not apply: …". The change persists and reaches the renderer through item_update.
  4. Only Opus offers fast mode. In ClaudeBackend.MODELS, only opus advertises serviceTiers: ["fast"]. Routing now uses each model's advertised fast tier instead of || backend === "claude", in step 6 and in the fast-mode hold. With Auto's light-task rule, Auto now never asks for fast mode on Claude.

Verification

  • npm run build, npm run typecheck and npm test all pass: 1,424 unit tests, 1,408 passed, 16 skipped, 0 failed.
  • New tests:
    • a trimmed fixture from the real Opus probe turn, parsed end to end;
    • fastModeOf wording for each state, plus a cooldown result overriding an on init;
    • only opus offering fast;
    • a runner test covering the refused, applied and unreported cases: receipt text, persisted correction, and lastTurn.fast.
  • Four existing tests assumed Haiku and Sonnet offer fast mode. They now use the real ladder, or a hypothetical fast-capable light model where the test is about the hold logic.
  • Docs:
    • docs/auto-routing.md steps 6 and the lastTurn note;
    • the old Known rough edge in docs/status.md is replaced by a line under On main, unreleased.

Enabling fast mode for real needs usage credits on the Claude account, which bills fast-mode usage separately. This PR doesn't change that.

This PR and #193 both add a bullet at the top of On main, unreleased. Whichever merges second needs that one line resolved.

Claude fast mode never applied for two reasons. Claude Code reports
fast_mode_state "off" with fast_mode_disabled_reason
"extra_usage_disabled" on this account, which has no usage credits. And
Auto asked for fast mode only on tier 0-1 models, treating every Claude
model as fast-capable, while Claude Code runs it only on Opus 4.8 and
newer Opus models.

- The Claude backend reads fast_mode_state and fast_mode_disabled_reason
  from system/init and result, and returns fastMode { on, why } with the
  reason in words.
- The runner records the fast mode a turn actually ran with in lastTurn,
  so the cache-hold step no longer re-requests a fast mode that never
  ran. When Auto asked for fast mode and the CLI ran without it, the
  route receipt drops "fast" and adds "Fast mode did not apply: ...".
- Only opus advertises fast mode in ClaudeBackend.MODELS, and routing
  uses each model's advertised fast tier instead of assuming it on
  every Claude model.

A trimmed fixture from a real 2.1.296 Opus turn covers the parsing.
The Known rough edge in docs/status.md is replaced by an On main entry.

Coven-Harness: Claude Code / claude-opus-5-5
@vercel

vercel Bot commented Oct 13, 2026 •

Copy link
Copy Markdown

The latest updates on your projects. Learn more about Vercel for GitHub.

Project Deployment Actions Updated
modex Ready Ready Preview Oct 13, 2026 10:55am UTC

Request Review

@BunsDev
BunsDev merged commit 044d9d3 into main Oct 13, 2026
8 of 9 checks passed
BunsDev added a commit that referenced this pull request Oct 13, 2026
Keeps the fast-mode entry (#195) and moves the pnpm entry to the end of
"On main, unreleased", away from where new entries are inserted.

Coven-Harness: Claude Code / claude-opus-5-5
@BunsDev
BunsDev deleted the claude-fast-state branch October 13, 2026 12:48

This branch was successfully deployed

1 active deployment
Preview — 3157a781 Deployed Oct 13, 2026 by vercel[bot]
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