26 Oct 2026 - Context fails and fixes: Drew Breunig's state of context engineering (AGNTCon)
Source
- Primary: Drew Breunig, "The State of Context Engineering", AGNTCon talk, slides plus lightly edited transcript, published 24 Oct 2026 - https://www.dbreunig.com/2026/10/24/the-state-of-context-engineering.html
- Breunig cofounded Cmpnd (compound AI research, DSPy) and is editing The Context Engineering Handbook for O'Reilly. Works he cites: Gemini 2.5 Pro technical report; Camassa and Shiller, "Do as I Say, Not as I Do"; Anthropic's Memento harness post; Cai and Ziakas (Microsoft Research), "Fork-and-Flush"; Zhang (Stanford), "Stateless Language Agents"; Tan (UC Berkeley), "Scaling Discovery Requires Forgetting". Claims below are the talk's own; our synthesis is marked.
The problem
Bigger context windows were supposed to end retrieval and planning ("RAG is dead", 2024). They didn't. Long contexts bring four failure modes Breunig named: context poisoning (a bad fact gets in and the model cannot get past it), context distraction (a very long context crowds out base knowledge), context confusion (irrelevant details steer the answer), and context clash (tools and instructions conflict). In 2026 the pitch moved to agentic models that drive their own harness over long horizons (METR: GPT-5 about 3.4 hours, Gemini 3.1 about 6.4, Opus 4.6 about 12), which created two new failure modes: fighting the weights (the model resists your instructions because they clash with its training habits - his tell is repetition and all-caps in the system prompt) and context inertia (the agent fixates on a hypothesis or subtask and keeps pursuing it after it should stop).
The evidence he shows
- Context poisoning: Gemini 2.5 playing Pokemon Red kept trying to bribe a guard with tea - a task from the newer FireRed version sitting in its weights - for hours once it entered its to-do list.
- Context distraction: in "Do as I Say, Not as I Do", contradictory examples in chat history erode instruction-following in every tested model; small models fold after a few examples, Opus 4.6 holds longer but degrades too. The Gemini 2.5 appendix notes that beyond roughly 100k tokens the agent repeated past actions instead of planning new ones.
- Context inertia: four groups landed on the same fix within a week. Anthropic's Memento clears the agent's context every 90 minutes while preserving the environment (a fixation fix). Fork-and-Flush and Scaling Discovery Requires Forgetting show scores jumping after each periodic context clear - the forgetting variant beat parallel and single-agent baselines on the same compute.
The toolbox (his six, unchanged since 2025)
- Context augmentation (RAG, skills), tool loadout (expose only the tools a request needs - one enterprise loaded 600 skills per engineer), context quarantine (subagents with blank history), context pruning (drop dead turns), context offloading (state in files/databases), context summarization (compaction, ideally with a relevance pass first).
- His practical bar: treat roughly 200-300k tokens as the warning point and reset; "Have you tried resetting your context?" is his default fix for a weird agent.
- His 2027 prediction: personal agents running for months will accumulate conflicted, messy memories and skills; strategic forgetting is unsolved.
The talk's own limits
- A conference talk, not a benchmark: the failure modes are illustrated with selected examples, and the cited papers vary in rigor. The ~200k reset point is his rule of thumb, not a measured threshold. The six tactics come from his practice; adoption and results vary by harness.
Why it matters for builders (our synthesis)
- The actionable core for anyone running agents: most "the model got worse" reports are context problems, and the fixes are cheap and deterministic - prune, reset, quarantine, shrink the tool loadout. The Memento pattern (periodic note-then-clear) is directly copyable for any long-running assistant loop. Whether a given assistant already handles this is a hypothesis until its actual implementation is checked - the failure modes transfer, specific numbers may not.
Trial recommendation
- One recommendation: an offline context-reset rehearsal on synthetic tasks, not a product change. Take one synthetic multi-step assistant task (for example a scripted research-and-summarize loop with mock tools and canned inputs), run it twice - once letting the transcript accumulate past the ~200k-token warning point, once with a Memento-style note-then-clear at a fixed interval - and compare task success, repeated actions, and cost. Fully local, mock tools, synthetic inputs only, zero spend. Applying any of this to a live assistant pipeline is a separate step that would need its own specific approval first.