NewsCrawler.org

The state of context engineering: failure types, six techniques, and strategic forgetting

The state of context engineering: failure types, six techniques, and strategic forgetting
Image: news.hada.io

In “The State of Context Engineering”, an article discussing the AGNTCon talk “Context Fails & Fixes”, context engineering[1] is framed as giving the right model the right information and choosing what to handle with deterministic code and what to leave to a probabilistic model. Large context windows do not settle this: they admit errors and conflicting examples along with more information, and problems like a model fixating on a wrong fact or following conversation-history patterns instead of instructions are not solved by window size alone. The late-2024 expectation that “RAG[2] is dead” — the idea that everything could simply be placed in context — followed the leap from about 128,000 tokens to 1 million tokens with Gemini 1.5, while Llama 4 Scout offered a 10 million-token window first but was difficult to run and never caught on.

The talk lists four established failure types: context poisoning (hallucinations or wrong facts the model cannot escape), context distraction (long contexts make the model rely on them over its base knowledge), context confusion (irrelevant facts and assumptions about the user changing answers), and context clash (tool calls, skills and other information conflicting in unexpected ways). In one example, Gemini 2.5 playing the 1996 game Pokémon Red spent hours trying to complete a task from the 2004 remake FireRed — bringing a guard an iced tea instead of a lemonade — because that goal was in its training weights[3]. In Carolina Camassa and Derek Shiller's “Do as I Say, Not as I Do” experiments, adding conflicting conversation examples to the history lowered instruction compliance in every tested model, with Gemma 3 12B falling below half after only a few examples and Opus 4.6 showing the same problem as examples accumulated.

Six management techniques — augmentation, tool loadout, quarantine, pruning, offloading and summarization (compaction) — are moving into agent harnesses[4], where code increasingly assembles the context; in one company, agents loaded 600 skills per engineer at startup until filtering was added. Models trained for long tasks bring new failure modes: “fighting the weights”, where requested behavior conflicts with learned behavior (Claude Code's system prompt and tool instructions repeat the request to run independent tool calls in parallel 7, 4, 2 and 3 times), and context inertia, where agents keep pursuing hypotheses and subtasks past the point they should stop. In the Pokémon experiment from the Gemini 2.5 technical report's appendix, once context exceeded roughly 100,000 tokens the model began repeating past behavior instead of making new plans; METR's task-time metrics put GPT-5 at about 3.4 hours, Gemini 3.1 at 6.4 hours and Opus 4.6 at about 12 hours, which the speaker ties to better use of the harness. Remedies include Anthropic's Memento harness, which writes a short memo every 90 minutes and clears context while preserving outputs, and UC Berkeley's “Scaling Discovery Requires Forgetting”, where performance rebounded with every context reset; the speaker names the accumulated memories and skills of personal agents as the next candidate problem, since overly specific memories eventually conflict and become messy and strategic forgetting remains unsolved.

Read the original dbreunig.comDiscussion on GeekNews

Discussion

Commenters mostly shared their own context-management practices: keeping related information close together in the text, hierarchical summarization schemes, and checkpointing work into artifacts before resetting context. There was pushback on specifics — one reader says newer models only visibly degrade around 700-800k tokens and perform worse without accumulated codebase context, another questions calling the Pokémon mix-up “poisoning” when the wrong task came from the weights, and a third argues the phenomena and remedies long predate LLMs.

Sources

Published: First seen: Читать по-русски

Open as a page