You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
Trim what an implement session reads before starting work, tested by an Experiment #1526
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:
Drop the coding-standards clause from the thirdshift-tdd Factory skill, leaving standards to the review.
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?
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
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.
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.
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.
Activity
JacobStephens2 commentedon Nov 9, 2026
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:
GLOSSARY.mddocs/code-navigation.mddocs/guide.mddocs/testing.mdAGENTS.mdWhy 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
docs/code-navigation.mdto 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.docs/testing.md, about a third of the file, beside the tests they describe. All 88 sessions read the file whole.AGENTS.md. The largest reads, 100k to 318k characters, are each several files chained in onerg -norcat, so the sentence isn't changing what sessions do.GLOSSARY.md,docs/guide.mdand the hand-written site pages (see Spec Tickets collide on the hand-written site pages and user manual #1524) would also bound whatrg -nreturns 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.