
0:00
20:36
Why Your Agent's Own Summary Gets Filed As Your Message
Sources covered:
- Letting Models Manage Their Own Context: Where We Stand: https://arxiv.org/abs/2611.34147
- LLM Agent Authorization Across Context Compaction: https://arxiv.org/abs/2611.32194
- When Are Parallel Subagents Effective for Coding? An Empirical Study on Repository Construction: https://arxiv.org/abs/2611.33893
This episode was AI-generated on November 26, 2026. The script was written by an AI language model and the host voices were synthesized by Eleven Labs. The producer is not affiliated with Anthropic or Eleven Labs.
When a long coding session runs out of room, the harness quietly rewrites the transcript — and files the model's summary under your name. One team showed that a payment to an attacker's account went from zero out of 320 cases to 290 out of 320 the moment the permission check read that summary instead of your typed words. Three papers on who controls a coding agent's conversation history, and what breaks when it isn't you.
Key Takeaways:
- Why every one of 1,108 recorded automatic compactions in Claude Code and Codex filed the model's summary as a user message — and why all eleven harnesses the team read do it the same way
- The control experiment that isolates the cause: byte-identical summaries widened permissions in 70 percent of episodes in the user slot, and in none of them as a tool result
- Why a better summarizer can't fix this — it catches 219 of 220 injected instructions but cannot tell a planted account number from a real one
- The one sentence about compacting at 85 percent that kept Kimi K3 from discarding history at 29 percent context usage — the authors' 'context anxiety'
- Why parallel subagents cost 2.6 to 3.8 times as much for 1 to 5 points, and the single probing sentence that recovered 6.7 of the 8.8 points on hard tasks
- Where each paper is still early: simulated window pressure, replayed benchmark sessions, and a 7-point run-to-run noise band wider than the effect being argued about
00:00 - The note becomes the past: What compaction actually does to a long session, and why a model has no memory sitting behind the summary the way a person in a meeting would.
03:12 - Who should hold the filing cabinet key?: NVIDIA's report compares a harness that compacts automatically at 80 percent full against a model given a tool to compact and archive its own history.
05:56 - One sentence against context anxiety: Removing a single instruction about compacting at 85 percent made one model start discarding history at 29 percent full and cost about 8 points at larger budgets.
07:57 - A label nobody thought was security: Researchers recorded 1,108 compactions in shipped products and found the summary written into the user slot every single time, including in all eleven harnesses whose code they read.
10:07 - Zero of 320, then 290 of 320: An AgentDojo rent-payment scenario where the attacker plants only a different account number as plain data, and the permission list built from the summary approves the payment 91 percent of the time.
11:21 - Same bytes, different slot, different outcome: The control that proves the label is the cause, why no text-only checker can separate a forged record from a real one, and the message authentication code fix that stopped every attack in 40 replayed episodes.
14:55 - Are parallel subagents worth 3x the cost?: An Illinois study finds subagents buy 1 to 5 points for 2.6 to 3.8 times the money, and that one sentence about probing the reference program recovers most of the gain on hard tasks.
17:50 - When starting over beats resuming: Twenty-hour runs where sessions cleared every three hours outpaced resumed ones in all six comparisons, and why the episode still calls these three hand-picked case studies.
Recommended Reading:
- AgentDojo: A Dynamic Environment to Evaluate Attacks and Defenses for LLM Agents: The benchmark used in the episode's sharpest experiment — the rent-payment task where a compacted summary flipped a permission list from 0/320 to 290/320 attacker payments. (https://arxiv.org/abs/2406.13352)
- Defeating Prompt Injections by Design (CaMeL): The canonical version of the defense the second paper breaks: derive a capability/permission plan from the user's request before any tool runs — which only holds if 'the user's request' is really the user's. (https://arxiv.org/abs/2503.18813)
- Not what you've signed up for: Compromising Real-World LLM-Integrated Applications with Indirect Prompt Injection: The paper that named indirect prompt injection, useful background for why the episode distinguishes a planted *instruction* (detectable) from a planted *account number* (not). (https://arxiv.org/abs/2302.12173)
- How we built our multi-agent research system: Anthropic's engineering writeup on parallel subagents, including the ~15x token cost multiplier — a useful counterpoint to the third paper's finding that one probing sentence recovers most of the subagent gain. (https://www.anthropic.com/engineering/built-multi-agent-research-system)
More episodes from "AI Papers: A Deep Dive"



Don't miss an episode of “AI Papers: A Deep Dive” and subscribe to it in the GetPodcast app.








