一键导入
orchestrator
// Automated multi-agent orchestrator that spawns CLI subagents in parallel, coordinates via Serena Memory, and monitors progress
// Automated multi-agent orchestrator that spawns CLI subagents in parallel, coordinates via Serena Memory, and monitors progress
Automated code navigation using Serena tools - finds files, analyzes symbols, and provides intelligent code exploration
Pattern-based code editing using Serena tools - searches for patterns and applies bulk transformations
Safe refactoring workflow using Serena tools - analyzes impact, finds references, and performs safe code transformations
Backend specialist for APIs, databases, authentication, and server-side logic using FastAPI, Node.js, or other frameworks
Bug diagnosis and fixing specialist - analyzes errors, identifies root causes, provides fixes, and writes regression tests
Frontend specialist for React, Next.js, TypeScript, and modern UI development
| name | orchestrator |
| description | Automated multi-agent orchestrator that spawns CLI subagents in parallel, coordinates via Serena Memory, and monitors progress |
This skill orchestrates CLI subagents via gemini -p "..." --yolo. It uses Serena Memory as a shared state bus. Each subagent runs as an independent process.
| Setting | Default | Description |
|---|---|---|
| MAX_PARALLEL | 3 | Max concurrent subagents |
| MAX_RETRIES | 2 | Retry attempts per failed task |
| POLL_INTERVAL | 30s | Status check interval |
| MAX_TURNS (impl) | 20 | Turn limit for backend/frontend/mobile |
| MAX_TURNS (review) | 15 | Turn limit for qa/debug |
| MAX_TURNS (plan) | 10 | Turn limit for pm |
PHASE 1 - Plan: Analyze request -> decompose tasks -> generate session ID
PHASE 2 - Setup: write_memory("orchestrator-session.md") + write_memory("task-board.md")
PHASE 3 - Execute: Spawn agents by priority tier (never exceed MAX_PARALLEL)
PHASE 4 - Monitor: Poll every POLL_INTERVAL; handle completed/failed/crashed agents
PHASE 4.5 - Verify: Run ../_shared/verify.sh {agent-type} {workspace} per completed agent
PHASE 5 - Collect: Read all result-{agent}.md, compile summary, cleanup progress files
See resources/subagent-prompt-template.md for prompt construction.
See resources/memory-schema.md for memory file formats.
| File | Owner | Others |
|---|---|---|
orchestrator-session.md | orchestrator | read-only |
task-board.md | orchestrator | read-only |
progress-{agent}.md | that agent | orchestrator reads |
result-{agent}.md | that agent | orchestrator reads |
After each agent completes, run automated verification before accepting the result:
bash .agent/skills/_shared/verify.sh {agent-type} {workspace}
resources/subagent-prompt-template.mdresources/memory-schema.mdconfig/cli-config.yamlscripts/spawn-agent.sh, scripts/parallel-run.shtemplates/../_shared/skill-routing.md../_shared/verify.sh../_shared/api-contracts/../_shared/context-loading.md../_shared/difficulty-guide.md../_shared/reasoning-templates.md../_shared/clarification-protocol.md../_shared/context-budget.md../_shared/lessons-learned.md