Skip to content

Agent Orchestration

Tool: agent-orchestrate Model: Advanced

Triggered by: Multi-agent coordination, FSM design, or homeostatic control loop requirements.

Intent: Builds membrane-based multi-agent architectures with parallel inner faculties, context handoff, and contradiction resolution. Never produces flat tool-call chains.

Capability profile: orchestration — requires multi_agent + fsm, requires adaptive_routing, prefers deep_reasoning.

SkillRole
adv-membrane-orchestratorMembrane boundary enforcement
core-agent-orchestratorCore multi-agent coordination
core-context-handoffContext state transfer between agents
core-multi-agent-promptPrompt design for agent ensembles
core-session-managementAgent session and state lifecycle
resil-homeostatic-modulePID setpoint homeostatic control
resil-redundant-voterConsensus voting across agent outputs
{
agentGraph: unknown;
coordinationMode: "parallel" | "sequential" | "membrane";
}

If agent graph produces cyclic deadlock or unconstrained fan-out → throws back to design to add FSM constraints or membrane limits.

On successful completion chains to: evaluate · resilience

FSM — Parallel inner faculties competing for control

Section titled “FSM — Parallel inner faculties competing for control”
stateDiagram-v2
    [*] --> OrchestrationTrigger

    OrchestrationTrigger --> AnalyticalAgent
    OrchestrationTrigger --> MechanicalAgent
    OrchestrationTrigger --> LateralAgent

    AnalyticalAgent --> ConflictDetection
    MechanicalAgent --> ConflictDetection
    LateralAgent --> ConflictDetection

    ConflictDetection --> Inhibition
    ConflictDetection --> Suppression

    Inhibition --> OrchestrationGate
    Suppression --> OrchestrationGate

    OrchestrationGate --> MembraneEnforcement
    MembraneEnforcement --> ContextHandoff
    ContextHandoff --> ExecutionStream
    ExecutionStream --> HomeostaticMonitor

    HomeostaticMonitor --> StableState: PID within setpoint
    HomeostaticMonitor --> CorrectionLoop: drift detected
    CorrectionLoop --> OrchestrationTrigger
    StableState --> [*]
sequenceDiagram
    participant Orchestrator
    participant Pool (Analytical)
    participant Pool (Mechanical)
    participant Tool (Context)

    Orchestrator->>Pool (Analytical): Allocate Capability Profile (membrane-based)
    activate Pool (Analytical)
    Orchestrator->>Pool (Mechanical): Parallel Lateral Agent Init
    activate Pool (Mechanical)

    Pool (Analytical)->>Tool (Context): Issue Tool Calls (Parallel)
    Pool (Mechanical)->>Tool (Context): Issue Tool Calls (Parallel)
    Tool (Context)-->>Pool (Analytical): Return Data
    Tool (Context)-->>Pool (Mechanical): Return Data

    Pool (Analytical)-->>Orchestrator: Analytical Gate
    Pool (Mechanical)-->>Orchestrator: Mechanical Gate
    deactivate Pool (Analytical)
    deactivate Pool (Mechanical)

    Orchestrator->>Orchestrator: Homeostatic Monitor + PID Check

    opt Correction Loop
        Orchestrator->>Orchestrator: Throw-back to OrchestrationTrigger
    end