aether-colony 5.0.0 → 5.2.1

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (317) hide show
  1. package/.aether/aether-utils.sh +3226 -3345
  2. package/.aether/agents-claude/aether-ambassador.md +265 -0
  3. package/.aether/agents-claude/aether-archaeologist.md +327 -0
  4. package/.aether/agents-claude/aether-architect.md +236 -0
  5. package/.aether/agents-claude/aether-auditor.md +271 -0
  6. package/.aether/agents-claude/aether-builder.md +224 -0
  7. package/.aether/agents-claude/aether-chaos.md +269 -0
  8. package/.aether/agents-claude/aether-chronicler.md +305 -0
  9. package/.aether/agents-claude/aether-gatekeeper.md +330 -0
  10. package/.aether/agents-claude/aether-includer.md +374 -0
  11. package/.aether/agents-claude/aether-keeper.md +272 -0
  12. package/.aether/agents-claude/aether-measurer.md +322 -0
  13. package/.aether/agents-claude/aether-oracle.md +237 -0
  14. package/.aether/agents-claude/aether-probe.md +211 -0
  15. package/.aether/agents-claude/aether-queen.md +330 -0
  16. package/.aether/agents-claude/aether-route-setter.md +178 -0
  17. package/.aether/agents-claude/aether-sage.md +418 -0
  18. package/.aether/agents-claude/aether-scout.md +179 -0
  19. package/.aether/agents-claude/aether-surveyor-disciplines.md +417 -0
  20. package/.aether/agents-claude/aether-surveyor-nest.md +355 -0
  21. package/.aether/agents-claude/aether-surveyor-pathogens.md +289 -0
  22. package/.aether/agents-claude/aether-surveyor-provisions.md +360 -0
  23. package/.aether/agents-claude/aether-tracker.md +270 -0
  24. package/.aether/agents-claude/aether-watcher.md +280 -0
  25. package/.aether/agents-claude/aether-weaver.md +248 -0
  26. package/.aether/commands/archaeology.yaml +653 -0
  27. package/.aether/commands/build.yaml +1221 -0
  28. package/.aether/commands/chaos.yaml +653 -0
  29. package/.aether/commands/colonize.yaml +442 -0
  30. package/.aether/commands/continue.yaml +1484 -0
  31. package/.aether/commands/council.yaml +509 -0
  32. package/.aether/commands/data-clean.yaml +80 -0
  33. package/.aether/commands/dream.yaml +275 -0
  34. package/.aether/commands/entomb.yaml +863 -0
  35. package/.aether/commands/export-signals.yaml +64 -0
  36. package/.aether/commands/feedback.yaml +158 -0
  37. package/.aether/commands/flag.yaml +160 -0
  38. package/.aether/commands/flags.yaml +177 -0
  39. package/.aether/commands/focus.yaml +112 -0
  40. package/.aether/commands/help.yaml +167 -0
  41. package/.aether/commands/history.yaml +137 -0
  42. package/.aether/commands/import-signals.yaml +79 -0
  43. package/.aether/commands/init.yaml +502 -0
  44. package/.aether/commands/insert-phase.yaml +102 -0
  45. package/.aether/commands/interpret.yaml +285 -0
  46. package/.aether/commands/lay-eggs.yaml +224 -0
  47. package/.aether/commands/maturity.yaml +122 -0
  48. package/.aether/commands/memory-details.yaml +74 -0
  49. package/.aether/commands/migrate-state.yaml +174 -0
  50. package/.aether/commands/oracle.yaml +1224 -0
  51. package/.aether/commands/organize.yaml +446 -0
  52. package/.aether/commands/patrol.yaml +621 -0
  53. package/.aether/commands/pause-colony.yaml +424 -0
  54. package/.aether/commands/phase.yaml +124 -0
  55. package/.aether/commands/pheromones.yaml +153 -0
  56. package/.aether/commands/plan.yaml +1364 -0
  57. package/.aether/commands/preferences.yaml +63 -0
  58. package/.aether/commands/quick.yaml +104 -0
  59. package/.aether/commands/redirect.yaml +123 -0
  60. package/.aether/commands/resume-colony.yaml +375 -0
  61. package/.aether/commands/resume.yaml +407 -0
  62. package/.aether/commands/run.yaml +229 -0
  63. package/.aether/commands/seal.yaml +1214 -0
  64. package/.aether/commands/skill-create.yaml +337 -0
  65. package/.aether/commands/status.yaml +408 -0
  66. package/.aether/commands/swarm.yaml +352 -0
  67. package/.aether/commands/tunnels.yaml +814 -0
  68. package/.aether/commands/update.yaml +131 -0
  69. package/.aether/commands/verify-castes.yaml +159 -0
  70. package/.aether/commands/watch.yaml +454 -0
  71. package/.aether/docs/INCIDENT_TEMPLATE.md +32 -0
  72. package/.aether/docs/QUEEN-SYSTEM.md +11 -11
  73. package/.aether/docs/README.md +32 -2
  74. package/.aether/docs/command-playbooks/README.md +23 -0
  75. package/.aether/docs/command-playbooks/build-complete.md +349 -0
  76. package/.aether/docs/command-playbooks/build-context.md +282 -0
  77. package/.aether/docs/command-playbooks/build-full.md +1683 -0
  78. package/.aether/docs/command-playbooks/build-prep.md +284 -0
  79. package/.aether/docs/command-playbooks/build-verify.md +405 -0
  80. package/.aether/docs/command-playbooks/build-wave.md +749 -0
  81. package/.aether/docs/command-playbooks/continue-advance.md +524 -0
  82. package/.aether/docs/command-playbooks/continue-finalize.md +447 -0
  83. package/.aether/docs/command-playbooks/continue-full.md +1725 -0
  84. package/.aether/docs/command-playbooks/continue-gates.md +686 -0
  85. package/.aether/docs/command-playbooks/continue-verify.md +407 -0
  86. package/.aether/docs/context-continuity.md +84 -0
  87. package/.aether/docs/disciplines/DISCIPLINES.md +9 -7
  88. package/.aether/docs/error-codes.md +1 -1
  89. package/.aether/docs/known-issues.md +34 -173
  90. package/.aether/docs/pheromones.md +86 -6
  91. package/.aether/docs/plans/pheromone-display-plan.md +257 -0
  92. package/.aether/docs/queen-commands.md +10 -9
  93. package/.aether/docs/source-of-truth-map.md +132 -0
  94. package/.aether/docs/xml-utilities.md +47 -0
  95. package/.aether/rules/aether-colony.md +23 -13
  96. package/.aether/scripts/incident-test-add.sh +47 -0
  97. package/.aether/scripts/weekly-audit.sh +79 -0
  98. package/.aether/skills/.index.json +649 -0
  99. package/.aether/skills/colony/.manifest.json +16 -0
  100. package/.aether/skills/colony/build-discipline/SKILL.md +78 -0
  101. package/.aether/skills/colony/colony-interaction/SKILL.md +56 -0
  102. package/.aether/skills/colony/colony-lifecycle/SKILL.md +77 -0
  103. package/.aether/skills/colony/colony-visuals/SKILL.md +112 -0
  104. package/.aether/skills/colony/context-management/SKILL.md +80 -0
  105. package/.aether/skills/colony/error-presentation/SKILL.md +99 -0
  106. package/.aether/skills/colony/pheromone-protocol/SKILL.md +79 -0
  107. package/.aether/skills/colony/pheromone-visibility/SKILL.md +81 -0
  108. package/.aether/skills/colony/state-safety/SKILL.md +84 -0
  109. package/.aether/skills/colony/worker-priming/SKILL.md +82 -0
  110. package/.aether/skills/domain/.manifest.json +24 -0
  111. package/.aether/skills/domain/README.md +33 -0
  112. package/.aether/skills/domain/django/SKILL.md +49 -0
  113. package/.aether/skills/domain/docker/SKILL.md +52 -0
  114. package/.aether/skills/domain/golang/SKILL.md +52 -0
  115. package/.aether/skills/domain/graphql/SKILL.md +51 -0
  116. package/.aether/skills/domain/html-css/SKILL.md +48 -0
  117. package/.aether/skills/domain/nextjs/SKILL.md +45 -0
  118. package/.aether/skills/domain/nodejs/SKILL.md +53 -0
  119. package/.aether/skills/domain/postgresql/SKILL.md +53 -0
  120. package/.aether/skills/domain/prisma/SKILL.md +59 -0
  121. package/.aether/skills/domain/python/SKILL.md +50 -0
  122. package/.aether/skills/domain/rails/SKILL.md +52 -0
  123. package/.aether/skills/domain/react/SKILL.md +45 -0
  124. package/.aether/skills/domain/rest-api/SKILL.md +58 -0
  125. package/.aether/skills/domain/svelte/SKILL.md +47 -0
  126. package/.aether/skills/domain/tailwind/SKILL.md +45 -0
  127. package/.aether/skills/domain/testing/SKILL.md +53 -0
  128. package/.aether/skills/domain/typescript/SKILL.md +58 -0
  129. package/.aether/skills/domain/vue/SKILL.md +49 -0
  130. package/.aether/templates/QUEEN.md.template +23 -41
  131. package/.aether/templates/colony-state-reset.jq.template +1 -0
  132. package/.aether/templates/colony-state.template.json +4 -0
  133. package/.aether/templates/learning-observations.template.json +6 -0
  134. package/.aether/templates/midden.template.json +13 -0
  135. package/.aether/templates/pheromones.template.json +6 -0
  136. package/.aether/templates/session.template.json +9 -0
  137. package/.aether/utils/atomic-write.sh +63 -17
  138. package/.aether/utils/chamber-utils.sh +145 -2
  139. package/.aether/utils/council.sh +425 -0
  140. package/.aether/utils/emoji-audit.sh +166 -0
  141. package/.aether/utils/error-handler.sh +21 -7
  142. package/.aether/utils/file-lock.sh +182 -27
  143. package/.aether/utils/flag.sh +278 -0
  144. package/.aether/utils/hive.sh +572 -0
  145. package/.aether/utils/immune.sh +508 -0
  146. package/.aether/utils/learning.sh +1928 -0
  147. package/.aether/utils/midden.sh +520 -0
  148. package/.aether/utils/oracle/oracle.md +168 -0
  149. package/.aether/utils/oracle/oracle.sh +1023 -0
  150. package/.aether/utils/pheromone.sh +2029 -0
  151. package/.aether/utils/queen.sh +1710 -0
  152. package/.aether/utils/scan.sh +860 -0
  153. package/.aether/utils/semantic-cli.sh +10 -8
  154. package/.aether/utils/session.sh +816 -0
  155. package/.aether/utils/skills.sh +509 -0
  156. package/.aether/utils/spawn-tree.sh +103 -271
  157. package/.aether/utils/spawn.sh +260 -0
  158. package/.aether/utils/state-api.sh +389 -0
  159. package/.aether/utils/state-loader.sh +8 -6
  160. package/.aether/utils/suggest.sh +611 -0
  161. package/.aether/utils/swarm-display.sh +10 -1
  162. package/.aether/utils/swarm.sh +1004 -0
  163. package/.aether/utils/watch-spawn-tree.sh +11 -2
  164. package/.aether/utils/xml-compose.sh +2 -2
  165. package/.aether/utils/xml-convert.sh +9 -5
  166. package/.aether/utils/xml-core.sh +5 -9
  167. package/.aether/utils/xml-query.sh +4 -4
  168. package/.aether/workers.md +86 -67
  169. package/.claude/agents/ant/aether-ambassador.md +2 -1
  170. package/.claude/agents/ant/aether-archaeologist.md +6 -1
  171. package/.claude/agents/ant/aether-architect.md +236 -0
  172. package/.claude/agents/ant/aether-auditor.md +6 -1
  173. package/.claude/agents/ant/aether-builder.md +38 -1
  174. package/.claude/agents/ant/aether-chaos.md +2 -1
  175. package/.claude/agents/ant/aether-chronicler.md +1 -0
  176. package/.claude/agents/ant/aether-gatekeeper.md +6 -1
  177. package/.claude/agents/ant/aether-includer.md +1 -0
  178. package/.claude/agents/ant/aether-keeper.md +1 -0
  179. package/.claude/agents/ant/aether-measurer.md +6 -1
  180. package/.claude/agents/ant/aether-oracle.md +237 -0
  181. package/.claude/agents/ant/aether-probe.md +2 -1
  182. package/.claude/agents/ant/aether-queen.md +6 -1
  183. package/.claude/agents/ant/aether-route-setter.md +6 -1
  184. package/.claude/agents/ant/aether-sage.md +68 -3
  185. package/.claude/agents/ant/aether-scout.md +38 -1
  186. package/.claude/agents/ant/aether-surveyor-disciplines.md +2 -1
  187. package/.claude/agents/ant/aether-surveyor-nest.md +2 -1
  188. package/.claude/agents/ant/aether-surveyor-pathogens.md +2 -1
  189. package/.claude/agents/ant/aether-surveyor-provisions.md +2 -1
  190. package/.claude/agents/ant/aether-tracker.md +6 -1
  191. package/.claude/agents/ant/aether-watcher.md +37 -1
  192. package/.claude/agents/ant/aether-weaver.md +2 -1
  193. package/.claude/commands/ant/archaeology.md +1 -8
  194. package/.claude/commands/ant/build.md +43 -1159
  195. package/.claude/commands/ant/chaos.md +1 -14
  196. package/.claude/commands/ant/colonize.md +3 -14
  197. package/.claude/commands/ant/continue.md +40 -1026
  198. package/.claude/commands/ant/council.md +213 -15
  199. package/.claude/commands/ant/data-clean.md +81 -0
  200. package/.claude/commands/ant/dream.md +12 -9
  201. package/.claude/commands/ant/entomb.md +62 -87
  202. package/.claude/commands/ant/export-signals.md +57 -0
  203. package/.claude/commands/ant/feedback.md +18 -0
  204. package/.claude/commands/ant/flag.md +12 -0
  205. package/.claude/commands/ant/flags.md +22 -8
  206. package/.claude/commands/ant/focus.md +18 -0
  207. package/.claude/commands/ant/help.md +40 -8
  208. package/.claude/commands/ant/history.md +3 -0
  209. package/.claude/commands/ant/import-signals.md +71 -0
  210. package/.claude/commands/ant/init.md +349 -191
  211. package/.claude/commands/ant/insert-phase.md +105 -0
  212. package/.claude/commands/ant/interpret.md +11 -0
  213. package/.claude/commands/ant/lay-eggs.md +167 -158
  214. package/.claude/commands/ant/maturity.md +22 -11
  215. package/.claude/commands/ant/memory-details.md +77 -0
  216. package/.claude/commands/ant/migrate-state.md +6 -0
  217. package/.claude/commands/ant/oracle.md +317 -62
  218. package/.claude/commands/ant/organize.md +10 -5
  219. package/.claude/commands/ant/patrol.md +620 -0
  220. package/.claude/commands/ant/pause-colony.md +8 -22
  221. package/.claude/commands/ant/phase.md +26 -37
  222. package/.claude/commands/ant/pheromones.md +156 -0
  223. package/.claude/commands/ant/plan.md +199 -50
  224. package/.claude/commands/ant/preferences.md +65 -0
  225. package/.claude/commands/ant/quick.md +100 -0
  226. package/.claude/commands/ant/redirect.md +18 -0
  227. package/.claude/commands/ant/resume-colony.md +37 -22
  228. package/.claude/commands/ant/resume.md +60 -7
  229. package/.claude/commands/ant/run.md +231 -0
  230. package/.claude/commands/ant/seal.md +506 -78
  231. package/.claude/commands/ant/skill-create.md +286 -0
  232. package/.claude/commands/ant/status.md +171 -1
  233. package/.claude/commands/ant/swarm.md +11 -23
  234. package/.claude/commands/ant/tunnels.md +1 -0
  235. package/.claude/commands/ant/update.md +58 -135
  236. package/.claude/commands/ant/verify-castes.md +90 -42
  237. package/.claude/commands/ant/watch.md +1 -0
  238. package/.opencode/agents/aether-ambassador.md +1 -1
  239. package/.opencode/agents/aether-architect.md +133 -0
  240. package/.opencode/agents/aether-builder.md +3 -3
  241. package/.opencode/agents/aether-oracle.md +137 -0
  242. package/.opencode/agents/aether-queen.md +1 -1
  243. package/.opencode/agents/aether-route-setter.md +1 -1
  244. package/.opencode/agents/aether-scout.md +1 -1
  245. package/.opencode/agents/aether-surveyor-disciplines.md +6 -1
  246. package/.opencode/agents/aether-surveyor-nest.md +6 -1
  247. package/.opencode/agents/aether-surveyor-pathogens.md +6 -1
  248. package/.opencode/agents/aether-surveyor-provisions.md +6 -1
  249. package/.opencode/agents/aether-tracker.md +1 -1
  250. package/.opencode/agents/aether-watcher.md +1 -1
  251. package/.opencode/agents/aether-weaver.md +1 -1
  252. package/.opencode/commands/ant/archaeology.md +7 -14
  253. package/.opencode/commands/ant/build.md +54 -88
  254. package/.opencode/commands/ant/chaos.md +7 -24
  255. package/.opencode/commands/ant/colonize.md +10 -17
  256. package/.opencode/commands/ant/continue.md +595 -66
  257. package/.opencode/commands/ant/council.md +150 -18
  258. package/.opencode/commands/ant/data-clean.md +77 -0
  259. package/.opencode/commands/ant/dream.md +15 -17
  260. package/.opencode/commands/ant/entomb.md +28 -18
  261. package/.opencode/commands/ant/export-signals.md +54 -0
  262. package/.opencode/commands/ant/feedback.md +24 -5
  263. package/.opencode/commands/ant/flag.md +16 -4
  264. package/.opencode/commands/ant/flags.md +24 -10
  265. package/.opencode/commands/ant/focus.md +22 -5
  266. package/.opencode/commands/ant/help.md +41 -8
  267. package/.opencode/commands/ant/history.md +9 -0
  268. package/.opencode/commands/ant/import-signals.md +68 -0
  269. package/.opencode/commands/ant/init.md +396 -154
  270. package/.opencode/commands/ant/insert-phase.md +111 -0
  271. package/.opencode/commands/ant/interpret.md +16 -0
  272. package/.opencode/commands/ant/lay-eggs.md +184 -112
  273. package/.opencode/commands/ant/maturity.md +18 -2
  274. package/.opencode/commands/ant/memory-details.md +83 -0
  275. package/.opencode/commands/ant/migrate-state.md +12 -0
  276. package/.opencode/commands/ant/oracle.md +322 -67
  277. package/.opencode/commands/ant/organize.md +14 -12
  278. package/.opencode/commands/ant/patrol.md +626 -0
  279. package/.opencode/commands/ant/pause-colony.md +12 -29
  280. package/.opencode/commands/ant/phase.md +30 -40
  281. package/.opencode/commands/ant/pheromones.md +162 -0
  282. package/.opencode/commands/ant/plan.md +210 -57
  283. package/.opencode/commands/ant/preferences.md +71 -0
  284. package/.opencode/commands/ant/quick.md +91 -0
  285. package/.opencode/commands/ant/redirect.md +22 -5
  286. package/.opencode/commands/ant/resume-colony.md +41 -29
  287. package/.opencode/commands/ant/resume.md +80 -20
  288. package/.opencode/commands/ant/run.md +237 -0
  289. package/.opencode/commands/ant/seal.md +230 -25
  290. package/.opencode/commands/ant/skill-create.md +63 -0
  291. package/.opencode/commands/ant/status.md +125 -30
  292. package/.opencode/commands/ant/swarm.md +3 -345
  293. package/.opencode/commands/ant/tunnels.md +3 -9
  294. package/.opencode/commands/ant/update.md +63 -127
  295. package/.opencode/commands/ant/verify-castes.md +96 -42
  296. package/.opencode/commands/ant/watch.md +7 -0
  297. package/CHANGELOG.md +368 -1
  298. package/README.md +195 -324
  299. package/bin/cli.js +236 -429
  300. package/bin/generate-commands.js +186 -0
  301. package/bin/generate-commands.sh +128 -89
  302. package/bin/lib/spawn-logger.js +0 -15
  303. package/bin/lib/update-transaction.js +285 -35
  304. package/bin/npx-install.js +178 -0
  305. package/bin/validate-package.sh +85 -3
  306. package/package.json +16 -4
  307. package/.aether/CONTEXT.md +0 -160
  308. package/.aether/docs/QUEEN.md +0 -84
  309. package/.aether/exchange/colony-registry.xml +0 -11
  310. package/.aether/exchange/pheromones.xml +0 -87
  311. package/.aether/exchange/queen-wisdom.xml +0 -14
  312. package/.aether/model-profiles.yaml +0 -100
  313. package/.aether/utils/spawn-with-model.sh +0 -56
  314. package/bin/lib/model-profiles.js +0 -445
  315. package/bin/lib/model-verify.js +0 -288
  316. package/bin/lib/proxy-health.js +0 -253
  317. package/bin/lib/telemetry.js +0 -441
@@ -0,0 +1,111 @@
1
+ <!-- Generated from .aether/commands/insert-phase.yaml - DO NOT EDIT DIRECTLY -->
2
+ ---
3
+ name: ant:insert-phase
4
+ description: "➕🐜 Insert a corrective phase into the active plan"
5
+ ---
6
+
7
+ ### Step -1: Normalize Arguments
8
+
9
+ Run: `normalized_args=$(bash .aether/aether-utils.sh normalize-args "$@")`
10
+
11
+ This ensures arguments work correctly in both Claude Code and OpenCode. Use `$normalized_args` throughout this command.
12
+
13
+ You are the **Queen**. Insert a new corrective phase without forcing the user to provide flags.
14
+
15
+ ## Instructions
16
+
17
+ ### Step 1: Validate Colony State
18
+
19
+ Read `.aether/data/COLONY_STATE.json`.
20
+
21
+ If `goal` is null:
22
+ `No colony initialized. Run /ant:init first.`
23
+ Stop.
24
+
25
+ If `milestone` == `"Crowned Anthill"`:
26
+ `This colony has been sealed. Start a new colony with /ant:init "new goal".`
27
+ Stop.
28
+
29
+ If `plan.phases` is empty:
30
+ `No project plan. Run /ant:plan first.`
31
+ Stop.
32
+
33
+ Determine:
34
+ - `current_phase`
35
+ - `total_phases`
36
+ - `current_phase_name` (if available)
37
+
38
+ ### Step 2: Collect Minimal Input
39
+
40
+ This command is designed to work with no arguments.
41
+
42
+ If `$normalized_args` is non-empty:
43
+ - Use `$normalized_args` as the issue summary.
44
+ - Skip the first question.
45
+
46
+ Otherwise ask:
47
+ ```text
48
+ What is not working and needs a corrective phase?
49
+ ```
50
+
51
+ Then ask:
52
+ ```text
53
+ What should the inserted phase accomplish?
54
+ ```
55
+
56
+ Then ask (optional):
57
+ ```text
58
+ Any hard constraints to enforce while fixing this? (or say "none")
59
+ ```
60
+
61
+ If constraints answer is `none` (case-insensitive), treat constraints as empty.
62
+
63
+ ### Step 3: Derive Phase Name
64
+
65
+ Create a concise phase name from the user goal:
66
+ - Start with `Stabilize`
67
+ - Add a short noun phrase from the goal (max 6 words)
68
+ - Keep under 80 characters
69
+
70
+ Example:
71
+ - Goal: `Fix retry flow and stop duplicate requests`
72
+ - Name: `Stabilize retry flow and duplicate requests`
73
+
74
+ ### Step 4: Insert Phase Safely
75
+
76
+ Run:
77
+
78
+ ```bash
79
+ bash .aether/aether-utils.sh phase-insert "<phase_name>" "<goal_text>" "<constraints_text>"
80
+ ```
81
+
82
+ Parse JSON result:
83
+ - If `ok != true`, display error and stop.
84
+ - Extract `inserted_phase_id` and `after_phase`.
85
+
86
+ ### Step 5: Confirm Outcome
87
+
88
+ Display:
89
+
90
+ ```text
91
+ Inserted corrective phase successfully.
92
+ New phase: <inserted_phase_id> — <phase_name>
93
+ Inserted after phase: <after_phase>
94
+ Goal: <goal_text>
95
+ ```
96
+
97
+ If constraints were provided, also display:
98
+ ```text
99
+ Constraints captured: <constraints_text>
100
+ ```
101
+
102
+ ### Step 6: Next Up
103
+
104
+ Show:
105
+
106
+ ```text
107
+ Next steps:
108
+ /ant:phase <inserted_phase_id> Review inserted phase details
109
+ /ant:build <inserted_phase_id> Execute corrective phase
110
+ /ant:status Verify updated plan state
111
+ ```
@@ -1,8 +1,15 @@
1
+ <!-- Generated from .aether/commands/interpret.yaml - DO NOT EDIT DIRECTLY -->
1
2
  ---
2
3
  name: ant:interpret
3
4
  description: "🔍🐜💭🐜🔍 The Interpreter - grounds dreams in reality, validates against codebase, and discusses what to implement"
4
5
  ---
5
6
 
7
+ ### Step -1: Normalize Arguments
8
+
9
+ Run: `normalized_args=$(bash .aether/aether-utils.sh normalize-args "$@")`
10
+
11
+ This ensures arguments work correctly in both Claude Code and OpenCode. Use `$normalized_args` throughout this command.
12
+
6
13
  You are the **Interpreter Ant**. You are the bridge between the Dreamer's visions and the colony's practical work. Where the Dreamer wanders and imagines, you investigate and verify. Where the Dreamer speaks in metaphor, you speak in evidence. Where the Dreamer suggests, you assess feasibility.
7
14
 
8
15
  You are not here to dismiss dreams — they often see what builders miss. But you are here to ground them. A dream that says "the colony forgets between sessions" is poetic. Your job is to find the exact files, the exact code paths, the exact gaps, and say: "here's what that actually means, here's what fixing it would cost, and here's whether it's worth doing now."
@@ -52,11 +59,14 @@ Also read in parallel:
52
59
 
53
60
  ### Step 2: Display Header
54
61
 
62
+
63
+
55
64
  ```
56
65
  🔍🐜💭🐜🔍 ═══════════════════════════════════════════════
57
66
  D R E A M I N T E R P R E T E R
58
67
  ═══════════════════════════════════════════════ 🔍🐜💭🐜🔍
59
68
 
69
+
60
70
  📓 Reviewing: {dream_filename}
61
71
  {N} dreams | {concerns} concerns | {pheromones} suggested pheromones
62
72
 
@@ -146,11 +156,14 @@ Verdict emoji mapping:
146
156
 
147
157
  After all dreams are interpreted, display:
148
158
 
159
+
160
+
149
161
  ```
150
162
  🔍🐜💭🐜🔍 ═══════════════════════════════════════════════
151
163
  I N T E R P R E T A T I O N C O M P L E T E
152
164
  ═══════════════════════════════════════════════ 🔍🐜💭🐜🔍
153
165
 
166
+
154
167
  📊 Results:
155
168
  {confirmed_count} confirmed | {partial_count} partially confirmed | {unconfirmed_count} unconfirmed | {refuted_count} refuted
156
169
 
@@ -218,6 +231,7 @@ Wait for user response.
218
231
 
219
232
  ### Step 7: Log Activity
220
233
 
234
+
221
235
  ```bash
222
236
  bash .aether/aether-utils.sh activity-log "INTERPRET" "Interpreter" "Dream review: {dream_file}, {confirmed} confirmed, {partial} partial, {unconfirmed} unconfirmed, {refuted} refuted, {actions_taken} actions taken"
223
237
  ```
@@ -243,6 +257,8 @@ bash .aether/aether-utils.sh activity-log "INTERPRET" "Interpreter" "Dream revie
243
257
  /ant:build 🔨 Start building
244
258
  ```
245
259
 
260
+
261
+
246
262
  ## Investigation Guidelines
247
263
 
248
264
  When investigating dreams, remember:
@@ -1,141 +1,213 @@
1
+ <!-- Generated from .aether/commands/lay-eggs.yaml - DO NOT EDIT DIRECTLY -->
1
2
  ---
2
3
  name: ant:lay-eggs
3
- description: "🥚🐜🥚 Lay first eggs of new colony (First Eggs milestone)"
4
+ description: "🥚🐜🥚 Set up Aether in this repo creates .aether/ with all system files"
4
5
  ---
5
6
 
6
- You are the **Queen**. Begin a new colony, preserving pheromones.
7
-
8
- ## Instructions
9
-
10
7
  ### Step -1: Normalize Arguments
11
8
 
12
9
  Run: `normalized_args=$(bash .aether/aether-utils.sh normalize-args "$@")`
13
10
 
14
11
  This ensures arguments work correctly in both Claude Code and OpenCode. Use `$normalized_args` throughout this command.
15
12
 
16
- Parse `$normalized_args`:
17
- - If contains `--no-visual`: set `visual_mode = false` (visual is ON by default)
18
- - Otherwise: set `visual_mode = true`
13
+ You are the **Queen**. Prepare this repository for Aether colony development.
14
+
15
+ ## Instructions
16
+
17
+ This command sets up the `.aether/` directory structure and copies all system files from the global hub. It does NOT start a colony — that's what `/ant:init "goal"` is for.
18
+
19
+ <failure_modes>
20
+ ### Hub Not Found
21
+ If `~/.aether/system/aether-utils.sh` does not exist:
22
+ - The global hub is not installed
23
+ - Tell the user to run `npm install -g aether-colony` first
24
+ - Stop — cannot proceed without hub
25
+
26
+ ### Partial Copy Failure
27
+ If some files fail to copy from hub:
28
+ - Report which files succeeded and which failed
29
+ - The user can re-run `/ant:lay-eggs` safely (idempotent)
30
+ </failure_modes>
31
+
32
+ <success_criteria>
33
+ Command is complete when:
34
+ - `.aether/` directory exists with all subdirectories
35
+ - System files (aether-utils.sh, workers.md, etc.) are present
36
+ - Templates, docs, utils, schemas are populated
37
+ - QUEEN.md is initialized
38
+ - User sees confirmation and next steps
39
+ </success_criteria>
40
+
41
+ <read_only>
42
+ Do not touch during lay-eggs:
43
+ - .aether/data/COLONY_STATE.json (colony state belongs to init)
44
+ - .aether/dreams/ contents (user notes — create dir but don't modify files)
45
+ - .aether/chambers/ contents (archived colonies — create dir but don't modify files)
46
+ - Source code files
47
+ - .env* files
48
+ - .claude/settings.json
49
+ </read_only>
50
+
51
+ ### Step 1: Check Hub Availability
52
+
53
+ Check if the global hub exists by reading `~/.aether/system/aether-utils.sh` (expand `~` to the user's home directory).
54
+
55
+ **If the hub does NOT exist:**
56
+ ```
57
+ Aether hub not found at ~/.aether/system/
58
+
59
+ The global hub must be installed before setting up a repo.
60
+
61
+ npm install -g aether-colony
62
+
63
+ This installs the Aether CLI and populates the hub at ~/.aether/system/
64
+ with all the system files your repo needs.
65
+
66
+ After installing, run /ant:lay-eggs again.
67
+ ```
68
+ Stop here.
69
+
70
+ ### Step 2: Check Existing Setup
71
+
72
+
73
+
74
+ Check if `.aether/aether-utils.sh` already exists.
75
+
76
+
77
+ **If it exists:**
78
+ ```
79
+ Aether is already set up in this repo.
80
+
81
+ Refreshing system files from hub...
82
+ ```
83
+ Proceed to Step 3 (this makes the command safe to re-run as an update/repair).
84
+
85
+ **If it does NOT exist:**
86
+ ```
87
+ Setting up Aether in this repo...
88
+ ```
89
+ Proceed to Step 3.
90
+
91
+ ### Step 3: Create Directory Structure
19
92
 
20
- ### Step 0: Initialize Visual Mode (if enabled)
21
93
 
22
- If `visual_mode` is true:
23
- ```bash
24
- # Generate session ID
25
- layeggs_id="layeggs-$(date +%s)"
26
94
 
27
- # Initialize swarm display
28
- bash .aether/aether-utils.sh swarm-display-init "$layeggs_id"
29
- bash .aether/aether-utils.sh swarm-display-update "Queen" "prime" "excavating" "Laying first eggs" "Colony" '{"read":0,"grep":0,"edit":0,"bash":0}' 0 "nursery" 0
95
+ Run:
96
+
97
+ ```bash
98
+ mkdir -p \
99
+ .aether/data \
100
+ .aether/data/midden \
101
+ .aether/data/backups \
102
+ .aether/data/survey \
103
+ .aether/dreams \
104
+ .aether/chambers \
105
+ .aether/locks \
106
+ .aether/temp \
107
+ .aether/docs \
108
+ .aether/utils \
109
+ .aether/templates \
110
+ .aether/schemas \
111
+ .aether/exchange \
112
+ .aether/rules \
113
+ .aether/scripts \
114
+ .claude/rules && \
115
+ touch .aether/dreams/.gitkeep && \
116
+ touch .aether/chambers/.gitkeep && \
117
+ touch .aether/data/midden/.gitkeep
30
118
  ```
31
119
 
32
- ### Step 1: Validate Input
33
-
34
- - If `$normalized_args` is empty:
35
- ```
36
- Usage: /ant:lay-eggs "<new colony goal>"
37
-
38
- Start a fresh colony, preserving pheromones from prior colonies.
39
- Requires current colony to be entombed or reset.
40
-
41
- Example:
42
- /ant:lay-eggs "Build a REST API with authentication"
43
- ```
44
- Stop here.
45
-
46
- ### Step 2: Check Current Colony
47
-
48
- - Read `.aether/data/COLONY_STATE.json`
49
- - If goal is not null AND phases exist with status != "completed":
50
- ```
51
- Active colony exists: {goal}
52
-
53
- To start a new colony, you must first:
54
- 1. Complete all phases, then /ant:entomb to archive
55
- 2. Or manually reset by deleting .aether/data/COLONY_STATE.json
56
-
57
- Current: Phase {current_phase}, {phases_count} phases in plan
58
- ```
59
- Stop here.
60
-
61
- ### Step 3: Extract Preserved Knowledge
62
-
63
- - Read current state to extract preserved fields:
64
- - `memory.phase_learnings` (all items)
65
- - `memory.decisions` (all items)
66
- - `memory.instincts` (all items with confidence >= 0.5)
67
- - Store for use in Step 4
68
-
69
- ### Step 4: Create New Colony State
70
-
71
- Generate new state following RESEARCH.md Pattern 2 (State Reset with Pheromone Preservation):
72
-
73
- **Fields to preserve from old state:**
74
- - memory.phase_learnings
75
- - memory.decisions
76
- - memory.instincts (high confidence only)
77
-
78
- **Fields to reset:**
79
- - goal: new goal from $normalized_args
80
- - state: "READY"
81
- - current_phase: 0
82
- - session_id: new session_{unix_timestamp}_{random}
83
- - initialized_at: current ISO-8601 timestamp
84
- - build_started_at: null
85
- - plan: { generated_at: null, confidence: null, phases: [] }
86
- - errors: { records: [], flagged_patterns: [] }
87
- - signals: []
88
- - graveyards: []
89
- - events: [colony_initialized event with new goal]
90
-
91
- **New milestone fields:**
92
- - milestone: "First Mound"
93
- - milestone_updated_at: current timestamp
94
- - milestone_version: "v0.1.0"
95
-
96
- Write to `.aether/data/COLONY_STATE.json`
97
-
98
- ### Step 5: Reset Constraints
99
-
100
- Write `.aether/data/constraints.json`:
101
- ```json
102
- {
103
- "version": "1.0",
104
- "focus": [],
105
- "constraints": []
106
- }
120
+ ### Step 4: Copy System Files from Hub
121
+
122
+
123
+
124
+ Run:
125
+
126
+ ```bash
127
+ # Core system files
128
+ cp -f ~/.aether/system/aether-utils.sh .aether/ && \
129
+ chmod +x .aether/aether-utils.sh && \
130
+ cp -f ~/.aether/system/workers.md .aether/ 2>/dev/null || true && \
131
+ cp -f ~/.aether/system/CONTEXT.md .aether/ 2>/dev/null || true && \
132
+ # Directories
133
+ cp -Rf ~/.aether/system/docs/* .aether/docs/ 2>/dev/null || true && \
134
+ cp -Rf ~/.aether/system/utils/* .aether/utils/ 2>/dev/null || true && \
135
+ cp -Rf ~/.aether/system/templates/* .aether/templates/ 2>/dev/null || true && \
136
+ cp -Rf ~/.aether/system/schemas/* .aether/schemas/ 2>/dev/null || true && \
137
+ cp -Rf ~/.aether/system/exchange/* .aether/exchange/ 2>/dev/null || true && \
138
+ cp -Rf ~/.aether/system/rules/* .claude/rules/ 2>/dev/null || true && \
139
+
140
+ # Version tracking
141
+ cp -f ~/.aether/version.json .aether/version.json 2>/dev/null || true
142
+
143
+ echo "System files copied."
107
144
  ```
108
145
 
109
- ### Step 6: Display Result
146
+ ### Step 5: Initialize QUEEN.md
147
+
148
+
149
+
150
+ Run: `bash .aether/aether-utils.sh queen-init`
151
+
152
+
153
+ Parse the JSON result:
154
+ - If `created` is true: note `QUEEN.md initialized`
155
+ - If `created` is false: note `QUEEN.md already exists (preserved)`
156
+
157
+ ### Step 6: Register Repo (Silent)
158
+
159
+ Attempt to register this repo in the global hub. Silent on failure — registry is optional.
160
+
161
+
162
+
163
+ Run (ignore errors):
110
164
 
111
- **If visual_mode is true, render final swarm display:**
112
165
  ```bash
113
- bash .aether/aether-utils.sh swarm-display-update "Queen" "prime" "completed" "First eggs laid" "Colony" '{"read":3,"grep":0,"edit":2,"bash":1}' 100 "nursery" 100
114
- bash .aether/aether-utils.sh swarm-display-render "$layeggs_id"
166
+ bash .aether/aether-utils.sh registry-add "$(pwd)" "$(jq -r '.version // "unknown"' ~/.aether/version.json 2>/dev/null || echo 'unknown')" 2>/dev/null || true
115
167
  ```
116
168
 
169
+ ### Step 7: Verify Setup
170
+
171
+
172
+
173
+ Run:
174
+
175
+ ```bash
176
+ # Count what was set up
177
+ dirs=0
178
+ files=0
179
+ for d in .aether/data .aether/docs .aether/utils .aether/templates .aether/schemas .aether/exchange .aether/dreams .aether/chambers; do
180
+ [ -d "$d" ] && dirs=$((dirs + 1))
181
+ done
182
+ [ -f .aether/aether-utils.sh ] && files=$((files + 1))
183
+ [ -f .aether/workers.md ] && files=$((files + 1))
184
+ [ -f .aether/QUEEN.md ] && files=$((files + 1))
185
+ [ -f .aether/CONTEXT.md ] && files=$((files + 1))
186
+ [ -d .aether/templates ] && templates=$(ls .aether/templates/*.template.* 2>/dev/null | wc -l | tr -d ' ') || templates=0
187
+ [ -d .aether/utils ] && utils=$(ls .aether/utils/*.sh 2>/dev/null | wc -l | tr -d ' ') || utils=0
188
+
189
+ echo "{\"dirs\": $dirs, \"core_files\": $files, \"templates\": $templates, \"utils\": $utils}"
117
190
  ```
118
- 🥚 ═══════════════════════════════════════════════════
119
- F I R S T E G G S L A I D
120
- ══════════════════════════════════════════════════ 🥚
121
191
 
122
- 👑 New colony goal:
123
- "{goal}"
192
+ Parse the JSON output for the display step.
124
193
 
125
- 📋 Session: {session_id}
126
- 🏆 Milestone: First Mound (v0.1.0)
194
+ ### Step 8: Display Result
127
195
 
128
- {If inherited knowledge:}
129
- 🧠 Inherited from prior colonies:
130
- {N} instinct(s) | {N} decision(s) | {N} learning(s)
131
- {End if}
132
196
 
133
- 🐜 The colony begins anew.
134
197
 
135
- /ant:plan 📋 Chart the course
136
- /ant:colonize 🗺️ Analyze existing code
137
198
  ```
199
+ 🥚 ═══════════════════════════════════════════════════════
200
+ A E T H E R R E A D Y
201
+ ═══════════════════════════════════════════════════════════ 🥚
202
+
138
203
 
139
- Include edge case handling:
140
- - If no prior knowledge: omit the inheritance section
141
- - If prior colony had no phases: allow laying eggs without entombment
204
+ {dirs} directories created
205
+ {core_files} core system files
206
+ {templates} templates ({utils} utils modules)
207
+
208
+ To start a colony:
209
+ /ant:init "your goal here"
210
+
211
+ To verify setup:
212
+ /ant:status
213
+ ```
@@ -1,15 +1,23 @@
1
+ <!-- Generated from .aether/commands/maturity.yaml - DO NOT EDIT DIRECTLY -->
1
2
  ---
2
3
  name: ant:maturity
3
4
  description: "👑🐜🏛️🐜👑 View colony maturity journey with ASCII art anthill"
4
5
  ---
5
6
 
7
+ ### Step -1: Normalize Arguments
8
+
9
+ Run: `normalized_args=$(bash .aether/aether-utils.sh normalize-args "$@")`
10
+
11
+ This ensures arguments work correctly in both Claude Code and OpenCode. Use `$normalized_args` throughout this command.
12
+
6
13
  You are the **Queen**. Display the colony's maturity journey.
7
14
 
8
15
  ## Instructions
9
16
 
10
17
  ### Step 1: Detect Current Milestone
11
18
 
12
- Run: `bash .aether/aether-utils.sh milestone-detect`
19
+ Run:
20
+ `bash .aether/aether-utils.sh milestone-detect`
13
21
 
14
22
  Parse JSON result to get:
15
23
  - `milestone`: Current milestone name (First Mound, Open Chambers, Brood Stable, Ventilated Nest, Sealed Chambers, Crowned Anthill)
@@ -32,7 +40,7 @@ Display header:
32
40
  .-.
33
41
  (o o) AETHER COLONY
34
42
  | O | Maturity Journey
35
- `-`
43
+ `-'
36
44
  ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━
37
45
 
38
46
  👑 Goal: {goal (truncated to 50 chars)}
@@ -43,6 +51,8 @@ Display header:
43
51
 
44
52
  ### Step 4: Show ASCII Art Anthill
45
53
 
54
+
55
+
46
56
  Read the ASCII art file for the current milestone:
47
57
  - First Mound → `.aether/visualizations/anthill-stages/first-mound.txt`
48
58
  - Open Chambers → `.aether/visualizations/anthill-stages/open-chambers.txt`
@@ -53,6 +63,7 @@ Read the ASCII art file for the current milestone:
53
63
 
54
64
  Display the ASCII art with current milestone highlighted (bold/bright).
55
65
 
66
+
56
67
  ### Step 5: Show Journey Progress Bar
57
68
 
58
69
  Display progress through all milestones:
@@ -87,6 +98,11 @@ Colony Statistics:
87
98
 
88
99
  ### Edge Cases
89
100
 
101
+
102
+
90
103
  - If milestone file doesn't exist: Show error "Milestone visualization not found"
104
+
91
105
  - If COLONY_STATE.json missing: "No colony initialized. Run /ant:init first."
92
106
  - If phases_completed is 0: All milestones show as upcoming except First Mound
107
+
108
+
@@ -0,0 +1,83 @@
1
+ <!-- Generated from .aether/commands/memory-details.yaml - DO NOT EDIT DIRECTLY -->
2
+ ---
3
+ name: ant:memory-details
4
+ description: "Show detailed colony memory — wisdom, pending promotions, and recent failures"
5
+ ---
6
+
7
+ ### Step -1: Normalize Arguments
8
+
9
+ Run: `normalized_args=$(bash .aether/aether-utils.sh normalize-args "$@")`
10
+
11
+ This ensures arguments work correctly in both Claude Code and OpenCode. Use `$normalized_args` throughout this command.
12
+
13
+ # /ant:memory-details — Colony Memory Details
14
+
15
+ Drill-down view of accumulated colony wisdom, pending promotions, and recent failures.
16
+
17
+ ## Usage
18
+
19
+ ```bash
20
+ /ant:memory-details
21
+ ```
22
+
23
+ ## Implementation
24
+
25
+ ### Step 1: Load Memory Data
26
+
27
+ Run using the Bash tool with description "Loading colony memory...":
28
+ ```bash
29
+ bash .aether/aether-utils.sh memory-metrics
30
+ ```
31
+
32
+ ### Step 2: Display Wisdom (from QUEEN.md)
33
+
34
+ Read .aether/QUEEN.md and display entries by category:
35
+ - Philosophies
36
+ - Patterns
37
+ - Redirects
38
+ - Stack
39
+ - Decrees
40
+
41
+ Format:
42
+ ```
43
+ ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━
44
+ COLONY WISDOM (X entries)
45
+ ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━
46
+
47
+ 📜 Philosophies (N)
48
+ - Entry 1...
49
+ - Entry 2...
50
+
51
+ 🔧 Patterns (N)
52
+ - Entry 1...
53
+ ```
54
+
55
+ ### Step 3: Display Pending Promotions
56
+
57
+ Show observations meeting threshold but not yet promoted:
58
+ ```
59
+ ⏳ Pending Promotions (N)
60
+ - [type] Content... (X observations)
61
+ ```
62
+
63
+ Show deferred proposals:
64
+ ```
65
+ 💤 Deferred Proposals (N)
66
+ - [type] Content... (deferred YYYY-MM-DD)
67
+ ```
68
+
69
+ ### Step 4: Display Recent Failures
70
+
71
+ Show last 5 failures from midden:
72
+ ```
73
+ ⚠️ Recent Failures (N)
74
+ [YYYY-MM-DD HH:MM] Source: context
75
+ Content...
76
+ ```
77
+
78
+ ### Step 5: Summary
79
+
80
+ Show counts summary and reminder command:
81
+ ```
82
+ Run /ant:status for quick overview
83
+ ```
@@ -1,8 +1,15 @@
1
+ <!-- Generated from .aether/commands/migrate-state.yaml - DO NOT EDIT DIRECTLY -->
1
2
  ---
2
3
  name: ant:migrate-state
3
4
  description: "🚚🐜📦🐜🚚 One-time state migration from v1 to v2.0 format"
4
5
  ---
5
6
 
7
+ ### Step -1: Normalize Arguments
8
+
9
+ Run: `normalized_args=$(bash .aether/aether-utils.sh normalize-args "$@")`
10
+
11
+ This ensures arguments work correctly in both Claude Code and OpenCode. Use `$normalized_args` throughout this command.
12
+
6
13
  # 🚚🐜📦🐜🚚 /ant:migrate-state - One-Time State Migration
7
14
 
8
15
  Migrate colony state from v1 (6-file) format to v2.0 (consolidated single-file) format.
@@ -113,12 +120,15 @@ Format the JSON with 2-space indentation for readability.
113
120
 
114
121
  Output header:
115
122
 
123
+
124
+
116
125
  ```
117
126
  🚚🐜📦🐜🚚 ═══════════════════════════════════════════════════
118
127
  S T A T E M I G R A T I O N C O M P L E T E
119
128
  ═══════════════════════════════════════════════════ 🚚🐜📦🐜🚚
120
129
  ```
121
130
 
131
+
122
132
  Then output a migration summary:
123
133
 
124
134
  ```
@@ -151,3 +161,5 @@ All commands now use consolidated state format.
151
161
  - After v5.1 ships, this command can be removed
152
162
  - All 12+ ant commands will be updated to use the new single-file format
153
163
  - The backup directory preserves original files for rollback if needed
164
+
165
+