swarm-tree-orchestration

Recursive tree decomposition orchestrator squad — decomposes complex tasks into a tree where each leaf has max 2 sub-tasks, plans the complete tree before execution, launches waves via TaskCreate, and integrates results. Inherits Context Factory, UxIxR scoring, circuit breaker, and fitToBudget.

53installs
SAFE
npx squads add Renat0z/squads/swarm-tree-orchestration -y
Squads are published by third parties. squads.sh does not guarantee their safety or functionality. Use at your own risk. Read Terms
00 agents
00 tasks
00 workflows

Swarm Tree Orchestration Squad

Version
Agents
Tasks
Workflows
License
AIOS

Recursive tree decomposition — plans the COMPLETE tree before executing.

2-phase pipeline: full planning → wave-based execution via TaskCreate, with UxIxR scoring, circuit breaker, and automatic integration.

/sto


The Problem with Complex Tasks

You know what happens when an agent tries to execute a huge task directly.

It starts, loses track, produces incomplete code, or simply stalls halfway.

The cause: Without prior planning, the agent doesn't know the real scope, doesn't manage dependencies between sub-tasks, and wastes context.

The Swarm Tree Orchestration Squad solves this with a simple rule:

Plan the COMPLETE tree before executing any leaf.


Before and After

🐌 Direct Execution⚡ Swarm Tree
PlanningNoneFull tree before execution
DependenciesIgnoredExplicit dependency graph
ParallelismZeroParallel waves via TaskCreate
FailuresRestart from scratchDelta relaunch from checkpoint
ValidationNoneCircuit breaker before each TaskCreate
IntegrationManualAutomatic (imports, refs, LEI ZERO)

How It Works

┌────────────────────────────────────────────────┐
│              PHASE 1 — PLANNING                │
│                                                │
│  P0: Setup .swarm-tree/                        │
│  P1: TaskDecomposer → rawTree (recursive)      │
│  P2: NodeScorer → UxIxR scoring + dep graph    │
│  P3: TreeOrchestrator → tree.json + context    │
│  P4: ContextComposer → prompts per node        │
│  P5: TreeValidator → WBS + circuit breaker     │
│  P6: Present for user validation               │
└───────────────────────┬────────────────────────┘
                        │ user validates
                        ▼
┌────────────────────────────────────────────────┐
│              PHASE 2 — EXECUTION               │
│                                                │
│  WaveDispatcher → parallel waves via           │
│  TaskCreate (respecting dependencies)          │
│                    │                           │
│  Unified polling + reactive dispatch           │
│                    │                           │
│  TreeIntegrator → validate artifacts +         │
│  fix imports + generate final report           │
└────────────────────────────────────────────────┘

Agents

NameArchetypeRole
🌳TreeOrchestratorFlow_MasterPure router — coordinates full lifecycle
🔀TaskDecomposerBuilderRecursive decomposition (Golden Rule: ≤2 tasks/leaf)
📊NodeScorerGuardianUxIxR scoring + dependency graph
🧩ContextComposerBuilderContext Factory + fitToBudget
🌊WaveDispatcherFlow_MasterWave execution + polling + delta relaunch
🛡️TreeValidatorGuardianCircuit breaker + WBS validation
🔗TreeIntegratorBalancerIntegration + final report

Commands

CommandWhat it does
/sto *orchestrate-tree TASK="..."
Full lifecycle: plan + execute + integrate
/sto *plan-tree TASK="..."
Phase 1 only: generate tree for review
/sto *resume-tree
Resume interrupted execution from checkpoint
/sto *analyze-tree
Audit existing tree for anti-patterns

Created by nirvana-squads-creator-lite · MIT License

orchestration · recursive-decomposition · task-tree · multi-agent · wbs · wave-execution · circuit-breaker

Reviews

0 reviews

Write a review

No reviews yet. Be the first to review this squad!