Play · Lean context, lower spend
Every token loaded is a token paid. Load only what matches.
An agent knows only what it loads. Four pillars make that small, current and cheap.
Steering docsCode graphVersioned docsMemory bankThe team, files and output on this page are invented to illustrate.
The task
Fix a bug in the invoice API. What does the agent load?
Same bug, same agent. One repo hands it everything up front. The other answers questions as they come.
1Session starts
Load everythingAGENTS.md 412 lines docs/** 38 files wiki export 1 file
A manual before any work.
Context that helped: 0 / 4
Load on matchAGENTS.md 38 lines ADR index 12 lines
Small, and always true.
Context that helped: 1 / 4
2Finding the callers
Load everything$ grep -r createInvoice # read 40 files to find 3 callers
Reading to search.
Context that helped: 0 / 4
Load on matchindex: callers(createInvoice) 3 call sites
A short answer.
Context that helped: 2 / 4
3A library question
Load everything# from memory: the v4 API router.addRoute(...)
Advice for the wrong version.
Context that helped: 0 / 4
Load on matchdocs: router 6.2 (installed) router.route(...)
The version you run.
Context that helped: 3 / 4
4Something odd
Load everything# staging needs the VPN # rediscovered, again
An hour lost to a known quirk.
Context that helped: 0 / 4
Load on matchmemory: staging DB needs the VPN dated, source: incident review
Found, dated, sourced.
Context that helped: 4 / 4
The chain
Each pillar takes something out of the window
- Steering docsA short filealways loaded, always trueWithout it: a manual every session
- Code graphAn indexwho calls what, in one answerWithout it: whole files read to search
- Versioned docsVersioned docsfor what is installedWithout it: advice from memory
- Memory bankMemory notesdated and sourcedWithout it: the same quirk, weekly
The gains
For the agent
- More room for the actual task
- Answers instead of whole files
- Facts that match the installed version
For the team
- Lower token spend
- Faster sessions
- Fewer bugs from stale advice
Try it on your repo
Open one session transcript. How much of it was the task?
Mark what the agent loaded before it started work. That is your context overhead.