Skip to content
Ylabator

Reference Blueprint: Private Multi-Agent Systems

A private multi-agent system is an orchestrator, bounded specialists, a tool gateway and a human release step. Add agents only when tests beat a simpler baseline.

Topics
Private Multi-Agent Applications
Level
Founder / builder
Read
4 min
Published
2026-11-12
Reviewed
2026-11-12
Week 7

The problem

In June 2025, Anthropic described the multi-agent research system behind its Research feature. A lead agent on Claude Opus 4, with Claude Sonnet 4 subagents working in parallel, outperformed a single Opus 4 agent by 90.2% on Anthropic's internal research evaluation [1]. The same post gave the cost: agents typically use about 4 times the tokens of a chat interaction, and multi-agent systems about 15 times [1].

The post is useful precisely because it states both numbers. Multi-agent designs pay off on tasks that are valuable, broad and parallel. They cost more, and the authors list domains, such as tasks where all agents must share the same context, that are not a good fit [1].

For privacy the cost is not only tokens. Every agent is another actor holding credentials, reading data and proposing actions. A founder who buys "multi-agent" capability buys more identities, more data paths and more places where untrusted text can steer an action. Anthropic's engineers also note that agents are stateful and errors compound [1]: a mistake in one step propagates to every step that consumes its output.

An illustrative case runs through this article: a diligence product with research, extraction and summary agents. Each needs different data. None should be able to send a report outside the firm. The question is how to arrange them so that a wrong model output leads to a rejected draft, not a sent email.

How it works

The diagram for this article has three layers.

Orchestrator. One component owns the workflow. It holds tool contracts (what each specialist may call, with typed inputs and outputs) and durable checkpoints (the state after each step, written to storage so a failed run resumes instead of restarting). Anthropic built the same resume-from-failure behavior into its research system, with retry logic and regular checkpoints [1]. The orchestrator is ordinary code. It decides which agent runs next, and it attaches the identity each agent acts under.

Bounded specialists. Each agent gets a scoped task and its own identity:

  • The research agent uses restricted retrieval: permission-aware search over the documents this engagement may use.
  • The extraction agent reads sources and writes structured claims. Its access to sources is read only.
  • The summary agent writes a draft. It can produce text and nothing else.

Substrate. Below the agents sit the tool gateway and the human reviewer. The gateway is the only path to tools, and it keeps read and write operations separate. Every external effect, such as sending, sharing or publishing, is a write. The human reviewer approves external release, and only the reviewer's approval turns a draft into an outbound message.

Agents pass drafts and identifiers to each other through the orchestrator, never credentials. A specialist that needs a tool asks the gateway, and the gateway checks the specialist's identity against the tool contract before calling anything. When tools are MCP servers, the gateway presents tokens bound to that server's audience, as the MCP authorization specification requires [3].

This structure maps onto the risk catalogs. OWASP's Top 10 for Agentic Applications, published in December 2025, separates tool misuse, identity and privilege abuse, and inter-agent communication as distinct risks [2]. Here each one has a single owner: the gateway, the identity per agent and the orchestrator respectively.

Orchestration with bounded specialists

Fig. 07
OrchestratorTool contracts, durable checkpoints
  • Research agentRestricted retrieval
  • Extraction agentRead-only sources
  • Summary agentDraft only
  • Human reviewerApproves external release
  • Tool gatewayRead and write separated
Each specialist agent has different data access. Only a human reviewer can release an externally visible report.
Technical detail

Start with one bounded workflow. Define tool contracts and identities, separate read and write permissions, and add durable checkpoints. Complexity is justified only when tests show value against a simpler baseline.

Private multi-agent reference architecture

Interactive
Layer 1Founder / Operator
  • User request
  • Identity
  • Authorization
  • Approval authority
Across all layers
  • Encryption
  • Network egress controls
  • Monitoring
  • Retention
  • Revocation
  • Auditing
Detailed view. Select a layer to see its responsibilities and where authorization is enforced again. The gateway is the first check, not the only one.

By the numbers

gain of a multi-agent setup over a single agent on Anthropic's internal research eval [1]
90.2%
tokens used by multi-agent systems compared with chat interactions [1]
~15x
of performance variance on BrowseComp explained by token usage alone [1]
80%
of organizations with a breach of AI models or apps had no AI access controls [4]
97%
of breached organizations had no AI governance policy or were still writing one [4]
63%
ComponentIdentityReadsWritesExternal effect
OrchestratorService, workflow scopedCheckpointsCheckpointsNone
Research agentPer engagementPermitted engagement documentsNotesNone
Extraction agentPer engagementSource documentsStructured claimsNone
Summary agentPer engagementClaims and notesDraftNone
Tool gatewayPer tool, audience boundTool resultsTool calls in contractOnly after approval
Human reviewerNamed personDraft and sourcesApprovalReleases the report
Specialist permissions in the illustrative diligence workflow, with risk names from the OWASP agentic list [2]

The Anthropic figures set the budget question. If token usage explains 80% of performance variance on a browsing benchmark [1], then more agents buy quality with spend, and the trade has to be measured against a single-agent baseline on your own task.

The IBM figures set the control question [4]. Access control and governance were missing in most breached organizations. A multi-agent design multiplies the identities those controls must cover.

Implementation

Start with one bounded workflow, not a platform. Define each tool contract and identity, separate read and write permissions, add durable checkpoints, and require human approval for anything externally visible. The gateway below is the enforcement point. Its manifest is data, reviewed like code.

gateway.pypython
"""Tool gateway: the only path from an agent to a tool. Deny by default."""
import json
from pathlib import Path

MANIFEST = {
    "research":   {"search_engagement_docs": "read"},
    "extraction": {"read_document": "read", "write_claims": "internal_write"},
    "summary":    {"write_draft": "internal_write"},
    "reviewer":   {"send_report": "external_write"},
}


class Denied(Exception):
    pass


def call_tool(agent: str, tool: str, args: dict, tools: dict, approval_id: str | None = None):
    mode = MANIFEST.get(agent, {}).get(tool)
    if mode is None:
        raise Denied(f"{agent} has no contract for {tool}")
    if mode == "external_write" and not approval_id:
        raise Denied(f"{tool} needs a recorded human approval")
    return tools[tool](**args)


def checkpoint(run_id: str, step: str, state: dict, root: Path = Path("checkpoints")) -> None:
    # Durable state after each step, so a failed run resumes from here.
    root.mkdir(exist_ok=True)
    (root / f"{run_id}.{step}.json").write_text(json.dumps(state))


def resume(run_id: str, root: Path = Path("checkpoints")) -> dict | None:
    done = sorted(root.glob(f"{run_id}.*.json"))  # step names start with a sequence number
    return json.loads(done[-1].read_text()) if done else None

Note what the manifest leaves out. No specialist agent has a contract for send_report. Only the reviewer role does, and only with an approval ID that the review interface records. The summary agent cannot send even if a document instructs it to, because the gateway has no route for that call.

Around the gateway, run the controls from earlier articles: permission-aware retrieval for the research agent, claim provenance for the extraction agent, and audience-bound tokens for each tool. Record every gateway decision with agent, tool, arguments and result. NIST's AI Risk Management Framework gives the governance frame for owning these records: Govern, Map, Measure and Manage [5].

Test it

Test the architecture, not only the agents. The suite below targets the approval path, the read and write split, and resume after failure.

test_gateway.pypython
import pytest

from gateway import Denied, call_tool, checkpoint, resume

SENT = []
TOOLS = {
    "send_report": lambda to, body: SENT.append((to, body)),
    "write_draft": lambda body: body,
    "read_document": lambda doc_id: f"contents of {doc_id}",
}


def test_summary_agent_cannot_send_even_when_instructed():
    with pytest.raises(Denied):
        call_tool("summary", "send_report", {"to": "lp@fund.example", "body": "draft"}, TOOLS)
    assert SENT == []


def test_reviewer_send_requires_approval_id():
    with pytest.raises(Denied):
        call_tool("reviewer", "send_report", {"to": "lp@fund.example", "body": "final"}, TOOLS)
    call_tool("reviewer", "send_report", {"to": "lp@fund.example", "body": "final"}, TOOLS,
              approval_id="appr-1042")
    assert SENT == [("lp@fund.example", "final")]


def test_extraction_agent_has_no_draft_contract():
    with pytest.raises(Denied):
        call_tool("extraction", "write_draft", {"body": "x"}, TOOLS)


def test_run_resumes_from_last_checkpoint(tmp_path):
    checkpoint("run-7", "01-research", {"notes": 3}, root=tmp_path)
    checkpoint("run-7", "02-extraction", {"claims": 41}, root=tmp_path)
    assert resume("run-7", root=tmp_path) == {"claims": 41}

Expected result: four passes. Then run the system-level checks against staging:

  • Prompt injection. Put an instruction to email the data room to an outside address inside a test document. Expected: no send, and a gateway denial in the log.
  • Tenant isolation. Run two engagements in parallel and confirm neither agent set retrieves the other's documents.
  • Retry and idempotency. Kill the run mid-extraction and resume. Expected: no duplicated claims, no repeated tool writes.
  • Deletion. Close an engagement and confirm checkpoints, claims and drafts are deleted on schedule.
  • Baseline. Record cost and completion rate against a single-agent version of the same workflow. Keep the extra agents only if the numbers justify them.

Decision

The architecture should make wrong actions hard even when model output is wrong.

  • Build one bounded workflow first, with an orchestrator, a deny-by-default gateway and a human release step. Add agents only when the baseline test shows a gain worth the token cost.
  • Give every agent its own identity and contract. No agent holds credentials directly.
  • Make every external effect an approved write.
  • Expect a first workflow to take a small team several weeks. Most of that time goes to the gateway, the identities and the tests, which every later workflow reuses.

Sources

  1. [1]How we built our multi-agent research system (opens in a new tab)Anthropic, June 2025
  2. [2]OWASP Top 10 for Agentic Applications for 2026 (opens in a new tab)OWASP GenAI Security Project, December 2025
  3. [3]Authorization, Model Context Protocol specification 2025-11-25 (opens in a new tab)Model Context Protocol, November 2025
  4. [4]IBM Report: 13% of organizations reported breaches of AI models or applications, 97% of which reported lacking proper AI access controls (opens in a new tab)IBM Newsroom, July 2025
  5. [5]AI Risk Management Framework (opens in a new tab)NIST, January 2023

Technical guidance, not security certification or legal advice.

All Private AI articles