Agent context stops drowning in raw tool output: a sandbox turns 315 KB into 5.4 KB, and sessions resume after compaction
Every MCP tool call dumps raw data into an AI agent's context window, and a single Playwright snapshot costs 56 KB; when the conversation compacts, the agent forgets which files it was editing and what tasks are in progress. context-mode, an MCP server, keeps that raw data in a sandbox and returns only results, while recording file edits, git operations, tasks and errors in SQLite for retrieval after compaction. Its stated comparison is 315 KB reduced to 5.4 KB, about a 98% cut.