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.
npx squads add Renat0z/squads/swarm-tree-orchestration -ySwarm Tree Orchestration Squad
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 | |
|---|---|---|
| Planning | None | Full tree before execution |
| Dependencies | Ignored | Explicit dependency graph |
| Parallelism | Zero | Parallel waves via TaskCreate |
| Failures | Restart from scratch | Delta relaunch from checkpoint |
| Validation | None | Circuit breaker before each TaskCreate |
| Integration | Manual | Automatic (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
| Name | Archetype | Role | |
|---|---|---|---|
| 🌳 | TreeOrchestrator | Flow_Master | Pure router — coordinates full lifecycle |
| 🔀 | TaskDecomposer | Builder | Recursive decomposition (Golden Rule: ≤2 tasks/leaf) |
| 📊 | NodeScorer | Guardian | UxIxR scoring + dependency graph |
| 🧩 | ContextComposer | Builder | Context Factory + fitToBudget |
| 🌊 | WaveDispatcher | Flow_Master | Wave execution + polling + delta relaunch |
| 🛡️ | TreeValidator | Guardian | Circuit breaker + WBS validation |
| 🔗 | TreeIntegrator | Balancer | Integration + final report |
Commands
| Command | What 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 reviewsNo reviews yet. Be the first to review this squad!
More from Renat0z
brainstormind
Workflow Diverge+Converge — swarm de 24 agentes gera 200+ ideias, filtra Top 3, depois refina o melhor insight em design validado. Pipeline de 6 fases com gate interativo, context-manifest pattern, shared macros. ~65% menos tokens que abordagem naive.
win proposal deal
Propostas comerciais que fecham — 4 agentes IA analisam seu prospect, desenham 3 opcoes de escopo, precificam com win-rate preditivo e entregam proposta persuasiva pronta em minutos
token-optimizer
Analisa squads AIOS existentes e produz otimizacoes priorizadas por ROI — qualidade, velocidade e economia de tokens — usando TOKEN-OPTIMIZATION-GUIDE.md como base de conhecimento.
nirvana squads creator lite
Token-optimized squad generator — 5-phase pipeline with live tech verification, context-manifest pattern, shared macros, and consolidated agents. ~70% fewer tokens than v1.
design 3d experience
Squad para planejar e construir experiencias 3D web imersivas — do briefing estrategico ao deploy otimizado com Three.js, React Three Fiber, GSAP e scroll-driven narratives
video factory remotion
End-to-end programmatic video creation squad — from briefing to rendered MP4. 5 specialized agents orchestrate storyboard, assets, voiceover+SFX+BGM, Remotion composition (3-layer audio), and render pipeline with post-processing.