原文This is very similar to how we think about context management in Deep Agents: compaction should reduce what is sent to the model, not erase the underlying work history.
In Deep Agents, the logic is:
every agent gets a filesystem to work with (can be real or virtual)
when a tool result is too large, we write the full result to the filesystem (/large_tool_results) and replace the model-visible message with a preview
when the conversation gets long, we offload older messages to the filesystem (/conversation_history) history first, then generate a summary
the agent can also decide t