By Sagar Shankaran, Founder of CallSphere
What to put in a Claude agent's context and what to leave out: the inclusion decision, retrieval over inclusion, durable state, lean handoffs.
Key takeaways
The hardest skill in agent engineering is not writing prompts — it is deciding what to leave out. Context is a finite, expensive resource, and an outcome-driven Claude agent lives or dies on what you choose to put in front of it at each step. Stuff the window with everything "just in case" and the model's attention smears across irrelevant tokens; starve it and it hallucinates the gaps. This post is about that editorial judgment: what belongs in an agent's context, what to leave out, and the principles that tell you which is which.
Context engineering is the discipline of curating exactly the information a model needs for a given step — the instructions, tools, examples, and state — while excluding everything that would dilute its attention or inflate its cost. For Managed Agents, where an orchestrator and several subagents each maintain their own window, this discipline compounds. Every subagent is a fresh decision about what to include.
It is tempting to believe that giving the model more information can only help. In practice, irrelevant context actively hurts. The model spends attention on tokens that do not bear on the task, raising the odds it latches onto a stale detail or a tangent. Long, padded contexts also cost more and respond slower. The useful frame is that context is a budget: every token you add must earn its place by changing what the model should do.
This is why a lean subagent with a tight brief routinely outperforms a "fully informed" one carrying the whole conversation. The lean agent's attention is concentrated on the one thing it must get right. The informed agent's attention is spread thin across history it will never use.
There is a cost dimension layered on top of the quality one. In a multi-agent run, context is re-paid at every turn — each tool result extends the window, and a bloated starting context means every subsequent step carries that weight forward. Because multi-agent runs already spend several times more tokens than a single agent, sloppy context turns an expensive pattern into a wasteful one. Disciplined context is not just about accuracy; it is the lever that keeps a fan-out affordable enough to use at all.
Hear it before you finish reading
Talk to a live CallSphere AI voice agent in your browser — 60 seconds, no signup.
For each piece of information, the decision is mechanical once you have the right test: does this change what the step should do, and can the step fetch it on demand instead? If it does not change behavior, cut it. If it changes behavior but is large and fetchable, retrieve it through a tool rather than pre-loading it.
flowchart TD
A["Candidate context item"] --> B{"Changes this step's action?"}
B -->|No| C["Leave it out"]
B -->|Yes| D{"Large & fetchable on demand?"}
D -->|Yes| E["Expose via tool, retrieve when needed"]
D -->|No| F{"Needed across steps?"}
F -->|Yes| G["Write to durable state, reference by key"]
F -->|No| H["Include inline in this context"]
Running every candidate through this flow turns context design from guesswork into a checklist. Most items resolve to "leave it out" or "retrieve on demand," which is exactly why disciplined agents stay fast and cheap while sloppy ones bloat.
A well-formed step context has four parts and little else. First, the goal — what this step must achieve, stated as an outcome. Second, the acceptance test — how the step knows it succeeded, so it can self-check before returning. Third, the minimal inputs — only the specific data this step operates on. Fourth, the relevant tools — the small set this step might call, each with a description that says when to use it.
That is usually enough. Notice what is absent: the project's full history, sibling subagents' deliberations, and large reference data that the step could fetch if it actually needs it. A context that contains only goal, test, inputs, and tools is one the model can reason about cleanly.
The things you cut do not vanish; they move to a better home. Cross-step facts go into durable state and are referenced by key, so a later step can read them without every earlier message tagging along. Large data goes behind a tool and is retrieved on demand. Another subagent's reasoning is simply dropped — what the next step needs is that subagent's result, structured and self-describing, not its internal monologue.
The practical rule I use: if I cannot articulate how a token changes the model's next action, it does not belong in the context. "Background" is not a justification. Either it informs a decision this step makes, or it is noise wearing a helpful-looking label.
Still reading? Stop comparing — try CallSphere live.
CallSphere ships complete AI voice agents per industry — 14 tools for healthcare, 10 agents for real estate, 4 specialists for salons. See how it actually handles a call before you book a demo.
Retrieval over inclusion deserves its own emphasis because it inverts a habit most engineers bring from prompt engineering. With a single prompt you front-load everything the model might need. With an agent, you give the model the ability to fetch what it needs and trust it to pull only the relevant slice. A product catalog with ten thousand rows does not belong in context; a search_catalog tool does. The agent then retrieves the three rows that matter for the current decision, and the other 9,997 never cost you a token. This shift — from pre-loading data to exposing the means to get it — is the single highest-leverage move in keeping agents lean.
In a multi-agent run, the handoff is where context discipline pays off or collapses. The orchestrator should hand each subagent a curated brief, and each subagent should hand back a structured result — status, payload, a short note — not a transcript. When handoffs are structured, the orchestrator reconciles by reading fields, and no subagent inherits another's clutter. When handoffs are raw transcripts, context compounds across the run and every agent gets slower and dumber than the last.
| Information | Where it belongs | Why |
|---|---|---|
| Step goal & acceptance test | Inline context | Drives the step's action |
| The specific inputs | Inline context | Operated on directly |
| Large reference data | Behind a tool | Retrieve only if needed |
| Cross-step facts | Durable state, by key | Survive without bloating |
| Other agents' reasoning | Left out | Only results matter |
Context engineering is the practice of curating exactly the information a model needs for a step — goal, acceptance test, inputs, and relevant tools — while excluding anything that would dilute its attention or inflate cost. In multi-agent systems it is applied per agent, since each maintains its own window.
A large window lets you include more, but it does not make irrelevant context free. Off-topic tokens still compete for attention, raise cost, and slow responses. The window size is headroom for genuinely large tasks, not a license to skip the editorial decision of what belongs.
Put them in durable state and reference them by key, or expose them through a tool the agent can call on demand. Both let a later step retrieve exactly what it needs at the moment it needs it, instead of carrying everything in every context from the start.
CallSphere applies the same context discipline to voice and chat agents — each turn carries only what the caller's current goal demands, so responses stay fast, grounded, and on-task. Experience tightly scoped agents in production at callsphere.ai.
Source & attribution: This is an independent, original explainer inspired by Anthropic's coverage on the Claude blog. Claude, Claude Code, Claude Cowork, Claude Opus, and the Model Context Protocol are products and trademarks of Anthropic. CallSphere is not affiliated with or endorsed by Anthropic.

Written by
Sagar Shankaran· Founder, CallSphere
LinkedInSagar Shankaran is the founder of CallSphere, where he builds production AI voice and chat agents deployed across healthcare, hospitality, real estate, and home services. He writes about agentic AI, LLM engineering, and shipping voice agents that handle real calls in production.
See how AI voice agents work for your industry. Live demo available -- no signup required.
A resin increase means re-costing hundreds of part numbers one at a time. Splitting the list four ways by contract rule moves the pass-through weeks earlier.
Anthropic's Claude Fable 5 and Mythos 5 explained: pricing, availability, frontier benchmarks, the dual-model safeguard architecture, and what they mean for AI agents.
Where Claude Code, MCP, and multi-agent systems are taking GTM engineering next, and how to prepare your team now for standing and multi-agent workflows.
Where Claude Cowork and the Claude agent ecosystem are heading next — standing agents, MCP, skills as a moat — and the concrete moves to prepare your team now.
The metrics, leading signals, and anti-metrics that prove Claude Cowork is working — acceptance rate, time-to-outcome, and why usage counts mislead.
Shipping an agentic GTM workflow is easy; proving it works is hard. The metrics, signals, and eval loops that show a Claude Code rebuild is paying off.
© 2026 CallSphere Inc. All rights reserved.
Made within San Francisco
Watch how CallSphere handles real customer calls, schedules appointments, and processes payments — live.
Try Live DemoBook a DemoCalculate Your ROI