Skip to content

Multi Agent Topologies

coo1white edited this page Jun 7, 2026 · 3 revisions

Multi-Agent Topologies

CW v0.1.19 adds official topology recipes on top of the Multi-Agent Runtime Core and Coordinator / Blackboard.

Topologies are userland recipes, not hidden automation. Applying a topology materializes ordinary CW records:

  • MultiAgentRun
  • agent roles
  • groups
  • fanouts
  • optional fanins
  • blackboard topics
  • blackboard messages
  • coordinator decisions
  • trust audit events
  • graph nodes
  • deterministic next actions

Durable topology run records live in:

.cw/runs/<run-id>/topologies/index.json
.cw/runs/<run-id>/topologies/runs/<topology-run-id>.json

Official Topologies

map-reduce

Fans out mapper roles, indexes mapper evidence on the blackboard, then reduces only after required fanin evidence is present.

Use for:

  • independent shard work
  • parallel repo analysis
  • evidence collection before synthesis

debate

Records opposing claims, rebuttal rounds, conflict context, coordinator decisions, and final synthesis.

Use for:

  • adversarial review
  • disputed architectural decisions
  • comparing plausible options with evidence

judge-panel

Collects independent judge outputs, aggregates score evidence, and records a panel decision with provenance.

Use for:

  • candidate selection
  • multi-reviewer scoring
  • panel-style acceptance decisions

CLI

node scripts/cw.js topology list
node scripts/cw.js topology show map-reduce
node scripts/cw.js topology show debate
node scripts/cw.js topology show judge-panel
node scripts/cw.js topology validate map-reduce
node scripts/cw.js topology apply <run-id> map-reduce --task <task-id> --mappers 2
node scripts/cw.js topology apply <run-id> debate --id debate-round --rounds 2
node scripts/cw.js topology apply <run-id> judge-panel --judges 3
node scripts/cw.js topology summary <run-id>
node scripts/cw.js topology graph <run-id>

MCP

MCP parity tools:

  • cw_topology_list
  • cw_topology_show
  • cw_topology_validate
  • cw_topology_apply
  • cw_topology_summary
  • cw_topology_graph

Fail Closed

Topology fanin uses the existing AgentFanin checks. Missing memberships, missing result evidence, and missing indexed blackboard evidence remain blocked. A topology may recommend the next command, but it does not mark missing evidence as complete.

Operator UX

status, graph, and report --show include topology progress:

  • topology id and topology run id
  • generated multi-agent run and blackboard id
  • roles, topics, fanouts, and fanins
  • readiness and missing evidence
  • conflicts
  • deterministic next action

Trust audit summaries include topology event counts.

Clone this wiki locally