orchestrate_agent_swarm
Dispatch autonomous multi-agent swarms to decompose and execute coding goals, reach Byzantine fault-tolerant consensus on proposals, or diagnose and patch failing tests.
Instructions
Coordinates autonomous multi-agent task execution, goal decomposition, Byzantine fault-tolerant (PBFT) consensus voting, and self-healing error recovery, distinguishing from 'manage_memory_store' and 'audit_code_quality' by dispatching autonomous multi-agent workflows rather than managing memory stores or auditing code quality.
Parameters:
goal(str, required): High-level goal description, swarm proposal, or failing test traceback to heal.orchestration_mode(str, optional, default='goal_execute'): Orchestration mode: 'goal_execute' for autonomous goal planning and execution, 'swarm_consensus' for Byzantine fault-tolerant voting, 'self_healing' for AST error diagnosis and automated patching.agents(str, optional, default=''): Comma-separated list of agent roles participating in swarm execution (e.g. 'architect,coder,tester').project_root(str, optional, default='.'): Workspace root for swarm execution (default: current directory).
Behavior:
State execution: Dispatches sub-tasks, coordinates consensus rounds, and executes self-healing patches.
Non-idempotent: Execution results reflect dynamic agent responses and patch attempts.
100% Offline: Executes deterministic local multi-agent workflows without unverified cloud relays.
Auth & Rate Limits: Zero credentials or external blockchain relays required; completes in <100ms.
Error Handling: Quorum isolation automatically detects and neutralizes Byzantine faults.
Usage Guidelines:
When to use: Execute high-level complex coding goals across multi-agent swarms, validate proposals via Byzantine consensus voting (3f+1 quorum), or diagnose and heal test failures.
When NOT to use: Do not use for querying or managing long-term agent memory (use 'query_memory_store' and 'manage_memory_store' instead); do not use for auditing codebase quality before task execution (use 'audit_code_quality' instead).
Returns: Orchestration summary with phased execution plan, agent task allocations, consensus voting tallies, or self-healing patch results.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| goal | Yes | High-level goal description, swarm proposal, or failing test traceback to heal. | |
| agents | No | Comma-separated list of agent roles participating in swarm execution (e.g. 'architect,coder,tester'). | |
| project_root | No | Workspace root for swarm execution (default: current directory). | . |
| orchestration_mode | No | Orchestration mode: 'goal_execute' for autonomous goal planning and execution, 'swarm_consensus' for Byzantine fault-tolerant voting, 'self_healing' for AST error diagnosis and automated patching. | goal_execute |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| result | Yes |