-
Notifications
You must be signed in to change notification settings - Fork 0
Agents
Yash Aryan edited this page Aug 8, 2026
·
1 revision
Multi-agent orchestration (v0.4+) lives under app/src/main/agents/.
Settings enable agents and the turn is classified as complex enough and the turn is not forced into project-coding single-agent mode.
flowchart LR
In[Chat turn] --> Class[classify]
Class -->|simple| Single[Single-agent ipc loop]
Class -->|complex| Plan[plan]
Plan --> Work[workers parallel]
Work --> Syn[synthesize]
Syn --> Out[Final answer + trail]
| File | Role |
|---|---|
plan.ts / parse helpers |
Produce worker steps |
classify.ts |
Complexity / routing |
orchestrator / related |
Drive the run |
workers.ts |
Per-step model+tools (MAX_TOOL_ROUNDS = 3) |
| Load / clamp / mutex | Concurrency and RAM safety |
| Scheduler | Timing / metering hooks |
Workers reuse the same tools/skills execution path as single-agent chat.
load-guard/ watches memory pressure. When past the configured kill threshold, the turn soft-stops instead of wedging the machine. Toggle/cutoff live in settings (llmeter-settings.json).
- Collapsed agent trail in chat activity
- Settings → Agents panel for enablement and limits
See:
docs/superpowers/specs/2026-08-07-multi-agent-core-design.mddocs/superpowers/plans/2026-08-07-multi-agent-core.mddocs/superpowers/specs/2026-08-08-load-protection-design.md
-
Do not casually fall back to single-agent after tools already executed in a failed multi-agent synthesize — side effects may have landed. Follow comments in
ipc.ts. - Worker tool-round budget is intentionally lower than the single-agent 15.
- Keep metering/token accounting consistent with governance usage recording.
- Tests:
agents/*.test.ts(plan parse, assign, mutex, workers rounds, etc.).
| Page | Description |
|---|---|
| Home | Overview and navigation |
| Getting-Started | Local setup |
| Architecture | System design |
| Code-Structure | Directory map |
| Features | Feature inventory |
| Contributing | PR workflow |
| How-to-Change | Common change recipes |
| Gotchas | Footguns |
| Chat-Pipeline | Turn lifecycle |
| IPC-Contract | window.api |
| Auth-and-Firebase | Identity + rules |
| RAG-and-Knowledge | Vectors + graph |
| Agents | Multi-agent |
| Proxy-and-Governance | :3227 + policies |
| Configuration | Env + settings |
| Testing | bun test |
| Build-and-Release | Packaging |
| Skills | Build skills |
| Tools | Build tools |
| MCP-and-Extensions | MCP status + options |