liveBook · Manning

Isolation

As explained in Build an AI Agent (From Scratch)

Context isolation is the separation of the information supplied to one agent from the context supplied to another agent during coordinated execution.

Context isolation keeps one agent’s working history out of another agent’s context. In a multi-agent system, this determines whether specialists see earlier steps or receive only a task and return a result. It is a separate choice from who decides which agent runs next. section 9.2

In the Agent as Tool pattern, an orchestrator delegates a subtask to a child agent. The AgentTool adapter receives the parent’s context but does not pass it to the child. It passes only a request string; the child runs in a new context and returns its final result. section 9.4.2 section 9.4.3

Choose the context boundary according to what the next agent needs:

  • Use an isolated child when the orchestrator needs a specialist’s answer, not its searches, tool calls, or reasoning steps. This keeps the parent context smaller. section 9.4.3
  • Use a shared-context workflow when later agents need intermediate work. A Workflow can instead create separate contexts when that better fits the pipeline. section 9.2 section 9.4.3
  • Plan to inspect a child separately when debugging: its internal steps are not visible in the parent context. section 9.4.3

Delegating research

An orchestrator requests research from a specialist. The specialist may make several web searches, but the orchestrator receives only the final research result. In a shared sequential workflow, those searches and the agents’ later analysis would accumulate in the same context. section 9.4.3

Figure 9.8 Agent as Tool: the child agent runs in an isolated environment and returns only the final result.

The diagram shows the boundary between an orchestrator’s context and an isolated child that returns only its final result. section 9.4.3

How Build an AI Agent (From Scratch) covers it

How deep it goes
Explains the request-to-new-context handoff and its benefits and debugging cost, without detailing separate child inspection.
Examples
Uses a research specialist whose searches stay hidden from an orchestrator that receives only the final result.
What it assumes
Builds on an existing Agent, tool system, and ExecutionContext rather than introducing those components from zero.
What you can do after
Apply it via AgentTool when an orchestrator needs a specialist’s result but not its intermediate work.
How it connects
Contrasts Agent as Tool with shared-context Sequential Workflow and relates isolation to context-window efficiency and debugging.

Also explained in

Compare how 8 books explain isolation →

Related concepts

This explainer was generated by Manning's knowledge graph from the text of Build an AI Agent (From Scratch). The section links point to the parts of the book it draws on.