Skip to main content

Multi-agent orchestration

Multi-agent setups split work across planner, worker, and critic roles, or run parallel attempts. Benefits include quality; risks include expanded attack surface and cost blowups.

Risks

RiskMitigation
Prompt injection propagatesSanitize inter-agent messages; treat sibling agent output as untrusted
Shared memory poisoningVersion and sign scratchpad state; isolate per-tenant
Runaway loopsMax iterations, max tool calls, max spend per task
Confused deputy across agentsCentral policy service for tool execution

Operations

  • Budgets per workflow: tokens, wall-clock time, tool invocations.
  • Circuit breakers when error rates spike.
  • Tool use: budgets and circuit breakers for tool-heavy flows