Dev adds session_digest tool to MCP server so recall doesn't blow up the context window

EntrepreneurOk5764 · reddit · 2026-12-03

A developer building MCP tools shares an unexpected lesson: context blows up fast if every recall call returns everything it finds. His fix is a separate sessiondigest tool that condenses what happened in a session into a short summary the agent can store and reuse, instead of re-reading everything via recall.

Testing was painful — Claude, Cursor and Copilot each manage context windows differently and call the tool differently, requiring per-client adaptation. Digest length is still being tuned after weeks. Part of his project perdua.ai, currently EU/EEA only.

Original post →

More from coding & agent

coding & agent channel →