Menu

1 / 2

Your agent isn't running out of context because of one big file

DEV Community: typescript·TECHDEV·1 day ago
#DGXDUtqw
#devtotypescript#devto#dev#context#code
Reading 0:00
15s threshold

Your agent isn't running out of context because of one big file. It is

running out because of accumulation: tool outputs, test logs, build logs,

repeated turns, and the same content pasted again in a slightly different

form. I kept watching sessions die on the tenth retry of the same failing

test — not because any single output was huge, but because nobody ever

threw anything away.

So I built Context Diet: an MCP server (plus a CLI) that shrinks the

content an agent actually sends, deterministically, with receipts. Every

output line is copied verbatim from the input. Every dropped line is

counted and categorized in a manifest.…

Continue reading — create a free account

Join HashtagPLUS to read full articles, follow hashtags, vote, and join the conversation.