opencode-goopspec 0.1.2 → 0.1.3

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.
@@ -1,98 +1,64 @@
1
1
  ---
2
2
  name: goop-research
3
- description: Start the Research phase - explore implementation approaches
3
+ description: Launch research for unknowns or risks
4
+ agent: goop-researcher
5
+ spawn: true
6
+ phase: research
7
+ next-step: "Apply research findings to create or refine the plan"
8
+ next-command: /goop-plan
9
+ alternatives:
10
+ - command: /goop-research
11
+ when: "For additional research on related topics"
12
+ - command: /goop-specify
13
+ when: "If research confirms the plan is ready to lock"
4
14
  ---
5
15
 
6
- # GoopSpec Research
16
+ # /goop-research
7
17
 
8
- Gather context and explore implementation approaches before committing to a specification.
18
+ **Start the Research Phase.** Explore unknowns, compare options, and gather technical context.
9
19
 
10
20
  ## Usage
11
21
 
22
+ ```bash
23
+ /goop-research [topic or question]
12
24
  ```
13
- /goop-research
14
- ```
15
-
16
- ## Workflow Position
17
-
18
- ```
19
- ┌─────────────┐ ┌─────────────┐ ┌─────────────┐
20
- │ PLAN │ ──▶ │ RESEARCH │ ──▶ │ SPECIFY │
21
- │ (Intent) │ │ (Explore) │ │ (Contract) │
22
- └─────────────┘ └─────────────┘ └─────────────┘
23
-
24
- (You are here)
25
- ```
26
-
27
- The Research phase answers: **How should we build this?**
28
-
29
- ## What Happens
30
-
31
- 1. **Parallel Agent Spawning** - Multiple agents work simultaneously:
32
- - **Researcher** - Deep domain research (technologies, patterns, best practices)
33
- - **Explorer** - Codebase analysis (existing patterns, conventions, integration points)
34
- - **Librarian** - Documentation gathering (API docs, library guides, examples)
35
- - **Designer** - (UI tasks only) Visual research (patterns, components, UX)
36
25
 
37
- 2. **Research Areas Covered:**
38
- - Technology options and trade-offs
39
- - Existing codebase patterns
40
- - Domain knowledge and edge cases
41
- - Security and performance considerations
42
- - Industry standards and best practices
26
+ ## How It Works
43
27
 
44
- 3. **Consolidation** - Findings merged into RESEARCH.md with:
45
- - Technology recommendations
46
- - Codebase integration points
47
- - Key decisions needed
48
- - Risk assessment
49
- - Estimated complexity
28
+ Research is an **opt-in** phase used when the path forward isn't clear. It prevents "coding in the dark."
50
29
 
51
- 4. **Memory Integration** - Past research and patterns retrieved
30
+ ### 1. Scope Definition
31
+ The agent confirms what needs to be learned:
32
+ - Technical feasibility
33
+ - Library/Tool selection
34
+ - Architectural patterns
35
+ - Bug root cause analysis
52
36
 
53
- ## Artifacts Created
37
+ ### 2. Investigation
38
+ The `goop-researcher` subagent performs:
39
+ - **Web Search:** For latest docs and libraries.
40
+ - **Code Search:** For examples and usage patterns.
41
+ - **Memory Search:** For past learnings.
54
42
 
55
- - `RESEARCH.md` - Consolidated research findings
56
- - Technology comparison table
57
- - Recommended approach with rationale
58
- - Risk catalog
59
- - Integration points identified
43
+ ### 3. Synthesis
44
+ Findings are compiled into a structured report with a clear recommendation.
60
45
 
61
- ## Example
46
+ ## Output
62
47
 
63
- After planning "Add user authentication":
48
+ - `.goopspec/RESEARCH.md`: Detailed findings and trade-offs.
49
+ - **Memory:** Key learnings are persisted for future recall.
64
50
 
65
- ```
66
- /goop-research
67
- ```
68
-
69
- Research agents explore:
70
- - JWT vs session-based auth
71
- - Existing auth patterns in codebase
72
- - Security best practices
73
- - Library options (jose, jsonwebtoken, etc.)
74
- - Integration with current user model
75
-
76
- ## Next Steps
51
+ ## Transitions
77
52
 
78
- After research:
79
- - `/goop-specify` - Lock the specification (CONTRACT GATE)
53
+ - **Next Step:** `/goop-plan` to apply findings to a plan.
54
+ - **Loop:** `/goop-research` can be run multiple times for deep dives.
80
55
 
81
- ## Quick Mode Shortcut
56
+ ## Examples
82
57
 
83
- For Quick tasks, Research phase is **SKIPPED entirely**:
84
- - Assumes existing patterns are sufficient
85
- - No parallel agent spawning
86
- - Jumps directly from Plan to Execute
87
-
88
- ## Comprehensive Mode
89
-
90
- For Comprehensive tasks:
91
- - Deeper research per agent
92
- - More alternatives explored
93
- - Extended timeframe
94
- - User reviews RESEARCH.md before Specify
95
-
96
- ---
58
+ **Library Selection:**
59
+ > **User:** `/goop-research best react animation library for minimal bundle size`
60
+ > **Agent:** "I'll compare Framer Motion, React Spring, and a CSS-only approach."
97
61
 
98
- **GoopSpec**: Research thoroughly, decide confidently.
62
+ **Technical Feasibility:**
63
+ > **User:** `/goop-research can we use WebSockets on Vercel serverless?`
64
+ > **Agent:** "Investigating Vercel platform limits and workaround options like Pusher."
@@ -1,57 +1,36 @@
1
1
  ---
2
2
  name: goop-resume
3
- description: Resume from a checkpoint
3
+ description: Resume from a saved checkpoint
4
4
  ---
5
5
 
6
- # GoopSpec Resume
6
+ # /goop-resume
7
7
 
8
- Resume your work from a saved checkpoint.
8
+ **Resume from a checkpoint.** Restore context and continue work.
9
9
 
10
10
  ## Usage
11
11
 
12
- ```
12
+ ```bash
13
13
  /goop-resume [checkpoint-id]
14
14
  ```
15
15
 
16
- ## What Gets Restored
16
+ ## How It Works
17
17
 
18
- When resuming:
19
- - Session context is restored
20
- - Current phase is set
21
- - Active spec is loaded
22
- - Todos are displayed
23
- - Modified files list is shown
18
+ Loads a saved state, restores the workflow context, and prepares the agent to continue exactly where it left off.
24
19
 
25
- ## Without Checkpoint ID
20
+ ### Behavior
21
+ - **No ID:** Resumes the most recent checkpoint.
22
+ - **With ID:** Resumes specific checkpoint (e.g., `/goop-resume cp-123`).
26
23
 
27
- If no checkpoint ID is provided, loads the **most recent** checkpoint.
24
+ ### What Happens
25
+ 1. **Load State:** Reads the checkpoint JSON.
26
+ 2. **Restore Context:** Re-initializes the Orchestrator at the correct phase/wave.
27
+ 3. **Status Check:** Runs a quick status check to confirm environment matches.
28
+ 4. **Prompt:** Reminds user of the next pending task.
28
29
 
29
30
  ## Example
30
31
 
31
- ```
32
- /goop-resume
33
- ```
34
-
35
- Or specify a specific checkpoint:
36
- ```
37
- /goop-resume checkpoint-abc123
38
- ```
39
-
40
- ## Workflow
41
-
42
- 1. **Load checkpoint data**
43
- 2. **Restore session context**
44
- 3. **Display current todos**
45
- 4. **Show relevant files**
46
- 5. **Ready to continue work**
47
-
48
- ## See Available Checkpoints
49
-
50
- To list all checkpoints:
51
- ```
52
- Use the goop_checkpoint tool with action: "list"
53
- ```
54
-
55
- ---
56
-
57
- **GoopSpec**: Pick up exactly where you left off.
32
+ > **User:** `/goop-resume`
33
+ > **Agent:** "Resuming session from 2 hours ago.
34
+ > Phase: Execute (Wave 2).
35
+ > Next Task: [2.2] Implement handler.
36
+ > Ready to continue?"
@@ -1,208 +1,299 @@
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
+ ## First-Time Setup Flow
24
+
25
+ For users who haven't set up GoopSpec yet, use the `init` action.
26
+
27
+ ### Step 1: Detect Current State
13
28
 
14
29
  ```
15
30
  goop_setup(action: "detect")
16
31
  ```
17
32
 
18
- Review the output and share a brief summary with the user about their current state.
33
+ Review what's already configured. If nothing exists, proceed to full init.
34
+
35
+ ### Step 2: Ask for Project Name
36
+
37
+ Ask the user: "What's your project name?"
19
38
 
20
- ## Step 2: Configuration Scope
39
+ This will be stored in the configuration for context.
40
+
41
+ ### Step 3: Configuration Scope
21
42
 
22
43
  Ask: "Where should GoopSpec be configured?"
23
44
 
24
- Use the question tool to present these options:
45
+ Use the question tool:
25
46
  - **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)
47
+ - **global** - Only system-wide settings
48
+ - **project** - Only this project
28
49
 
29
- ## Step 3: MCP Preset
50
+ ### Step 4: MCP Preset
30
51
 
31
52
  Ask: "Which MCPs should be installed?"
32
53
 
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)
54
+ - **recommended** - Context7 + Exa + Playwright (full workflow support)
55
+ - **core** - Context7 + Exa only (minimal)
36
56
  - **none** - Skip MCP installation
37
57
 
38
- ## Step 4: Default Agent
58
+ ### Step 5: Memory System
39
59
 
40
- Ask: "Should GoopSpec be set as your default agent?"
60
+ Ask: "Would you like to enable the memory system?"
41
61
 
42
- Use the question tool:
43
- - **yes** - GoopSpec orchestrator will be the default for new sessions
44
- - **no** - Keep current default agent
62
+ The memory system allows GoopSpec to remember decisions, patterns, and context across sessions.
45
63
 
46
- ## Step 5: Model Configuration
64
+ If yes, ask about embedding provider:
65
+ - **local** (Recommended) - Uses local embeddings, no API needed
66
+ - **openai** - Uses OpenAI embeddings (requires API key)
67
+ - **ollama** - Uses local Ollama server
47
68
 
48
- This is the key step. Ask: "Would you like to configure models for each agent?"
69
+ ### Step 6: Model Configuration
49
70
 
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):
71
+ Ask: "Would you like to configure models for each agent?"
72
+
73
+ - **Quick setup** - Use recommended defaults
74
+ - **Custom setup** - Choose models individually
75
+
76
+ For custom setup, walk through each agent or accept shortcuts like "use Claude Sonnet for everything".
77
+
78
+ ### Step 7: Apply Init
79
+
80
+ Execute the initialization:
81
+
82
+ ```
83
+ goop_setup(
84
+ action: "init",
85
+ scope: "<scope>",
86
+ projectName: "<name>",
87
+ mcpPreset: "<preset>",
88
+ memoryEnabled: true,
89
+ memoryProvider: "local",
90
+ agentModels: { ... }
91
+ )
92
+ ```
93
+
94
+ ### Step 8: Verify Setup
95
+
96
+ After init completes, verify everything is working:
97
+
98
+ ```
99
+ goop_setup(action: "verify")
100
+ ```
101
+
102
+ Report any issues and suggest fixes.
103
+
104
+ ## Modifying Existing Setup
105
+
106
+ For users who already have GoopSpec configured:
107
+
108
+ ### Check Current Status
109
+
110
+ ```
111
+ goop_setup(action: "status")
112
+ ```
113
+
114
+ Shows what's currently configured.
115
+
116
+ ### Update Configuration
117
+
118
+ ```
119
+ goop_setup(
120
+ action: "apply",
121
+ scope: "project",
122
+ // Only include what you want to change
123
+ memoryEnabled: true,
124
+ agentModels: {
125
+ "goop-executor": "anthropic/claude-sonnet-4-5"
126
+ }
127
+ )
128
+ ```
129
+
130
+ ### Reset Configuration
131
+
132
+ If something is broken:
133
+
134
+ ```
135
+ goop_setup(
136
+ action: "reset",
137
+ scope: "project",
138
+ preserveData: true, // Keep memories, history, checkpoints
139
+ confirmed: true
140
+ )
141
+ ```
142
+
143
+ ## Agent Model Options
144
+
145
+ ### goop-debugger
146
+ *Systematic debugging with hypothesis testing*
74
147
  1. openai/gpt-5.2-codex
75
148
  2. anthropic/claude-opus-4-5
76
149
  3. opencode/kimi-k2.5-free
77
- - Custom model...
78
150
 
79
- **goop-designer** (Visual design planning and UI/UX reasoning):
151
+ ### goop-designer
152
+ *Visual design planning and UI/UX reasoning*
80
153
  1. anthropic/claude-opus-4-5
81
154
  2. opencode/kimi-k2.5-free
82
155
  3. google/antigravity-gemini-3-pro-high
83
- - Custom model...
84
156
 
85
- **goop-executor** (Task execution with checkpoints and verification):
157
+ ### goop-executor
158
+ *Task execution with checkpoints and verification*
86
159
  1. openai/gpt-5.2-codex
87
160
  2. anthropic/claude-opus-4-5
88
161
  3. anthropic/claude-sonnet-4-5
89
162
  4. opencode/kimi-k2.5-free
90
163
  5. google/antigravity-gemini-3-pro-high
91
164
  6. opencode/glm-4.7-free
92
- - Custom model...
93
165
 
94
- **goop-explorer** (Fast codebase exploration and pattern extraction):
166
+ ### goop-explorer
167
+ *Fast codebase exploration and pattern extraction*
95
168
  1. google/antigravity-gemini-3-flash
96
169
  2. anthropic/claude-haiku-4-5
97
170
  3. opencode/minimax-m2.1-free
98
- - Custom model...
99
171
 
100
- **goop-librarian** (Codebase search and documentation retrieval):
172
+ ### goop-librarian
173
+ *Codebase search and documentation retrieval*
101
174
  1. openai/gpt-5.2
102
175
  2. google/antigravity-gemini-3-flash
103
176
  3. anthropic/claude-sonnet-4-5
104
- - Custom model...
105
177
 
106
- **goop-orchestrator** (Primary orchestrator - spec clarity and wave execution):
178
+ ### goop-orchestrator
179
+ *Primary orchestrator - spec clarity and wave execution*
107
180
  1. anthropic/claude-opus-4-5
108
181
  2. openai/gpt-5.2-codex
109
182
  3. opencode/kimi-k2.5-free
110
183
  4. anthropic/claude-sonnet-4-5
111
- - Custom model...
112
184
 
113
- **goop-planner** (Detailed execution plans with architectural precision):
185
+ ### goop-planner
186
+ *Detailed execution plans with architectural precision*
114
187
  1. anthropic/claude-opus-4-5
115
188
  2. openai/gpt-5.2-codex
116
189
  3. opencode/kimi-k2.5-free
117
190
  4. anthropic/claude-sonnet-4-5
118
- - Custom model...
119
191
 
120
- **goop-researcher** (Comprehensive ecosystem research):
192
+ ### goop-researcher
193
+ *Comprehensive ecosystem research*
121
194
  1. openai/gpt-5.2
122
195
  2. anthropic/claude-sonnet-4-5
123
196
  3. opencode/kimi-k2.5-free
124
197
  4. opencode/glm-4.7-free
125
- - Custom model...
126
198
 
127
- **goop-tester** (Web frontend testing with Playwright):
199
+ ### goop-tester
200
+ *Web frontend testing with Playwright*
128
201
  1. opencode/kimi-k2.5-free
129
202
  2. anthropic/claude-sonnet-4-5
130
203
  3. google/antigravity-gemini-3-flash
131
- - Custom model...
132
204
 
133
- **goop-verifier** (Post-execution verification with security focus):
205
+ ### goop-verifier
206
+ *Post-execution verification with security focus*
134
207
  1. openai/gpt-5.2-codex
135
208
  2. anthropic/claude-opus-4-5
136
- - Custom model...
137
209
 
138
- **goop-writer** (Comprehensive documentation generation):
210
+ ### goop-writer
211
+ *Comprehensive documentation generation*
139
212
  1. google/antigravity-gemini-3-pro-high
140
213
  2. opencode/kimi-k2.5-free
141
214
  3. anthropic/claude-sonnet-4-5
142
- - Custom model...
143
215
 
144
- ## Step 6: Preview the Plan
216
+ ## Memory System Configuration
145
217
 
146
- After collecting all answers, call `goop_setup` with `action: "plan"` and the user's choices:
218
+ The memory system allows GoopSpec to:
219
+ - Remember decisions and their reasoning
220
+ - Recall patterns from past work
221
+ - Build context across sessions
147
222
 
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
- ```
223
+ ### Configuration Options
162
224
 
163
- Show the user a summary including:
164
- - Configuration scope
165
- - MCPs to install
166
- - Agent model assignments (in a table format)
225
+ | Option | Type | Default | Description |
226
+ |--------|------|---------|-------------|
227
+ | `memoryEnabled` | boolean | true | Enable/disable memory |
228
+ | `memoryProvider` | string | "local" | Embedding provider |
229
+ | `memoryWorkerPort` | number | 37777 | Worker process port |
167
230
 
168
- Ask for confirmation before proceeding.
231
+ ### Embedding Providers
169
232
 
170
- ## Step 7: Apply Configuration
233
+ - **local** - Uses `Xenova/all-MiniLM-L6-v2`, runs locally, free
234
+ - **openai** - Uses OpenAI's embedding API, requires API key
235
+ - **ollama** - Uses local Ollama server
171
236
 
172
- If the user confirms, call `goop_setup` with `action: "apply"` and the same parameters.
237
+ ## Troubleshooting
173
238
 
174
- ## Step 8: Verify and Complete
239
+ ### "Memory worker not responding"
175
240
 
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
241
+ 1. Check if port 37777 is in use: `lsof -i :37777`
242
+ 2. Try a different port: `memoryWorkerPort: 37778`
243
+ 3. Check memory directory exists: `.goopspec/memory/`
180
244
 
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
245
+ ### "Configuration not loading"
185
246
 
186
- ## Tips for the Model Picker
247
+ 1. Run `goop_setup(action: "verify")` to diagnose
248
+ 2. Check for JSON syntax errors in config files
249
+ 3. Try `goop_setup(action: "reset", scope: "project", confirmed: true)`
187
250
 
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
251
+ ### "MCPs not installing"
193
252
 
194
- ## Available Models
253
+ MCPs require OpenCode configuration. Check:
254
+ 1. OpenCode is installed and configured
255
+ 2. You have write permissions to ~/.config/opencode/
195
256
 
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
257
+ ## Tips
207
258
 
208
- Users can also enter any custom model name supported by their OpenCode installation.
259
+ 1. **Start with detect** - Always check what's already configured
260
+ 2. **Use verify after changes** - Ensures everything works
261
+ 3. **Preserve data on reset** - Don't lose memories unless needed
262
+ 4. **Quick setup is fine** - Model defaults work well for most users
263
+ 5. **Local memory is best** - No API costs, runs offline
264
+
265
+ ## Complete Example
266
+
267
+ First-time setup:
268
+
269
+ ```
270
+ // 1. Check current state
271
+ goop_setup(action: "detect")
272
+
273
+ // 2. Initialize everything
274
+ goop_setup(
275
+ action: "init",
276
+ scope: "both",
277
+ projectName: "my-project",
278
+ mcpPreset: "recommended",
279
+ memoryEnabled: true,
280
+ memoryProvider: "local",
281
+ enableOrchestrator: true
282
+ )
283
+
284
+ // 3. Verify
285
+ goop_setup(action: "verify")
286
+ ```
287
+
288
+ Modify existing:
289
+
290
+ ```
291
+ // Update just the executor model
292
+ goop_setup(
293
+ action: "apply",
294
+ scope: "project",
295
+ agentModels: {
296
+ "goop-executor": "anthropic/claude-opus-4-5"
297
+ }
298
+ )
299
+ ```