@undeemed/get-shit-done-codex 1.6.12 → 1.20.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.
Files changed (114) hide show
  1. package/README.md +40 -7
  2. package/agents/gsd-codebase-mapper.md +761 -0
  3. package/agents/gsd-debugger.md +1198 -0
  4. package/agents/gsd-executor.md +419 -0
  5. package/agents/gsd-integration-checker.md +423 -0
  6. package/agents/gsd-phase-researcher.md +469 -0
  7. package/agents/gsd-plan-checker.md +622 -0
  8. package/agents/gsd-planner.md +1159 -0
  9. package/agents/gsd-project-researcher.md +618 -0
  10. package/agents/gsd-research-synthesizer.md +236 -0
  11. package/agents/gsd-roadmapper.md +639 -0
  12. package/agents/gsd-verifier.md +541 -0
  13. package/bin/install.js +108 -102
  14. package/commands/gsd/add-phase.md +17 -185
  15. package/commands/gsd/add-todo.md +23 -163
  16. package/commands/gsd/audit-milestone.md +3 -219
  17. package/commands/gsd/check-todos.md +20 -196
  18. package/commands/gsd/cleanup.md +18 -0
  19. package/commands/gsd/complete-milestone.md +2 -2
  20. package/commands/gsd/debug.md +13 -0
  21. package/commands/gsd/discuss-phase.md +13 -6
  22. package/commands/gsd/execute-phase.md +4 -266
  23. package/commands/gsd/health.md +22 -0
  24. package/commands/gsd/help.md +8 -369
  25. package/commands/gsd/insert-phase.md +9 -203
  26. package/commands/gsd/join-discord.md +18 -0
  27. package/commands/gsd/list-phase-assumptions.md +4 -4
  28. package/commands/gsd/map-codebase.md +1 -1
  29. package/commands/gsd/new-milestone.md +16 -682
  30. package/commands/gsd/new-project.md +12 -866
  31. package/commands/gsd/new-project.md.bak +1041 -0
  32. package/commands/gsd/pause-work.md +17 -105
  33. package/commands/gsd/plan-milestone-gaps.md +3 -247
  34. package/commands/gsd/plan-phase.md +13 -444
  35. package/commands/gsd/progress.md +5 -337
  36. package/commands/gsd/quick.md +40 -0
  37. package/commands/gsd/reapply-patches.md +110 -0
  38. package/commands/gsd/remove-phase.md +9 -315
  39. package/commands/gsd/research-phase.md +27 -20
  40. package/commands/gsd/resume-work.md +2 -2
  41. package/commands/gsd/set-profile.md +34 -0
  42. package/commands/gsd/settings.md +36 -0
  43. package/commands/gsd/update.md +25 -160
  44. package/commands/gsd/verify-work.md +6 -186
  45. package/get-shit-done/bin/gsd-tools.cjs +5243 -0
  46. package/get-shit-done/bin/gsd-tools.test.cjs +2273 -0
  47. package/get-shit-done/references/checkpoints.md +270 -283
  48. package/get-shit-done/references/decimal-phase-calculation.md +65 -0
  49. package/get-shit-done/references/git-integration.md +7 -13
  50. package/get-shit-done/references/git-planning-commit.md +38 -0
  51. package/get-shit-done/references/model-profile-resolution.md +34 -0
  52. package/get-shit-done/references/model-profiles.md +92 -0
  53. package/get-shit-done/references/phase-argument-parsing.md +61 -0
  54. package/get-shit-done/references/planning-config.md +196 -0
  55. package/get-shit-done/references/questioning.md +5 -1
  56. package/get-shit-done/references/verification-patterns.md +17 -0
  57. package/get-shit-done/templates/DEBUG.md +4 -4
  58. package/get-shit-done/templates/UAT.md +1 -1
  59. package/get-shit-done/templates/codebase/architecture.md +1 -1
  60. package/get-shit-done/templates/codebase/concerns.md +1 -1
  61. package/get-shit-done/templates/codebase/conventions.md +1 -1
  62. package/get-shit-done/templates/codebase/structure.md +9 -9
  63. package/get-shit-done/templates/config.json +10 -0
  64. package/get-shit-done/templates/context.md +7 -15
  65. package/get-shit-done/templates/continue-here.md +1 -1
  66. package/get-shit-done/templates/phase-prompt.md +32 -41
  67. package/get-shit-done/templates/planner-subagent-prompt.md +4 -4
  68. package/get-shit-done/templates/project.md +1 -1
  69. package/get-shit-done/templates/research-project/ARCHITECTURE.md +1 -1
  70. package/get-shit-done/templates/research.md +27 -4
  71. package/get-shit-done/templates/state.md +1 -31
  72. package/get-shit-done/templates/summary-complex.md +59 -0
  73. package/get-shit-done/templates/summary-minimal.md +41 -0
  74. package/get-shit-done/templates/summary-standard.md +48 -0
  75. package/get-shit-done/templates/summary.md +5 -28
  76. package/get-shit-done/templates/user-setup.md +8 -20
  77. package/get-shit-done/templates/verification-report.md +3 -3
  78. package/get-shit-done/workflows/add-phase.md +111 -0
  79. package/get-shit-done/workflows/add-todo.md +157 -0
  80. package/get-shit-done/workflows/audit-milestone.md +242 -0
  81. package/get-shit-done/workflows/check-todos.md +176 -0
  82. package/get-shit-done/workflows/cleanup.md +152 -0
  83. package/get-shit-done/workflows/complete-milestone.md +225 -301
  84. package/get-shit-done/workflows/diagnose-issues.md +3 -17
  85. package/get-shit-done/workflows/discovery-phase.md +11 -15
  86. package/get-shit-done/workflows/discuss-phase.md +105 -42
  87. package/get-shit-done/workflows/execute-phase.md +205 -349
  88. package/get-shit-done/workflows/execute-plan.md +179 -1569
  89. package/get-shit-done/workflows/health.md +156 -0
  90. package/get-shit-done/workflows/help.md +486 -0
  91. package/get-shit-done/workflows/insert-phase.md +129 -0
  92. package/get-shit-done/workflows/list-phase-assumptions.md +9 -9
  93. package/get-shit-done/workflows/map-codebase.md +56 -18
  94. package/get-shit-done/workflows/new-milestone.md +373 -0
  95. package/get-shit-done/workflows/new-project.md +1113 -0
  96. package/get-shit-done/workflows/pause-work.md +122 -0
  97. package/get-shit-done/workflows/plan-milestone-gaps.md +256 -0
  98. package/get-shit-done/workflows/plan-phase.md +448 -0
  99. package/get-shit-done/workflows/progress.md +393 -0
  100. package/get-shit-done/workflows/quick.md +444 -0
  101. package/get-shit-done/workflows/remove-phase.md +154 -0
  102. package/get-shit-done/workflows/research-phase.md +74 -0
  103. package/get-shit-done/workflows/resume-project.md +18 -23
  104. package/get-shit-done/workflows/set-profile.md +80 -0
  105. package/get-shit-done/workflows/settings.md +200 -0
  106. package/get-shit-done/workflows/transition.md +78 -103
  107. package/get-shit-done/workflows/update.md +214 -0
  108. package/get-shit-done/workflows/verify-phase.md +109 -496
  109. package/get-shit-done/workflows/verify-work.md +22 -15
  110. package/hooks/dist/gsd-check-update.js +66 -0
  111. package/hooks/dist/gsd-statusline.js +91 -0
  112. package/package.json +19 -3
  113. package/scripts/build-hooks.js +42 -0
  114. package/commands/gsd/whats-new.md +0 -124
@@ -28,6 +28,17 @@ ls .planning/debug/*.md 2>/dev/null | grep -v resolved | head -5
28
28
 
29
29
  <process>
30
30
 
31
+ ## 0. Initialize Context
32
+
33
+ ```bash
34
+ INIT=$(node ~/.codex/get-shit-done/bin/gsd-tools.cjs state load)
35
+ ```
36
+
37
+ Extract `commit_docs` from init JSON. Resolve debugger model:
38
+ ```bash
39
+ DEBUGGER_MODEL=$(node ~/.codex/get-shit-done/bin/gsd-tools.cjs resolve-model gsd-debugger --raw)
40
+ ```
41
+
31
42
  ## 1. Check Active Sessions
32
43
 
33
44
  If active sessions exist AND no $ARGUMENTS:
@@ -82,6 +93,7 @@ Create: .planning/debug/{slug}.md
82
93
  Task(
83
94
  prompt=filled_prompt,
84
95
  subagent_type="gsd-debugger",
96
+ model="{debugger_model}",
85
97
  description="Debug {slug}"
86
98
  )
87
99
  ```
@@ -134,6 +146,7 @@ goal: find_and_fix
134
146
  Task(
135
147
  prompt=continuation_prompt,
136
148
  subagent_type="gsd-debugger",
149
+ model="{debugger_model}",
137
150
  description="Continue debug {slug}"
138
151
  )
139
152
  ```
@@ -1,8 +1,15 @@
1
1
  ---
2
2
  name: gsd:discuss-phase
3
3
  description: Gather phase context through adaptive questioning before planning
4
- argument-hint: "<phase>"
5
- allowed-tools: [Read, Write, Bash, Glob, Grep, AskUserQuestion]
4
+ argument-hint: "<phase> [--auto]"
5
+ allowed-tools:
6
+ - Read
7
+ - Write
8
+ - Bash
9
+ - Glob
10
+ - Grep
11
+ - AskUserQuestion
12
+ - Task
6
13
  ---
7
14
 
8
15
  <objective>
@@ -14,12 +21,12 @@ Extract implementation decisions that downstream agents need — researcher and
14
21
  3. Deep-dive each selected area until satisfied
15
22
  4. Create CONTEXT.md with decisions that guide research and planning
16
23
 
17
- **Output:** `{phase}-CONTEXT.md` — decisions clear enough that downstream agents can act without asking the user again
24
+ **Output:** `{phase_num}-CONTEXT.md` — decisions clear enough that downstream agents can act without asking the user again
18
25
  </objective>
19
26
 
20
27
  <execution_context>
21
- @~/.claude/get-shit-done/workflows/discuss-phase.md
22
- @~/.claude/get-shit-done/templates/context.md
28
+ @~/.codex/get-shit-done/workflows/discuss-phase.md
29
+ @~/.codex/get-shit-done/templates/context.md
23
30
  </execution_context>
24
31
 
25
32
  <context>
@@ -63,7 +70,7 @@ Generate 3-4 **phase-specific** gray areas, not generic categories.
63
70
  - If more → ask 4 more, check again
64
71
  - After all areas → "Ready to create context?"
65
72
 
66
- **Do NOT ask about (Claude handles these):**
73
+ **Do NOT ask about (Codex handles these):**
67
74
  - Technical implementation
68
75
  - Architecture choices
69
76
  - Performance concerns
@@ -13,7 +13,6 @@ allowed-tools:
13
13
  - TodoWrite
14
14
  - AskUserQuestion
15
15
  ---
16
-
17
16
  <objective>
18
17
  Execute all plans in a phase using wave-based parallel execution.
19
18
 
@@ -23,8 +22,8 @@ Context budget: ~15% orchestrator, 100% fresh per subagent.
23
22
  </objective>
24
23
 
25
24
  <execution_context>
26
- @~/.claude/get-shit-done/references/ui-brand.md
27
- @~/.claude/get-shit-done/workflows/execute-phase.md
25
+ @~/.codex/get-shit-done/workflows/execute-phase.md
26
+ @~/.codex/get-shit-done/references/ui-brand.md
28
27
  </execution_context>
29
28
 
30
29
  <context>
@@ -38,267 +37,6 @@ Phase: $ARGUMENTS
38
37
  </context>
39
38
 
40
39
  <process>
41
- 1. **Validate phase exists**
42
- - Find phase directory matching argument
43
- - Count PLAN.md files
44
- - Error if no plans found
45
-
46
- 2. **Discover plans**
47
- - List all *-PLAN.md files in phase directory
48
- - Check which have *-SUMMARY.md (already complete)
49
- - If `--gaps-only`: filter to only plans with `gap_closure: true`
50
- - Build list of incomplete plans
51
-
52
- 3. **Group by wave**
53
- - Read `wave` from each plan's frontmatter
54
- - Group plans by wave number
55
- - Report wave structure to user
56
-
57
- 4. **Execute waves**
58
- For each wave in order:
59
- - Spawn `gsd-executor` for each plan in wave (parallel Task calls)
60
- - Wait for completion (Task blocks)
61
- - Verify SUMMARYs created
62
- - Proceed to next wave
63
-
64
- 5. **Aggregate results**
65
- - Collect summaries from all plans
66
- - Report phase completion status
67
-
68
- 6. **Commit any orchestrator corrections**
69
- Check for uncommitted changes before verification:
70
- ```bash
71
- git status --porcelain
72
- ```
73
-
74
- **If changes exist:** Orchestrator made corrections between executor completions. Commit them:
75
- ```bash
76
- git add -u && git commit -m "fix({phase}): orchestrator corrections"
77
- ```
78
-
79
- **If clean:** Continue to verification.
80
-
81
- 7. **Verify phase goal**
82
- - Spawn `gsd-verifier` subagent with phase directory and goal
83
- - Verifier checks must_haves against actual codebase (not SUMMARY claims)
84
- - Creates VERIFICATION.md with detailed report
85
- - Route by status:
86
- - `passed` → continue to step 8
87
- - `human_needed` → present items, get approval or feedback
88
- - `gaps_found` → present gaps, offer `/gsd:plan-phase {X} --gaps`
89
-
90
- 8. **Update roadmap and state**
91
- - Update ROADMAP.md, STATE.md
92
-
93
- 9. **Update requirements**
94
- Mark phase requirements as Complete:
95
- - Read ROADMAP.md, find this phase's `Requirements:` line (e.g., "AUTH-01, AUTH-02")
96
- - Read REQUIREMENTS.md traceability table
97
- - For each REQ-ID in this phase: change Status from "Pending" to "Complete"
98
- - Write updated REQUIREMENTS.md
99
- - Skip if: REQUIREMENTS.md doesn't exist, or phase has no Requirements line
100
-
101
- 10. **Commit phase completion**
102
- Bundle all phase metadata updates in one commit:
103
- - Stage: `git add .planning/ROADMAP.md .planning/STATE.md`
104
- - Stage REQUIREMENTS.md if updated: `git add .planning/REQUIREMENTS.md`
105
- - Commit: `docs({phase}): complete {phase-name} phase`
106
-
107
- 11. **Offer next steps**
108
- - Route to next action (see `<offer_next>`)
40
+ Execute the execute-phase workflow from @~/.codex/get-shit-done/workflows/execute-phase.md end-to-end.
41
+ Preserve all workflow gates (wave execution, checkpoint handling, verification, state updates, routing).
109
42
  </process>
110
-
111
- <offer_next>
112
- Output this markdown directly (not as a code block). Route based on status:
113
-
114
- | Status | Route |
115
- |--------|-------|
116
- | `gaps_found` | Route C (gap closure) |
117
- | `human_needed` | Present checklist, then re-route based on approval |
118
- | `passed` + more phases | Route A (next phase) |
119
- | `passed` + last phase | Route B (milestone complete) |
120
-
121
- ---
122
-
123
- **Route A: Phase verified, more phases remain**
124
-
125
- ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━
126
- GSD-CODEX ► PHASE {Z} COMPLETE ✓
127
- ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━
128
-
129
- **Phase {Z}: {Name}**
130
-
131
- {Y} plans executed
132
- Goal verified ✓
133
-
134
- ───────────────────────────────────────────────────────────────
135
-
136
- ## ▶ Next Up
137
-
138
- **Phase {Z+1}: {Name}** — {Goal from ROADMAP.md}
139
-
140
- /gsd:discuss-phase {Z+1} — gather context and clarify approach
141
-
142
- <sub>/clear first → fresh context window</sub>
143
-
144
- ───────────────────────────────────────────────────────────────
145
-
146
- **Also available:**
147
- - /gsd:plan-phase {Z+1} — skip discussion, plan directly
148
- - /gsd:verify-work {Z} — manual acceptance testing before continuing
149
-
150
- ───────────────────────────────────────────────────────────────
151
-
152
- ---
153
-
154
- **Route B: Phase verified, milestone complete**
155
-
156
- ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━
157
- GSD-CODEX ► MILESTONE COMPLETE 🎉
158
- ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━
159
-
160
- **v1.0**
161
-
162
- {N} phases completed
163
- All phase goals verified ✓
164
-
165
- ───────────────────────────────────────────────────────────────
166
-
167
- ## ▶ Next Up
168
-
169
- **Audit milestone** — verify requirements, cross-phase integration, E2E flows
170
-
171
- /gsd:audit-milestone
172
-
173
- <sub>/clear first → fresh context window</sub>
174
-
175
- ───────────────────────────────────────────────────────────────
176
-
177
- **Also available:**
178
- - /gsd:verify-work — manual acceptance testing
179
- - /gsd:complete-milestone — skip audit, archive directly
180
-
181
- ───────────────────────────────────────────────────────────────
182
-
183
- ---
184
-
185
- **Route C: Gaps found — need additional planning**
186
-
187
- ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━
188
- GSD-CODEX ► PHASE {Z} GAPS FOUND ⚠
189
- ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━
190
-
191
- **Phase {Z}: {Name}**
192
-
193
- Score: {N}/{M} must-haves verified
194
- Report: .planning/phases/{phase_dir}/{phase}-VERIFICATION.md
195
-
196
- ### What's Missing
197
-
198
- {Extract gap summaries from VERIFICATION.md}
199
-
200
- ───────────────────────────────────────────────────────────────
201
-
202
- ## ▶ Next Up
203
-
204
- **Plan gap closure** — create additional plans to complete the phase
205
-
206
- /gsd:plan-phase {Z} --gaps
207
-
208
- <sub>/clear first → fresh context window</sub>
209
-
210
- ───────────────────────────────────────────────────────────────
211
-
212
- **Also available:**
213
- - cat .planning/phases/{phase_dir}/{phase}-VERIFICATION.md — see full report
214
- - /gsd:verify-work {Z} — manual testing before planning
215
-
216
- ───────────────────────────────────────────────────────────────
217
-
218
- ---
219
-
220
- After user runs /gsd:plan-phase {Z} --gaps:
221
- 1. Planner reads VERIFICATION.md gaps
222
- 2. Creates plans 04, 05, etc. to close gaps
223
- 3. User runs /gsd:execute-phase {Z} again
224
- 4. Execute-phase runs incomplete plans (04, 05...)
225
- 5. Verifier runs again → loop until passed
226
- </offer_next>
227
-
228
- <wave_execution>
229
- **Parallel spawning:**
230
-
231
- Spawn all plans in a wave with a single message containing multiple Task calls:
232
-
233
- ```
234
- Task(prompt="Execute plan at {plan_01_path}\n\nPlan: @{plan_01_path}\nProject state: @.planning/STATE.md", subagent_type="gsd-executor")
235
- Task(prompt="Execute plan at {plan_02_path}\n\nPlan: @{plan_02_path}\nProject state: @.planning/STATE.md", subagent_type="gsd-executor")
236
- Task(prompt="Execute plan at {plan_03_path}\n\nPlan: @{plan_03_path}\nProject state: @.planning/STATE.md", subagent_type="gsd-executor")
237
- ```
238
-
239
- All three run in parallel. Task tool blocks until all complete.
240
-
241
- **No polling.** No background agents. No TaskOutput loops.
242
- </wave_execution>
243
-
244
- <checkpoint_handling>
245
- Plans with `autonomous: false` have checkpoints. The execute-phase.md workflow handles the full checkpoint flow:
246
- - Subagent pauses at checkpoint, returns structured state
247
- - Orchestrator presents to user, collects response
248
- - Spawns fresh continuation agent (not resume)
249
-
250
- See `@~/.claude/get-shit-done/workflows/execute-phase.md` step `checkpoint_handling` for complete details.
251
- </checkpoint_handling>
252
-
253
- <deviation_rules>
254
- During execution, handle discoveries automatically:
255
-
256
- 1. **Auto-fix bugs** - Fix immediately, document in Summary
257
- 2. **Auto-add critical** - Security/correctness gaps, add and document
258
- 3. **Auto-fix blockers** - Can't proceed without fix, do it and document
259
- 4. **Ask about architectural** - Major structural changes, stop and ask user
260
-
261
- Only rule 4 requires user intervention.
262
- </deviation_rules>
263
-
264
- <commit_rules>
265
- **Per-Task Commits:**
266
-
267
- After each task completes:
268
- 1. Stage only files modified by that task
269
- 2. Commit with format: `{type}({phase}-{plan}): {task-name}`
270
- 3. Types: feat, fix, test, refactor, perf, chore
271
- 4. Record commit hash for SUMMARY.md
272
-
273
- **Plan Metadata Commit:**
274
-
275
- After all tasks in a plan complete:
276
- 1. Stage plan artifacts only: PLAN.md, SUMMARY.md
277
- 2. Commit with format: `docs({phase}-{plan}): complete [plan-name] plan`
278
- 3. NO code files (already committed per-task)
279
-
280
- **Phase Completion Commit:**
281
-
282
- After all plans in phase complete (step 7):
283
- 1. Stage: ROADMAP.md, STATE.md, REQUIREMENTS.md (if updated), VERIFICATION.md
284
- 2. Commit with format: `docs({phase}): complete {phase-name} phase`
285
- 3. Bundles all phase-level state updates in one commit
286
-
287
- **NEVER use:**
288
- - `git add .`
289
- - `git add -A`
290
- - `git add src/` or any broad directory
291
-
292
- **Always stage files individually.**
293
- </commit_rules>
294
-
295
- <success_criteria>
296
- - [ ] All incomplete plans in phase executed
297
- - [ ] Each plan has SUMMARY.md
298
- - [ ] Phase goal verified (must_haves checked against codebase)
299
- - [ ] VERIFICATION.md created in phase directory
300
- - [ ] STATE.md reflects phase completion
301
- - [ ] ROADMAP.md updated
302
- - [ ] REQUIREMENTS.md updated (phase requirements marked Complete)
303
- - [ ] User informed of next steps
304
- </success_criteria>
@@ -0,0 +1,22 @@
1
+ ---
2
+ name: gsd:health
3
+ description: Diagnose planning directory health and optionally repair issues
4
+ argument-hint: [--repair]
5
+ allowed-tools:
6
+ - Read
7
+ - Bash
8
+ - Write
9
+ - AskUserQuestion
10
+ ---
11
+ <objective>
12
+ Validate `.planning/` directory integrity and report actionable issues. Checks for missing files, invalid configurations, inconsistent state, and orphaned plans.
13
+ </objective>
14
+
15
+ <execution_context>
16
+ @~/.codex/get-shit-done/workflows/health.md
17
+ </execution_context>
18
+
19
+ <process>
20
+ Execute the health workflow from @~/.codex/get-shit-done/workflows/health.md end-to-end.
21
+ Parse --repair flag from arguments and pass to workflow.
22
+ </process>