Domain 5 of 6

Orchestrate multi-agent coordination

Domain · 17.6% of the GH-600 exam

Every coordination mechanism settles one question, and the trap is a real mechanism aimed at a different one

Picture one issue split across three agents working as parallel sessions, each in its own Git worktree (a second checkout of the repository on its own branch), while a GitHub Actions workflow runs their checks. Almost every question in this domain hands you one signal from a picture like that and asks what it proves, and the answer is that each mechanism settles exactly one question. A worktree keeps each agent's file edits apart, but it does not sandbox commands, set GitHub Actions token permissions, or decide which job runs first; a sessionEnd hook (a Copilot agent handler, not a Git hook or webhook, that runs when a session terminates) with reason complete reports how the session stopped, not whether the assignment was delivered; and a custom-agent profile (the file defining a custom agent's tools and instructions) can load cleanly while an unrecognized tool name in it is simply ignored. The trap is rarely an invented feature and usually a genuine one pointed at the wrong question, so name the question first and the mechanism second.

The domain unfolds in four steps: coordinate, observe, recover, manage the lifecycle

Take the first three steps in order, because each builds on the previous one; the lifecycle step wraps around all three, since an agent must exist before it can be coordinated. Operate and manage multi-agent workflows covers the coordinate step: choosing between delegation to subagents (worker agents a coordinator invokes, each with its own context), a handoff that passes the ongoing task and its history to the next specialist, and parallel sessions in separate worktrees, then ordering, isolating, and reconciling what they produce. Configure observability for multi-agent behavior covers the observe step: the records each worker leaves behind, such as named artifacts (files a workflow run uploads for later jobs or reviewers), hook payloads, chat and session records, and run logs, and which of them answers a given audit question. Detect and respond to multi-agent failures covers the recover step: reading those records to tell a run that failed, stopped short, or stalled from one that is only waiting at a gate such as a pending workflow approval, then repairing at the smallest unit, while Manage agent lifecycles within workflows covers the lifecycle step: adding an agent through the source that supplies it (the place its definition lives, such as a repository, an organization, or an installed extension), updating it without disturbing work already in flight, and retiring it or its sessions without destroying the record.

When two answers both work, prefer the explicit record and the smallest step that can be undone

The default this domain rewards is coordination you can point to rather than coordination you infer: order jobs with a declared dependency such as needs instead of hoping one finishes first, identify a worker from the record the platform writes instead of reconstructing it from the agent's own written summary, and accept a result on its changed files and test results instead of its completion message. The same instinct governs repair and cleanup: rerun only the failed jobs and the jobs that depend on them with gh run rerun --failed rather than replaying the whole run, remember that Stop session on a Copilot cloud agent task ends the GitHub Actions run but preserves commits already pushed, and archive a VS Code worktree session, which keeps its branch, before reaching for delete, which is irreversible. Between two workable options, pick the one that leaves the evidence standing and can still be reversed.

The domain's four steps, and which subtopic covers each

StepThe question it settlesTypical mechanismsDrill into
1. CoordinateHow is the work divided, isolated, and reconciled?Subagent delegation, handoffs, parallel sessions in separate worktrees, `needs` job ordering, merge reviewOperate and manage multi-agent workflows
2. ObserveWhich record shows what each agent received, did, and returned?Named artifacts, subagent hook payloads, chat and session records, `gh run view` logsConfigure observability for multi-agent behavior
3. RecoverDid the run fail, stop short, or only wait at a gate, and what is the smallest repair?`sessionEnd` hook reason, pending workflow approval, `gh run rerun --failed`, Stop sessionDetect and respond to multi-agent failures
4. Manage the lifecycleWhere does an agent come from, which version runs, and how are the agent and its sessions retired?Custom-agent profiles and their source, profile updates, removal through the source, archive versus delete for sessionsManage agent lifecycles within workflows

Decision tree

A multi-agent scenarioCoordinate: is the open point how workis divided, isolated, or reconciled?Operate and managemulti-agent workflowsObserve: is it which record shows whatan agent received, did, or returned?Configure observabilityfor multi-agent behaviorRecover: did a run fail, stop short,or only wait at a gate?Detect and respond tomulti-agent failuresManage the lifecycle: Manage agentlifecycles within workflowsyesnoyesnoyesno

Subtopics in this domain