opencode-goopspec 0.1.2 → 0.1.4

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (60) hide show
  1. package/README.md +255 -331
  2. package/agents/goop-debugger.md +175 -172
  3. package/agents/goop-designer.md +232 -160
  4. package/agents/goop-executor.md +197 -127
  5. package/agents/goop-explorer.md +148 -150
  6. package/agents/goop-librarian.md +218 -164
  7. package/agents/goop-orchestrator.md +392 -280
  8. package/agents/goop-planner.md +331 -153
  9. package/agents/goop-researcher.md +198 -126
  10. package/agents/goop-tester.md +277 -202
  11. package/agents/goop-verifier.md +191 -201
  12. package/agents/goop-writer.md +241 -133
  13. package/agents/memory-distiller.md +228 -136
  14. package/commands/goop-accept.md +434 -160
  15. package/commands/goop-amend.md +35 -151
  16. package/commands/goop-complete.md +39 -183
  17. package/commands/goop-debug.md +33 -298
  18. package/commands/goop-discuss.md +381 -85
  19. package/commands/goop-execute.md +391 -108
  20. package/commands/goop-help.md +11 -0
  21. package/commands/goop-map-codebase.md +16 -3
  22. package/commands/goop-memory.md +11 -0
  23. package/commands/goop-milestone.md +29 -192
  24. package/commands/goop-pause.md +31 -40
  25. package/commands/goop-plan.md +458 -46
  26. package/commands/goop-quick.md +38 -142
  27. package/commands/goop-recall.md +11 -0
  28. package/commands/goop-remember.md +12 -0
  29. package/commands/goop-research.md +52 -73
  30. package/commands/goop-resume.md +28 -37
  31. package/commands/goop-setup.md +225 -124
  32. package/commands/goop-specify.md +321 -121
  33. package/commands/goop-status.md +256 -110
  34. package/dist/index.js +6289 -2820
  35. package/package.json +1 -1
  36. package/references/context-injection.md +307 -0
  37. package/references/discovery-interview.md +278 -0
  38. package/references/enforcement-system.md +213 -0
  39. package/references/handoff-protocol.md +290 -0
  40. package/references/interactive-questioning.md +122 -0
  41. package/references/model-profiles.md +1 -1
  42. package/references/phase-gates.md +360 -0
  43. package/references/plugin-architecture.md +212 -0
  44. package/references/response-format.md +41 -9
  45. package/references/subagent-protocol.md +83 -33
  46. package/references/ui-interaction-patterns.md +133 -0
  47. package/references/visual-style.md +199 -0
  48. package/references/workflow-accept.md +60 -273
  49. package/references/workflow-execute.md +63 -274
  50. package/references/workflow-plan.md +86 -133
  51. package/references/workflow-research.md +78 -186
  52. package/references/workflow-specify.md +64 -221
  53. package/references/xml-response-schema.md +236 -0
  54. package/templates/blueprint.md +88 -41
  55. package/templates/chronicle.md +130 -16
  56. package/templates/handoff.md +140 -0
  57. package/templates/project.md +114 -0
  58. package/templates/requirements.md +121 -0
  59. package/templates/spec.md +85 -20
  60. package/templates/state.md +103 -0
@@ -1,208 +1,309 @@
1
1
  ---
2
2
  name: goop-setup
3
- description: First-time GoopSpec setup wizard with model picker
3
+ description: GoopSpec setup wizard - first-time init, configuration, and verification
4
4
  ---
5
5
 
6
6
  # GoopSpec Setup Wizard
7
7
 
8
- You are helping the user set up GoopSpec for the first time. This wizard includes an in-depth model picker for configuring each agent.
8
+ You are helping the user set up or modify their GoopSpec configuration. This wizard handles first-time setup, modifications, and verification.
9
9
 
10
- ## Step 1: Detect Current Environment
10
+ ## Available Actions
11
11
 
12
- First, call the `goop_setup` tool with `action: "detect"` to see what's already configured:
12
+ | Action | Purpose | When to Use |
13
+ |--------|---------|-------------|
14
+ | `init` | Full first-time initialization | New projects, creates all directories and files |
15
+ | `detect` | Show current environment | Understand what's already configured |
16
+ | `plan` | Preview changes | Before applying, see what will change |
17
+ | `apply` | Write configuration | Apply configuration changes |
18
+ | `verify` | Check setup health | Ensure everything is working |
19
+ | `reset` | Reset to defaults | Start over or fix broken config |
20
+ | `models` | Show model suggestions | Help choosing agent models |
21
+ | `status` | Show current config | Quick overview of current state |
22
+
23
+ ## Tools Used
24
+
25
+ | Tool | Purpose in This Command |
26
+ |------|------------------------|
27
+ | `goop_setup` | Primary tool - all setup actions |
28
+
29
+ **Hook Support:** None specific - configuration tool.
30
+
31
+ ---
32
+
33
+ ## First-Time Setup Flow
34
+
35
+ For users who haven't set up GoopSpec yet, use the `init` action.
36
+
37
+ ### Step 1: Detect Current State
13
38
 
14
39
  ```
15
40
  goop_setup(action: "detect")
16
41
  ```
17
42
 
18
- Review the output and share a brief summary with the user about their current state.
43
+ Review what's already configured. If nothing exists, proceed to full init.
44
+
45
+ ### Step 2: Ask for Project Name
46
+
47
+ Ask the user: "What's your project name?"
19
48
 
20
- ## Step 2: Configuration Scope
49
+ This will be stored in the configuration for context.
50
+
51
+ ### Step 3: Configuration Scope
21
52
 
22
53
  Ask: "Where should GoopSpec be configured?"
23
54
 
24
- Use the question tool to present these options:
55
+ Use the question tool:
25
56
  - **both** (Recommended) - Both global and project-specific settings
26
- - **global** - Only system-wide settings (~/.config/opencode/goopspec.json)
27
- - **project** - Only this project (.goopspec/config.json)
57
+ - **global** - Only system-wide settings
58
+ - **project** - Only this project
28
59
 
29
- ## Step 3: MCP Preset
60
+ ### Step 4: MCP Preset
30
61
 
31
62
  Ask: "Which MCPs should be installed?"
32
63
 
33
- Use the question tool to present these options:
34
- - **recommended** - Context7 + Exa + Playwright (full GoopSpec workflow support)
35
- - **core** - Context7 + Exa only (minimal setup)
64
+ - **recommended** - Context7 + Exa + Playwright (full workflow support)
65
+ - **core** - Context7 + Exa only (minimal)
36
66
  - **none** - Skip MCP installation
37
67
 
38
- ## Step 4: Default Agent
68
+ ### Step 5: Memory System
39
69
 
40
- Ask: "Should GoopSpec be set as your default agent?"
70
+ Ask: "Would you like to enable the memory system?"
41
71
 
42
- Use the question tool:
43
- - **yes** - GoopSpec orchestrator will be the default for new sessions
44
- - **no** - Keep current default agent
72
+ The memory system allows GoopSpec to remember decisions, patterns, and context across sessions.
45
73
 
46
- ## Step 5: Model Configuration
74
+ If yes, ask about embedding provider:
75
+ - **local** (Recommended) - Uses local embeddings, no API needed
76
+ - **openai** - Uses OpenAI embeddings (requires API key)
77
+ - **ollama** - Uses local Ollama server
47
78
 
48
- This is the key step. Ask: "Would you like to configure models for each agent?"
79
+ ### Step 6: Model Configuration
49
80
 
50
- Use the question tool:
51
- - **Quick setup** - Use recommended defaults for all agents
52
- - **Custom setup** - Choose models for each agent individually
53
-
54
- ### If Quick Setup
55
- Use the defaults from agent files (user can change later):
56
- - goop-debugger: openai/gpt-5.2-codex
57
- - goop-designer: anthropic/claude-opus-4-5
58
- - goop-executor: openai/gpt-5.2-codex
59
- - goop-explorer: google/antigravity-gemini-3-flash
60
- - goop-librarian: openai/gpt-5.2
61
- - goop-orchestrator: anthropic/claude-opus-4-5
62
- - goop-planner: anthropic/claude-opus-4-5
63
- - goop-researcher: openai/gpt-5.2
64
- - goop-tester: opencode/kimi-k2.5-free
65
- - goop-verifier: openai/gpt-5.2-codex
66
- - goop-writer: google/antigravity-gemini-3-pro-high
67
-
68
- ### If Custom Setup
69
- For EACH agent, present a model picker using the question tool. Include a "Custom model" option that allows free text entry.
70
-
71
- #### Agent Model Options
72
-
73
- **goop-debugger** (Systematic debugging with hypothesis testing):
81
+ Ask: "Would you like to configure models for each agent?"
82
+
83
+ - **Quick setup** - Use recommended defaults
84
+ - **Custom setup** - Choose models individually
85
+
86
+ For custom setup, walk through each agent or accept shortcuts like "use Claude Sonnet for everything".
87
+
88
+ ### Step 7: Apply Init
89
+
90
+ Execute the initialization:
91
+
92
+ ```
93
+ goop_setup(
94
+ action: "init",
95
+ scope: "<scope>",
96
+ projectName: "<name>",
97
+ mcpPreset: "<preset>",
98
+ memoryEnabled: true,
99
+ memoryProvider: "local",
100
+ agentModels: { ... }
101
+ )
102
+ ```
103
+
104
+ ### Step 8: Verify Setup
105
+
106
+ After init completes, verify everything is working:
107
+
108
+ ```
109
+ goop_setup(action: "verify")
110
+ ```
111
+
112
+ Report any issues and suggest fixes.
113
+
114
+ ## Modifying Existing Setup
115
+
116
+ For users who already have GoopSpec configured:
117
+
118
+ ### Check Current Status
119
+
120
+ ```
121
+ goop_setup(action: "status")
122
+ ```
123
+
124
+ Shows what's currently configured.
125
+
126
+ ### Update Configuration
127
+
128
+ ```
129
+ goop_setup(
130
+ action: "apply",
131
+ scope: "project",
132
+ // Only include what you want to change
133
+ memoryEnabled: true,
134
+ agentModels: {
135
+ "goop-executor": "anthropic/claude-sonnet-4-5"
136
+ }
137
+ )
138
+ ```
139
+
140
+ ### Reset Configuration
141
+
142
+ If something is broken:
143
+
144
+ ```
145
+ goop_setup(
146
+ action: "reset",
147
+ scope: "project",
148
+ preserveData: true, // Keep memories, history, checkpoints
149
+ confirmed: true
150
+ )
151
+ ```
152
+
153
+ ## Agent Model Options
154
+
155
+ ### goop-debugger
156
+ *Systematic debugging with hypothesis testing*
74
157
  1. openai/gpt-5.2-codex
75
158
  2. anthropic/claude-opus-4-5
76
- 3. opencode/kimi-k2.5-free
77
- - Custom model...
159
+ 3. kimi-for-coding/k2p5
78
160
 
79
- **goop-designer** (Visual design planning and UI/UX reasoning):
161
+ ### goop-designer
162
+ *Visual design planning and UI/UX reasoning*
80
163
  1. anthropic/claude-opus-4-5
81
- 2. opencode/kimi-k2.5-free
164
+ 2. kimi-for-coding/k2p5
82
165
  3. google/antigravity-gemini-3-pro-high
83
- - Custom model...
84
166
 
85
- **goop-executor** (Task execution with checkpoints and verification):
167
+ ### goop-executor
168
+ *Task execution with checkpoints and verification*
86
169
  1. openai/gpt-5.2-codex
87
170
  2. anthropic/claude-opus-4-5
88
171
  3. anthropic/claude-sonnet-4-5
89
- 4. opencode/kimi-k2.5-free
172
+ 4. kimi-for-coding/k2p5
90
173
  5. google/antigravity-gemini-3-pro-high
91
174
  6. opencode/glm-4.7-free
92
- - Custom model...
93
175
 
94
- **goop-explorer** (Fast codebase exploration and pattern extraction):
176
+ ### goop-explorer
177
+ *Fast codebase exploration and pattern extraction*
95
178
  1. google/antigravity-gemini-3-flash
96
179
  2. anthropic/claude-haiku-4-5
97
180
  3. opencode/minimax-m2.1-free
98
- - Custom model...
99
181
 
100
- **goop-librarian** (Codebase search and documentation retrieval):
182
+ ### goop-librarian
183
+ *Codebase search and documentation retrieval*
101
184
  1. openai/gpt-5.2
102
185
  2. google/antigravity-gemini-3-flash
103
186
  3. anthropic/claude-sonnet-4-5
104
- - Custom model...
105
187
 
106
- **goop-orchestrator** (Primary orchestrator - spec clarity and wave execution):
188
+ ### goop-orchestrator
189
+ *Primary orchestrator - spec clarity and wave execution*
107
190
  1. anthropic/claude-opus-4-5
108
191
  2. openai/gpt-5.2-codex
109
- 3. opencode/kimi-k2.5-free
192
+ 3. kimi-for-coding/k2p5
110
193
  4. anthropic/claude-sonnet-4-5
111
- - Custom model...
112
194
 
113
- **goop-planner** (Detailed execution plans with architectural precision):
195
+ ### goop-planner
196
+ *Detailed execution plans with architectural precision*
114
197
  1. anthropic/claude-opus-4-5
115
198
  2. openai/gpt-5.2-codex
116
- 3. opencode/kimi-k2.5-free
199
+ 3. kimi-for-coding/k2p5
117
200
  4. anthropic/claude-sonnet-4-5
118
- - Custom model...
119
201
 
120
- **goop-researcher** (Comprehensive ecosystem research):
202
+ ### goop-researcher
203
+ *Comprehensive ecosystem research*
121
204
  1. openai/gpt-5.2
122
205
  2. anthropic/claude-sonnet-4-5
123
- 3. opencode/kimi-k2.5-free
206
+ 3. kimi-for-coding/k2p5
124
207
  4. opencode/glm-4.7-free
125
- - Custom model...
126
208
 
127
- **goop-tester** (Web frontend testing with Playwright):
128
- 1. opencode/kimi-k2.5-free
209
+ ### goop-tester
210
+ *Web frontend testing with Playwright*
211
+ 1. kimi-for-coding/k2p5
129
212
  2. anthropic/claude-sonnet-4-5
130
213
  3. google/antigravity-gemini-3-flash
131
- - Custom model...
132
214
 
133
- **goop-verifier** (Post-execution verification with security focus):
215
+ ### goop-verifier
216
+ *Post-execution verification with security focus*
134
217
  1. openai/gpt-5.2-codex
135
218
  2. anthropic/claude-opus-4-5
136
- - Custom model...
137
219
 
138
- **goop-writer** (Comprehensive documentation generation):
220
+ ### goop-writer
221
+ *Comprehensive documentation generation*
139
222
  1. google/antigravity-gemini-3-pro-high
140
- 2. opencode/kimi-k2.5-free
223
+ 2. kimi-for-coding/k2p5
141
224
  3. anthropic/claude-sonnet-4-5
142
- - Custom model...
143
225
 
144
- ## Step 6: Preview the Plan
226
+ ## Memory System Configuration
145
227
 
146
- After collecting all answers, call `goop_setup` with `action: "plan"` and the user's choices:
228
+ The memory system allows GoopSpec to:
229
+ - Remember decisions and their reasoning
230
+ - Recall patterns from past work
231
+ - Build context across sessions
147
232
 
148
- ```
149
- goop_setup(
150
- action: "plan",
151
- scope: "<user_choice>",
152
- mcpPreset: "<user_choice>",
153
- enableOrchestrator: <true/false>,
154
- agentModels: {
155
- "goop-orchestrator": "<model>",
156
- "goop-planner": "<model>",
157
- "goop-executor": "<model>",
158
- // ... other agents
159
- }
160
- )
161
- ```
233
+ ### Configuration Options
234
+
235
+ | Option | Type | Default | Description |
236
+ |--------|------|---------|-------------|
237
+ | `memoryEnabled` | boolean | true | Enable/disable memory |
238
+ | `memoryProvider` | string | "local" | Embedding provider |
239
+ | `memoryWorkerPort` | number | 37777 | Worker process port |
240
+
241
+ ### Embedding Providers
242
+
243
+ - **local** - Uses `Xenova/all-MiniLM-L6-v2`, runs locally, free
244
+ - **openai** - Uses OpenAI's embedding API, requires API key
245
+ - **ollama** - Uses local Ollama server
246
+
247
+ ## Troubleshooting
162
248
 
163
- Show the user a summary including:
164
- - Configuration scope
165
- - MCPs to install
166
- - Agent model assignments (in a table format)
249
+ ### "Memory worker not responding"
167
250
 
168
- Ask for confirmation before proceeding.
251
+ 1. Check if port 37777 is in use: `lsof -i :37777`
252
+ 2. Try a different port: `memoryWorkerPort: 37778`
253
+ 3. Check memory directory exists: `.goopspec/memory/`
169
254
 
170
- ## Step 7: Apply Configuration
255
+ ### "Configuration not loading"
171
256
 
172
- If the user confirms, call `goop_setup` with `action: "apply"` and the same parameters.
257
+ 1. Run `goop_setup(action: "verify")` to diagnose
258
+ 2. Check for JSON syntax errors in config files
259
+ 3. Try `goop_setup(action: "reset", scope: "project", confirmed: true)`
173
260
 
174
- ## Step 8: Verify and Complete
261
+ ### "MCPs not installing"
175
262
 
176
- After applying, summarize what was done:
177
- - List all agents and their assigned models
178
- - List MCPs installed
179
- - Show any warnings or notes
263
+ MCPs require OpenCode configuration. Check:
264
+ 1. OpenCode is installed and configured
265
+ 2. You have write permissions to ~/.config/opencode/
180
266
 
181
- Suggest next steps:
182
- - Run `/goop-status` to verify configuration
183
- - Start a new conversation to use GoopSpec
184
- - Try `/goop-discuss` to start your first spec-driven project
267
+ ## Tips
185
268
 
186
- ## Tips for the Model Picker
269
+ 1. **Start with detect** - Always check what's already configured
270
+ 2. **Use verify after changes** - Ensures everything works
271
+ 3. **Preserve data on reset** - Don't lose memories unless needed
272
+ 4. **Quick setup is fine** - Model defaults work well for most users
273
+ 5. **Local memory is best** - No API costs, runs offline
187
274
 
188
- 1. **Be conversational** - Don't just list options, explain the trade-offs
189
- 2. **Group similar agents** - You can ask about related agents together (e.g., "orchestrator + planner" or "explorer + librarian")
190
- 3. **Explain costs** - Opus models are more capable but expensive; free models (opencode/*) are great for budget-conscious users
191
- 4. **Allow skipping** - If a user says "use defaults for the rest", accept that
192
- 5. **Support bulk selection** - If a user says "use Claude Sonnet for everything", honor that
275
+ ## Complete Example
193
276
 
194
- ## Available Models
277
+ First-time setup:
195
278
 
196
- All models listed in the suggestions:
197
- - openai/gpt-5.2-codex
198
- - openai/gpt-5.2
199
- - anthropic/claude-opus-4-5
200
- - anthropic/claude-sonnet-4-5
201
- - anthropic/claude-haiku-4-5
202
- - google/antigravity-gemini-3-pro-high
203
- - google/antigravity-gemini-3-flash
204
- - opencode/kimi-k2.5-free
205
- - opencode/glm-4.7-free
206
- - opencode/minimax-m2.1-free
279
+ ```
280
+ // 1. Check current state
281
+ goop_setup(action: "detect")
282
+
283
+ // 2. Initialize everything
284
+ goop_setup(
285
+ action: "init",
286
+ scope: "both",
287
+ projectName: "my-project",
288
+ mcpPreset: "recommended",
289
+ memoryEnabled: true,
290
+ memoryProvider: "local",
291
+ enableOrchestrator: true
292
+ )
207
293
 
208
- Users can also enter any custom model name supported by their OpenCode installation.
294
+ // 3. Verify
295
+ goop_setup(action: "verify")
296
+ ```
297
+
298
+ Modify existing:
299
+
300
+ ```
301
+ // Update just the executor model
302
+ goop_setup(
303
+ action: "apply",
304
+ scope: "project",
305
+ agentModels: {
306
+ "goop-executor": "anthropic/claude-opus-4-5"
307
+ }
308
+ )
309
+ ```