Skip to content

Multi-agent dependencies

Delegation: a subagents: entry in the downstream agent's YAML frontmatter (e.g. subagents: [other]) registers a tool the LLM may call. abt run -s <head> with a bare name runs that agent plus its full subagents: tree, unbounded — there is no flag to strip it down to the head alone.

Order and branching: live only under workflows/, not on the agent — see Workflows. Plain edges ([from, to]) sequence agents; a node sees its immediate predecessors' outputs, nothing further upstream unless a workflow edge says so.

Goal Approach
Single agent, no deps abt run -s name -p "..."
Full delegation closure abt run -s name -p "..." (the default, unbounded)
Ordered/branching stages workflows/ edges

Read Subagents and Selectors. Tests always wire an agent's full subagents: tree; --only-agent only narrows which agent's suite runs, not the run/dispatch selection model — Testing.

Worked example: two parallel predecessors converging

Two independent upstreams (data-analyst, risk-assessor) run in parallel since neither depends on the other, then the head sees both outputs — a node always sees every one of its immediate predecessors, and here two edges point at report-synthesizer:

# workflows/quarterly_report.yaml
edges:
  - [START, data-analyst]
  - [START, risk-assessor]
  - [data-analyst, report-synthesizer]
  - [risk-assessor, report-synthesizer]
  - [report-synthesizer, END]

None of the three agents declares any order-related frontmatter — just a description and its own prompt:

Save this as agents/data-analyst.md:

---
description: Summarizes churn data for the quarter.
---

Summarize the main churn drivers for the quarter.

Save this as agents/risk-assessor.md:

---
description: Flags the biggest churn risks.
---

List the three biggest churn risks.

Save this as agents/report-synthesizer.md:

---
description: Combines analyst and risk output into one report.
---

Combine the analysis from both upstream agents into one report.
abt dispatch -s quarterly_report -p "Q3 churn risk" --project-root .

abt graph quarterly_report prints the flow; its Entry: line names only the first of several START targets.

data-analyst and risk-assessor both run first (in parallel, since neither is the other's predecessor), and their output is injected before report-synthesizer runs. To rehearse just report-synthesizer alone with no upstream output injected, run it directly — workflow neighbors are never wired into abt run:

abt run -s report-synthesizer -p "Q3 churn risk"

Need a non-immediate ancestor's output too? Add an explicit edge to it — there's no global "see everything upstream" mode.

Hands-on examples: