← ~/pillars / multi-agent-orchestration/
Architecture and orchestration
When splitting work across agents pays, which topology fits which job, how the patterns port across Claude subagents, LangGraph, ADK, and the OpenAI Agents SDK, and the system design that lets an agent safely change the part it is given.
by Paul Grycuk
updated 2026-11-08 12 artifacts 6 patterns
When does splitting work across agents pay, and which topology fits?
- standard
- Fan out only when subtasks are genuinely independent: no shared files, no ordering.
- check
- Fresh-context verification: the reviewer is never the context that wrote the code.
- skill
- Orchestrator-worker dispatch, with context isolation and explicit handoff.
- metric
- Coordination-token overhead against wall-clock gain.
- failure mode
- Two agents silently overwriting each other's edits; tokens burned on false parallelism.
ADR author command
A /adr-author command that drafts a structured MADR record with YAML frontmatter from a one-line decision description. Always status: proposed, never invented facts.
✓ verified 2026-06-10
Adversarial reviewer subagent
A fresh-context reviewer that verifies independently instead of trusting the implementer's report, with severity calibration and the always-finds-something caveat built into the prompt.
✓ verified 2026-06-10
Implementer subagent and dispatch template
A scoped implementation worker for .claude/agents/ with file-ownership discipline, questions-before-work, mandatory self-review, and a fixed status-report format, plus the dispatch prompt that drives it.
✓ verified 2026-08-10
Orchestrator dispatch prompts
The dispatch-prompt anatomy for spawning agent teammates: scope, context the teammate cannot inherit, deliverable shape, and the adversarial-debate variant for competing hypotheses.
✓ verified 2026-07-18
Subagent definition: adversarial verifier
A complete .claude/agents/ definition for a read-only verifier subagent that tries to refute the main session's conclusion in a fresh context, with the frontmatter contract annotated.
✓ verified 2026-07-18
Settings: agent teams, gated
The settings.json that enables experimental agent teams with quality-gate hooks on teammate idle and task completion, plus the limitations a team should read before turning it on.
✓ verified 2026-07-18
Skill: agent-callable API review
A review skill that audits an API against the agent-readiness bar: intent-revealing operations, RFC 9457 errors with recovery hints, idempotency keys, rate-limit headers, and programmatic auth.
✓ verified 2026-07-18
SKILL.md: incident runbook for a Java service on AWS
Symptom-matched runbooks with read-only investigation and human-approved remediation, adapted from the Anthropic SRE agent pattern to ECS, CloudWatch, and SSM.
✓ verified 2026-06-10
Terraform: least-privilege IAM for a Bedrock agent workload
Role, EU Geo-aware invocation policy, optional guardrail enforcement, and a cost-attributed application inference profile for an agent service.
✓ verified 2026-06-10
Fan-out review workflow
A headless script plus GitHub Actions wrapper that runs three domain reviewers (security, performance, test coverage) in parallel over a PR diff and gates on blocking findings.
✓ verified 2026-06-10
Workflow: ADR validation in CI
A GitHub Actions workflow that validates architecture decision records against a schema, so agent-authored ADRs meet the same structural bar as human ones and the decision log stays machine-readable.
✓ verified 2026-07-18
Workflow: generated llms.txt, checked in CI
A build script that generates llms.txt from the docs tree plus a CI job that fails when the committed file goes stale, so the machine-readable index is a build product, not a chore.
✓ verified 2026-07-18
Copy-paste-complete files, each verified against the primary docs on the date shown.
// patterns
The reading behind the artifacts, one pattern per page.