Why Your Agents Keep Losing Context (And How to Fix It)

23rd January 2026 | Insights & Case Studies Why Your Agents Keep Losing Context (And How to Fix It)

A mid-market marketing agency built a single agent to research target companies for outbound campaigns. On its own, it did the job. It pulled company data, flagged recent news, identified decision-makers, and wrapped it all into a tight one-page brief.

Problems started when they chained it to a copywriter agent. The brief still made sense to a human reader, but the freshly recruited agent saw something else entirely. Just a list of points, all sitting at the same level.

In one case, the researcher agent noted that a company had hired a VP from Amazon and that its stock was down 15%. The copywriter agent treated them as equally important and used both. The email missed the mark.

Input to copywriter

Prospect: Sarah Chen, VP Operations, Example Corp
News: Hired from Amazon Supply Chain (Oct 15)
News: Stock down 15% YTD

Resulting email
“Hi Sarah, I saw you recently joined Example Corp as VP of Operations. Congratulations on the new role. I also noticed the company stock is down 15% year to date. I’d love to touch base about how we can help you save money during this difficult time…”

The stock price shows up simply because it’s in the brief. Cost savings becomes the default angle because nobody framed a better one. Meanwhile the real signal, Sarah’s Amazon background, gets acknowledged politely but not used strategically.

Most teams treat agent chains like relay races. Pass the baton, job’s done. But knowledge work doesn’t work that way. Three things disappear at the handoff: the reasoning behind decisions, the confidence level of each claim, and the constraints that prevent obvious mistakes.

The fix is a Context Envelope.

Don’t hand off raw text and hope the next step reads it the way you do. Hand off a structured Context Envelope instead. A simple packet that separates facts from intent, and spells out what matters.

Input to copywriter

Facts: Sarah Chen, VP Ops. Hired from Amazon. Stock down 15%.
Reasoning: New hire from Amazon Supply Chain. That’s the hook. Stock price is background noise.
Constraints: Focus on new VP transition and early wins. Do not mention stock price or cost savings.

Resulting email
“Hi Sarah, Saw you joined Example Corp from Amazon Supply Chain.You’re probably evaluating operations and looking for quick wins in your first few months. We’ve helped new VPs in similar transitions get early momentum without overhauling existing systems.Worth a conversation?”

1. The Context Envelope Spec

LayerPurposeSignal Passed
FactsRaw information foundHired VP Ops from Amazon. Stock down 15%.
ReasoningWhy it mattersAmazon hire is the hook. Stock price is noise.
ConstraintsHow to frame the workFocus on new VP transition. Avoid stock price and cost messaging.
ConfidenceStrength of the signal‘High (2+ sources) vs Low (Inference).’

The context envelope scales with what you find. If the researcher spots an interview where Sarah discusses her goals, that enriches Reasoning. But even with minimal context, the ‘avoid’ list stops obvious missteps.

2. The Encoder Prompt (Researcher Agent)

You are a Research Agent. Your goal is not to write a report, but to prepare structured input for a Copywriter Agent. 

Output format: You must respond with a structured output containing these four fields: 

– output: the raw facts found 

– reasoning: why those facts matter 

– constraints: framing rules and exclusions 

– confidence: strength of each signal, based on sources

3. The Decoder Prompt (Copywriter Agent)

In a real system, the agents pass this information directly to each other. Here’s what the handoff package includes for the Sarah Chen example:

You are a Copywriter Agent. You receive structured input from a Research Agent.

Input format:

– facts: raw information found

– reasoning: why those facts matter  

– constraints: framing rules and what to avoid

– confidence: reliability of each signal

Task: Write a brief, personalised outreach email based on the reasoning and facts. Follow all constraints strictly. Prioritise high-confidence signals over low-confidence inferences.

Do not mention low-confidence signals unless explicitly directed.

4. The Context Envelope in Practice

In a real system, the agents pass this information directly to each other:

{

  “output”: {

    “prospect_name”: “Sarah Chen”,

    “recent_events”: […]

  },

  “reasoning”: {

    “primary_hook”: “The hire from Amazon Supply Chain suggests a strategic shift.”,

    “secondary_points”: “Stock price is incidental.”

  },

  “constraints”: {

    “call_to_action”: “Focus on transition period and early wins.”,

    “forbidden_phrases”: [“touching base”, “circling back”]

  },

  “confidence”: {

    “hire_details”: “High (LinkedIn)”,

    “strategic_implication”: “Low (Inference)”

  }

}

Executive takeaway

A single agent can do its job perfectly well. The real gains come when you start linking them together. That only works if context survives each step. Facts on their own aren’t enough. The reasoning behind decisions, the confidence level, and the constraints all need to move with them.

Set the Context Envelope before you chain agents together. If the second doesn’t understand why the first made its calls, the chain fails right where it joins.

Hype Free AI insights

Our latest operator insights

The orchestrator: Automating the global supply chain with Josh Clement-Sutcliffe, Zencargo

The orchestrator: Automating the global supply chain with Josh Clement-Sutcliffe, Zencargo

Josh Clement-Sutcliffe, AI and Automation Product Manager at Zencargo reveals the blueprint for “Road to 2030,” a mission to create a fully autonom...

Watch video
When AI meets operational chaos, the happy path is off a cliff

When AI meets operational chaos, the happy path is off a cliff

Josh Clement-Sutcliffe is AI and Automation Product Manager at Zencargo, a London-based digital freight...

Read more
What broke when an agent moved from pilot to production

What broke when an agent moved from pilot to production

A mid-market professional services firm moved an AI agent into their live billing support queue earlier this...

Read more