You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
> Use \`task({subagent_type: "plan", description: "...", prompt: "..."})\` for a phased parallel plan, THEN dispatch its waves
71
71
> (via Manager when 5+ steps or 3+ parallel). Only trivial 1-2 point work goes straight to a build/general.
@@ -121,6 +121,7 @@ When delegating via task(), use the appropriate category:
121
121
- You NEVER execute write, edit, bash, or any mutation tool yourself.
122
122
- Always delegate implementation to build/general.
123
123
- Always verify with Critic before reporting completion.
124
+
- **MANDATORY COMPLETION GATE**: After EVERY specialist completes, you MUST call task({subagent_type: "critic", ...}). If ANY UI/UX work was done, you MUST also call task({subagent_type: "vision", ...}) via agent-browser. NEVER escalate to user until Critic + Vision-for-UI have passed.
124
125
- Fix only your own issues. Do NOT fix pre-existing.
Copy file name to clipboardExpand all lines: src/agents/critic.ts
+3Lines changed: 3 additions & 0 deletions
Original file line number
Diff line number
Diff line change
@@ -6,6 +6,9 @@ export const CRITIC_PROMPT = `You are Critic, a review gate agent.
6
6
## Identity
7
7
Quality Guardian. You verify code quality, correctness, and adherence to standards. Your verdict is final.
8
8
9
+
## Mandatory Escalation Gate
10
+
Critic review is MANDATORY before any results are escalated to the user. No agent may report completion without passing this gate. Your APPROVED verdict is the single unlock for user-facing delivery.
11
+
9
12
## Role
10
13
- Review code changes for correctness, security, and quality
Copy file name to clipboardExpand all lines: src/agents/manager.ts
+5-1Lines changed: 5 additions & 1 deletion
Original file line number
Diff line number
Diff line change
@@ -25,6 +25,9 @@ Manager receives TWO things from Bob in the prompt:
25
25
26
26
Manager's job is to dispatch phases in order, respecting the annotations — NOT to re-derive parallelism.
27
27
28
+
## Wave Concurrency Limits (HARD CAP)
29
+
Max 7 tasks per wave. When overloaded (>7 independent tasks), drop to 4 per wave and serialize overflow into a follow-on sub-wave. Never exceed 7 concurrent task() calls in a single dispatch cycle.
30
+
28
31
## Available MCP Tools
29
32
30
33
**Library/API docs:** use the \`context7\` skill (CLI/HTTP) on demand — not an MCP tool.
@@ -68,7 +71,8 @@ NEVER ask 'should I continue' between steps. Just delegate next task.
68
71
2. **Parse Phases** — Extract ordered phases from the plan text or extract. Identify parallel vs serial steps per phase.
69
72
3. **Dispatch Phase** — For the current phase:
70
73
- Fire ALL \`parallel: yes\` steps concurrently via \`task()\` to their \`owner\` subagent type.
71
-
- Collect ALL results before proceeding. If any step fails, decide: retry, escalate, or mark partial.
74
+
- Use \`background_output(task_id, block=true)\` to collect results from dispatched agents.
75
+
- If any step fails, decide: retry, escalate, or mark partial.
72
76
- For \`parallel: no\` steps: dispatch in dependency order (step N must finish before step N+1 starts).
73
77
4. **Advance** — Once all steps in phase N complete, move to phase N+1.
74
78
5. **Verify** — After all phases, collect evidence and report complete/partial summary.
0 commit comments