Skip to content

Trim the standing context every turn loads #509

Closed

Description

@tannerpolley

Part of #506 (plan: #506 (comment), change 6). Owner decision 2026-11-19.

Problem

Every request re-reads a fixed context of roughly 60–130k tokens: system and T3 instructions (~6–7k), tool definitions (~8–19k), deferred tool names (~1–2.4k, 107–112 of them T3), the skill list (~7.5k for ~80 skills), rules and memory (~3–9k).

Wanted (T3 part)

  • Keep authority and safety instructions and the few tools needed before discovery; defer role notes, tool families and detailed workflows behind discovery. Role-specific text only for the role that needs it.
  • Measure a fresh first-request payload per role before and after, using the method in the plan.
  • Never gate tool permission on catalog visibility; discovery stays available.

The always-loaded global rules and the skill catalog are trimmed outside this repo (agent tooling); this issue covers what T3 injects.

Done when

First-request fixed context per role is measured before and after, with a stated reduction and no lost capability in the role evals in evals/ that cover the changed text (free checks only, no paid evals).

Activity

  1. added this to the Fork backlog milestone on Nov 20, 2026
  2. tannerpolley commented on Nov 21, 2026

    @tannerpolley
    OwnerAuthor

    T3 Code status: Unavailable

    Issue: #509 Trim the standing context every turn loads

    Thread: thread:delegated-task:milestone-issue%3Athread%3Adelegated-task%3Arepository-handoff%253A421f7a75-1bf7-49e2-abb0-448fcf274ea0%3A8%3A6502757687%3Afirst

    Model: gpt-6.2-sol

    Branch: issue-509-trim-the-standing-context-every-turn

    Updated: 2026-11-23T17:09:11.392Z

  3. tannerpolley commented on Nov 21, 2026

    @tannerpolley
    OwnerAuthor

    T3 Code closeout: failed

    Issue: #509 Trim the standing context every turn loads
    Thread: thread:delegated-task:milestone-issue%3Athread%3Adelegated-task%3Arepository-handoff%253A421f7a75-1bf7-49e2-abb0-448fcf274ea0%3A8%3A6502757687%3Afirst
    Model: gpt-6.2-sol
    Branch: issue-509-trim-the-standing-context-every-turn
    Completed: 2026-11-21T00:39:20.300Z

    Codex request 'turn/start' (182) timed out after 60000ms; closing the transport.

    Last assistant message before the run failed:

    T3 currently injects live model choices into every turn, even though orchestrator_capabilities already returns them. Claude also receives the full deferred tool-name list. I’ll capture the baseline and check that Claude can load tools on demand before reducing that list.

  4. tannerpolley commented on Nov 21, 2026

    @tannerpolley
    OwnerAuthor

    T3 Code closeout: failed

    Issue: #509 Trim the standing context every turn loads
    Thread: thread:delegated-task:milestone-issue%3Athread%3Adelegated-task%3Arepository-handoff%253A421f7a75-1bf7-49e2-abb0-448fcf274ea0%3A8%3A6502757687%3Afirst
    Model: gpt-6.2-sol
    Branch: issue-509-trim-the-standing-context-every-turn
    Completed: 2026-11-21T01:08:26.613Z

    workspace routing discovery timed out

    Last assistant message before the run failed:

    I’ll check the checkout first, then compare it with #537 and #527 before resuming. I’ll use fresh dry-run payloads for both harnesses and open the draft after verification.

  5. tannerpolley commented on Nov 21, 2026

    @tannerpolley
    OwnerAuthor

    T3 Code closeout: failed

    Issue: #509 Trim the standing context every turn loads
    Thread: thread:delegated-task:milestone-issue%3Athread%3Adelegated-task%3Arepository-handoff%253A421f7a75-1bf7-49e2-abb0-448fcf274ea0%3A8%3A6502757687%3Afirst
    Model: gpt-6.2-sol
    Branch: issue-509-trim-the-standing-context-every-turn
    Completed: 2026-11-21T02:12:49.899Z

    Codex request 'thread/start' (108) timed out after 60000ms; closing the transport.

    Last assistant message before the run failed:

    PR #537 has landed, and I’ve rebased onto it. #527 is still in draft #540. I’ll leave its child-specific catalog rules there and use T3’s existing on-demand catalog to trim what Claude receives at startup. I’ll use the PR skill for the draft’s evidence and merge notes.

  6. tannerpolley commented on Nov 21, 2026

    @tannerpolley
    OwnerAuthor

    T3 Code closeout: failed

    Issue: #509 Trim the standing context every turn loads
    Thread: thread:delegated-task:milestone-issue%3Athread%3Adelegated-task%3Arepository-handoff%253A421f7a75-1bf7-49e2-abb0-448fcf274ea0%3A8%3A6502757687%3Afirst
    Model: gpt-6.2-sol
    Branch: issue-509-trim-the-standing-context-every-turn
    Completed: 2026-11-21T07:22:12.550Z

    Provider turn failed.

  7. tannerpolley commented on Nov 23, 2026

    @tannerpolley
    OwnerAuthor

    T3 Code closeout: done

    Issue: #509 Trim the standing context every turn loads
    Thread: thread:delegated-task:milestone-issue%3Athread%3Adelegated-task%3Arepository-handoff%253A421f7a75-1bf7-49e2-abb0-448fcf274ea0%3A8%3A6502757687%3Afirst
    Model: gpt-6.2-sol
    Branch: issue-509-trim-the-standing-context-every-turn
    Completed: 2026-11-23T07:09:30.207Z

    PR #547 (draft), head e622479a9c037673ea079ec2d4f398d93a999291, measured first-request savings of 5.9–8.5% for Codex and 10.3–13.5% for Claude by bytes in dry runs. Checks passed for all 1,159 tests, formatting, lint, Knip, and GraphQL. Typecheck reproduced three existing mobile errors on clean main. GitHub reports no checks or reviews yet.

  8. tannerpolley commented on Nov 23, 2026

    @tannerpolley
    OwnerAuthor

    T3 Code closeout: done

    Issue: #509 Trim the standing context every turn loads
    Thread: thread:delegated-task:milestone-issue%3Athread%3Adelegated-task%3Arepository-handoff%253A421f7a75-1bf7-49e2-abb0-448fcf274ea0%3A8%3A6502757687%3Afirst
    Model: gpt-6.2-sol
    Branch: issue-509-trim-the-standing-context-every-turn
    Completed: 2026-11-23T17:08:06.977Z

    PR #547, head f19ffe1b012e6370d5134688eac15f3795a34219, merges cleanly with current main. GitHub generated a merge commit from those exact revisions, so the conflict alert was stale. The PR remains watched.

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

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions