gsd-opencode 1.5.2 → 1.6.1

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 (108) hide show
  1. package/agents/gsd-codebase-mapper.md +743 -0
  2. package/agents/gsd-debugger.md +1191 -0
  3. package/agents/gsd-executor.md +759 -0
  4. package/agents/gsd-integration-checker.md +427 -0
  5. package/agents/gsd-phase-researcher.md +637 -0
  6. package/agents/gsd-plan-checker.md +749 -0
  7. package/agents/gsd-planner.md +1373 -0
  8. package/agents/gsd-project-researcher.md +877 -0
  9. package/agents/gsd-research-synthesizer.md +250 -0
  10. package/agents/gsd-roadmapper.md +610 -0
  11. package/agents/gsd-verifier.md +782 -0
  12. package/bin/install.js +11 -1
  13. package/command/gsd/add-phase.md +5 -7
  14. package/command/gsd/add-todo.md +4 -6
  15. package/command/gsd/audit-milestone.md +257 -0
  16. package/command/gsd/check-todos.md +2 -4
  17. package/command/gsd/complete-milestone.md +53 -23
  18. package/command/gsd/debug.md +120 -30
  19. package/command/gsd/discuss-phase.md +51 -30
  20. package/command/gsd/execute-phase.md +192 -26
  21. package/command/gsd/help.md +66 -75
  22. package/command/gsd/insert-phase.md +6 -6
  23. package/command/gsd/list-phase-assumptions.md +1 -1
  24. package/command/gsd/map-codebase.md +15 -28
  25. package/command/gsd/new-milestone.md +693 -36
  26. package/command/gsd/new-project.md +668 -108
  27. package/command/gsd/pause-work.md +2 -2
  28. package/command/gsd/plan-milestone-gaps.md +284 -0
  29. package/command/gsd/plan-phase.md +449 -42
  30. package/command/gsd/progress.md +66 -36
  31. package/command/gsd/remove-phase.md +17 -19
  32. package/command/gsd/research-phase.md +155 -67
  33. package/command/gsd/resume-work.md +3 -3
  34. package/command/gsd/update.md +172 -0
  35. package/command/gsd/verify-work.md +186 -38
  36. package/command/gsd/whats-new.md +124 -0
  37. package/get-shit-done/references/checkpoints.md +599 -98
  38. package/get-shit-done/references/continuation-format.md +5 -11
  39. package/get-shit-done/references/questioning.md +87 -108
  40. package/get-shit-done/references/tdd.md +3 -3
  41. package/get-shit-done/references/ui-brand.md +160 -0
  42. package/get-shit-done/references/verification-patterns.md +595 -0
  43. package/get-shit-done/templates/DEBUG.md +3 -3
  44. package/get-shit-done/templates/UAT.md +247 -0
  45. package/get-shit-done/templates/codebase/architecture.md +5 -5
  46. package/get-shit-done/templates/codebase/concerns.md +1 -1
  47. package/get-shit-done/templates/codebase/conventions.md +1 -1
  48. package/get-shit-done/templates/codebase/structure.md +8 -8
  49. package/get-shit-done/templates/codebase/testing.md +2 -2
  50. package/get-shit-done/templates/context.md +221 -70
  51. package/get-shit-done/templates/debug-subagent-prompt.md +91 -0
  52. package/get-shit-done/templates/discovery.md +5 -5
  53. package/get-shit-done/templates/phase-prompt.md +115 -2
  54. package/get-shit-done/templates/planner-subagent-prompt.md +117 -0
  55. package/get-shit-done/templates/requirements.md +231 -0
  56. package/get-shit-done/templates/research-project/ARCHITECTURE.md +204 -0
  57. package/get-shit-done/templates/research-project/FEATURES.md +147 -0
  58. package/get-shit-done/templates/research-project/PITFALLS.md +200 -0
  59. package/get-shit-done/templates/research-project/STACK.md +120 -0
  60. package/get-shit-done/templates/research-project/SUMMARY.md +170 -0
  61. package/get-shit-done/templates/research.md +2 -2
  62. package/get-shit-done/templates/roadmap.md +26 -20
  63. package/get-shit-done/templates/state.md +2 -17
  64. package/get-shit-done/templates/summary.md +13 -17
  65. package/get-shit-done/templates/user-setup.md +323 -0
  66. package/get-shit-done/templates/verification-report.md +322 -0
  67. package/get-shit-done/workflows/complete-milestone.md +152 -45
  68. package/get-shit-done/workflows/diagnose-issues.md +233 -0
  69. package/get-shit-done/workflows/discovery-phase.md +12 -17
  70. package/get-shit-done/workflows/discuss-phase.md +309 -124
  71. package/get-shit-done/workflows/execute-phase.md +177 -18
  72. package/get-shit-done/workflows/execute-plan.md +163 -145
  73. package/get-shit-done/workflows/map-codebase.md +86 -231
  74. package/get-shit-done/workflows/resume-project.md +18 -20
  75. package/get-shit-done/workflows/transition.md +7 -23
  76. package/get-shit-done/workflows/verify-phase.md +629 -0
  77. package/get-shit-done/workflows/verify-work.md +495 -134
  78. package/package.json +2 -1
  79. package/command/gsd/consider-issues.md +0 -201
  80. package/command/gsd/create-roadmap.md +0 -115
  81. package/command/gsd/discuss-milestone.md +0 -47
  82. package/command/gsd/execute-plan.md +0 -103
  83. package/command/gsd/plan-fix.md +0 -205
  84. package/command/gsd/status.md +0 -127
  85. package/get-shit-done/references/debugging/debugging-mindset.md +0 -253
  86. package/get-shit-done/references/debugging/hypothesis-testing.md +0 -373
  87. package/get-shit-done/references/debugging/investigation-techniques.md +0 -337
  88. package/get-shit-done/references/debugging/verification-patterns.md +0 -425
  89. package/get-shit-done/references/debugging/when-to-research.md +0 -361
  90. package/get-shit-done/references/plan-format.md +0 -475
  91. package/get-shit-done/references/principles.md +0 -157
  92. package/get-shit-done/references/research-pitfalls.md +0 -215
  93. package/get-shit-done/references/scope-estimation.md +0 -256
  94. package/get-shit-done/templates/agent-history.md +0 -263
  95. package/get-shit-done/templates/checkpoint-return.md +0 -204
  96. package/get-shit-done/templates/config.json +0 -26
  97. package/get-shit-done/templates/continuation-prompt.md +0 -235
  98. package/get-shit-done/templates/issues.md +0 -32
  99. package/get-shit-done/templates/milestone-context.md +0 -93
  100. package/get-shit-done/templates/subagent-task-prompt.md +0 -95
  101. package/get-shit-done/templates/uat-issues.md +0 -143
  102. package/get-shit-done/workflows/_archive/execute-phase.md +0 -899
  103. package/get-shit-done/workflows/create-milestone.md +0 -416
  104. package/get-shit-done/workflows/create-roadmap.md +0 -481
  105. package/get-shit-done/workflows/debug.md +0 -426
  106. package/get-shit-done/workflows/discuss-milestone.md +0 -236
  107. package/get-shit-done/workflows/plan-phase.md +0 -701
  108. package/get-shit-done/workflows/research-phase.md +0 -436
@@ -1,263 +0,0 @@
1
- # Agent History Template
2
-
3
- Template for `.planning/agent-history.json` - tracks subagent spawns during plan execution for resume capability.
4
-
5
- ---
6
-
7
- ## File Template
8
-
9
- ```json
10
- {
11
- "version": "1.2",
12
- "max_entries": 50,
13
- "entries": []
14
- }
15
- ```
16
-
17
- ## Entry Schema
18
-
19
- Each entry tracks a subagent spawn or status change:
20
-
21
- ```json
22
- {
23
- "agent_id": "agent_01HXXXX...",
24
- "task_description": "Execute tasks 1-3 from plan 02-01",
25
- "phase": "02",
26
- "plan": "01",
27
- "segment": 1,
28
- "timestamp": "2026-01-15T14:22:10Z",
29
- "status": "spawned",
30
- "completion_timestamp": null,
31
- "execution_mode": "sequential",
32
- "parallel_group": null,
33
- "granularity": "plan",
34
- "depends_on": null,
35
- "files_modified": null,
36
- "checkpoints_skipped": null,
37
- "task_results": null
38
- }
39
- ```
40
-
41
- ### Field Definitions
42
-
43
- | Field | Type | Description |
44
- |-------|------|-------------|
45
- | agent_id | string | Unique ID returned by Task tool |
46
- | task_description | string | Brief description of what agent is executing |
47
- | phase | string | Phase number (e.g., "02", "02.1") |
48
- | plan | string | Plan number within phase |
49
- | segment | number/null | Segment number for segmented plans, null for full plan |
50
- | timestamp | string | ISO 8601 timestamp when agent was spawned |
51
- | status | string | spawned, completed, interrupted, resumed, queued, failed |
52
- | completion_timestamp | string/null | ISO timestamp when completed |
53
- | execution_mode | string | "sequential" or "parallel" |
54
- | parallel_group | string/null | Batch ID linking agents in same parallel execution |
55
- | granularity | string | "plan" or "task_group" |
56
- | depends_on | array/null | Agent IDs or plan refs this depends on |
57
- | files_modified | array/null | Files this agent created/modified |
58
- | checkpoints_skipped | number/null | Count of checkpoints skipped in background |
59
- | task_results | object/null | Per-task outcomes for task-level parallelization |
60
-
61
- ### Status Lifecycle
62
-
63
- ```
64
- queued ──> spawned ──────────────────> completed
65
- │ ^
66
- │ │
67
- ├──> interrupted ──> resumed┘
68
-
69
- └──> failed
70
- ```
71
-
72
- - **queued**: Waiting for dependency (parallel execution only)
73
- - **spawned**: Agent created via Task tool, execution in progress
74
- - **completed**: Agent finished successfully, results received
75
- - **interrupted**: Session ended before agent completed (detected on resume)
76
- - **resumed**: Previously interrupted agent resumed via resume parameter
77
- - **failed**: Agent execution failed (error during execution)
78
-
79
- ## Usage
80
-
81
- ### When to Create File
82
-
83
- Create `.planning/agent-history.json` from this template when:
84
- - First subagent spawn in execute-plan workflow
85
- - File doesn't exist yet
86
-
87
- ### When to Add Entry
88
-
89
- Add new entry immediately after Task tool returns with agent_id:
90
-
91
- ```
92
- 1. Task tool spawns subagent
93
- 2. Response includes agent_id
94
- 3. Write agent_id to .planning/current-agent-id.txt
95
- 4. Append entry to agent-history.json with status "spawned"
96
- ```
97
-
98
- ### When to Update Entry
99
-
100
- Update existing entry when:
101
-
102
- **On successful completion:**
103
- ```json
104
- {
105
- "status": "completed",
106
- "completion_timestamp": "2026-01-15T14:45:33Z"
107
- }
108
- ```
109
-
110
- **On resume detection (interrupted agent found):**
111
- ```json
112
- {
113
- "status": "interrupted"
114
- }
115
- ```
116
-
117
- Then add new entry with resumed status:
118
- ```json
119
- {
120
- "agent_id": "agent_01HXXXX...",
121
- "status": "resumed",
122
- "timestamp": "2026-01-15T15:00:00Z"
123
- }
124
- ```
125
-
126
- ### Entry Retention
127
-
128
- - Keep maximum 50 entries (configurable via max_entries)
129
- - On exceeding limit, remove oldest completed entries first
130
- - Never remove entries with status "spawned" (may need resume)
131
- - Prune during init_agent_tracking step
132
-
133
- ## Example Entries
134
-
135
- ### Sequential Execution (Default)
136
-
137
- ```json
138
- {
139
- "agent_id": "agent_01HXY123ABC",
140
- "task_description": "Execute full plan 02-01 (autonomous)",
141
- "phase": "02",
142
- "plan": "01",
143
- "segment": null,
144
- "timestamp": "2026-01-15T14:22:10Z",
145
- "status": "completed",
146
- "completion_timestamp": "2026-01-15T14:45:33Z",
147
- "execution_mode": "sequential",
148
- "parallel_group": null,
149
- "granularity": "plan",
150
- "depends_on": null,
151
- "files_modified": ["src/api/auth.ts", "src/types/user.ts"],
152
- "checkpoints_skipped": null,
153
- "task_results": null
154
- }
155
- ```
156
-
157
- ### Parallel Execution (Plan-Level)
158
-
159
- Independent plans in a phase running in parallel:
160
-
161
- ```json
162
- {
163
- "agent_id": "agent_01HXYZ123",
164
- "task_description": "Execute plan 05-01 (parallel)",
165
- "phase": "05",
166
- "plan": "01",
167
- "segment": null,
168
- "timestamp": "2026-01-12T10:00:00Z",
169
- "status": "completed",
170
- "completion_timestamp": "2026-01-12T10:15:00Z",
171
- "execution_mode": "parallel",
172
- "parallel_group": "phase-05-batch-1736676000",
173
- "granularity": "plan",
174
- "depends_on": null,
175
- "files_modified": ["src/auth/login.ts", "src/auth/types.ts"],
176
- "checkpoints_skipped": 1,
177
- "task_results": null
178
- }
179
- ```
180
-
181
- ### Queued with Dependency
182
-
183
- Agent waiting for another to complete:
184
-
185
- ```json
186
- {
187
- "agent_id": "agent_01HXYZ456",
188
- "task_description": "Execute plan 05-03 (depends on 05-01)",
189
- "phase": "05",
190
- "plan": "03",
191
- "segment": null,
192
- "timestamp": "2026-01-12T10:15:00Z",
193
- "status": "spawned",
194
- "completion_timestamp": null,
195
- "execution_mode": "parallel",
196
- "parallel_group": "phase-05-batch-1736676000",
197
- "granularity": "plan",
198
- "depends_on": ["agent_01HXYZ123"],
199
- "files_modified": null,
200
- "checkpoints_skipped": null,
201
- "task_results": null
202
- }
203
- ```
204
-
205
- ### Parallel Group Format
206
-
207
- - **Plan-level parallel:** `phase-{phase}-batch-{timestamp}`
208
- - **Task-level parallel:** `plan-{phase}-{plan}-tasks-batch-{timestamp}`
209
-
210
- Example: `phase-05-batch-1736676000` groups all agents executing Phase 5 plans in parallel.
211
-
212
- ## Parallel Execution Resume
213
-
214
- When a session is interrupted during parallel execution:
215
-
216
- ### Detection
217
-
218
- Check for entries with `status: "spawned"` and `parallel_group` set. These are agents that were running when session ended.
219
-
220
- ```bash
221
- # Find interrupted parallel agents
222
- jq '.entries[] | select(.status == "spawned" and .parallel_group != null)' .planning/agent-history.json
223
- ```
224
-
225
- ### Resume Options
226
-
227
- 1. **Resume batch:** Resume all interrupted agents in the parallel group
228
- 2. **Resume single:** Resume a specific agent by ID
229
- 3. **Start fresh:** Abandon interrupted batch, start new execution
230
-
231
- ### Resume Command
232
-
233
- `/gsd-resume-task` accepts:
234
- - No argument: Resume most recent interrupted agent
235
- - Agent ID: Resume specific agent
236
- - `--batch`: Resume entire parallel group
237
-
238
- ### Conflict Detection
239
-
240
- Before resuming, check for file modifications since spawn:
241
-
242
- ```bash
243
- git diff --name-only ${SPAWN_COMMIT}..HEAD
244
- ```
245
-
246
- If files modified by another agent conflict with files this agent modifies, warn user before proceeding. This prevents overwriting work done by other parallel agents that completed after the interruption.
247
-
248
- ## Related Files
249
-
250
- - `.planning/current-agent-id.txt`: Single line with currently active agent ID (for quick resume lookup)
251
- - `.planning/STATE.md`: Project state including session continuity info
252
-
253
- ---
254
-
255
- ## Template Notes
256
-
257
- **When to create:** First subagent spawn during execute-plan workflow.
258
-
259
- **Location:** `.planning/agent-history.json`
260
-
261
- **Companion file:** `.planning/current-agent-id.txt` (single agent ID, overwritten on each spawn)
262
-
263
- **Purpose:** Enable resume capability for interrupted subagent executions via Task tool's resume parameter.
@@ -1,204 +0,0 @@
1
- # Checkpoint Return Template
2
-
3
- Structured format for subagent checkpoint returns. Enables orchestrator to spawn continuation agents without relying on resume.
4
-
5
- ---
6
-
7
- ## Template
8
-
9
- ```markdown
10
- ## CHECKPOINT REACHED
11
-
12
- **Type:** [human-verify | decision | human-action]
13
- **Plan:** {phase}-{plan}
14
- **Progress:** {completed}/{total} tasks complete
15
-
16
- ### Completed Tasks
17
-
18
- | Task | Name | Commit | Files |
19
- |------|------|--------|-------|
20
- | 1 | [task name] | [hash] | [key files created/modified] |
21
- | 2 | [task name] | [hash] | [key files created/modified] |
22
-
23
- ### Current Task
24
-
25
- **Task {N}:** [task name]
26
- **Status:** [blocked | awaiting verification | awaiting decision]
27
- **Blocked by:** [specific blocker - auth required, user verification needed, decision needed]
28
-
29
- ### Checkpoint Details
30
-
31
- [Checkpoint-specific content based on type - see below]
32
-
33
- ### Awaiting
34
-
35
- [What user needs to do/provide]
36
- ```
37
-
38
- ---
39
-
40
- ## Checkpoint Type Details
41
-
42
- ### For human-verify
43
-
44
- ```markdown
45
- ### Checkpoint Details
46
-
47
- **What was built:**
48
- [Description of completed work]
49
-
50
- **How to verify:**
51
- 1. [Step 1 - exact command/URL]
52
- 2. [Step 2 - what to check]
53
- 3. [Step 3 - expected behavior]
54
-
55
- ### Awaiting
56
-
57
- Type "approved" or describe issues to fix.
58
- ```
59
-
60
- ### For human-action
61
-
62
- ```markdown
63
- ### Checkpoint Details
64
-
65
- **Automation attempted:**
66
- [What OpenCode tried to do]
67
-
68
- **Error encountered:**
69
- [Exact error message or auth failure]
70
-
71
- **What you need to do:**
72
- 1. [Step 1]
73
- 2. [Step 2]
74
-
75
- **I'll verify after:**
76
- [How OpenCode will confirm completion]
77
-
78
- ### Awaiting
79
-
80
- Type "done" when complete.
81
- ```
82
-
83
- ### For decision
84
-
85
- ```markdown
86
- ### Checkpoint Details
87
-
88
- **Decision needed:**
89
- [What's being decided]
90
-
91
- **Context:**
92
- [Why this matters]
93
-
94
- **Options:**
95
-
96
- | Option | Pros | Cons |
97
- |--------|------|------|
98
- | [option-a] | [benefits] | [tradeoffs] |
99
- | [option-b] | [benefits] | [tradeoffs] |
100
-
101
- ### Awaiting
102
-
103
- Select: [option-a | option-b | ...]
104
- ```
105
-
106
- ---
107
-
108
- ## Why This Structure
109
-
110
- **Completed Tasks table:** Orchestrator knows exactly what's done. Fresh agent won't redo work.
111
-
112
- **Commit hashes:** Verification that work was committed. Fresh agent can check git log.
113
-
114
- **Files column:** Quick reference for what exists. Fresh agent can verify state.
115
-
116
- **Current Task + Blocked by:** Precise continuation point. Fresh agent knows exactly where to pick up.
117
-
118
- **Checkpoint Details:** User-facing content. Orchestrator presents this directly.
119
-
120
- ---
121
-
122
- ## Example: Auth Gate
123
-
124
- ```markdown
125
- ## CHECKPOINT REACHED
126
-
127
- **Type:** human-action
128
- **Plan:** 01-01
129
- **Progress:** 1/3 tasks complete
130
-
131
- ### Completed Tasks
132
-
133
- | Task | Name | Commit | Files |
134
- |------|------|--------|-------|
135
- | 1 | Initialize Next.js 15 project | d6fe73f | package.json, tsconfig.json, next.config.js, app/ |
136
-
137
- ### Current Task
138
-
139
- **Task 2:** Initialize Convex backend
140
- **Status:** blocked
141
- **Blocked by:** Convex CLI authentication required
142
-
143
- ### Checkpoint Details
144
-
145
- **Automation attempted:**
146
- Ran `npx convex dev` to initialize Convex backend
147
-
148
- **Error encountered:**
149
- "Error: Not authenticated. Run `npx convex login` first."
150
-
151
- **What you need to do:**
152
- 1. Run: `npx convex login`
153
- 2. Complete browser authentication
154
- 3. Run: `npx convex dev`
155
- 4. Create project named "convex-saas-community" when prompted
156
-
157
- **I'll verify after:**
158
- `cat .env.local | grep CONVEX` returns the Convex URL
159
-
160
- ### Awaiting
161
-
162
- Type "done" when Convex is authenticated and project created.
163
- ```
164
-
165
- ---
166
-
167
- ## Example: Visual Verification
168
-
169
- ```markdown
170
- ## CHECKPOINT REACHED
171
-
172
- **Type:** human-verify
173
- **Plan:** 03-02
174
- **Progress:** 2/3 tasks complete
175
-
176
- ### Completed Tasks
177
-
178
- | Task | Name | Commit | Files |
179
- |------|------|--------|-------|
180
- | 1 | Create dashboard layout | a1b2c3d | src/app/dashboard/layout.tsx, src/components/Sidebar.tsx |
181
- | 2 | Add responsive navigation | e4f5g6h | src/components/NavBar.tsx, src/styles/nav.css |
182
-
183
- ### Current Task
184
-
185
- **Task 3:** Verify responsive behavior
186
- **Status:** awaiting verification
187
- **Blocked by:** Human visual verification required
188
-
189
- ### Checkpoint Details
190
-
191
- **What was built:**
192
- Responsive dashboard with collapsible sidebar navigation
193
-
194
- **How to verify:**
195
- 1. Run: `npm run dev`
196
- 2. Visit: http://localhost:3000/dashboard
197
- 3. Desktop (>1024px): Sidebar visible on left, content on right
198
- 4. Tablet (768px): Sidebar collapses to icons
199
- 5. Mobile (375px): Sidebar hidden, hamburger menu appears
200
-
201
- ### Awaiting
202
-
203
- Type "approved" or describe issues to fix.
204
- ```
@@ -1,26 +0,0 @@
1
- {
2
- "mode": "interactive",
3
- "depth": "standard",
4
- "parallelization": {
5
- "enabled": true,
6
- "plan_level": true,
7
- "task_level": false,
8
- "skip_checkpoints": true,
9
- "max_concurrent_agents": 3,
10
- "min_plans_for_parallel": 2
11
- },
12
- "gates": {
13
- "confirm_project": true,
14
- "confirm_phases": true,
15
- "confirm_roadmap": true,
16
- "confirm_breakdown": true,
17
- "confirm_plan": true,
18
- "execute_next_plan": true,
19
- "issues_review": true,
20
- "confirm_transition": true
21
- },
22
- "safety": {
23
- "always_confirm_destructive": true,
24
- "always_confirm_external_services": true
25
- }
26
- }