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
description: 'Plan and distribute a change across multiple AI agents for parallel execution. Use when the user wants to break down a complex change into tasks that can be worked on simultaneously by a team of agents.',
13
+
instructions: `Plan and distribute a change across multiple AI agents for parallel execution.
10
14
11
15
I'll create a change with artifacts:
12
16
- proposal.md (what & why)
@@ -20,11 +24,11 @@ When ready to implement, run /opsx:multiagent-apply
20
24
21
25
---
22
26
23
-
**Input**: The argument after \`/opsx:multiagent\` is the change name (kebab-case), OR a description of what the user wants to build.
27
+
**Input**: The user's request should include a change name (kebab-case) OR a description of what they want to build.
24
28
25
29
**Steps**
26
30
27
-
1. **If no input provided, ask what they want to build**
31
+
1. **If no clear input provided, ask what they want to build**
28
32
29
33
Use the **AskUserQuestion tool** (open-ended, no preset options) to ask:
30
34
> "What change do you want to work on? Describe what you want to build or fix."
@@ -74,13 +78,11 @@ When ready to implement, run /opsx:multiagent-apply
74
78
> "How many agents do you want to distribute tasks across? (Recommended: 3-5)"
75
79
76
80
With options:
77
-
- "2 agents" - Minimum viable parallelism
78
81
- "3 agents (Recommended)" - Good balance of parallelism and coordination
79
82
- "4 agents" - More parallelism, moderate coordination
80
83
- "5 agents" - Maximum parallelism, higher coordination overhead
81
84
82
-
If the user selects fewer than 2, suggest using \`/opsx:propose\` instead for a simpler single-agent workflow.
83
-
If the user requests more than 5, warn about coordination overhead and recommend 3-5 agents.
85
+
If the user selects 1 agent, suggest using \`/opsx:propose\` instead for a simpler single-agent workflow.
84
86
85
87
c. **Continue until all \`applyRequires\` artifacts are complete**
86
88
- After creating each artifact, re-run \`openspec status --change "<name>" --json\`
@@ -121,13 +123,7 @@ After completing all artifacts, summarize:
121
123
- Always read dependency artifacts before creating a new one
122
124
- If context is critically unclear, ask the user - but prefer making reasonable decisions to keep momentum
123
125
- If a change with that name already exists, ask if user wants to continue it or create a new one
124
-
- Verify each artifact file exists after writing before proceeding to next`;
description: 'Plan and distribute a change across multiple AI agents for parallel execution. Use when the user wants to break down a complex change into tasks that can be worked on simultaneously by a team of agents.',
130
-
instructions: MULTIAGENT_INSTRUCTIONS,
126
+
- Verify each artifact file exists after writing before proceeding to next`,
131
127
license: 'MIT',
132
128
compatibility: 'Requires openspec CLI.',
133
129
metadata: {author: 'openspec',version: '1.0'},
@@ -140,6 +136,119 @@ export function getOpsxMultiagentCommandTemplate(): CommandTemplate {
140
136
description: 'Plan and distribute a change across multiple AI agents for parallel execution',
0 commit comments