@cluesmith/codev 2.0.3 → 2.0.7

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 (271) hide show
  1. package/dashboard/dist/assets/index-BblS3DWL.js +135 -0
  2. package/dashboard/dist/assets/index-BblS3DWL.js.map +1 -0
  3. package/dashboard/dist/assets/index-Cr9PyjqX.css +32 -0
  4. package/dashboard/dist/index.html +2 -2
  5. package/dist/agent-farm/cli.d.ts.map +1 -1
  6. package/dist/agent-farm/cli.js +54 -61
  7. package/dist/agent-farm/cli.js.map +1 -1
  8. package/dist/agent-farm/commands/architect.d.ts +5 -5
  9. package/dist/agent-farm/commands/architect.d.ts.map +1 -1
  10. package/dist/agent-farm/commands/architect.js +37 -20
  11. package/dist/agent-farm/commands/architect.js.map +1 -1
  12. package/dist/agent-farm/commands/attach.d.ts +19 -0
  13. package/dist/agent-farm/commands/attach.d.ts.map +1 -1
  14. package/dist/agent-farm/commands/attach.js +169 -29
  15. package/dist/agent-farm/commands/attach.js.map +1 -1
  16. package/dist/agent-farm/commands/cleanup.d.ts +12 -0
  17. package/dist/agent-farm/commands/cleanup.d.ts.map +1 -1
  18. package/dist/agent-farm/commands/cleanup.js +108 -7
  19. package/dist/agent-farm/commands/cleanup.js.map +1 -1
  20. package/dist/agent-farm/commands/send.d.ts +22 -2
  21. package/dist/agent-farm/commands/send.d.ts.map +1 -1
  22. package/dist/agent-farm/commands/send.js +97 -178
  23. package/dist/agent-farm/commands/send.js.map +1 -1
  24. package/dist/agent-farm/commands/spawn-roles.d.ts +3 -9
  25. package/dist/agent-farm/commands/spawn-roles.d.ts.map +1 -1
  26. package/dist/agent-farm/commands/spawn-roles.js +14 -53
  27. package/dist/agent-farm/commands/spawn-roles.js.map +1 -1
  28. package/dist/agent-farm/commands/spawn-worktree.d.ts +11 -18
  29. package/dist/agent-farm/commands/spawn-worktree.d.ts.map +1 -1
  30. package/dist/agent-farm/commands/spawn-worktree.js +35 -22
  31. package/dist/agent-farm/commands/spawn-worktree.js.map +1 -1
  32. package/dist/agent-farm/commands/spawn.d.ts +8 -6
  33. package/dist/agent-farm/commands/spawn.d.ts.map +1 -1
  34. package/dist/agent-farm/commands/spawn.js +207 -89
  35. package/dist/agent-farm/commands/spawn.js.map +1 -1
  36. package/dist/agent-farm/commands/start.d.ts.map +1 -1
  37. package/dist/agent-farm/commands/start.js +2 -6
  38. package/dist/agent-farm/commands/start.js.map +1 -1
  39. package/dist/agent-farm/commands/status.d.ts.map +1 -1
  40. package/dist/agent-farm/commands/status.js +5 -35
  41. package/dist/agent-farm/commands/status.js.map +1 -1
  42. package/dist/agent-farm/commands/stop.d.ts.map +1 -1
  43. package/dist/agent-farm/commands/stop.js +2 -6
  44. package/dist/agent-farm/commands/stop.js.map +1 -1
  45. package/dist/agent-farm/commands/tower-cloud.d.ts +2 -9
  46. package/dist/agent-farm/commands/tower-cloud.d.ts.map +1 -1
  47. package/dist/agent-farm/commands/tower-cloud.js +12 -47
  48. package/dist/agent-farm/commands/tower-cloud.js.map +1 -1
  49. package/dist/agent-farm/commands/tower.d.ts.map +1 -1
  50. package/dist/agent-farm/commands/tower.js +6 -23
  51. package/dist/agent-farm/commands/tower.js.map +1 -1
  52. package/dist/agent-farm/db/index.d.ts.map +1 -1
  53. package/dist/agent-farm/db/index.js +52 -2
  54. package/dist/agent-farm/db/index.js.map +1 -1
  55. package/dist/agent-farm/db/schema.d.ts +1 -1
  56. package/dist/agent-farm/db/schema.d.ts.map +1 -1
  57. package/dist/agent-farm/db/schema.js +1 -1
  58. package/dist/agent-farm/lib/cloud-config.d.ts +1 -0
  59. package/dist/agent-farm/lib/cloud-config.d.ts.map +1 -1
  60. package/dist/agent-farm/lib/cloud-config.js +2 -2
  61. package/dist/agent-farm/lib/cloud-config.js.map +1 -1
  62. package/dist/agent-farm/lib/tower-client.d.ts +65 -6
  63. package/dist/agent-farm/lib/tower-client.d.ts.map +1 -1
  64. package/dist/agent-farm/lib/tower-client.js +57 -2
  65. package/dist/agent-farm/lib/tower-client.js.map +1 -1
  66. package/dist/agent-farm/servers/overview.d.ts +157 -0
  67. package/dist/agent-farm/servers/overview.d.ts.map +1 -0
  68. package/dist/agent-farm/servers/overview.js +625 -0
  69. package/dist/agent-farm/servers/overview.js.map +1 -0
  70. package/dist/agent-farm/servers/tower-instances.d.ts +1 -3
  71. package/dist/agent-farm/servers/tower-instances.d.ts.map +1 -1
  72. package/dist/agent-farm/servers/tower-instances.js +12 -14
  73. package/dist/agent-farm/servers/tower-instances.js.map +1 -1
  74. package/dist/agent-farm/servers/tower-messages.d.ts +87 -0
  75. package/dist/agent-farm/servers/tower-messages.d.ts.map +1 -0
  76. package/dist/agent-farm/servers/tower-messages.js +202 -0
  77. package/dist/agent-farm/servers/tower-messages.js.map +1 -0
  78. package/dist/agent-farm/servers/tower-routes.d.ts.map +1 -1
  79. package/dist/agent-farm/servers/tower-routes.js +182 -34
  80. package/dist/agent-farm/servers/tower-routes.js.map +1 -1
  81. package/dist/agent-farm/servers/tower-server.js +30 -6
  82. package/dist/agent-farm/servers/tower-server.js.map +1 -1
  83. package/dist/agent-farm/servers/tower-terminals.d.ts +9 -3
  84. package/dist/agent-farm/servers/tower-terminals.d.ts.map +1 -1
  85. package/dist/agent-farm/servers/tower-terminals.js +129 -84
  86. package/dist/agent-farm/servers/tower-terminals.js.map +1 -1
  87. package/dist/agent-farm/servers/tower-tunnel.d.ts.map +1 -1
  88. package/dist/agent-farm/servers/tower-tunnel.js +3 -19
  89. package/dist/agent-farm/servers/tower-tunnel.js.map +1 -1
  90. package/dist/agent-farm/servers/tower-types.d.ts +0 -2
  91. package/dist/agent-farm/servers/tower-types.d.ts.map +1 -1
  92. package/dist/agent-farm/servers/tower-websocket.d.ts.map +1 -1
  93. package/dist/agent-farm/servers/tower-websocket.js +27 -5
  94. package/dist/agent-farm/servers/tower-websocket.js.map +1 -1
  95. package/dist/agent-farm/types.d.ts +4 -5
  96. package/dist/agent-farm/types.d.ts.map +1 -1
  97. package/dist/agent-farm/utils/agent-names.d.ts +85 -0
  98. package/dist/agent-farm/utils/agent-names.d.ts.map +1 -0
  99. package/dist/agent-farm/utils/agent-names.js +140 -0
  100. package/dist/agent-farm/utils/agent-names.js.map +1 -0
  101. package/dist/agent-farm/utils/display.d.ts +8 -0
  102. package/dist/agent-farm/utils/display.d.ts.map +1 -0
  103. package/dist/agent-farm/utils/display.js +26 -0
  104. package/dist/agent-farm/utils/display.js.map +1 -0
  105. package/dist/agent-farm/utils/message-format.d.ts +17 -0
  106. package/dist/agent-farm/utils/message-format.d.ts.map +1 -0
  107. package/dist/agent-farm/utils/message-format.js +41 -0
  108. package/dist/agent-farm/utils/message-format.js.map +1 -0
  109. package/dist/agent-farm/utils/notifications.d.ts.map +1 -1
  110. package/dist/agent-farm/utils/notifications.js +7 -16
  111. package/dist/agent-farm/utils/notifications.js.map +1 -1
  112. package/dist/agent-farm/utils/server-utils.d.ts +4 -0
  113. package/dist/agent-farm/utils/server-utils.d.ts.map +1 -1
  114. package/dist/agent-farm/utils/server-utils.js +20 -0
  115. package/dist/agent-farm/utils/server-utils.js.map +1 -1
  116. package/dist/agent-farm/utils/shell.d.ts +5 -0
  117. package/dist/agent-farm/utils/shell.d.ts.map +1 -1
  118. package/dist/agent-farm/utils/shell.js +15 -11
  119. package/dist/agent-farm/utils/shell.js.map +1 -1
  120. package/dist/cli.d.ts.map +1 -1
  121. package/dist/cli.js +46 -15
  122. package/dist/cli.js.map +1 -1
  123. package/dist/commands/adopt.d.ts.map +1 -1
  124. package/dist/commands/adopt.js +1 -13
  125. package/dist/commands/adopt.js.map +1 -1
  126. package/dist/commands/consult/index.d.ts +34 -9
  127. package/dist/commands/consult/index.d.ts.map +1 -1
  128. package/dist/commands/consult/index.js +617 -263
  129. package/dist/commands/consult/index.js.map +1 -1
  130. package/dist/commands/consult/metrics.d.ts +90 -0
  131. package/dist/commands/consult/metrics.d.ts.map +1 -0
  132. package/dist/commands/consult/metrics.js +203 -0
  133. package/dist/commands/consult/metrics.js.map +1 -0
  134. package/dist/commands/consult/stats.d.ts +18 -0
  135. package/dist/commands/consult/stats.d.ts.map +1 -0
  136. package/dist/commands/consult/stats.js +150 -0
  137. package/dist/commands/consult/stats.js.map +1 -0
  138. package/dist/commands/consult/usage-extractor.d.ts +41 -0
  139. package/dist/commands/consult/usage-extractor.d.ts.map +1 -0
  140. package/dist/commands/consult/usage-extractor.js +122 -0
  141. package/dist/commands/consult/usage-extractor.js.map +1 -0
  142. package/dist/commands/doctor.d.ts.map +1 -1
  143. package/dist/commands/doctor.js +5 -3
  144. package/dist/commands/doctor.js.map +1 -1
  145. package/dist/commands/init.d.ts.map +1 -1
  146. package/dist/commands/init.js +1 -13
  147. package/dist/commands/init.js.map +1 -1
  148. package/dist/commands/porch/index.d.ts.map +1 -1
  149. package/dist/commands/porch/index.js +13 -12
  150. package/dist/commands/porch/index.js.map +1 -1
  151. package/dist/commands/porch/next.d.ts.map +1 -1
  152. package/dist/commands/porch/next.js +57 -77
  153. package/dist/commands/porch/next.js.map +1 -1
  154. package/dist/commands/porch/plan.d.ts.map +1 -1
  155. package/dist/commands/porch/plan.js +17 -2
  156. package/dist/commands/porch/plan.js.map +1 -1
  157. package/dist/commands/porch/prompts.d.ts +10 -1
  158. package/dist/commands/porch/prompts.d.ts.map +1 -1
  159. package/dist/commands/porch/prompts.js +56 -29
  160. package/dist/commands/porch/prompts.js.map +1 -1
  161. package/dist/commands/porch/protocol.js +2 -2
  162. package/dist/commands/porch/state.d.ts +13 -0
  163. package/dist/commands/porch/state.d.ts.map +1 -1
  164. package/dist/commands/porch/state.js +49 -2
  165. package/dist/commands/porch/state.js.map +1 -1
  166. package/dist/commands/update.d.ts.map +1 -1
  167. package/dist/commands/update.js +0 -10
  168. package/dist/commands/update.js.map +1 -1
  169. package/dist/lib/github.d.ts +82 -0
  170. package/dist/lib/github.d.ts.map +1 -0
  171. package/dist/lib/github.js +181 -0
  172. package/dist/lib/github.js.map +1 -0
  173. package/dist/lib/scaffold.d.ts +0 -21
  174. package/dist/lib/scaffold.d.ts.map +1 -1
  175. package/dist/lib/scaffold.js +0 -57
  176. package/dist/lib/scaffold.js.map +1 -1
  177. package/dist/terminal/index.d.ts +16 -0
  178. package/dist/terminal/index.d.ts.map +1 -1
  179. package/dist/terminal/index.js +14 -0
  180. package/dist/terminal/index.js.map +1 -1
  181. package/dist/terminal/pty-manager.d.ts.map +1 -1
  182. package/dist/terminal/pty-manager.js +8 -5
  183. package/dist/terminal/pty-manager.js.map +1 -1
  184. package/dist/terminal/pty-session.js +4 -4
  185. package/dist/terminal/pty-session.js.map +1 -1
  186. package/dist/terminal/session-manager.d.ts +64 -0
  187. package/dist/terminal/session-manager.d.ts.map +1 -1
  188. package/dist/terminal/session-manager.js +299 -10
  189. package/dist/terminal/session-manager.js.map +1 -1
  190. package/dist/terminal/shellper-client.d.ts +2 -1
  191. package/dist/terminal/shellper-client.d.ts.map +1 -1
  192. package/dist/terminal/shellper-client.js +4 -2
  193. package/dist/terminal/shellper-client.js.map +1 -1
  194. package/dist/terminal/shellper-main.js +33 -4
  195. package/dist/terminal/shellper-main.js.map +1 -1
  196. package/dist/terminal/shellper-process.d.ts +24 -7
  197. package/dist/terminal/shellper-process.d.ts.map +1 -1
  198. package/dist/terminal/shellper-process.js +139 -36
  199. package/dist/terminal/shellper-process.js.map +1 -1
  200. package/dist/terminal/shellper-protocol.d.ts +1 -0
  201. package/dist/terminal/shellper-protocol.d.ts.map +1 -1
  202. package/dist/terminal/shellper-protocol.js.map +1 -1
  203. package/package.json +4 -1
  204. package/skeleton/.claude/skills/af/SKILL.md +10 -10
  205. package/skeleton/.claude/skills/consult/SKILL.md +55 -38
  206. package/skeleton/.claude/skills/porch/SKILL.md +53 -0
  207. package/skeleton/DEPENDENCIES.md +2 -2
  208. package/skeleton/builders.md +8 -19
  209. package/skeleton/maintain/.gitkeep +1 -1
  210. package/skeleton/porch/prompts/specify.md +1 -1
  211. package/skeleton/protocol-schema.json +1 -1
  212. package/skeleton/protocols/bugfix/prompts/pr.md +18 -7
  213. package/skeleton/protocols/bugfix/protocol.json +1 -1
  214. package/skeleton/protocols/experiment/protocol.md +17 -17
  215. package/skeleton/protocols/maintain/consult-types/impl-review.md +72 -0
  216. package/skeleton/protocols/maintain/consult-types/pr-review.md +72 -0
  217. package/skeleton/protocols/maintain/prompts/audit.md +2 -2
  218. package/skeleton/protocols/maintain/prompts/sync.md +1 -1
  219. package/skeleton/protocols/maintain/prompts/verify.md +1 -1
  220. package/skeleton/protocols/maintain/protocol.json +4 -4
  221. package/skeleton/protocols/maintain/protocol.md +11 -12
  222. package/skeleton/protocols/maintain/templates/maintenance-run.md +2 -2
  223. package/skeleton/protocols/protocol-schema.json +1 -1
  224. package/skeleton/protocols/spir/consult-types/impl-review.md +72 -0
  225. package/skeleton/protocols/spir/consult-types/phase-review.md +72 -0
  226. package/skeleton/protocols/spir/consult-types/pr-review.md +72 -0
  227. package/skeleton/protocols/spir/prompts/plan.md +4 -4
  228. package/skeleton/protocols/spir/prompts/review.md +8 -8
  229. package/skeleton/protocols/spir/prompts/specify.md +6 -6
  230. package/skeleton/protocols/spir/protocol.json +16 -16
  231. package/skeleton/protocols/spir/protocol.md +8 -8
  232. package/skeleton/protocols/spir/templates/review.md +2 -2
  233. package/skeleton/protocols/tick/consult-types/impl-review.md +72 -0
  234. package/skeleton/protocols/tick/consult-types/plan-review.md +59 -0
  235. package/skeleton/protocols/tick/consult-types/pr-review.md +72 -0
  236. package/skeleton/protocols/tick/consult-types/spec-review.md +55 -0
  237. package/skeleton/protocols/tick/protocol.json +2 -7
  238. package/skeleton/protocols/tick/protocol.md +31 -31
  239. package/skeleton/resources/commands/agent-farm.md +21 -19
  240. package/skeleton/resources/commands/codev.md +0 -36
  241. package/skeleton/resources/commands/consult.md +88 -234
  242. package/skeleton/resources/commands/overview.md +6 -7
  243. package/skeleton/resources/spikes.md +3 -3
  244. package/skeleton/resources/workflow-reference.md +28 -28
  245. package/skeleton/roles/architect.md +34 -38
  246. package/skeleton/roles/builder.md +14 -14
  247. package/skeleton/roles/consultant.md +6 -0
  248. package/skeleton/templates/AGENTS.md +6 -6
  249. package/skeleton/templates/CLAUDE.md +6 -6
  250. package/skeleton/templates/cheatsheet.md +22 -18
  251. package/skeleton/templates/lifecycle.md +9 -9
  252. package/skeleton/templates/pr-overview.md +5 -5
  253. package/templates/open.html +6 -3
  254. package/templates/tower.html +1 -41
  255. package/dashboard/dist/assets/index-4n9zpWLY.css +0 -32
  256. package/dashboard/dist/assets/index-UsH9ixz1.js +0 -136
  257. package/dashboard/dist/assets/index-UsH9ixz1.js.map +0 -1
  258. package/dist/agent-farm/commands/consult.d.ts +0 -15
  259. package/dist/agent-farm/commands/consult.d.ts.map +0 -1
  260. package/dist/agent-farm/commands/consult.js +0 -39
  261. package/dist/agent-farm/commands/consult.js.map +0 -1
  262. package/dist/agent-farm/utils/gate-status.d.ts +0 -16
  263. package/dist/agent-farm/utils/gate-status.d.ts.map +0 -1
  264. package/dist/agent-farm/utils/gate-status.js +0 -79
  265. package/dist/agent-farm/utils/gate-status.js.map +0 -1
  266. package/skeleton/templates/projectlist-archive.md +0 -21
  267. package/skeleton/templates/projectlist.md +0 -147
  268. /package/skeleton/{consult-types → protocols/bugfix/consult-types}/impl-review.md +0 -0
  269. /package/skeleton/{consult-types/pr-ready.md → protocols/bugfix/consult-types/pr-review.md} +0 -0
  270. /package/skeleton/{consult-types → protocols/spir/consult-types}/plan-review.md +0 -0
  271. /package/skeleton/{consult-types → protocols/spir/consult-types}/spec-review.md +0 -0
@@ -0,0 +1,72 @@
1
+ # Implementation Review Prompt
2
+
3
+ ## Context
4
+ You are reviewing implementation work during the Implement phase. A builder has completed a plan phase and needs feedback before proceeding. Your job is to verify the implementation matches the spec and plan.
5
+
6
+ ## CRITICAL: Verify Before Flagging
7
+
8
+ Before requesting changes for missing configuration, incorrect patterns, or framework issues:
9
+ 1. **Check `package.json`** for actual dependency versions — framework conventions change between major versions
10
+ 2. **Read the actual config files** (or confirm their deliberate absence) before flagging missing configs
11
+ 3. **Do not assume** your training data reflects the version in use — verify against project files
12
+ 4. If "Previous Iteration Context" is provided, read it carefully before re-raising concerns that were already disputed
13
+
14
+ ## Focus Areas
15
+
16
+ 1. **Spec Adherence**
17
+ - Does the implementation fulfill the spec requirements for this phase?
18
+ - Are acceptance criteria met?
19
+
20
+ 2. **Code Quality**
21
+ - Is the code readable and maintainable?
22
+ - Are there obvious bugs or issues?
23
+ - Are error cases handled appropriately?
24
+
25
+ 3. **Test Coverage**
26
+ - Are the tests adequate for this phase?
27
+ - Do tests cover the main paths AND edge cases?
28
+
29
+ 4. **Plan Alignment**
30
+ - Does the implementation follow the plan?
31
+ - Are there plan items skipped or partially completed?
32
+
33
+ 5. **UX Verification** (if spec has UX requirements)
34
+ - Does the actual user experience match what the spec describes?
35
+ - If spec says "async" or "non-blocking", is it actually async?
36
+
37
+ ## Verdict Format
38
+
39
+ After your review, provide your verdict in exactly this format:
40
+
41
+ ```
42
+ ---
43
+ VERDICT: [APPROVE | REQUEST_CHANGES | COMMENT]
44
+ SUMMARY: [One-line summary of your assessment]
45
+ CONFIDENCE: [HIGH | MEDIUM | LOW]
46
+ ---
47
+ KEY_ISSUES:
48
+ - [Issue 1 or "None"]
49
+ - [Issue 2]
50
+ ...
51
+ ```
52
+
53
+ **Verdict meanings:**
54
+ - `APPROVE`: Phase is complete, builder can proceed
55
+ - `REQUEST_CHANGES`: Issues that must be fixed before proceeding
56
+ - `COMMENT`: Minor suggestions, can proceed but note feedback
57
+
58
+ ## Scoping (Multi-Phase Plans)
59
+
60
+ When the implementation plan has multiple phases (e.g., scaffolding, landing, media_rtl):
61
+ - **ONLY review work belonging to the current plan phase**
62
+ - The query will specify which phase you are reviewing
63
+ - Do NOT request changes for functionality scheduled in later phases
64
+ - Do NOT flag missing features that are out of scope for this phase
65
+ - If unsure whether something belongs to this phase, check the plan file
66
+
67
+ ## Notes
68
+
69
+ - This is a phase-level review, not the final PR review
70
+ - Focus on "does this phase work" not "is the whole feature done"
71
+ - If referencing line numbers, use `file:line` format
72
+ - The builder needs actionable feedback to continue
@@ -0,0 +1,59 @@
1
+ # Plan Review Prompt
2
+
3
+ ## Context
4
+ You are reviewing an implementation plan during the Plan phase. The spec has been approved - now you must evaluate whether the plan adequately describes HOW to implement it.
5
+
6
+ ## Focus Areas
7
+
8
+ 1. **Spec Coverage**
9
+ - Does the plan address all requirements in the spec?
10
+ - Are there spec requirements not covered by any phase?
11
+ - Are there phases that go beyond the spec scope?
12
+
13
+ 2. **Phase Breakdown**
14
+ - Are phases appropriately sized (not too large or too small)?
15
+ - Is the sequence logical (dependencies respected)?
16
+ - Can each phase be completed and committed independently?
17
+
18
+ 3. **Technical Approach**
19
+ - Is the implementation approach sound?
20
+ - Are the right files/modules being modified?
21
+ - Are there obvious better approaches being missed?
22
+
23
+ 4. **Testability**
24
+ - Does each phase have clear test criteria?
25
+ - Will the Defend step (writing tests) be feasible?
26
+ - Are edge cases from the spec addressable?
27
+
28
+ 5. **Risk Assessment**
29
+ - Are there potential blockers not addressed?
30
+ - Are dependencies on other systems identified?
31
+ - Is the plan realistic given constraints?
32
+
33
+ ## Verdict Format
34
+
35
+ After your review, provide your verdict in exactly this format:
36
+
37
+ ```
38
+ ---
39
+ VERDICT: [APPROVE | REQUEST_CHANGES | COMMENT]
40
+ SUMMARY: [One-line summary of your assessment]
41
+ CONFIDENCE: [HIGH | MEDIUM | LOW]
42
+ ---
43
+ KEY_ISSUES:
44
+ - [Issue 1 or "None"]
45
+ - [Issue 2]
46
+ ...
47
+ ```
48
+
49
+ **Verdict meanings:**
50
+ - `APPROVE`: Plan is ready for human review
51
+ - `REQUEST_CHANGES`: Significant issues with approach or coverage
52
+ - `COMMENT`: Minor suggestions, plan is workable but could improve
53
+
54
+ ## Notes
55
+
56
+ - The spec has already been approved - don't re-litigate spec decisions
57
+ - Focus on the quality of the plan as a guide for builders
58
+ - Consider: Would a builder be able to follow this plan successfully?
59
+ - If referencing existing code, verify file paths seem accurate
@@ -0,0 +1,72 @@
1
+ # PR Ready Review Prompt
2
+
3
+ ## Context
4
+ You are performing a final self-check during the Review phase. The builder has completed all implementation phases and is about to create a PR. This is the last check before the work goes to the architect for integration review.
5
+
6
+ ## Focus Areas
7
+
8
+ 1. **Completeness**
9
+ - Are all spec requirements implemented?
10
+ - Are all plan phases complete?
11
+ - Is the review document written (`codev/reviews/XXXX-name.md`)?
12
+ - Are all commits properly formatted (`[Spec XXXX][Phase]`)?
13
+
14
+ 2. **Test Status**
15
+ - Do all tests pass?
16
+ - Is test coverage adequate for the changes?
17
+ - Are there any skipped or flaky tests?
18
+
19
+ 3. **Code Cleanliness**
20
+ - Is there any debug code left in?
21
+ - Are there any TODO comments that should be resolved?
22
+ - Are there any `// REVIEW:` comments that weren't addressed?
23
+ - Is the code properly formatted?
24
+
25
+ 4. **Documentation**
26
+ - Are inline comments clear where needed?
27
+ - Is the review document comprehensive?
28
+ - Are any new APIs documented?
29
+
30
+ 5. **PR Readiness**
31
+ - Is the branch up to date with main?
32
+ - Are commits atomic and well-described?
33
+ - Is the change diff reasonable in size?
34
+
35
+ ## Verdict Format
36
+
37
+ After your review, provide your verdict in exactly this format:
38
+
39
+ ```
40
+ ---
41
+ VERDICT: [APPROVE | REQUEST_CHANGES | COMMENT]
42
+ SUMMARY: [One-line summary of your assessment]
43
+ CONFIDENCE: [HIGH | MEDIUM | LOW]
44
+ ---
45
+ KEY_ISSUES:
46
+ - [Issue 1 or "None"]
47
+ - [Issue 2]
48
+ ...
49
+
50
+ PR_SUMMARY: |
51
+ ## Summary
52
+ [2-3 sentences describing what this PR does]
53
+
54
+ ## Key Changes
55
+ - [Change 1]
56
+ - [Change 2]
57
+
58
+ ## Test Plan
59
+ - [How to test]
60
+ ```
61
+
62
+ **Verdict meanings:**
63
+ - `APPROVE`: Ready to create PR
64
+ - `REQUEST_CHANGES`: Issues to fix before PR creation
65
+ - `COMMENT`: Minor items, can create PR but note feedback
66
+
67
+ ## Notes
68
+
69
+ - This is the builder's final self-review before hand-off
70
+ - The PR_SUMMARY in your output can be used as the PR description
71
+ - Focus on "is this ready for someone else to review" not "is this perfect"
72
+ - Any issues found here are cheaper to fix than during integration review
@@ -0,0 +1,55 @@
1
+ # Specification Review Prompt
2
+
3
+ ## Context
4
+ You are reviewing a feature specification during the Specify phase. Your role is to ensure the spec is complete, correct, and feasible before it moves to human approval.
5
+
6
+ ## Focus Areas
7
+
8
+ 1. **Completeness**
9
+ - Are all requirements clearly stated?
10
+ - Are success criteria defined?
11
+ - Are edge cases considered?
12
+ - Is scope well-bounded (not too broad or vague)?
13
+
14
+ 2. **Correctness**
15
+ - Do requirements make sense technically?
16
+ - Are there contradictions?
17
+ - Is the problem statement accurate?
18
+
19
+ 3. **Feasibility**
20
+ - Can this be implemented with available tools/constraints?
21
+ - Are there obvious technical blockers?
22
+ - Is the scope realistic for a single spec?
23
+
24
+ 4. **Clarity**
25
+ - Would a builder understand what to build?
26
+ - Are acceptance criteria testable?
27
+ - Is terminology consistent?
28
+
29
+ ## Verdict Format
30
+
31
+ After your review, provide your verdict in exactly this format:
32
+
33
+ ```
34
+ ---
35
+ VERDICT: [APPROVE | REQUEST_CHANGES | COMMENT]
36
+ SUMMARY: [One-line summary of your assessment]
37
+ CONFIDENCE: [HIGH | MEDIUM | LOW]
38
+ ---
39
+ KEY_ISSUES:
40
+ - [Issue 1 or "None"]
41
+ - [Issue 2]
42
+ ...
43
+ ```
44
+
45
+ **Verdict meanings:**
46
+ - `APPROVE`: Spec is ready for human review
47
+ - `REQUEST_CHANGES`: Significant issues must be fixed before proceeding
48
+ - `COMMENT`: Minor suggestions, can proceed but consider feedback
49
+
50
+ ## Notes
51
+
52
+ - You are NOT reviewing code - you are reviewing the specification document
53
+ - Focus on WHAT is being built, not HOW it will be implemented (that's for plan review)
54
+ - Be constructive - identify issues AND suggest solutions
55
+ - If the spec references other specs, note if context seems missing
@@ -119,16 +119,11 @@
119
119
  "consultation": {
120
120
  "on": "review",
121
121
  "models": ["gemini", "codex"],
122
- "type": "impl-review",
122
+ "type": "impl",
123
123
  "parallel": true,
124
124
  "max_rounds": 1
125
125
  },
126
- "gate": {
127
- "name": "pr-ready",
128
- "description": "Amendment ready for PR",
129
- "requires": ["tests_pass", "review_complete"],
130
- "next": null
131
- }
126
+ "gate": "pr"
132
127
  }
133
128
  ],
134
129
  "signals": {
@@ -50,7 +50,7 @@ TICK is an **amendment workflow** for existing SPIR specifications. Rather than
50
50
  **Example**:
51
51
  ```
52
52
  User: "Use TICK to add password reset to the auth system"
53
- Agent finds: specs/0002-user-authentication.md (status: integrated)
53
+ Agent finds: specs/2-user-authentication.md (status: integrated)
54
54
  Agent determines: Next TICK is TICK-001 (first amendment)
55
55
  ```
56
56
 
@@ -58,7 +58,7 @@ Agent determines: Next TICK is TICK-001 (first amendment)
58
58
 
59
59
  **Agent Actions**:
60
60
  1. Analyze what needs to change in the spec
61
- 2. Update relevant sections of `specs/####-name.md`:
61
+ 2. Update relevant sections of `specs/NNN-name.md`:
62
62
  - Problem Statement (if scope expands)
63
63
  - Success Criteria (if new criteria added)
64
64
  - Solution Approaches (if design changes)
@@ -78,14 +78,14 @@ Agent determines: Next TICK is TICK-001 (first amendment)
78
78
  **Plan Changes**:
79
79
  - [Phase/steps]: [What was added/modified]
80
80
 
81
- **Review**: See `reviews/####-name-tick-001.md`
81
+ **Review**: See `reviews/NNN-name-tick-001.md`
82
82
  ```
83
- 4. **COMMIT**: `[TICK ####-NNN] Spec: [description]`
83
+ 4. **COMMIT**: `[TICK NNN-NNN] Spec: [description]`
84
84
 
85
85
  ### Phase 3: Planning Amendment (Autonomous)
86
86
 
87
87
  **Agent Actions**:
88
- 1. Update `plans/####-name.md` with new implementation steps
88
+ 1. Update `plans/NNN-name.md` with new implementation steps
89
89
  2. Add/modify phases as needed
90
90
  3. Add entry to "Amendment History" section at bottom:
91
91
  ```markdown
@@ -95,9 +95,9 @@ Agent determines: Next TICK is TICK-001 (first amendment)
95
95
  - [Phase added]: [Description]
96
96
  - [Implementation steps]: [What was updated]
97
97
 
98
- **Review**: See `reviews/####-name-tick-001.md`
98
+ **Review**: See `reviews/NNN-name-tick-001.md`
99
99
  ```
100
- 4. **COMMIT**: `[TICK ####-NNN] Plan: [description]`
100
+ 4. **COMMIT**: `[TICK NNN-NNN] Plan: [description]`
101
101
 
102
102
  ### Phase 4: Implementation (Autonomous)
103
103
 
@@ -105,12 +105,12 @@ Agent determines: Next TICK is TICK-001 (first amendment)
105
105
  1. Execute implementation steps from the plan
106
106
  2. Write code following fail-fast principles
107
107
  3. Test functionality
108
- 4. **COMMIT**: `[TICK ####-NNN] Impl: [description]`
108
+ 4. **COMMIT**: `[TICK NNN-NNN] Impl: [description]`
109
109
 
110
110
  ### Phase 5: Review (User Checkpoint)
111
111
 
112
112
  **Agent Actions**:
113
- 1. Create review document: `reviews/####-name-tick-NNN.md`
113
+ 1. Create review document: `reviews/NNN-name-tick-NNN.md`
114
114
  - What was amended and why
115
115
  - Changes made to spec and plan
116
116
  - Implementation challenges
@@ -120,7 +120,7 @@ Agent determines: Next TICK is TICK-001 (first amendment)
120
120
  - Focus: Code quality, missed issues, improvements
121
121
  - Update review with consultation feedback
122
122
  3. **Update Architecture Documentation** (if applicable)
123
- 4. **COMMIT**: `[TICK ####-NNN] Review: [description]`
123
+ 4. **COMMIT**: `[TICK NNN-NNN] Review: [description]`
124
124
  5. **PRESENT TO USER**: Show summary with consultation insights
125
125
 
126
126
  **User Actions**:
@@ -130,7 +130,7 @@ Agent determines: Next TICK is TICK-001 (first amendment)
130
130
 
131
131
  **If Changes Requested**:
132
132
  - Agent makes changes
133
- - Commits: `[TICK ####-NNN] Fixes: [description]`
133
+ - Commits: `[TICK NNN-NNN] Fixes: [description]`
134
134
  - Updates review document
135
135
  - Repeats until user approval
136
136
 
@@ -140,9 +140,9 @@ TICK amendments modify existing files and create new review files:
140
140
 
141
141
  | File Type | Pattern | Example |
142
142
  |-----------|---------|---------|
143
- | Spec (modified) | `specs/####-name.md` | `specs/0002-user-authentication.md` |
144
- | Plan (modified) | `plans/####-name.md` | `plans/0002-user-authentication.md` |
145
- | Review (new) | `reviews/####-name-tick-NNN.md` | `reviews/0002-user-authentication-tick-001.md` |
143
+ | Spec (modified) | `specs/NNN-name.md` | `specs/2-user-authentication.md` |
144
+ | Plan (modified) | `plans/NNN-name.md` | `plans/2-user-authentication.md` |
145
+ | Review (new) | `reviews/NNN-name-tick-NNN.md` | `reviews/2-user-authentication-tick-001.md` |
146
146
 
147
147
  **Note**: Spec and plan files are modified in-place. Only the review file is new.
148
148
 
@@ -151,16 +151,16 @@ TICK amendments modify existing files and create new review files:
151
151
  **TICK commits reference the parent spec and TICK number**:
152
152
 
153
153
  ```
154
- [TICK 0002-001] Spec: Add password reset feature
155
- [TICK 0002-001] Plan: Add password reset implementation
156
- [TICK 0002-001] Impl: Add password reset feature
157
- [TICK 0002-001] Review: Password reset implementation
158
- [TICK 0002-001] Fixes: Address review feedback
154
+ [TICK 2-001] Spec: Add password reset feature
155
+ [TICK 2-001] Plan: Add password reset implementation
156
+ [TICK 2-001] Impl: Add password reset feature
157
+ [TICK 2-001] Review: Password reset implementation
158
+ [TICK 2-001] Fixes: Address review feedback
159
159
  ```
160
160
 
161
- The format `[TICK ####-NNN]` identifies:
162
- - `####`: Parent spec number (e.g., 0002)
163
- - `NNN`: TICK amendment number (e.g., 001, 002, 003)
161
+ The format `[TICK <parent>-<tick>]` identifies:
162
+ - `<parent>`: Parent spec number (e.g., 2)
163
+ - `<tick>`: TICK amendment number (e.g., 001, 002, 003)
164
164
 
165
165
  ## Key Differences from SPIR
166
166
 
@@ -168,7 +168,7 @@ The format `[TICK ####-NNN]` identifies:
168
168
  |--------|--------|------|
169
169
  | Purpose | Create new features | Amend existing features |
170
170
  | File creation | Creates new spec/plan/review | Modifies spec/plan, creates review |
171
- | Sequential numbering | Gets new number (0001, 0002) | Uses parent's number (0002-001) |
171
+ | Sequential numbering | Gets new number (1, 2) | Uses parent's number (2-001) |
172
172
  | Scope | Any size | < 300 lines typically |
173
173
  | Prerequisites | None | Existing integrated spec required |
174
174
  | User checkpoints | Multiple (spec, plan, phases) | Two (start, end) |
@@ -195,24 +195,24 @@ Is there an existing spec to amend?
195
195
  **User**: "Add password reset to the user authentication system"
196
196
 
197
197
  **Agent**:
198
- 1. **Identify**: Finds `specs/0002-user-authentication.md` (integrated)
198
+ 1. **Identify**: Finds `specs/2-user-authentication.md` (integrated)
199
199
  2. **Amend Spec** (30 seconds):
200
200
  - Updates Success Criteria with password reset requirements
201
201
  - Adds TICK-001 entry to Amendments section
202
- - Commit: `[TICK 0002-001] Spec: Add password reset feature`
202
+ - Commit: `[TICK 2-001] Spec: Add password reset feature`
203
203
  3. **Amend Plan** (30 seconds):
204
204
  - Adds Phase 4: Password Reset Email Service
205
205
  - Adds TICK-001 entry to Amendment History
206
- - Commit: `[TICK 0002-001] Plan: Add password reset implementation`
206
+ - Commit: `[TICK 2-001] Plan: Add password reset implementation`
207
207
  4. **Implement** (2 minutes):
208
208
  - Creates password reset endpoint
209
209
  - Implements email service
210
210
  - Tests functionality
211
- - Commit: `[TICK 0002-001] Impl: Add password reset feature`
211
+ - Commit: `[TICK 2-001] Impl: Add password reset feature`
212
212
  5. **Review** (1 minute):
213
- - Creates `reviews/0002-user-authentication-tick-001.md`
213
+ - Creates `reviews/2-user-authentication-tick-001.md`
214
214
  - Runs 3-way consultation (Gemini, Codex, Claude)
215
- - Commit: `[TICK 0002-001] Review: Password reset implementation`
215
+ - Commit: `[TICK 2-001] Review: Password reset implementation`
216
216
  - Shows user the completed work
217
217
 
218
218
  **Total Time**: ~4 minutes for simple amendment
@@ -243,8 +243,8 @@ Existing standalone TICK projects (created before this protocol change) are gran
243
243
  **Optional Migration** (if desired):
244
244
  1. Identify the "parent spec" the TICK logically extends
245
245
  2. Move TICK content into an amendment entry in the parent spec
246
- 3. Archive the standalone files with a note: "Migrated to spec #### as TICK-NNN"
247
- 4. Update projectlist.md to reflect the change
246
+ 3. Archive the standalone files with a note: "Migrated to spec NNN as TICK-NNN"
247
+ 4. Update the GitHub Issue to reflect the change
248
248
 
249
249
  ## Benefits
250
250
 
@@ -144,11 +144,13 @@ Does NOT clean up worktrees - use `af cleanup` for that.
144
144
  Spawn a new builder.
145
145
 
146
146
  ```bash
147
- af spawn [options]
147
+ af spawn [issue-number] [options]
148
148
  ```
149
149
 
150
+ **Arguments:**
151
+ - `issue-number` - Issue number to build (positional, e.g., `42`)
152
+
150
153
  **Options:**
151
- - `-p, --project <id>` - Spawn builder for a spec (e.g., `0042`)
152
154
  - `--task <text>` - Spawn builder with a task description
153
155
  - `--protocol <name>` - Spawn builder to run a protocol
154
156
  - `--shell` - Spawn a bare Claude session
@@ -166,8 +168,8 @@ Creates a new builder in an isolated git worktree. The builder gets:
166
168
  **Examples:**
167
169
 
168
170
  ```bash
169
- # Spawn builder for spec 0042
170
- af spawn -p 0042
171
+ # Spawn builder for issue #42
172
+ af spawn 42
171
173
 
172
174
  # Spawn with task description
173
175
  af spawn --task "Fix login bug in auth module"
@@ -176,7 +178,7 @@ af spawn --task "Fix login bug in auth module"
176
178
  af spawn --shell
177
179
 
178
180
  # Spawn with context files
179
- af spawn -p 0042 --files "src/auth.ts,tests/auth.test.ts"
181
+ af spawn 42 --files "src/auth.ts,tests/auth.test.ts"
180
182
  ```
181
183
 
182
184
  ---
@@ -198,8 +200,8 @@ Displays the current state of all builders and the architect:
198
200
  │ ID │ Name │ Status │ Branch │
199
201
  ├────────┼──────────────┼─────────────┼─────────┤
200
202
  │ arch │ Architect │ running │ main │
201
- 0042 │ auth-feature │ implementing│ builder/0042-auth │
202
- 0043 │ api-refactor │ pr-ready │ builder/0043-api │
203
+ 42 │ auth-feature │ implementing│ builder/42-auth │
204
+ 43 │ api-refactor │ pr │ builder/43-api │
203
205
  └────────┴──────────────┴─────────────┴─────────┘
204
206
  ```
205
207
 
@@ -207,7 +209,7 @@ Status values:
207
209
  - `spawning` - Worktree created, builder starting
208
210
  - `implementing` - Actively working
209
211
  - `blocked` - Stuck, needs architect help
210
- - `pr-ready` - Implementation complete
212
+ - `pr` - Implementation complete
211
213
  - `complete` - Merged, can be cleaned up
212
214
 
213
215
  ---
@@ -232,10 +234,10 @@ Removes a builder's worktree and associated resources. By default, refuses to de
232
234
 
233
235
  ```bash
234
236
  # Clean up completed builder
235
- af cleanup -p 0042
237
+ af cleanup -p 42
236
238
 
237
239
  # Force cleanup (may lose work)
238
- af cleanup -p 0042 --force
240
+ af cleanup -p 42 --force
239
241
  ```
240
242
 
241
243
  ---
@@ -249,7 +251,7 @@ af send [builder] [message] [options]
249
251
  ```
250
252
 
251
253
  **Arguments:**
252
- - `builder` - Builder ID (e.g., `0042`)
254
+ - `builder` - Builder ID (e.g., `42`)
253
255
  - `message` - Message to send
254
256
 
255
257
  **Options:**
@@ -270,16 +272,16 @@ Sends text to a builder's terminal. Useful for:
270
272
 
271
273
  ```bash
272
274
  # Send message to builder
273
- af send 0042 "Focus on the auth module first"
275
+ af send 42 "Focus on the auth module first"
274
276
 
275
277
  # Interrupt and send new instructions
276
- af send 0042 --interrupt "Stop that. Try a different approach."
278
+ af send 42 --interrupt "Stop that. Try a different approach."
277
279
 
278
280
  # Send to all builders
279
281
  af send --all "Time to wrap up, create PRs"
280
282
 
281
283
  # Include file content
282
- af send 0042 --file src/api.ts "Review this implementation"
284
+ af send 42 --file src/api.ts "Review this implementation"
283
285
  ```
284
286
 
285
287
  ---
@@ -352,7 +354,7 @@ af rename <id> <name>
352
354
  **Example:**
353
355
 
354
356
  ```bash
355
- af rename 0042 "auth-rework"
357
+ af rename 42 "auth-rework"
356
358
  ```
357
359
 
358
360
  ---
@@ -527,8 +529,8 @@ Customize commands via `af-config.json` at the project root:
527
529
  Or override via CLI flags:
528
530
 
529
531
  ```bash
530
- af start --architect-cmd "claude --model opus"
531
- af spawn -p 0042 --builder-cmd "claude --model haiku"
532
+ af dash start --architect-cmd "claude --model opus"
533
+ af spawn 42 --builder-cmd "claude --model haiku"
532
534
  ```
533
535
 
534
536
  ---
@@ -537,8 +539,8 @@ af spawn -p 0042 --builder-cmd "claude --model haiku"
537
539
 
538
540
  | File | Description |
539
541
  |------|-------------|
540
- | `.agent-farm/state.json` | Project runtime state |
541
- | `~/.agent-farm/ports.json` | Global port registry |
542
+ | `.agent-farm/state.db` | Project runtime state (SQLite) |
543
+ | `~/.agent-farm/global.db` | Global port registry (SQLite) |
542
544
  | `af-config.json` | Agent Farm configuration (project root) |
543
545
 
544
546
  ---
@@ -30,7 +30,6 @@ Creates a minimal codev project structure:
30
30
  - `codev/specs/` - Specification files
31
31
  - `codev/plans/` - Implementation plans
32
32
  - `codev/reviews/` - Review documents
33
- - `codev/projectlist.md` - Project tracking
34
33
  - `CLAUDE.md` / `AGENTS.md` - AI agent instructions
35
34
  - `.gitignore` - Standard ignores
36
35
 
@@ -95,7 +94,6 @@ Verifies that all required dependencies are installed and properly configured:
95
94
 
96
95
  **Core Dependencies (required):**
97
96
  - Node.js (>= 18.0.0)
98
- - ttyd (>= 1.7.0)
99
97
  - git (>= 2.5.0)
100
98
  - gh (GitHub CLI, authenticated)
101
99
 
@@ -122,7 +120,6 @@ Codev Doctor - Checking your environment
122
120
  Core Dependencies (required for Agent Farm)
123
121
 
124
122
  ✓ Node.js 20.10.0
125
- ✓ ttyd 1.7.4
126
123
  ✓ git 2.42.0
127
124
  ✓ gh authenticated
128
125
  ✓ @cluesmith/codev 1.0.0
@@ -172,39 +169,6 @@ codev update --force
172
169
 
173
170
  ---
174
171
 
175
- ### codev tower
176
-
177
- Cross-project dashboard showing all agent-farm instances.
178
-
179
- ```bash
180
- codev tower [options]
181
- ```
182
-
183
- **Options:**
184
- - `-p, --port <port>` - Port to run on (default: 4100)
185
- - `--stop` - Stop the tower dashboard
186
-
187
- **Description:**
188
-
189
- Starts a web-based dashboard that shows all running agent-farm instances across different projects. Useful when working on multiple codev projects simultaneously.
190
-
191
- The tower aggregates status from the global port registry at `~/.agent-farm/ports.json`.
192
-
193
- **Examples:**
194
-
195
- ```bash
196
- # Start tower dashboard
197
- codev tower
198
-
199
- # Start on custom port
200
- codev tower -p 4200
201
-
202
- # Stop the dashboard
203
- codev tower --stop
204
- ```
205
-
206
- ---
207
-
208
172
  ## See Also
209
173
 
210
174
  - [af](agent-farm.md) - Agent Farm commands