Recent Additions
Singh et al., Dec 2, 2026
Tests what happens when an agent reuses approximate KV state from another context during a code security review. Keeping the model, code, prompt, and decoding settings fixed, the authors compare 533 paired reuse-hit runs with exact dense inference. Reuse speeds up the first token but changes reported findings, often marking a vulnerability not applicable. For Context Caching, the result concerns approximate cross-context reuse, with ordinary exact-prefix caching outside the experiment. Dense inference is a behavior reference; labeled PrimeVul examples provide a separate check against known bugs.
UT InfraAI, Dec 1, 2026
Introduces ext, a prototype with typed hooks for compaction, tool-output shaping, and reasoning effort. Agents write policies for those hooks; a Z3 verifier checks them against built-in and operator rules before use. The runtime keeps control of the underlying mechanisms. Context Budget and Negative Constraints gain an explicit enforcement point: an agent can adjust how it manages context while the system checks that the proposed policy stays within its declared rules.
Chen and Paracha, Nov 24, 2026
Leto predicts what the next answer needs, using indexed facts linked back to source text and standing context prepared between sessions. Feedback from the response then changes which memories it serves next. The paper reports gains in personalization and long tasks while keeping access to the original conversation. Its utility score is a heuristic, with each record’s causal effect still unmeasured. Connects Select, Don’t Dump to feedback about whether the context improved the answer, alongside checks that stored facts are faithful to their source.
Salle et al., Oct 2026, revised Nov 20, 2026
Keeps OpenCode fixed while comparing ways to compact agent history and checking which rules remain. The first ProgramBench summary drops about one-third of the anti-cheating rules on average, with more lost after further compactions. The authors argue that benchmarks can hide this because progress lives on disk, while rules that exist only in the chat may be gone. For Validate Compression and Negative Constraints, test both task progress and rule retention; a runnable project alone cannot show whether the agent kept the instructions governing its work.
Yang, Shi and Zhao, Nov 18, 2026
GrepMem pairs a compact working context with an append-only record of the full interaction. The agent recovers discarded details through regular-expression search, without an embedding index or a separate memory-extraction model. With reinforcement-trained Qwen3.5-9B, the paper reports 95-97% accuracy on ContextBench against at most 21% for its lossy baselines. This supports Write Outside the Window and Compress and Restart through recoverable source history. The search policy still has to formulate a pattern that matches the original text; retaining every byte does not guarantee successful recall.
Lu et al., Nov 16, 2026
The agent predicts what each action should achieve, then a critic checks what actually happened and scores the resulting memory. Each entry’s utility affects what gets retrieved, merged, or discarded. Across 707 AgentBoard tasks, AdMem solves 441 against 388 for ReAct without memory, with gains concentrated in tasks sharing reusable procedures. Several unmanaged-memory baselines do worse than ReAct. Gives Select, Don’t Dump a concrete memory-lifecycle mechanism, including a reason to retire records that no longer help.
Context Degradation
Gu, Feb 2026 · 377k evaluation questions
Large-scale benchmark (PAPerBench, ~29,000 instances across 1k to 256k tokens) with theoretical analysis of attention dilution under context scaling. Finds consistent performance degradation in both personalization and privacy as context length increases. The theoretical contribution matters: proves this is an inherent limitation of soft attention in fixed-capacity Transformers, independent of training data. Reinforces Context Rot with a mechanistic explanation for why it happens.
Zeng et al. (HKUST-NLP), Feb 2026
First benchmark to test context degradation in long-running agentic scenarios specifically. NoLiMa tests single-step retrieval; LOCA-bench tests agents that explore, act, and accumulate context over time. Confirmed that advanced context management strategies substantially improve success rates in these scenarios.
Wan et al., Feb 2026
Attention analysis reveals “conversational inertia”: models develop strong diagonal attention to previous responses as conversation histories grow, causing them to over-weight the most recent turn at the expense of integrating the full context. Directly explains why long-running conversations degrade and why rolling summaries outperform verbatim history at scale. Proposed mitigation introduces contrastive demonstrations that reduce inertia without retraining.
Letta
Benchmark specifically for agentic context engineering. Evaluates how well models chain file operations, trace entity relationships, and manage multi-step retrieval. See the live leaderboard for current rankings.
Drew Breunig
Taxonomy of context failure modes: poisoning (hallucination enters context), distraction (context overwhelms training), confusion (superfluous context influences response), clash (parts disagree). Useful diagnostic framework when things go wrong.
Su et al., May 2026
Turns agent traces into long-context training examples. Standard agent SFT masks tool responses, which means the model is trained to choose the next tool but not to integrate the evidence scattered across prior observations. ACC compiles those trajectories into QA pairs where the question and the collected tool outputs sit in one long context. The results are worth watching: Qwen3-30B-A3B trained with ACC gained +18.1 on MRCR and +7.6 on GraphWalks, approaching the much larger Qwen3-235B-A22B. The context engineering angle is direct: tool traces can become supervision data for long-range context use.
Lodha et al., Jun 2026
A rare enterprise workflow study where context policy is the variable under test. The benchmark itemizes hotel expenses in Microsoft Dynamics 365 through MCP tools, then compares no user model, full conversation history, last-five tool-call pruning, and pruning plus summaries. Full history reaches 71 percent complete itemization, but burns nearly 1.5 million tokens and more than 14 hours; keeping only the last five tool interactions improves completion to 79 percent. Adding summarization reaches almost 92 percent while using about 553k tokens. Good evidence for a boring rule that keeps paying off: stale tool output competes with the current task, and old observations can make the agent worse.
Agent Memory & Retrieval
Wang et al., March 2026
An indexed memory mechanism that compresses context without discarding evidence. Rather than lossy summarization, Memex maintains a compact working context of structured summaries with stable indices, while full-fidelity artifacts live in an external store. The agent learns when to dereference an index to recover exact past evidence. Trained via reinforcement learning with reward shaping for memory usage under a context budget. Directly implements several patterns at once: Write Outside the Window for the external store, Compress for the working context, and Progressive Disclosure for the index-then-retrieve loop.
Anthropic
Adds a short explanation of each chunk’s place in its source document before building its embedding and BM25 entry. Anthropic reports a 49% reduction in top-20 retrieval failures when contextual embeddings and contextual BM25 are combined. With reranking, that reduction reaches 67% in the tested setup. For Retrieval as Context Curation, this moves some work to index time: keeping a chunk’s meaning clear can help the right evidence reach the model.
Letta
Memory-first agent framework. Treats the LLM like an operating system kernel with managed memory blocks. The architecture that inspired the Write Outside the Window pattern: persistent context with size limits, labels, and access patterns, managed through system calls.
arXiv, Jan 2026
Benchmark combining multi-turn conversation with reasoning-intensive retrieval, closer to real-world usage than benchmarks that treat the two separately. Highlights a gap in existing evaluation: systems tuned on single-turn retrieval benchmarks perform significantly worse when the conversation history must inform what to retrieve. Useful reference when designing context pipelines for dialogue-heavy applications.
Mar 2026 · 2022-2026 coverage
Memory-focused survey organized around a write-manage-read loop and a three-dimensional taxonomy: temporal scope, representational substrate, and control policy. Covers five mechanism families from context-resident compression to policy-learned management. The evaluation section is the most useful part: it traces the shift from static recall benchmarks to multi-session agentic tests that interleave memory with decision-making, and identifies gaps current systems haven’t closed.
Xie et al., May 2026
Moves recurring procedural context out of the prompt and into lightweight task-family modules. At inference time the agent conditions on the current observation plus a compact state block, rather than carrying a long ReAct history and repeated skill instructions. Across ALFWorld, WebShop, and SciWorld, the approach reduces prompt tokens per turn by 2-7x while matching or exceeding strong agent-training baselines. This is a useful counterpoint to ever-larger context windows: some context should not be compressed or retrieved; it should be learned away.
Yi et al., May 2026
Introduces AdaCoM, an external context manager trained to edit the context of a frozen agent instead of retraining the agent itself. That matters for closed-source agents, where teams can usually change wrapper behavior while model weights stay fixed. The paper’s useful finding is the fidelity-reliability tradeoff: stronger ReAct agents benefit from preserving more detail, while weaker agents need more aggressive compression to stay in a reliable reasoning regime. Good evidence for treating context management as a learned control layer rather than a fixed summarization rule.
Ji, Li, and Hooi, Jun 2026 · ICML 2026
Argues that agent memory should be reconstructed through reasoning instead of fetched once and handed to the model as a static bundle. MRAgent represents memory as a Cue-Tag-Content graph, then lets the agent iteratively explore and prune retrieval paths as evidence accumulates. The reported gains are concrete: up to 23% over strong baselines on LoCoMo and LongMemEval, while reducing token and runtime cost. This is a good fit for memory architecture work because it treats retrieval as reasoning work instead of preprocessing.
Flynt, May 2026, revised Jul 2026
Tests which facts a memory system returns before a model turns them into an answer. Its 89 cases check whether retrieval stays in scope, keeps out noise, and handles changed beliefs, alongside session latency. The accompanying Tenure system selects typed belief records before inference so the model need not decide whether to consult memory. This gives Retrieval as Context Curation a concrete unit-test layer: a correct final answer can still hide a memory query that returned unrelated records or missed an update.
Chen et al., May 2026
Treats compaction as a failure point inside the agent loop. Slipstream runs summary generation asynchronously while the original agent keeps working, then validates the candidate summary against the agent’s actual continued reasoning. That gives compaction an independent signal instead of trusting the summary to preserve future-relevant facts. Across SWE-bench Verified and BrowseComp, the paper reports up to +8.8 percentage points task accuracy and up to 39.7% lower end-to-end latency. Useful evidence for Compress and Context Handoff: judge summaries by whether the next step still has the facts and intent it needs.
Wang et al., May 2026
Introduces memory laundering: toxic or adversarial context gets compressed into memory summaries that look safe to ordinary detectors but still shape later behavior. The state-channel framing matters more than the toxicity domain. Raw transcript reuse carries overt contamination; compressed memory can carry hidden, sub-threshold influence. The mitigation result is practical: sanitize unsafe state before summarization, because cleaning only the completed summary can leave the influence intact. Good source for the safety side of persistent memory and compression.
Srivastava, May 2026
Asks a better memory retrieval question: does this memory causally improve the next answer? CMI evaluates candidate memories under controlled interventions, then selects context that improves the response while suppressing irrelevant, stale, or harmful memories. The paper introduces Causal-LoCoMo, with useful memories, distractors, and synthetic harmful memories, and compares against vector, graph, reflection, summary, full-history, and no-memory baselines. Useful because it sharpens Select for persistent memory: semantic similarity is not enough when the chosen memory can actively mislead the agent.
Wang, Jun 2026
Engram is useful because it keeps two promises that memory papers often split apart: a lean retrieved context, and a fair full-history baseline in the same harness. The system writes lossless episodes first, extracts atomic facts asynchronously, and keeps superseded facts for provenance. Reads combine dense, lexical, graph, recency, and salience signals, so the answer context contains both structured facts and raw chunks. On LongMemEval_S, the lean 9,600-token context scores roughly 84 percent against 73 percent for full history, with about 8x fewer tokens. The practical memory claim is narrow but strong: context selection can beat replay, but only when retrieval preserves provenance and detail.
Lin, Aug 2026
Scroll treats each agent session as an executable session environment backed by an append-only event log and a persistent Python kernel. Tool outputs, retrieved history, and derived state are bound to typed variables instead of being serialized into every prompt; only explicitly printed projections enter the next working view. When the working view nears its budget, stale spans are evicted but remain addressable through an eviction index tied to exact event-log positions. With Qwen3.8-Max, Scroll reports 94.8% on LongMemEval_S, 73.1% on BEAM_10M, and 86.7% on LOCA_256K. This is a strong systems argument for Write Outside the Window, Scratchpad, and Executable Ground Truth: context can be state in a program, with lossless history kept outside the prompt.
Tirmazi, Aug 2026
This paper formalizes context compaction as two games: selecting a subset of accumulated agent state, and generating a bounded summary. It proves that the generation game is equivalent to one-way communication complexity, so known lower bounds transfer directly to compaction budgets, and it shows cases where generation needs strictly less budget than selection. The framework also measures how far a deployed compaction algorithm is from optimal on a query set, with a case study of Anthropic’s compaction endpoint on set membership queries. The relevance to Validate Compression is direct: some information cannot survive compaction within a given budget, so validation has to be designed around that limit instead of assuming summaries are faithful.
Dabirsiaghi et al., Oct 2026
Coding agents that compact their history can lose message provenance when the harness flattens a typed conversation into one plain string before summarization. The paper shows that a forged user turn survives compaction as a genuine instruction in 87% to 100% of runs across five flattening harnesses, while role-typed harnesses resist the same attack. A code-level provenance check catches 77% of laundering attempts and demotes 2% of legitimate summary content. This is a concrete bridge between Context Poisoning, State Sanitization, and Validate Compression: compaction is a trust-boundary transformation as well as a token-saving step.
Huang et al., Aug 2026, revised Nov 2026, NeurIPS 2026
This evaluation compares 11 memory methods across 3 backbone models and 4 benchmark suites, using 26 metrics that include auxiliary LLM cost in the write, read, and management stages. Different memory substrates win in different regimes. Broad retrieval helps long-context factual question answering, while excessive retrieval can hurt sequential decision-making by pulling attention away from action-critical context. Choosing a substrate per operating regime beats the best fixed substrate, and query-level routing leaves much of the oracle headroom open. The result sharpens Select, Don’t Dump, Retrieval as Context Curation, and Causal Memory Selection: memory design is a routing problem across operating regimes.
Coding Agents & Harnesses
Gloaguen et al. (ETH Zurich), Feb 2026
Counterintuitive finding: across multiple coding agents and LLMs, repository context files (AGENTS.md, .cursorrules) tend to reduce task success rates compared to providing no context, while increasing inference cost by over 20%. Overly detailed context files encourage broader exploration but make tasks harder through unnecessary requirements. The conclusion aligns with Select, Don’t Dump: a few targeted requirements outperform a detailed documentation dump. Human-written context files should describe only minimal requirements.
McMillan, Feb 2026 · 9,649 experiments
The largest empirical study on context format and structure to date. Tested 11 models across 4 formats and schemas up to 10,000 tables. Found that format matters less than model capability (21 percentage point gap between frontier and open source) and that novel compact formats can incur a “grep tax” where the model spends extra tokens trying to parse unfamiliar structures.
Cao et al., Mar 2026 · 5 benchmarks · 188K-3T tokens
Takes a different approach to the long-context problem: instead of larger windows or retrieval pipelines, let a coding agent work through the corpus as a file system. Using grep, terminal commands, Python scripts, and intermediate files, off-the-shelf coding agents beat published state-of-the-art by 17.3% on average across five benchmarks spanning 188K to three trillion tokens. The counterintuitive secondary finding: adding explicit retrieval tools to the agent did not help and sometimes degraded performance. Native tool proficiency and file system familiarity covered the retrieval function without a dedicated layer.
Birgitta Böckeler (Thoughtworks), Feb 2026
Practitioner walkthrough of context configuration surfaces across Claude Code, Cursor, and Windsurf. Covers AGENTS.md, .cursorrules, .windsurfrules, memory hooks, and MCP servers as context engineering levers. Particularly useful for the distinction between static context (config files) and dynamic context (memory, tool output). Published on martinfowler.com, which gives it reach beyond the AI-specialist audience.
Anthropic, Nov 2025
Detailed account of why context compaction alone is not enough when agents work across multiple sessions. Anthropic’s solution centers on two engineered handoff mechanisms: an initializer agent that sets up the environment on the first run, and a coding agent that makes incremental progress and leaves structured artifacts for the next session. The specific mechanisms are instructive: a progress log for session handoff, a feature list in JSON to prevent premature “done” declarations, git commits as recovery checkpoints, and explicit verification loops before starting new work. The pattern is borrowed directly from how humans hand off engineering work across shifts.
Anthropic, Mar 2026
Shows how Anthropic moved from a session-reset harness for Sonnet 4.5 to a simpler continuous-session harness for Opus 4.6, because the newer model no longer showed the same context anxiety. The practical lesson is good: harnesses encode assumptions about model weaknesses, and those assumptions go stale. It also makes a clean case for separating generator and evaluator agents, with sprint contracts and Playwright-based QA turning vague product quality into inspectable feedback.
Birgitta Böckeler (Thoughtworks), Feb 2026
Synthesis piece on the OpenAI team’s five-month experiment building a codebase maintained entirely by AI agents. Böckeler dissects their approach into three interlocking parts: context engineering (a continuously updated knowledge base plus dynamic runtime context), architectural constraints enforced both by agents and deterministic linters, and periodic cleanup agents that fight entropy. The useful claim is that context quality cannot be separated from code structure and maintenance loops. You cannot engineer context in isolation and expect it to hold.
Ning et al., May 2026
Survey framing code as the operational substrate of agents. The paper organizes the space around harness interfaces, harness mechanisms, and multi-agent scaling, then treats planning, memory, tool use, environment modeling, and execution-based verification as pieces of the same harness problem. Useful because it names the engineering layer that contextpatterns.com keeps circling: durable state, executable tools, and verifiable feedback loops are how context moves out of prose prompts and into systems.
Lin et al., Apr 2026, revised May 2026
Turns harness editing into a closed loop rather than a manual prompt-tweaking exercise. AHE gives editable harness components file-level representation, distills trajectory evidence into a drill-down corpus, and pairs every proposed edit with a predicted effect that can be checked later. Ten iterations lift Terminal-Bench 2 pass@1 from 69.7% to 77.0%, above the human-designed Codex-CLI result of 71.9%. The ablation is the useful part: tools, middleware, and long-term memory drive the gains; the system prompt does not.
Ren et al., May 2026
Moves coding-agent evaluation away from localized edits and toward messy full-stack work. SaaSBench has 30 tasks across 6 SaaS domains, 5,370 validation nodes, 8 programming languages, 6 databases, and 13 frameworks. The headline finding fits the page well: over 95% of failures happen before agents reach deep business logic, usually during setup, integration, or debugging loops. That makes context engineering for coding agents broader than source selection; environment setup, dependencies, and validation surfaces are part of the context system.
Cognition, Oct 2025
One of the clearest practitioner writeups on coding-agent context retrieval. Cognition reports that agent trajectories were spending more than 60% of the first turn retrieving context, then describes Fast Context as a specialized subagent that returns files and line ranges instead of free-form summaries. The mechanics are concrete: up to 8 parallel tool calls per turn, a maximum of 4 turns, custom grep/read/glob tools, and an RL reward over weighted file and line F1. It is a production answer to ContextBench’s over-exploration problem.
Anthropic, Apr 2026
A rare public postmortem of context management failures in a production coding agent. The most relevant bug cleared older thinking blocks after an idle session, but kept doing it on every subsequent turn, making Claude forget why it had chosen prior edits and tool calls. A separate system prompt change that forced very short text between tool calls caused a measurable quality drop. Useful because it proves context engineering failures can come from cache optimizations, stale-session handling, or one line in a system prompt.
Kim, May 2026
Argues that better software engineering agents need data that captures where engineering context actually comes from: human-human conversations, human-AI sessions, and the surrounding multi-week project work. Solo coding traces miss the product decisions, tradeoffs, and ambiguous requirements that senior engineers rely on. The useful point for context engineering is uncomfortable but probably right: if the relevant context is formed outside the agent session, no amount of transcript polishing inside the session will fully recover it.
Zhang et al., Workday, Sep 2026
Workday tests lazy loading for a growing library of named skills. Loading only the needed instructions improves skill retrieval on average but slightly worsens total latency in the report’s experiment. The extra steps to find and load a skill can offset time saved by a smaller prompt. For Progressive Disclosure, the useful test covers both choosing the right skill and finishing the task: fewer prompt tokens alone say little about how long an agent takes to complete the work.
Qiu et al., Oct 2026, revised Nov 2026
A single global optimizer for multi-agent harness evolution faces growing context and workload as the system scales. HarnessNet decomposes joint harness evolution into layered Agentron units, each with a forward harness, a frozen foundation model, and a local optimizer that sees only its own feedback. Experiments on AgentBench show comparable performance gains to a global optimizer while using fewer tokens and less optimizer time per call, and evolved harnesses remain effective after the foundation model is replaced. The design supports Isolate and Recursive Delegation at the harness level: each optimizer gets a narrow context instead of the whole system trajectory.
Wang et al., Oct 2026
Long-horizon terminal agents can solve a task once and fail across repeated runs because stochastic errors propagate through actions and context. RiseHarness addresses this reliability gap with model weights fixed. It flips tasks that have both successful and failed runs, combines agent trajectories with internal harness traces, links recurring failures to harness mechanisms and source code, adapts candidate mechanisms from other frameworks, and re-evaluates behavior after each change. The pattern matters for Trace the Work and Executable Ground Truth: harness quality needs the same evidence loop as the agent task itself.
Liu et al., Microsoft Research, Oct 2026
An analysis of 13.5 million GitHub Copilot coding sessions from 3.2 million users and 760 million LLM calls finds that only 7.8% of sessions trigger compaction, but those sessions account for 44.2% of total token consumption. Compaction also adds foreground delay and sharply reduces prefix-cache reuse. The authors introduce CompactionBench for controlled evaluation and APEC, an asynchronous progressive compaction mechanism that keeps a stable prefix. APEC improves task quality while cutting total cost by up to 25.4% and execution time by 9.6%. This turns compaction from a summarization detail into a measurable harness decision, which directly supports Compress and Restart, Context Caching, and Validate Compression.
Field Maps
Mei et al., Jul 2025 · 1,400+ papers
Wide-coverage survey treating context engineering as a formal discipline. Breaks the field into retrieval, generation, processing, and management, then maps how those combine into RAG, memory systems, tool-integrated reasoning, and multi-agent architectures. Best used as a map of the space rather than a source for specific empirical claims. Also surfaces a structural asymmetry the individual benchmarks miss: models handle complex input contexts well but struggle to produce equivalently complex outputs.
Mart van der Jagt, Mar 2026
Maps the three core LLM limitations (context window, reasoning, memory) against the five mechanisms the brain evolved to work with limited working memory: selective attention, chunking, associative retrieval, cognitive offloading, and learning consolidation. The central argument: the brain never evolved bigger working memory; it evolved sharper attention and better retrieval. Worth reading for the framework it offers on which limitations will yield to further scaling and which will need architectural innovation to crack.
Dai et al., May 2026 · SIGIR 2026
Good field map for retrieval as context engineering. The paper argues that modern IR is increasingly consumed by LLMs rather than humans, which changes the failure mode: irrelevant or misleading results become direct inputs to hallucination and reasoning failure. Its useful vocabulary is “usable evidence density and verifiability within a context window.” That lines up with Select and Progressive Disclosure better than generic RAG advice, because it treats denoising as the central retrieval problem rather than a ranking nicety.
Zhou et al., Apr 2026
Useful systems-level frame for the pattern catalog. The paper describes agent progress as a move from weights, to context, to harness: memory externalizes state, skills externalize procedures, protocols externalize interaction structure, and the harness coordinates the whole thing into governed execution. That framing matches how production agents are actually improving. The model still matters, but more of the work is moving into external cognitive infrastructure that can be inspected, versioned, evaluated, and changed without another training run.
Pelc, Kaminka, and Goldberg, May 2026 · CAIS '26
Introduces ACDL, a notation for describing how an agent’s context is assembled and how it changes across turns. Most context engineering is still explained with prose, screenshots, or source code inspection, all of which hide the actual dynamics. ACDL gives names to role message sequences, dynamic content, time-indexed references, conditional structure, and iterative context assembly. If the notation catches on, it could become the missing design artifact between prompt text and implementation code.
Zhou et al., Jun 2026
Looks at agent memory from a data-management angle. The paper decomposes memory into representation and storage, extraction, retrieval and routing, and maintenance, then evaluates 12 memory systems across five benchmark workloads. There is no new universal winner; each architecture breaks or pays off depending on the workload bottleneck. The useful part is the module-level view, because it gives teams a way to ask whether their problem sits in extraction, routing, storage, or maintenance. It also reports a practical cost lesson: local maintenance can be cheaper than global reorganization when knowledge keeps changing.