Skip to content

Cut model usage waste: long Writer threads, delegation patterns, and T3 orchestration overhead #506

Closed

Description

@tannerpolley

Problem

The owner's Claude Fable weekly usage went from 100% to 36% in one day (2026-11-19). A read-only review (Fable usage today thread, results summarized below) found:

  • 34 Fable sessions, ~1.30 billion tokens; 96.9% were cache reads (re-reading thread history every turn). Opus recorded ~0.87 billion on the same basis.
  • The biggest sessions were long Writer threads on manuscripts (11–13 turns each; the ePC-SAFT engine paper at xhigh alone was 18.5%).
  • About 13% of Fable tokens were work Opus could do (plans with settled decisions) and about 5% work Codex could do (mechanical tasks).
  • Codex token use is not recorded in the T3 database, so it can't be budgeted today.

The owner suspects T3 Code's orchestration setup itself adds heavy usage: large fixed context per turn (system prompt, tool lists, skill lists, rules files, memory index), and many extra turns from wakes, notifications and status nudges.

Wanted

A measured plan, not guesses:

  1. Where the tokens go per turn for each role (orchestrator, Writer, Designer, Checker, Implementor) on Claude and Codex: fixed context size by source, and how many turns come from wakes, background-task notifications, "user hasn't heard from you" nudges, fix-round messages and re-checks.
  2. How usage limits count cache reads vs input vs output for Claude subscriptions and Codex (from official docs), so the plan targets what actually drains the weekly limit.
  3. Changes, ranked by expected saving, across: the Writer role and a skill or rule for stage-sized Writer threads with a handoff note; how orchestrators delegate (brief size, fresh threads per stage, fewer wakes, batching child results, when to use Fable vs Opus vs Codex); and T3 Code itself (fixed context it injects, deferred tool lists, skill listings, wake frequency, nudges).
  4. Alternatives to owner preferences that cost usage, each with the preference, its cost, the cheaper alternative, and what the owner would give up. Examples to evaluate: reply after every wake, a Checker plus re-checks on every correctness-critical PR, Fable as the Designer and Writer default, xhigh manuscript work, a long-running Opus orchestrator thread, the weekly usage report itself.
  5. A way to budget usage: what to record (including Codex tokens) and what to show the owner.

Done when

The plan is posted on this issue with measured numbers and their sources, each recommendation has an estimated saving and a cost to the owner, and the owner has decisions to make. No code or settings change in this issue; implementation gets its own issues after the owner decides.

Out of scope

Implementing the changes. Paid evals or any Anthropic API key.

Activity

  1. tannerpolley commented on Nov 20, 2026

    @tannerpolley
    OwnerAuthor

    Reserve Fable for manuscript story and structure and for design decisions that are still open. Keep the review gate for correctness-critical changes. The first two workflow changes I would try are routing routine work off Fable and giving each substantial Writer stage its own thread. Add usage reporting from the records T3 already keeps so we can see whether either change helps the weekly meter.

    What the logs show

    I reproduced the earlier “Fable usage today” review against the November 19 local-day logs through 5:41 p.m. Mountain time. Summing assistant rows gave 1.31 billion Fable tokens, close to the earlier 1.30 billion. Several rows repeat the same usage for different content blocks in one response. Counting each provider request once gives 608.2 million Fable tokens across 34 sessions: 591.8 million cache reads (97.3%), 12.75 million cache writes, 3.58 million output and about 5,100 uncached input. Opus recorded 476.1 million, including 466.6 million cache reads. The Engine paper Writer contributed about 117 million on this basis (roughly 19%). The request-level total for that thread is close to the provider's session summary, which includes some usage the main transcript doesn't expose. These are observed token volumes. The owner-reported weekly meter drop has no documented conversion from these totals.

    Fixed context at entry

    Claude values are the first model request's uncached input + cache write + cache read. Cache write alone can understate the prefix on a warm cache or overstate standing context if the starting message is a handoff. Codex input already includes cached input. The session ID prefixes below locate the logs under ~/.t3/provider-homes/claude/projects or ~/.t3/provider-homes/codex/{sessions,archived_sessions}. I matched them by native session ID from T3's provider-thread records. Sizes are sample measurements, with different repositories and harness versions.

    Role Claude first input, with cache write / read Codex first input, with cached subset
    Orchestrator Opus fb8be503: 131.9k (119.2k / 12.7k). The first message alone is 195.7k characters of handoff (~49k tokens at four characters per token). A later compacted request carried 84.8k including its summary. 01a1d7a4: 31.7k (0 cached), historical design orchestrator
    Writer Fable Engine 00960249: 70.0k (41.8k / 28.3k). Dissertation 4728aa4c: 60.0k (32.0k / 28.0k). Merged paper a3ea5b6a: 68.7k (40.7k / 28.0k). 01a1e620: 33.0k (0 cached), historical Part II Writer
    Designer Fable comparison db8c5caa: 70.1k (42.1k / 28.0k) 01a1f2bd: 34.1k (0 cached)
    Checker Opus review c24165dc: 67.0k (38.9k / 28.2k) PR #505 01a1f664: 39.6k (25.5k cached)
    Implementor Opus sidebar e600bf4e: 67.6k (34.0k / 33.6k), November 18 01a1f670: 36.8k (0 cached)

    I measured rendered text and serialized tool definitions separately and divided characters by four for the estimates below. Provider tokenization and request framing vary. These rows are approximate attribution and will not sum to the provider's measured totals.

    Context source Approximate size and owner
    System and developer instructions Claude system blocks were 5.8–7.5k tokens by text size, including roughly 2.4–3.6k from the T3 orchestration heading to the end of its section. Codex had ~5.4–6.9k general developer text and ~2.4–3.2k in tagged T3 role, orchestration, runtime and tool blocks. Claude uses a harness preset plus T3, runtime and optional launch text. Codex uses separate developer blocks. T3's checked-in budget fixture measures 6,729 bytes for a representative Claude append and 8,122 for Codex's extra context. Live configuration varies. Claude adapter · Codex developer instructions · Shared orchestration instructions
    Tool definitions, deferred names and tool-server instructions Claude declared ~8.5k tokens of tool schemas on the historical Opus orchestrator and ~19k on current Writer/Designer samples. The harness's Artifact schema alone was ~9–10k in the latter. Initial deferred-name lists were ~1–2.4k, with 107–112 T3 names out of 124–252. Logged tool-server instructions were 0–0.9k across samples, from Chrome and other connected services. I found no T3 server instruction block in those attachments. Codex's deferred namespace listing was ~0.8–1.0k where visible, and four additional tool definitions serialized to ~11–12.5k. That serialized size does not establish how much Codex sent to the model, and I could not isolate a Codex server instruction total. T3 registers tools in its toolkits and controls the advertised list. The harness builds the Claude deferred-name attachment and Codex tool presentation. T3 already has deferred discovery and a small list of tools that must be callable directly, including blocking waits. Tool registration and deferred listing · Codex registration
    Skills Claude's initial list was ~7.3–7.6k for 77–82 entries. Codex's catalog was ~8.1k for the four worker samples and ~9.3k for the historical orchestrator. These are harness catalogs assembled from installed and project skills. Full skill text loads when used.
    Rules and memory Claude's provider-home CLAUDE.md imports the global AGENTS.md (~2.8–3.1k). Repo CLAUDE.md files import repo rules where present. The logged repo rules were ~5.7k in the October T3 orchestrator, ~1.2k for Engine, ~2.3k for Amine, and absent in the Dissertation sample. Logged MEMORY.md was ~1.1k in T3 and ~3.8k in Engine, with none seen initially in the sampled Amine and Dissertation sessions. Codex's combined rules block was ~4.0–9.5k across samples. Its provider-home AGENTS.md points to the same global file. I could not isolate a separate Codex memory index. These blocks are loaded by the harness from the home and workspace. T3 chooses the runtime home/workspace and passes its own instructions separately.

    Turn drivers

    Counts below use distinct Claude turn indexes with a leading prompt. Fix and re-check counts are subsets. The status nudge is a separate observation inside a running turn. I matched the first appearance of its text in a request payload to the response, excluding copies carried in later history and compaction summaries.

    Sample Starts and causes Status nudges
    Named Opus orchestrator, November 19 Mountain time through the research request 72: 19 user/steering prompts including thread-reference context, 39 child result prompts (8 fix-round results, 8 re-check results), 13 background-command completions, 1 issue-inbox digest. Its database has 720 lifetime run rows through this slice. Provider and T3 counts differ where prompts are queued, interrupted or resumed. 1 matched, ~147k input on that request
    Engine paper Fable Writer 13: initial brief, 10 steering/follow-up messages (4 explicitly labelled fix rounds, plus a follow-up after a re-check), 2 interrupted-turn continuations. Zero child or background starts in this log. 20 matched, ~6.0m input on their requests
    #400 merged-paper Fable Writer 16: initial brief, 1 steering update, 14 background completions. A separate fresh fix-round Writer started from one brief. 6 matched, ~1.78m input
    Dissertation Fable Writer 4: initial brief and 3 build completions. The second completion followed a fix pass. 5 matched, ~1.00m input

    The 39 Opus child-result starts carried ~52.5 million input tokens across 186 model requests. Its 13 background starts carried ~6.9 million input across 28 requests. The Fable #400 background starts carried ~40.2 million input across 147 requests. Those totals include the ensuing work. Suppressing a notification only saves the work that disappears or can share a request. The Designer had an initial brief and one interrupted-turn continuation. The Claude Checker had a brief and one background wake. The sampled Claude and Codex Implementors each had one start. The Codex Checker, Designer and historical Writer had two, two and three respectively. Their launch records did not consistently label the trigger, so I leave the extra starts unclassified.

    What the weekly meters count

    • Claude subscription. Anthropic says conversation length, tools, model and effort affect usage. It says reused cached project content counts less and documents a separate Fable weekly limit on eligible subscriptions. I found no published subscription weights for uncached input, cache reads, cache writes or output. Anthropic's separate application programming interface rate card charges cache writes at 1.25× (five minutes) or 2× (one hour) ordinary input and reads at 0.025× for Fable 5.2 and 0.05× for Opus 5.5. Output has its own model rate. These rates price developer calls. 97.3% of raw tokens cannot be read as 97.3% of weekly allowance. Claude usage limits · Usage best practices · Claude Code subscriptions · Claude developer pricing
    • Codex included allowance and purchased credits. OpenAI says model, context, reasoning, tools and caching affect included usage. I found no per-category conversion to the weekly meter. Purchased credits have explicit rates per million uncached input / cached input / output: 50 / 2.5 / 250 for GPT-6.2 Sol at Standard speed, 2.5 / 0.25 / 12.5 for GPT-6 Luna. Codex credit billing has no separate cache-write charge. Use the actual model and speed for a credit estimate and the account meter for remaining allowance. Codex pricing and token rates

    Changes in priority order

    These are opportunities measured in raw tokens or credits, with overlapping effects. They are not additive quota savings.

    1. Route bounded work away from Fable. The earlier review's task labels, applied to the corrected request counts, put 77.2m Fable tokens (12.7%) in work suited to Opus and 28.5m (4.7%) in work suited to Codex in this slice. Owner settings and delegation rule: Opus for plans with settled decisions and routine synthesis, Codex for mechanical edits, evidence gathering, implementation and targeted checks, Fable for unsettled research/design and consequential manuscript story/structure. Treat this as a routing estimate, since the destination model does its own work. The owner gives up Fable as the default first pass for every Designer/Writer assignment. Opus draws on Claude allowance, and Codex draws approved credits once included usage runs out.
    2. Use one Writer thread per substantial stage. Skill or global rule sketch: agree on the stage and acceptance check, then use one short live thread for it. At the boundary, leave a 300–600 word handoff with the issue, files and revision, accepted decisions, evidence/verification, unresolved questions and the next stage's first action. Link source artifacts and review reports. Start the next Writer with that note and no transcript import. Keep related line edits in the same stage if it is still short. The Engine paper's final comparison stage entered at 188k and ran 62 requests. A 72k fresh start (70k observed plus 2k for a handoff) gives ~7.2m gross fewer input tokens if that difference persists. If half the history must be reread, the example becomes ~3.6m. Starting fresh also writes a new prefix. The owner gives up immediate recall of earlier discussion and has to correct omissions in the handoff.
    3. Batch routine completions and make visible status cheap. T3 and the global reply-after-every-wake rule should change together. Keep immediate model wakes for questions, blockers, failures requiring action, and the dependency that unlocks the next step. Display routine completion/build status directly and deliver related results together. Four checks in the merged Writer landed within about one minute. Delivering them in one wake would remove three first requests totaling roughly 0.41m input if the checks could run together, with subsequent reasoning still needed. The Opus sample had 39 child-result starts, so apply the same rule to a parallel group of reviews and give one visible synthesis. Test the existing T3 completion cohort/mailbox before adding a new mechanism. Replying after every wake buys immediate narration. A batched reply buys fewer interruptions at the cost of waiting for the group. For the harness status nudge, prefer progress already available from tools or a less frequent nudge where the provider supports it. The Engine's 6.0m input is the ceiling for requests that received the nudge, not measured avoidable work. The text was present in Claude requests and I did not find its generator in T3. T3's separate silent-wake retry can start another turn after a delivered result receives no visible reply. Preserve recovery for a genuinely dropped result. T3 continuation · Silent-wake rule
    4. Hand off the long-running Opus orchestrator at a settled batch or topic boundary. Owner workflow: carry active issues and child IDs, pending decisions, delivery state and the next action. This thread reached 467k input just before compaction and 85k on the first compacted request, a measured one-request drop of ~382k. If a handoff sustains half that gap over 20 further requests, that is ~3.8m fewer input tokens. Prefer a short handoff to the 195.7k-character launch message seen here. An Opus orchestrator with full history buys fluency about past work. A fresh thread will need links and reminders. Keep child briefs around 0.5–1k tokens for routine tasks, with the issue, exact scope, expected evidence and a short result. Cutting a 1.5k-token brief to 0.75k across a 40-request child saves up to ~30k repeated input plus a shorter initial write if the agent already has source links. The tradeoff is an extra lookup when a brief omits context the issue cannot supply.
    5. Keep the independent Checker and target re-checks to material changes. Owner review policy and delegation rule: batch findings, fix once, and re-check the changed correctness claim and its affected paths. Use a focused test and local inspection for a small proven follow-up when the owner permits. The sampled Codex Checker used 1.47m tokens on its second pass, including 1.43m cached input. At Standard GPT-6.2 Sol rates that is about 6.3 credits, plus a separate Opus parent wake when one occurs. The owner gives up an independent second read of minor fixes. Keep a fresh re-check for changed behavior or any previously unresolved material finding.
    6. Trim standing context by role. T3 should keep authority and safety instructions and the few tools needed before discovery, and defer role notes, tool families and detailed workflows; keep discovery available and measure a fresh payload before and after. The global rules owner can move procedures out of always-loaded files, and the skills owner can shorten or scope the catalog. A 25% cut to the observed 7.5k skill list and ~2.5k T3 text is ~2.5k input/request, or ~1.1m over the Engine Writer's 434 unique main responses. Half of the Claude deferred-name text would be another ~0.5–1.2k/request. These are size targets, and the provider owns the harness-generated catalog and Artifact schema. The owner gives up some immediate discovery. Keep a searchable catalog and do not gate actual tool permission on catalog visibility.
    7. Reserve extra-high effort for manuscript decisions that need it. Owner setting: retain it for story, structure and contested claims. Use high for accepted edits, verification and cleanup. The Engine session summary recorded ~290k thinking tokens at extra-high effort. A planning scenario of 10–25% fewer thinking tokens on equivalent work is 29–72k output before any change in inputs or number of calls. This sample has no matched high-effort comparison. Escalate a struggling stage and track rework. The owner gives up depth on the first attempt for routine passes.
    8. Make the weekly report a query with optional interpretation. Owner schedule and T3 reporting: publish the provider meters and the top changes from stored usage, and call a cheap model only when the owner needs interpretation. The prior GPT-6 Luna investigation used 2.33m tokens, including 2.17m cached input, about 1.3 credits at Standard rates. That is a measured example for eliminating a similar model-written report, not a measurement of the scheduled weekly report itself. The owner gives up automatic narrative interpretation unless requested.

    Budget and decisions

    T3 already stores per-turn Codex usage in orchestration_v2_projection_provider_turns.payload_json.turnTokenUsage. The sampled Checker had populated usage in both provider turns although its thread-summary row was absent. The Codex adapter consumes thread/tokenUsage/updated, and Codex logs also have per-response token_usage_record entries. Use those provider-turn records first and make missing summary rows or partial data visible. Avoid adding cumulative snapshots together. Use request or response identity for log reconciliation, so one streamed response counts once. Codex usage ingestion · Provider-turn persistence

    Record model, role, effort, speed, project/issue, thread, parent and stage, start trigger, request count, first and peak context, compaction, uncached input, cache reads, cache writes, output and reasoning as a subset. Distinguish main, attached child and other provider usage to avoid counting the same child in parent and child totals. Show weekly and short-window meter headroom, reset time, pace and credit balance alongside top tasks, stages and wake reasons. Mark stale or partial data. Use the provider meter as the quota authority and show estimated credits separately. Compare normal work before and after the pilot, including rework and review findings, with no paid evaluation runs.

    Owner choices for follow-up issues: adopt the routing and Writer-stage pilot, choose how long routine completions may wait for a digest, and decide which small follow-ups can use a focused local check. With Claude at 20% before the November 23 reset and approved Codex credits available, the workflow pilot can start after approval while T3's batching and reporting changes are scoped separately.

  2. tannerpolley commented on Nov 20, 2026

    @tannerpolley
    OwnerAuthor

    Closing as done (owner, 2026-11-20 issue audit). The plan and its corrected measurements are posted, and the work continues in #507, #508 and #509. #510 is done.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions