@lateinteraction: Agents often externalize some context: a repository in coding agents, a corpus in RAG, and the user prompt in an RLM. N…

X AI KOLs Following Papers

Summary

New research by Joshua Gu shows that AI agents perform better when they manage a small buffer in their context window as a cache for external context, challenging the common practice of pushing context entirely out of the prompt.

Agents often externalize some context: a repository in coding agents, a corpus in RAG, and the user prompt in an RLM. New work by @astrogu_ shows that agents work better if they're allowed to manage a small buffer in their context window as a "cache" for that external context.
Original Article
View Cached Full Text

Cached at: 05/21/26, 10:14 AM

Agents often externalize some context: a repository in coding agents, a corpus in RAG, and the user prompt in an RLM.

New work by @astrogu_ shows that agents work better if they’re allowed to manage a small buffer in their context window as a “cache” for that external context.

Joshua Gu (@astrogu_): Recent agentic systems (Claude Code, Codex, RLM, etc.) push context out of the prompt and into the environment (e.g., as files). This helps them maintain long-term knowledge about their goals and functionality.

🚨 While this is a good idea, we show a surprising result: systems

Similar Articles