Read

3 MIN

Date

Category

The Silent Bug Killing Every AI Coding Agent After 30 Minutes

Every AI coding agent has the same silent problem. After 30 minutes of real work, 40% of your context window is gone, not to your prompts or your code, but to tool output the agent already processed and no longer needs. Then it forgets what you were doing, and you start over.

Champ Smith
Champ Smith

Champ Smith

Operator & AI Cystems Builder

I build the custom AI Cystems that run businesses for the operators who own them — leads routed, content shipped, calls handled. I work from a finca in Málaga, where the intelligence lives in the walls.

Context Mode MCP compresses tool outputs by 98% — turning 30-minute sessions into 3-hour deep work sprints.

Every AI coding agent has the same silent problem: context window bloat.

You are using Claude Code, Cursor, or Gemini CLI with MCP tools — GitHub, Playwright, file readers, API clients. Every tool call dumps raw data straight into your context window. A single Playwright snapshot? 56 KB. Twenty GitHub issues? 59 KB. One server access log? 45 KB.

After 30 minutes of real work, 40% of your context window is gone. Not from your prompts. Not from the code. From tool output the agent already processed and no longer needs.

When the agent hits the wall and auto-compacts, it forgets which files it was editing, what tasks are in progress, and what you just asked for. You start over. Again.

This is the most expensive resource leak in AI development right now — and most teams do not even know it is happening.

The Fix: Context Mode

Context Mode is an open-source MCP server that sits between your AI agent and its tool outputs. Instead of dumping 315 KB of raw data into the context window, it processes the output in sandboxed environments and returns a 5.4 KB summary. A 98% reduction.

But the compression is only half the story. The real breakthrough is session continuity.

Every file edit, git operation, task, and error gets tracked in a local SQLite database. When the conversation compacts (and it will), Context Mode does not try to shove everything back into context. It indexes events using FTS5 with BM25 ranking and retrieves only what is relevant. Your agent picks up exactly where it left off.

The result: sessions that used to slow down after 30 minutes now run productively for 3+ hours.

The Entire Industry Is Converging

What makes this significant is that the entire industry is converging on the same pattern simultaneously:

Cloudflare built "Code Mode" for their MCP server — collapsing 2,500+ API endpoints into just 2 tools. Their entire API, which would normally consume 1.17 million tokens, now fits in roughly 1,000 tokens. A 99.9% reduction.

Anthropic published an engineering blog titled "Code Execution with MCP" describing this exact architecture: instead of passing raw tool outputs through the model, let the agent write code that processes data in sandboxed environments and returns only what it needs.

Claude Code recently shipped built-in "MCP Tool Search" — which automatically defers tool definitions when they would consume more than 10% of the context window. Their A/B tests showed a 46.9% reduction in total agent tokens.

When the tool creator, the model provider, and the infrastructure layer are all solving the same problem independently, that is not a trend — that is a new standard being born.

What This Means for Your Business

If you are building with AI agents — or planning to — context efficiency is about to become a core infrastructure concern:

Cost — Token usage is the biggest variable cost in AI development. A 98% reduction in tool output tokens directly reduces your API bill.

Speed — Shorter context = faster inference. Your agents respond quicker when they are not processing 300 KB of data they do not need.

Reliability — Session continuity means fewer lost contexts, fewer repeated instructions, and fewer moments where the agent forgot what you were doing.

Scale — As agents connect to more tools (and they will), this compression layer becomes the difference between a productive agent and one that crashes after 20 minutes.

The pattern is clear: compress, index, retrieve. Raw data stays out of the context window. Structured summaries go in. Full data is retrievable when needed.

Whether you adopt Context Mode specifically or wait for this to become native in your coding agent of choice, the underlying architecture is here to stay. The context window is finite. Treat it like the expensive resource it is.

Context Mode is MIT licensed and available at github.com/mksglu/context-mode.

Read

3 MIN

Date

Category

I share ideas, lessons, and practical insights from my work.

Related
Articles.

Sep 3, 2026

The Signal Was Already in the Stream

Signal

The Signal Was Already in the Stream

Google Research just built a glucose model with only 0.72 million parameters, and it beats every bigger model that came before it. It reads the continuous glucose monitor people already wear and predicts diabetes risk, insulin resistance and beta-cell dysfunction, with no new blood test. The lesson is bigger than health: the signal you want is usually already in a stream you are already collecting. You are just reading it as spot values.

Aug 30, 2026

The AI That Predicts the World, Not the Next Word

Signal

The AI That Predicts the World, Not the Next Word

Two researchers turned down more than $2 billion tied to Jeff Bezos' new AI venture — then came out of stealth with a model that does not do language at all. It simulates physics in four dimensions. We read it as confirmation of a CYSTEMS conviction: prediction, not conversation, is what intelligence is made of.

Aug 25, 2026

GPT-6, Astra, and Ilya’s Secret Model

Signal

GPT-6, Astra, and Ilya’s Secret Model

Three names are dominating the AI conversation right now: GPT-6, something called Astra, and a mystery model from the most secretive lab on the planet. Depending on who you listen to, one or all of them are landing any day now. Here is what is actually confirmed, what is speculation, and what it means if you are building a business on top of AI.

Aug 24, 2026

The End of the Perfect Prompt

Cystems

The End of the Perfect Prompt

The most important number in AI right now is not a model score. An older, cheaper model wrapped in a loop solved 95 percent of a coding benchmark that the newest model, asked once, solved 67 percent of. Architecture beat intelligence. If you are still hunting for the perfect prompt, you are optimizing the wrong layer.

Sep 3, 2026

The Signal Was Already in the Stream

Signal

The Signal Was Already in the Stream

Google Research just built a glucose model with only 0.72 million parameters, and it beats every bigger model that came before it. It reads the continuous glucose monitor people already wear and predicts diabetes risk, insulin resistance and beta-cell dysfunction, with no new blood test. The lesson is bigger than health: the signal you want is usually already in a stream you are already collecting. You are just reading it as spot values.

Aug 30, 2026

The AI That Predicts the World, Not the Next Word

Signal

The AI That Predicts the World, Not the Next Word

Two researchers turned down more than $2 billion tied to Jeff Bezos' new AI venture — then came out of stealth with a model that does not do language at all. It simulates physics in four dimensions. We read it as confirmation of a CYSTEMS conviction: prediction, not conversation, is what intelligence is made of.

Sep 3, 2026

The Signal Was Already in the Stream

Signal

The Signal Was Already in the Stream

Google Research just built a glucose model with only 0.72 million parameters, and it beats every bigger model that came before it. It reads the continuous glucose monitor people already wear and predicts diabetes risk, insulin resistance and beta-cell dysfunction, with no new blood test. The lesson is bigger than health: the signal you want is usually already in a stream you are already collecting. You are just reading it as spot values.

Aug 30, 2026

The AI That Predicts the World, Not the Next Word

Signal

The AI That Predicts the World, Not the Next Word

Two researchers turned down more than $2 billion tied to Jeff Bezos' new AI venture — then came out of stealth with a model that does not do language at all. It simulates physics in four dimensions. We read it as confirmation of a CYSTEMS conviction: prediction, not conversation, is what intelligence is made of.