How to Fix Your Context
AI-generated summary of reporting by Simon Willison’s Weblog. Read the original for the full story.
Why it matters
Gives practitioners a named vocabulary and concrete tactics for managing long LLM contexts, where sloppy information management directly degrades output quality.
Drew Breunig describes four ways long AI conversations go wrong: poisoning, distraction, confusion and clash, errors, overload or contradictions in the material the model is given. His follow-up names five fixes: trimming the tool list to under 20, isolating work in sub-agents, deleting irrelevant content, summarising old messages, and storing notes outside the model in files like plan.md. Anyone building chatbots or AI assistants is affected.
Breunig's context-engineering framework argues that every token in an LLM's context window shapes behaviour, so the huge windows of modern models are not an excuse for sloppy information management. Teams building agents can cut failures by limiting tools to a focused subset, quarantining tasks in separate threads, pruning, summarising and offloading state to files. The techniques cost engineering effort, not licences.
Breunig defines five remediation patterns for the four context-failure modes (poisoning, distraction, confusion, clash). Tool Loadout caps enabled tools at roughly 20, beyond which some models degrade. Context Quarantine isolates threads via sub-agents, the pattern used by Claude Code and Anthropic's multi-agent research system. Pruning, Summarization and Offloading manage token budgets as conversations approach context limits; Offloading examples include coding agents maintaining plan.md files. No benchmarks are given.
Read the original
This summary exists to save you time, not to replace the source.
Key terms
Was this summary useful?
One click, anonymous. It tells us which summaries to re-run.
Related reading
Speculative Decoding Makes Tool Calls Faster. Agents Need a Cache.
Speed improvements in speculative decoding mean agents can execute tool calls faster, reducing latency for real-time applications.
Let Claude Code or any agent tap, type, and read your real phone
Agents can now close the mobile testing gap by driving and reading a real phone themselves, with nothing installed on the device.
n8n's open source personal agent runs on your machine and asks before it acts
Developers uneasy about cloud-based AI agents get a local, approval-gated alternative they can download today, though its research-preview status limits real reliance.
A flight recorder for AI agents that even auditors can verify offline
Teams running AI agents on production systems get tamper-evident, auditor-verifiable records of every tool call instead of logs the agent could rewrite.
A Python client for Ollama, sync or async, local or cloud
Python developers can now use one identical client to call Ollama models locally or via Ollama's cloud API, removing boilerplate and rewriting when scaling up.