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.

Read this as

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

Claude Code plan.md

Was this summary useful?

One click, anonymous. It tells us which summaries to re-run.

Related reading