What goes into an agent's context
Seven talks on what to keep, cut or store for later when an agent's context fills up. Two teams reach opposite answers on compaction, and the evidence is mostly small experiments.
Context is the agent's working memory, and every team here had to decide what goes in it.
Dex Horthy (HumanLayer) compacts work into short plans a person has read. Towards AI found the opposite in its tutor: keeping the full history was better once tokens were cached. Arize keeps the start and end of long traces and stores the middle where the agent can fetch it.
The rest is about what is worth adding at all: notes that need a later pass to be useful (Anthropic), skill text the model already knew (Nikolay Petrov), a file tool that added latency and no recall, and sub-agent results that arrive without saying whether they worked.
The ideas
Dex Horthy keeps coding agents' context small by compacting work into reviewed plans
Dex Horthy (HumanLayer) describes a coding-agent workflow built around context size: research, plan and implement, each starting from a short Markdown file a human has read. His evidence is his team's experience and a few open-source attempts, one of which failed.
Compact, and have a person read the result. Based on his team's experience.
HumanLayerTechnical recommendationRead the idea
Towards AI's tutor recalled more and cost less keeping full history than compacting
Towards AI tested context strategies for its AI tutor in small experiments. Keeping the full conversation beat summarising and clearing tool outputs on recall, latency and cost, because cached tokens were cheap. Compaction became necessary only on a local model with a 32K window.
The opposite result, in small experiments where cached tokens were cheap.
Towards AIMeasured resultRead the idea
Arize's Alyx keeps the head and tail of long context and stores the middle for recall
Sally-Ann DeLucia, head of product at Arize, describes how its agent Alyx handles oversized trace data: plain truncation broke follow-ups, summaries were unreliable, and what stuck was trimming the middle while keeping it retrievable. She also tests the eleventh turn of long sessions.
Neither cut nor summary: the middle is trimmed but stays retrievable.
ArizeCase studyRead the idea
In Anthropic's tests, agent memory got better when a later pass revised mid-task notes
Lance Martin of Anthropic argues that notes an agent writes mid-task are a poor knowledge base on their own. A separate consolidation step, which Anthropic calls dreaming, corrected wrong notes, filled gaps and built wikis in his examples.
Notes taken mid-task improved when a later pass revised them.
AnthropicCase studyRead the idea
Nikolay Petrov tests a skill item by item to see what the model already knows
Nikolay Petrov splits a SKILL.md into question-and-answer items and asks the model each one with and without the skill. The result shows which parts teach the model something, which it already knew and which make its answers worse.
A way to find which parts of a skill the model didn't need.
Nikolay PetrovTechnical recommendationRead the idea
Towards AI's tutor gained no recall from a file-browsing tool and ran about 50% slower
Towards AI gave its AI tutor a read-only bash tool to browse its course and documentation files, next to its hybrid search tool. The agent used it on about 90% of turns, but recall was the same without it, and with it the tutor was about 50% slower.
More context access didn't mean better answers.
Towards AIMeasured resultRead the idea
Girish Konda argues every sub-agent handoff should be treated as a network call
Drawing on failures in his open-source MCP Pacemaker bridge, such as timeouts that hid the real cause and parallel cold starts that broke a shared package cache, Konda proposes SAFE handoffs: sourced facts, at-most-once effects, fan-out budgets and explicit outcomes.
What a sub-agent hands back should say what happened.
Girish KondaTechnical recommendationRead the idea
What we take from it
- There is no single answer on compaction. Horthy compacts on purpose; Towards AI only needed to on a small local model. Cost and window size seem to decide it, not a general rule.
- Several talks show that adding things to the context can do nothing or make it worse: a file tool that didn't raise recall, skill items the model already knew, unrevised notes.
- Missing: the same strategies compared on the same tasks, and numbers beyond one team's experiments.
The connections between these ideas are ours, not the speakers’.
Watch them in order · 7 talks · 2 h 54 min
- No Vibes Allowed: Solving Hard Problems in Complex Codebases 21 min
- Context Engineering in 2026: Compaction, Memory & Cost 63 min
- How We Solved Context Management in Agents 16 min
- Exploring Claude's Frontier 18 min
- Your SKILL.md is 70% of Things the Model Already Knows 14 min
- The unreasonable effectiveness of BM25 for agentic search 18 min
- Sub-Agents Are a Distributed System (And Nobody Gave You a Consistency Model) 23 min





