Skip to content

Trim what an implement session reads before starting work, tested by an Experiment #1526

Open

Description

@JacobStephens2

This was generated by AI during triage.

From the 2026-10-28 retro of thirdshift's own runs. To be shaped in a grill-with-docs session, and tested with an Experiment before either change lands.

Recent implement sessions (issue 1000 and up, 188 sessions, mostly Codex) open with about 115k characters of documents before they start work. Session #1464 is typical:

  • cat AGENTS.md, about 1.9 times per session, although the Harness already loads it.
  • CODING_STANDARDS.md, a one-line pointer, then the codebase-design skill (about 16k characters), about once per session. The implementer reads review-stage material because the thirdshift-tdd Factory skill says to "check applicable coding standards". The Standards review enforces them anyway.
  • A broad rg -n 'Ticket run|Delivery|…' GLOSSARY.md that returned 40k characters. Each glossary entry is one long line, so rg -n returns whole paragraphs; GLOSSARY.md is about 56k characters per session.

Candidate changes:

  1. Drop the coding-standards clause from the thirdshift-tdd Factory skill, leaving standards to the review.
  2. Point AGENTS.md at rg -n '^\*\*' GLOSSARY.md as a one-line-per-term index, followed by sed -n on the entries needed.

Both are prompt changes that could change behavior in ways the token count doesn't show, such as code that drifts from the design vocabulary or wrong domain terms. Before landing them, compare a Baseline arm with a Candidate arm in an Experiment. There's no implement Eval suite yet: #1484.

Open questions for the grill:

  • Should the Experiment's success measure include context use, as well as Trial pass rate?
  • Does the codebase-design vocabulary need to be in the implementer's context to keep Standards findings down, or does the review catch enough?
  • The TDD skill ships to every repository. Is this repository's experience enough reason to change it for all of them?

Activity

  1. added
    enhancement
    needs-triage
    on Oct 28, 2026
  2. JacobStephens2 commented on Nov 9, 2026

    @JacobStephens2
    OwnerAuthor

    This was generated by AI during triage.

    Evidence from the 2026-11-09 retro

    Characters an implement session reads before its first edit: a median of 417k from 2026-10-29 to 11-09, up from 304k in the week before. This counts every read, source files included; the body above counts documents only.

    About this much of it comes from documents, per session:

    Document Read per session Size on 11-09 Size on 10-28
    Factory skills 47k
    Hand-written site pages 45k
    GLOSSARY.md 30k 63k 55k
    docs/code-navigation.md 25k 38k 32k
    docs/guide.md 22k 415k 312k
    docs/testing.md 13k 10k 8k
    AGENTS.md 9k

    Why it matters: a Codex implement session carries what it has read through about 160 tool calls. By a rough count, 417k characters is about 100k tokens, so early reading accounts for most of the session's median 21.9M input tokens.

    Further candidate changes

    1. Bound each row of docs/code-navigation.md to paths and symbols. Its header calls it "a navigation aid, not a second glossary", yet 25 of its 80 rows are over 500 characters and hold half the file. The longest is 1,664. 41 of 88 sessions read the whole file. The narrative would move to each module's doc comment, and a check would hold the bound.
    2. Move the three fixture-lifetime sections of docs/testing.md, about a third of the file, beside the tests they describe. All 88 sessions read the file whole.
    3. Drop "one large file per call" from AGENTS.md. The largest reads, 100k to 318k characters, are each several files chained in one rg -n or cat, so the sentence isn't changing what sessions do.
    4. One sentence per line in GLOSSARY.md, docs/guide.md and the hand-written site pages (see Spec Tickets collide on the hand-written site pages and user manual #1524) would also bound what rg -n returns from them. About 121k characters per session come from those long-line files.

    This stays needs-triage. The issue asks for an Experiment before any of these land, and the implement Eval suite that needs is #1484, now in progress.

  3. added
    ready-for-human
    and removed
    needs-triage
    on Nov 10, 2026
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

    enhancementready-for-human

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions