Macha
Macha Concepts

Sub-Agents

Definition

In Macha, a sub-agent is an agent that a parent agent can delegate to. Once assigned, the sub-agent appears to the parent as a callable tool — the parent hands it a task, gets a result back, and folds it into its own reply.

Also known as: specialist agentschild agentsdelegated agents

How it works

You build focused specialist agents first — one for billing, one for shipping, one for technical — each with its own instructions, model, connectors, and knowledge. You then assign them to a parent (routing) agent and describe in the parent's instructions when to delegate. At runtime each sub-agent shows up as a tool the parent can call; the parent decides whether to delegate, what task to pass, and how to use the response.

Delegation is seamless to the end user — they chat with one agent. Every sub-agent run is captured inline as an expandable card showing the handoff message, each tool call and result, and the sub-agent's final reply, so autonomous runs stay auditable.

Permissions & guardrails

Sub-agent permissions depend on how the parent is running. In interactive chat, sub-agents are read-only — a human stays in the loop for any write. In autonomous mode (parent fired by a trigger), sub-agents can execute writes because there's no human present.

  • Depth limit: sub-agents nest up to 3 levels deep (A calls B calls C)
  • Circular references are blocked — if A is a sub-agent of B, B can't be a sub-agent of A
  • Keeps each agent's instructions focused, which is easier to test and trust

Frequently asked

How are sub-agents different from one big agent?

A single agent handles every case from one bloated prompt; sub-agents split the work into focused specialists a parent delegates to, which stays more accurate as complexity grows.

Can a sub-agent take actions on its own?

Only in autonomous mode. When the parent runs interactively, sub-agents are read-only so a human confirms any write; when the parent is trigger-driven, sub-agents can execute writes.

Put these ideas to work

Macha is an AI agent layer that sits on top of the help desk you already run — Zendesk, Freshdesk, Front, Intercom, or Gorgias.

Start Trial