@howlil/ez-agents 2.0.0

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 (183) hide show
  1. package/LICENSE +21 -0
  2. package/README.md +845 -0
  3. package/README.zh-CN.md +702 -0
  4. package/agents/ez-codebase-mapper.md +770 -0
  5. package/agents/ez-debugger.md +1255 -0
  6. package/agents/ez-executor.md +487 -0
  7. package/agents/ez-integration-checker.md +443 -0
  8. package/agents/ez-nyquist-auditor.md +176 -0
  9. package/agents/ez-phase-researcher.md +553 -0
  10. package/agents/ez-plan-checker.md +706 -0
  11. package/agents/ez-planner.md +1307 -0
  12. package/agents/ez-project-researcher.md +629 -0
  13. package/agents/ez-research-synthesizer.md +247 -0
  14. package/agents/ez-roadmapper.md +650 -0
  15. package/agents/ez-ui-auditor.md +441 -0
  16. package/agents/ez-ui-checker.md +302 -0
  17. package/agents/ez-ui-researcher.md +355 -0
  18. package/agents/ez-verifier.md +579 -0
  19. package/bin/install.js +2862 -0
  20. package/bin/update.js +214 -0
  21. package/commands/ez/add-phase.md +43 -0
  22. package/commands/ez/add-tests.md +41 -0
  23. package/commands/ez/add-todo.md +47 -0
  24. package/commands/ez/audit-milestone.md +36 -0
  25. package/commands/ez/autonomous.md +41 -0
  26. package/commands/ez/check-todos.md +45 -0
  27. package/commands/ez/cleanup.md +18 -0
  28. package/commands/ez/complete-milestone.md +136 -0
  29. package/commands/ez/debug.md +168 -0
  30. package/commands/ez/discuss-phase.md +90 -0
  31. package/commands/ez/execute-phase.md +41 -0
  32. package/commands/ez/health.md +22 -0
  33. package/commands/ez/help.md +22 -0
  34. package/commands/ez/insert-phase.md +32 -0
  35. package/commands/ez/join-discord.md +18 -0
  36. package/commands/ez/list-phase-assumptions.md +46 -0
  37. package/commands/ez/map-codebase.md +71 -0
  38. package/commands/ez/new-milestone.md +44 -0
  39. package/commands/ez/new-project.md +42 -0
  40. package/commands/ez/pause-work.md +38 -0
  41. package/commands/ez/plan-milestone-gaps.md +34 -0
  42. package/commands/ez/plan-phase.md +45 -0
  43. package/commands/ez/progress.md +24 -0
  44. package/commands/ez/quick.md +45 -0
  45. package/commands/ez/reapply-patches.md +124 -0
  46. package/commands/ez/remove-phase.md +31 -0
  47. package/commands/ez/research-phase.md +190 -0
  48. package/commands/ez/resume-work.md +40 -0
  49. package/commands/ez/set-profile.md +34 -0
  50. package/commands/ez/settings.md +36 -0
  51. package/commands/ez/stats.md +18 -0
  52. package/commands/ez/ui-phase.md +34 -0
  53. package/commands/ez/ui-review.md +32 -0
  54. package/commands/ez/update.md +37 -0
  55. package/commands/ez/validate-phase.md +35 -0
  56. package/commands/ez/verify-work.md +38 -0
  57. package/get-shit-done/bin/ez-tools.cjs +598 -0
  58. package/get-shit-done/bin/lib/assistant-adapter.cjs +205 -0
  59. package/get-shit-done/bin/lib/audit-exec.cjs +150 -0
  60. package/get-shit-done/bin/lib/auth.cjs +175 -0
  61. package/get-shit-done/bin/lib/circuit-breaker.cjs +118 -0
  62. package/get-shit-done/bin/lib/commands.cjs +666 -0
  63. package/get-shit-done/bin/lib/config.cjs +183 -0
  64. package/get-shit-done/bin/lib/core.cjs +495 -0
  65. package/get-shit-done/bin/lib/file-lock.cjs +236 -0
  66. package/get-shit-done/bin/lib/frontmatter.cjs +299 -0
  67. package/get-shit-done/bin/lib/fs-utils.cjs +153 -0
  68. package/get-shit-done/bin/lib/git-utils.cjs +203 -0
  69. package/get-shit-done/bin/lib/health-check.cjs +163 -0
  70. package/get-shit-done/bin/lib/index.cjs +113 -0
  71. package/get-shit-done/bin/lib/init.cjs +710 -0
  72. package/get-shit-done/bin/lib/logger.cjs +117 -0
  73. package/get-shit-done/bin/lib/milestone.cjs +241 -0
  74. package/get-shit-done/bin/lib/model-provider.cjs +146 -0
  75. package/get-shit-done/bin/lib/phase.cjs +908 -0
  76. package/get-shit-done/bin/lib/retry.cjs +119 -0
  77. package/get-shit-done/bin/lib/roadmap.cjs +305 -0
  78. package/get-shit-done/bin/lib/safe-exec.cjs +128 -0
  79. package/get-shit-done/bin/lib/safe-path.cjs +130 -0
  80. package/get-shit-done/bin/lib/state.cjs +721 -0
  81. package/get-shit-done/bin/lib/temp-file.cjs +239 -0
  82. package/get-shit-done/bin/lib/template.cjs +222 -0
  83. package/get-shit-done/bin/lib/test-file-lock.cjs +112 -0
  84. package/get-shit-done/bin/lib/test-graceful.cjs +93 -0
  85. package/get-shit-done/bin/lib/test-logger.cjs +60 -0
  86. package/get-shit-done/bin/lib/test-safe-exec.cjs +38 -0
  87. package/get-shit-done/bin/lib/test-safe-path.cjs +33 -0
  88. package/get-shit-done/bin/lib/test-temp-file.cjs +125 -0
  89. package/get-shit-done/bin/lib/timeout-exec.cjs +62 -0
  90. package/get-shit-done/bin/lib/verify.cjs +820 -0
  91. package/get-shit-done/references/checkpoints.md +776 -0
  92. package/get-shit-done/references/continuation-format.md +249 -0
  93. package/get-shit-done/references/decimal-phase-calculation.md +65 -0
  94. package/get-shit-done/references/git-integration.md +248 -0
  95. package/get-shit-done/references/git-planning-commit.md +38 -0
  96. package/get-shit-done/references/model-profile-resolution.md +34 -0
  97. package/get-shit-done/references/model-profiles.md +93 -0
  98. package/get-shit-done/references/phase-argument-parsing.md +61 -0
  99. package/get-shit-done/references/planning-config.md +200 -0
  100. package/get-shit-done/references/questioning.md +162 -0
  101. package/get-shit-done/references/tdd.md +263 -0
  102. package/get-shit-done/references/ui-brand.md +160 -0
  103. package/get-shit-done/references/verification-patterns.md +612 -0
  104. package/get-shit-done/templates/DEBUG.md +164 -0
  105. package/get-shit-done/templates/UAT.md +247 -0
  106. package/get-shit-done/templates/UI-SPEC.md +100 -0
  107. package/get-shit-done/templates/VALIDATION.md +76 -0
  108. package/get-shit-done/templates/codebase/architecture.md +255 -0
  109. package/get-shit-done/templates/codebase/concerns.md +310 -0
  110. package/get-shit-done/templates/codebase/conventions.md +307 -0
  111. package/get-shit-done/templates/codebase/integrations.md +280 -0
  112. package/get-shit-done/templates/codebase/stack.md +186 -0
  113. package/get-shit-done/templates/codebase/structure.md +285 -0
  114. package/get-shit-done/templates/codebase/testing.md +480 -0
  115. package/get-shit-done/templates/config.json +37 -0
  116. package/get-shit-done/templates/context.md +352 -0
  117. package/get-shit-done/templates/continue-here.md +78 -0
  118. package/get-shit-done/templates/copilot-instructions.md +7 -0
  119. package/get-shit-done/templates/debug-subagent-prompt.md +91 -0
  120. package/get-shit-done/templates/discovery.md +146 -0
  121. package/get-shit-done/templates/milestone-archive.md +123 -0
  122. package/get-shit-done/templates/milestone.md +115 -0
  123. package/get-shit-done/templates/phase-prompt.md +610 -0
  124. package/get-shit-done/templates/planner-subagent-prompt.md +117 -0
  125. package/get-shit-done/templates/project.md +184 -0
  126. package/get-shit-done/templates/requirements.md +231 -0
  127. package/get-shit-done/templates/research-project/ARCHITECTURE.md +204 -0
  128. package/get-shit-done/templates/research-project/FEATURES.md +147 -0
  129. package/get-shit-done/templates/research-project/PITFALLS.md +200 -0
  130. package/get-shit-done/templates/research-project/STACK.md +120 -0
  131. package/get-shit-done/templates/research-project/SUMMARY.md +170 -0
  132. package/get-shit-done/templates/research.md +552 -0
  133. package/get-shit-done/templates/retrospective.md +54 -0
  134. package/get-shit-done/templates/roadmap.md +202 -0
  135. package/get-shit-done/templates/state.md +176 -0
  136. package/get-shit-done/templates/summary-complex.md +59 -0
  137. package/get-shit-done/templates/summary-minimal.md +41 -0
  138. package/get-shit-done/templates/summary-standard.md +48 -0
  139. package/get-shit-done/templates/summary.md +248 -0
  140. package/get-shit-done/templates/user-setup.md +311 -0
  141. package/get-shit-done/templates/verification-report.md +322 -0
  142. package/get-shit-done/workflows/add-phase.md +112 -0
  143. package/get-shit-done/workflows/add-tests.md +351 -0
  144. package/get-shit-done/workflows/add-todo.md +158 -0
  145. package/get-shit-done/workflows/audit-milestone.md +332 -0
  146. package/get-shit-done/workflows/autonomous.md +743 -0
  147. package/get-shit-done/workflows/check-todos.md +177 -0
  148. package/get-shit-done/workflows/cleanup.md +152 -0
  149. package/get-shit-done/workflows/complete-milestone.md +766 -0
  150. package/get-shit-done/workflows/diagnose-issues.md +219 -0
  151. package/get-shit-done/workflows/discovery-phase.md +289 -0
  152. package/get-shit-done/workflows/discuss-phase.md +762 -0
  153. package/get-shit-done/workflows/execute-phase.md +468 -0
  154. package/get-shit-done/workflows/execute-plan.md +483 -0
  155. package/get-shit-done/workflows/health.md +159 -0
  156. package/get-shit-done/workflows/help.md +492 -0
  157. package/get-shit-done/workflows/insert-phase.md +130 -0
  158. package/get-shit-done/workflows/list-phase-assumptions.md +178 -0
  159. package/get-shit-done/workflows/map-codebase.md +316 -0
  160. package/get-shit-done/workflows/new-milestone.md +384 -0
  161. package/get-shit-done/workflows/new-project.md +1111 -0
  162. package/get-shit-done/workflows/node-repair.md +92 -0
  163. package/get-shit-done/workflows/pause-work.md +122 -0
  164. package/get-shit-done/workflows/plan-milestone-gaps.md +274 -0
  165. package/get-shit-done/workflows/plan-phase.md +651 -0
  166. package/get-shit-done/workflows/progress.md +382 -0
  167. package/get-shit-done/workflows/quick.md +610 -0
  168. package/get-shit-done/workflows/remove-phase.md +155 -0
  169. package/get-shit-done/workflows/research-phase.md +74 -0
  170. package/get-shit-done/workflows/resume-project.md +307 -0
  171. package/get-shit-done/workflows/set-profile.md +81 -0
  172. package/get-shit-done/workflows/settings.md +242 -0
  173. package/get-shit-done/workflows/stats.md +57 -0
  174. package/get-shit-done/workflows/transition.md +544 -0
  175. package/get-shit-done/workflows/ui-phase.md +290 -0
  176. package/get-shit-done/workflows/ui-review.md +157 -0
  177. package/get-shit-done/workflows/update.md +320 -0
  178. package/get-shit-done/workflows/validate-phase.md +167 -0
  179. package/get-shit-done/workflows/verify-phase.md +243 -0
  180. package/get-shit-done/workflows/verify-work.md +584 -0
  181. package/package.json +55 -0
  182. package/scripts/build-hooks.js +43 -0
  183. package/scripts/run-tests.cjs +29 -0
@@ -0,0 +1,584 @@
1
+ <purpose>
2
+ Validate built features through conversational testing with persistent state. Creates UAT.md that tracks test progress, survives /clear, and feeds gaps into /ez:plan-phase --gaps.
3
+
4
+ User tests, Claude records. One test at a time. Plain text responses.
5
+ </purpose>
6
+
7
+ <philosophy>
8
+ **Show expected, ask if reality matches.**
9
+
10
+ Claude presents what SHOULD happen. User confirms or describes what's different.
11
+ - "yes" / "y" / "next" / empty → pass
12
+ - Anything else → logged as issue, severity inferred
13
+
14
+ No Pass/Fail buttons. No severity questions. Just: "Here's what should happen. Does it?"
15
+ </philosophy>
16
+
17
+ <template>
18
+ @~/.claude/get-shit-done/templates/UAT.md
19
+ </template>
20
+
21
+ <process>
22
+
23
+ <step name="initialize" priority="first">
24
+ If $ARGUMENTS contains a phase number, load context:
25
+
26
+ ```bash
27
+ INIT=$(node "$HOME/.claude/ez-agents/bin/ez-tools.cjs" init verify-work "${PHASE_ARG}")
28
+ if [[ "$INIT" == @file:* ]]; then INIT=$(cat "${INIT#@file:}"); fi
29
+ ```
30
+
31
+ Parse JSON for: `planner_model`, `checker_model`, `commit_docs`, `phase_found`, `phase_dir`, `phase_number`, `phase_name`, `has_verification`.
32
+ </step>
33
+
34
+ <step name="check_active_session">
35
+ **First: Check for active UAT sessions**
36
+
37
+ ```bash
38
+ find .planning/phases -name "*-UAT.md" -type f 2>/dev/null | head -5
39
+ ```
40
+
41
+ **If active sessions exist AND no $ARGUMENTS provided:**
42
+
43
+ Read each file's frontmatter (status, phase) and Current Test section.
44
+
45
+ Display inline:
46
+
47
+ ```
48
+ ## Active UAT Sessions
49
+
50
+ | # | Phase | Status | Current Test | Progress |
51
+ |---|-------|--------|--------------|----------|
52
+ | 1 | 04-comments | testing | 3. Reply to Comment | 2/6 |
53
+ | 2 | 05-auth | testing | 1. Login Form | 0/4 |
54
+
55
+ Reply with a number to resume, or provide a phase number to start new.
56
+ ```
57
+
58
+ Wait for user response.
59
+
60
+ - If user replies with number (1, 2) → Load that file, go to `resume_from_file`
61
+ - If user replies with phase number → Treat as new session, go to `create_uat_file`
62
+
63
+ **If active sessions exist AND $ARGUMENTS provided:**
64
+
65
+ Check if session exists for that phase. If yes, offer to resume or restart.
66
+ If no, continue to `create_uat_file`.
67
+
68
+ **If no active sessions AND no $ARGUMENTS:**
69
+
70
+ ```
71
+ No active UAT sessions.
72
+
73
+ Provide a phase number to start testing (e.g., /ez:verify-work 4)
74
+ ```
75
+
76
+ **If no active sessions AND $ARGUMENTS provided:**
77
+
78
+ Continue to `create_uat_file`.
79
+ </step>
80
+
81
+ <step name="find_summaries">
82
+ **Find what to test:**
83
+
84
+ Use `phase_dir` from init (or run init if not already done).
85
+
86
+ ```bash
87
+ ls "$phase_dir"/*-SUMMARY.md 2>/dev/null
88
+ ```
89
+
90
+ Read each SUMMARY.md to extract testable deliverables.
91
+ </step>
92
+
93
+ <step name="extract_tests">
94
+ **Extract testable deliverables from SUMMARY.md:**
95
+
96
+ Parse for:
97
+ 1. **Accomplishments** - Features/functionality added
98
+ 2. **User-facing changes** - UI, workflows, interactions
99
+
100
+ Focus on USER-OBSERVABLE outcomes, not implementation details.
101
+
102
+ For each deliverable, create a test:
103
+ - name: Brief test name
104
+ - expected: What the user should see/experience (specific, observable)
105
+
106
+ Examples:
107
+ - Accomplishment: "Added comment threading with infinite nesting"
108
+ → Test: "Reply to a Comment"
109
+ → Expected: "Clicking Reply opens inline composer below comment. Submitting shows reply nested under parent with visual indentation."
110
+
111
+ Skip internal/non-observable items (refactors, type changes, etc.).
112
+
113
+ **Cold-start smoke test injection:**
114
+
115
+ After extracting tests from SUMMARYs, scan the SUMMARY files for modified/created file paths. If ANY path matches these patterns:
116
+
117
+ `server.ts`, `server.js`, `app.ts`, `app.js`, `index.ts`, `index.js`, `main.ts`, `main.js`, `database/*`, `db/*`, `seed/*`, `seeds/*`, `migrations/*`, `startup*`, `docker-compose*`, `Dockerfile*`
118
+
119
+ Then **prepend** this test to the test list:
120
+
121
+ - name: "Cold Start Smoke Test"
122
+ - expected: "Kill any running server/service. Clear ephemeral state (temp DBs, caches, lock files). Start the application from scratch. Server boots without errors, any seed/migration completes, and a primary query (health check, homepage load, or basic API call) returns live data."
123
+
124
+ This catches bugs that only manifest on fresh start — race conditions in startup sequences, silent seed failures, missing environment setup — which pass against warm state but break in production.
125
+ </step>
126
+
127
+ <step name="create_uat_file">
128
+ **Create UAT file with all tests:**
129
+
130
+ ```bash
131
+ mkdir -p "$PHASE_DIR"
132
+ ```
133
+
134
+ Build test list from extracted deliverables.
135
+
136
+ Create file:
137
+
138
+ ```markdown
139
+ ---
140
+ status: testing
141
+ phase: XX-name
142
+ source: [list of SUMMARY.md files]
143
+ started: [ISO timestamp]
144
+ updated: [ISO timestamp]
145
+ ---
146
+
147
+ ## Current Test
148
+ <!-- OVERWRITE each test - shows where we are -->
149
+
150
+ number: 1
151
+ name: [first test name]
152
+ expected: |
153
+ [what user should observe]
154
+ awaiting: user response
155
+
156
+ ## Tests
157
+
158
+ ### 1. [Test Name]
159
+ expected: [observable behavior]
160
+ result: [pending]
161
+
162
+ ### 2. [Test Name]
163
+ expected: [observable behavior]
164
+ result: [pending]
165
+
166
+ ...
167
+
168
+ ## Summary
169
+
170
+ total: [N]
171
+ passed: 0
172
+ issues: 0
173
+ pending: [N]
174
+ skipped: 0
175
+
176
+ ## Gaps
177
+
178
+ [none yet]
179
+ ```
180
+
181
+ Write to `.planning/phases/XX-name/{phase_num}-UAT.md`
182
+
183
+ Proceed to `present_test`.
184
+ </step>
185
+
186
+ <step name="present_test">
187
+ **Present current test to user:**
188
+
189
+ Read Current Test section from UAT file.
190
+
191
+ Display using checkpoint box format:
192
+
193
+ ```
194
+ ╔══════════════════════════════════════════════════════════════╗
195
+ ║ CHECKPOINT: Verification Required ║
196
+ ╚══════════════════════════════════════════════════════════════╝
197
+
198
+ **Test {number}: {name}**
199
+
200
+ {expected}
201
+
202
+ ──────────────────────────────────────────────────────────────
203
+ → Type "pass" or describe what's wrong
204
+ ──────────────────────────────────────────────────────────────
205
+ ```
206
+
207
+ Wait for user response (plain text, no AskUserQuestion).
208
+ </step>
209
+
210
+ <step name="process_response">
211
+ **Process user response and update file:**
212
+
213
+ **If response indicates pass:**
214
+ - Empty response, "yes", "y", "ok", "pass", "next", "approved", "✓"
215
+
216
+ Update Tests section:
217
+ ```
218
+ ### {N}. {name}
219
+ expected: {expected}
220
+ result: pass
221
+ ```
222
+
223
+ **If response indicates skip:**
224
+ - "skip", "can't test", "n/a"
225
+
226
+ Update Tests section:
227
+ ```
228
+ ### {N}. {name}
229
+ expected: {expected}
230
+ result: skipped
231
+ reason: [user's reason if provided]
232
+ ```
233
+
234
+ **If response is anything else:**
235
+ - Treat as issue description
236
+
237
+ Infer severity from description:
238
+ - Contains: crash, error, exception, fails, broken, unusable → blocker
239
+ - Contains: doesn't work, wrong, missing, can't → major
240
+ - Contains: slow, weird, off, minor, small → minor
241
+ - Contains: color, font, spacing, alignment, visual → cosmetic
242
+ - Default if unclear: major
243
+
244
+ Update Tests section:
245
+ ```
246
+ ### {N}. {name}
247
+ expected: {expected}
248
+ result: issue
249
+ reported: "{verbatim user response}"
250
+ severity: {inferred}
251
+ ```
252
+
253
+ Append to Gaps section (structured YAML for plan-phase --gaps):
254
+ ```yaml
255
+ - truth: "{expected behavior from test}"
256
+ status: failed
257
+ reason: "User reported: {verbatim user response}"
258
+ severity: {inferred}
259
+ test: {N}
260
+ artifacts: [] # Filled by diagnosis
261
+ missing: [] # Filled by diagnosis
262
+ ```
263
+
264
+ **After any response:**
265
+
266
+ Update Summary counts.
267
+ Update frontmatter.updated timestamp.
268
+
269
+ If more tests remain → Update Current Test, go to `present_test`
270
+ If no more tests → Go to `complete_session`
271
+ </step>
272
+
273
+ <step name="resume_from_file">
274
+ **Resume testing from UAT file:**
275
+
276
+ Read the full UAT file.
277
+
278
+ Find first test with `result: [pending]`.
279
+
280
+ Announce:
281
+ ```
282
+ Resuming: Phase {phase} UAT
283
+ Progress: {passed + issues + skipped}/{total}
284
+ Issues found so far: {issues count}
285
+
286
+ Continuing from Test {N}...
287
+ ```
288
+
289
+ Update Current Test section with the pending test.
290
+ Proceed to `present_test`.
291
+ </step>
292
+
293
+ <step name="complete_session">
294
+ **Complete testing and commit:**
295
+
296
+ Update frontmatter:
297
+ - status: complete
298
+ - updated: [now]
299
+
300
+ Clear Current Test section:
301
+ ```
302
+ ## Current Test
303
+
304
+ [testing complete]
305
+ ```
306
+
307
+ Commit the UAT file:
308
+ ```bash
309
+ node "$HOME/.claude/ez-agents/bin/ez-tools.cjs" commit "test({phase_num}): complete UAT - {passed} passed, {issues} issues" --files ".planning/phases/XX-name/{phase_num}-UAT.md"
310
+ ```
311
+
312
+ Present summary:
313
+ ```
314
+ ## UAT Complete: Phase {phase}
315
+
316
+ | Result | Count |
317
+ |--------|-------|
318
+ | Passed | {N} |
319
+ | Issues | {N} |
320
+ | Skipped| {N} |
321
+
322
+ [If issues > 0:]
323
+ ### Issues Found
324
+
325
+ [List from Issues section]
326
+ ```
327
+
328
+ **If issues > 0:** Proceed to `diagnose_issues`
329
+
330
+ **If issues == 0:**
331
+ ```
332
+ All tests passed. Ready to continue.
333
+
334
+ - `/ez:plan-phase {next}` — Plan next phase
335
+ - `/ez:execute-phase {next}` — Execute next phase
336
+ - `/ez:ui-review {phase}` — visual quality audit (if frontend files were modified)
337
+ ```
338
+ </step>
339
+
340
+ <step name="diagnose_issues">
341
+ **Diagnose root causes before planning fixes:**
342
+
343
+ ```
344
+ ---
345
+
346
+ {N} issues found. Diagnosing root causes...
347
+
348
+ Spawning parallel debug agents to investigate each issue.
349
+ ```
350
+
351
+ - Load diagnose-issues workflow
352
+ - Follow @~/.claude/get-shit-done/workflows/diagnose-issues.md
353
+ - Spawn parallel debug agents for each issue
354
+ - Collect root causes
355
+ - Update UAT.md with root causes
356
+ - Proceed to `plan_gap_closure`
357
+
358
+ Diagnosis runs automatically - no user prompt. Parallel agents investigate simultaneously, so overhead is minimal and fixes are more accurate.
359
+ </step>
360
+
361
+ <step name="plan_gap_closure">
362
+ **Auto-plan fixes from diagnosed gaps:**
363
+
364
+ Display:
365
+ ```
366
+ ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━
367
+ GSD ► PLANNING FIXES
368
+ ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━
369
+
370
+ ◆ Spawning planner for gap closure...
371
+ ```
372
+
373
+ Spawn gsd-planner in --gaps mode:
374
+
375
+ ```
376
+ Task(
377
+ prompt="""
378
+ <planning_context>
379
+
380
+ **Phase:** {phase_number}
381
+ **Mode:** gap_closure
382
+
383
+ <files_to_read>
384
+ - {phase_dir}/{phase_num}-UAT.md (UAT with diagnoses)
385
+ - .planning/STATE.md (Project State)
386
+ - .planning/ROADMAP.md (Roadmap)
387
+ </files_to_read>
388
+
389
+ </planning_context>
390
+
391
+ <downstream_consumer>
392
+ Output consumed by /ez:execute-phase
393
+ Plans must be executable prompts.
394
+ </downstream_consumer>
395
+ """,
396
+ subagent_type="ez-planner",
397
+ model="{planner_model}",
398
+ description="Plan gap fixes for Phase {phase}"
399
+ )
400
+ ```
401
+
402
+ On return:
403
+ - **PLANNING COMPLETE:** Proceed to `verify_gap_plans`
404
+ - **PLANNING INCONCLUSIVE:** Report and offer manual intervention
405
+ </step>
406
+
407
+ <step name="verify_gap_plans">
408
+ **Verify fix plans with checker:**
409
+
410
+ Display:
411
+ ```
412
+ ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━
413
+ GSD ► VERIFYING FIX PLANS
414
+ ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━
415
+
416
+ ◆ Spawning plan checker...
417
+ ```
418
+
419
+ Initialize: `iteration_count = 1`
420
+
421
+ Spawn ez-plan-checker:
422
+
423
+ ```
424
+ Task(
425
+ prompt="""
426
+ <verification_context>
427
+
428
+ **Phase:** {phase_number}
429
+ **Phase Goal:** Close diagnosed gaps from UAT
430
+
431
+ <files_to_read>
432
+ - {phase_dir}/*-PLAN.md (Plans to verify)
433
+ </files_to_read>
434
+
435
+ </verification_context>
436
+
437
+ <expected_output>
438
+ Return one of:
439
+ - ## VERIFICATION PASSED — all checks pass
440
+ - ## ISSUES FOUND — structured issue list
441
+ </expected_output>
442
+ """,
443
+ subagent_type="ez-plan-checker",
444
+ model="{checker_model}",
445
+ description="Verify Phase {phase} fix plans"
446
+ )
447
+ ```
448
+
449
+ On return:
450
+ - **VERIFICATION PASSED:** Proceed to `present_ready`
451
+ - **ISSUES FOUND:** Proceed to `revision_loop`
452
+ </step>
453
+
454
+ <step name="revision_loop">
455
+ **Iterate planner ↔ checker until plans pass (max 3):**
456
+
457
+ **If iteration_count < 3:**
458
+
459
+ Display: `Sending back to planner for revision... (iteration {N}/3)`
460
+
461
+ Spawn ez-planner with revision context:
462
+
463
+ ```
464
+ Task(
465
+ prompt="""
466
+ <revision_context>
467
+
468
+ **Phase:** {phase_number}
469
+ **Mode:** revision
470
+
471
+ <files_to_read>
472
+ - {phase_dir}/*-PLAN.md (Existing plans)
473
+ </files_to_read>
474
+
475
+ **Checker issues:**
476
+ {structured_issues_from_checker}
477
+
478
+ </revision_context>
479
+
480
+ <instructions>
481
+ Read existing PLAN.md files. Make targeted updates to address checker issues.
482
+ Do NOT replan from scratch unless issues are fundamental.
483
+ </instructions>
484
+ """,
485
+ subagent_type="ez-planner",
486
+ model="{planner_model}",
487
+ description="Revise Phase {phase} plans"
488
+ )
489
+ ```
490
+
491
+ After planner returns → spawn checker again (verify_gap_plans logic)
492
+ Increment iteration_count
493
+
494
+ **If iteration_count >= 3:**
495
+
496
+ Display: `Max iterations reached. {N} issues remain.`
497
+
498
+ Offer options:
499
+ 1. Force proceed (execute despite issues)
500
+ 2. Provide guidance (user gives direction, retry)
501
+ 3. Abandon (exit, user runs /ez:plan-phase manually)
502
+
503
+ Wait for user response.
504
+ </step>
505
+
506
+ <step name="present_ready">
507
+ **Present completion and next steps:**
508
+
509
+ ```
510
+ ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━
511
+ GSD ► FIXES READY ✓
512
+ ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━
513
+
514
+ **Phase {X}: {Name}** — {N} gap(s) diagnosed, {M} fix plan(s) created
515
+
516
+ | Gap | Root Cause | Fix Plan |
517
+ |-----|------------|----------|
518
+ | {truth 1} | {root_cause} | {phase}-04 |
519
+ | {truth 2} | {root_cause} | {phase}-04 |
520
+
521
+ Plans verified and ready for execution.
522
+
523
+ ───────────────────────────────────────────────────────────────
524
+
525
+ ## ▶ Next Up
526
+
527
+ **Execute fixes** — run fix plans
528
+
529
+ `/clear` then `/ez:execute-phase {phase} --gaps-only`
530
+
531
+ ───────────────────────────────────────────────────────────────
532
+ ```
533
+ </step>
534
+
535
+ </process>
536
+
537
+ <update_rules>
538
+ **Batched writes for efficiency:**
539
+
540
+ Keep results in memory. Write to file only when:
541
+ 1. **Issue found** — Preserve the problem immediately
542
+ 2. **Session complete** — Final write before commit
543
+ 3. **Checkpoint** — Every 5 passed tests (safety net)
544
+
545
+ | Section | Rule | When Written |
546
+ |---------|------|--------------|
547
+ | Frontmatter.status | OVERWRITE | Start, complete |
548
+ | Frontmatter.updated | OVERWRITE | On any file write |
549
+ | Current Test | OVERWRITE | On any file write |
550
+ | Tests.{N}.result | OVERWRITE | On any file write |
551
+ | Summary | OVERWRITE | On any file write |
552
+ | Gaps | APPEND | When issue found |
553
+
554
+ On context reset: File shows last checkpoint. Resume from there.
555
+ </update_rules>
556
+
557
+ <severity_inference>
558
+ **Infer severity from user's natural language:**
559
+
560
+ | User says | Infer |
561
+ |-----------|-------|
562
+ | "crashes", "error", "exception", "fails completely" | blocker |
563
+ | "doesn't work", "nothing happens", "wrong behavior" | major |
564
+ | "works but...", "slow", "weird", "minor issue" | minor |
565
+ | "color", "spacing", "alignment", "looks off" | cosmetic |
566
+
567
+ Default to **major** if unclear. User can correct if needed.
568
+
569
+ **Never ask "how severe is this?"** - just infer and move on.
570
+ </severity_inference>
571
+
572
+ <success_criteria>
573
+ - [ ] UAT file created with all tests from SUMMARY.md
574
+ - [ ] Tests presented one at a time with expected behavior
575
+ - [ ] User responses processed as pass/issue/skip
576
+ - [ ] Severity inferred from description (never asked)
577
+ - [ ] Batched writes: on issue, every 5 passes, or completion
578
+ - [ ] Committed on completion
579
+ - [ ] If issues: parallel debug agents diagnose root causes
580
+ - [ ] If issues: gsd-planner creates fix plans (gap_closure mode)
581
+ - [ ] If issues: gsd-plan-checker verifies fix plans
582
+ - [ ] If issues: revision loop until plans pass (max 3 iterations)
583
+ - [ ] Ready for `/ez:execute-phase --gaps-only` when complete
584
+ </success_criteria>
package/package.json ADDED
@@ -0,0 +1,55 @@
1
+ {
2
+ "name": "@howlil/ez-agents",
3
+ "version": "2.0.0",
4
+ "description": "EZ Agents — Meta-prompting with multi-model support (Qwen, Kimi, OpenAI)",
5
+ "bin": {
6
+ "ez-agents": "bin/install.js",
7
+ "ez-agents-update": "bin/update.js"
8
+ },
9
+ "files": [
10
+ "bin",
11
+ "commands",
12
+ "get-shit-done",
13
+ "agents",
14
+ "hooks/dist",
15
+ "scripts"
16
+ ],
17
+ "keywords": [
18
+ "claude",
19
+ "claude-code",
20
+ "ai",
21
+ "meta-prompting",
22
+ "context-engineering",
23
+ "spec-driven-development",
24
+ "gemini",
25
+ "gemini-cli",
26
+ "codex",
27
+ "codex-cli",
28
+ "ez-agents",
29
+ "agent-orchestration"
30
+ ],
31
+ "author": "TÂCHES",
32
+ "license": "MIT",
33
+ "repository": {
34
+ "type": "git",
35
+ "url": "git+https://github.com/howlil/ez-agents.git"
36
+ },
37
+ "homepage": "https://github.com/howlil/ez-agents",
38
+ "bugs": {
39
+ "url": "https://github.com/howlil/ez-agents/issues"
40
+ },
41
+ "engines": {
42
+ "node": ">=16.7.0"
43
+ },
44
+ "devDependencies": {
45
+ "c8": "^11.0.0",
46
+ "esbuild": "^0.24.2",
47
+ "proper-lockfile": "^4.1.2"
48
+ },
49
+ "scripts": {
50
+ "build:hooks": "node scripts/build-hooks.js",
51
+ "prepublishOnly": "npm run build:hooks",
52
+ "test": "node scripts/run-tests.cjs",
53
+ "test:coverage": "c8 --check-coverage --lines 70 --reporter text --include 'get-shit-done/bin/lib/*.cjs' --exclude 'tests/**' --all node scripts/run-tests.cjs"
54
+ }
55
+ }
@@ -0,0 +1,43 @@
1
+ #!/usr/bin/env node
2
+ /**
3
+ * Copy GSD hooks to dist for installation.
4
+ */
5
+
6
+ const fs = require('fs');
7
+ const path = require('path');
8
+
9
+ const HOOKS_DIR = path.join(__dirname, '..', 'hooks');
10
+ const DIST_DIR = path.join(HOOKS_DIR, 'dist');
11
+
12
+ // Hooks to copy (pure Node.js, no bundling needed)
13
+ const HOOKS_TO_COPY = [
14
+ 'gsd-check-update.js',
15
+ 'gsd-context-monitor.js',
16
+ 'gsd-statusline.js'
17
+ ];
18
+
19
+ function build() {
20
+ // Ensure dist directory exists
21
+ if (!fs.existsSync(DIST_DIR)) {
22
+ fs.mkdirSync(DIST_DIR, { recursive: true });
23
+ }
24
+
25
+ // Copy hooks to dist
26
+ for (const hook of HOOKS_TO_COPY) {
27
+ const src = path.join(HOOKS_DIR, hook);
28
+ const dest = path.join(DIST_DIR, hook);
29
+
30
+ if (!fs.existsSync(src)) {
31
+ console.warn(`Warning: ${hook} not found, skipping`);
32
+ continue;
33
+ }
34
+
35
+ console.log(`Copying ${hook}...`);
36
+ fs.copyFileSync(src, dest);
37
+ console.log(` → ${dest}`);
38
+ }
39
+
40
+ console.log('\nBuild complete.');
41
+ }
42
+
43
+ build();
@@ -0,0 +1,29 @@
1
+ #!/usr/bin/env node
2
+ // Cross-platform test runner — resolves test file globs via Node
3
+ // instead of relying on shell expansion (which fails on Windows PowerShell/cmd).
4
+ // Propagates NODE_V8_COVERAGE so c8 collects coverage from the child process.
5
+ 'use strict';
6
+
7
+ const { readdirSync } = require('fs');
8
+ const { join } = require('path');
9
+ const { execFileSync } = require('child_process');
10
+
11
+ const testDir = join(__dirname, '..', 'tests');
12
+ const files = readdirSync(testDir)
13
+ .filter(f => f.endsWith('.test.cjs'))
14
+ .sort()
15
+ .map(f => join('tests', f));
16
+
17
+ if (files.length === 0) {
18
+ console.error('No test files found in tests/');
19
+ process.exit(1);
20
+ }
21
+
22
+ try {
23
+ execFileSync(process.execPath, ['--test', ...files], {
24
+ stdio: 'inherit',
25
+ env: { ...process.env },
26
+ });
27
+ } catch (err) {
28
+ process.exit(err.status || 1);
29
+ }