Push vs. Pull Context
Upfront pre-loaded retrieval versus just-in-time active agent foraging.
A substitute teacher arrives on Monday to a 60-page binder: every student's reading level, the fire drill route, the history of the broken projector. By second period she has forgotten most of it. The one fact she needs, which student has a nut allergy, is on page 41. Next door, another substitute got a one-page sheet and a note: "Ask the office for anything else."
Every agent session starts with the same choice. The harness can push context: load the README, the style guide and the schema into the window before the first turn. Or it can let the agent pull: hand it tools to search, list and read, and let it fetch what the task turns out to need.
Push suits context that is small, stable and needed on almost every task. Pull costs a few turns but brings back what is relevant and current. The failure is pushing by default, just in case.
In practice
Here are two ways to start a coding agent on "fix the flaky checkout test." Token figures are rough estimates.
Push: the system prompt carries
README.md ~3,000 tokens
ARCHITECTURE.md ~6,000 tokens
db/schema.sql ~9,000 tokens
last 20 CI logs ~12,000 tokens
Pull: the system prompt carries
a 15-line repo map ~300 tokens
tools: search_code, read_file, get_ci_run
Notice where the answer lives: in one CI log and one test file. The push version contains both, buried among 30,000 tokens about everything else. The pull version reaches both in three or four calls.
Why it matters
Pushed context sits in the window for the whole session, so every turn carries it. A model also reads everything it is given, relevant or not.
The quieter cost is staleness. Pushed context describes the world at turn 0. If a migration lands at turn 20, the schema in the prompt is wrong, and the agent has no reason to doubt it. Each belief taken on trust and then built on adds to grounding debtLexicon · 19Grounding DebtUnverified assumptions compounding across turns until checked against reality.: unverified assumptions that compound until someone checks them against reality.
Pull fails differently. An agent can't fetch what it doesn't know exists. Pull needs hints about where things live, such as a directory map. Cues like these are token scentLexicon · 26Token ScentNavigational hints showing where answers live without full ingestion.: enough to pick a direction without reading everything.
What to do about it
H-07 Local Handles & Progressive Disclosure is the main design law: keep the upfront load small and load specialized tools and documents when the task reaches them. H-09 Executable, Just-in-Time Micro-Docs applies the same idea to documentation. For whatever you still push, H-04 Freshness & Context Half-Life says to stamp it with its age, so the agent knows when to pull a fresh copy.
Related
The push that is almost always worth it is cold-start groundingLexicon · 28Cold-Start GroundingOpening orientation context establishing workspace reality at session start., a compact orientation saying where the agent is and what exists. Pushing a huge tool catalog at turn 0 is the same mistake applied to tools: tool-schema bloatLexicon · 38Tool-Schema BloatUpfront context consumption caused by oversized or granular tool catalogs.. How fast pushed facts go stale depends on their context half-lifeLexicon · 18Context Half-LifeHow quickly an observation decays into staleness relative to reality.: a style guide lasts all session, a CI status lasts minutes.