aether-colony 3.1.17 → 5.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/{runtime → .aether}/CONTEXT.md +1 -1
  2. package/{runtime → .aether}/aether-utils.sh +1772 -98
  3. package/.aether/docs/QUEEN-SYSTEM.md +211 -0
  4. package/.aether/docs/QUEEN.md +84 -0
  5. package/.aether/docs/README.md +68 -0
  6. package/.aether/docs/caste-system.md +48 -0
  7. package/{runtime → .aether/docs/disciplines}/DISCIPLINES.md +8 -8
  8. package/.aether/docs/error-codes.md +268 -0
  9. package/{runtime → .aether}/docs/known-issues.md +42 -26
  10. package/.aether/docs/queen-commands.md +97 -0
  11. package/.aether/exchange/colony-registry.xml +11 -0
  12. package/{runtime → .aether}/exchange/pheromone-xml.sh +2 -1
  13. package/.aether/exchange/pheromones.xml +87 -0
  14. package/.aether/exchange/queen-wisdom.xml +14 -0
  15. package/{runtime → .aether}/exchange/registry-xml.sh +7 -3
  16. package/{runtime → .aether}/exchange/wisdom-xml.sh +11 -4
  17. package/.aether/rules/aether-colony.md +134 -0
  18. package/.aether/schemas/example-prompt-builder.xml +234 -0
  19. package/.aether/templates/colony-state-reset.jq.template +22 -0
  20. package/.aether/templates/colony-state.template.json +35 -0
  21. package/.aether/templates/constraints.template.json +9 -0
  22. package/.aether/templates/crowned-anthill.template.md +36 -0
  23. package/.aether/templates/handoff-build-error.template.md +30 -0
  24. package/.aether/templates/handoff-build-success.template.md +39 -0
  25. package/.aether/templates/handoff.template.md +40 -0
  26. package/{runtime → .aether}/utils/atomic-write.sh +5 -5
  27. package/{runtime → .aether}/utils/chamber-compare.sh +23 -10
  28. package/{runtime → .aether}/utils/chamber-utils.sh +32 -20
  29. package/{runtime → .aether}/utils/error-handler.sh +13 -1
  30. package/{runtime → .aether}/utils/file-lock.sh +49 -13
  31. package/.aether/utils/semantic-cli.sh +413 -0
  32. package/{runtime → .aether}/utils/xml-compose.sh +7 -1
  33. package/.aether/utils/xml-convert.sh +273 -0
  34. package/.aether/utils/xml-query.sh +201 -0
  35. package/.aether/utils/xml-utils.sh +110 -0
  36. package/{runtime → .aether}/workers.md +14 -17
  37. package/.claude/agents/ant/aether-ambassador.md +264 -0
  38. package/.claude/agents/ant/aether-archaeologist.md +322 -0
  39. package/.claude/agents/ant/aether-auditor.md +266 -0
  40. package/.claude/agents/ant/aether-builder.md +187 -0
  41. package/.claude/agents/ant/aether-chaos.md +268 -0
  42. package/.claude/agents/ant/aether-chronicler.md +304 -0
  43. package/.claude/agents/ant/aether-gatekeeper.md +325 -0
  44. package/.claude/agents/ant/aether-includer.md +373 -0
  45. package/.claude/agents/ant/aether-keeper.md +271 -0
  46. package/.claude/agents/ant/aether-measurer.md +317 -0
  47. package/.claude/agents/ant/aether-probe.md +210 -0
  48. package/.claude/agents/ant/aether-queen.md +325 -0
  49. package/.claude/agents/ant/aether-route-setter.md +173 -0
  50. package/.claude/agents/ant/aether-sage.md +353 -0
  51. package/.claude/agents/ant/aether-scout.md +142 -0
  52. package/.claude/agents/ant/aether-surveyor-disciplines.md +416 -0
  53. package/.claude/agents/ant/aether-surveyor-nest.md +354 -0
  54. package/.claude/agents/ant/aether-surveyor-pathogens.md +288 -0
  55. package/.claude/agents/ant/aether-surveyor-provisions.md +359 -0
  56. package/.claude/agents/ant/aether-tracker.md +265 -0
  57. package/.claude/agents/ant/aether-watcher.md +244 -0
  58. package/.claude/agents/ant/aether-weaver.md +247 -0
  59. package/.claude/commands/ant/archaeology.md +16 -7
  60. package/.claude/commands/ant/build.md +415 -284
  61. package/.claude/commands/ant/chaos.md +19 -10
  62. package/.claude/commands/ant/colonize.md +58 -24
  63. package/.claude/commands/ant/continue.md +155 -145
  64. package/.claude/commands/ant/council.md +15 -5
  65. package/.claude/commands/ant/dream.md +16 -7
  66. package/.claude/commands/ant/entomb.md +274 -157
  67. package/.claude/commands/ant/feedback.md +33 -29
  68. package/.claude/commands/ant/flag.md +18 -10
  69. package/.claude/commands/ant/flags.md +14 -6
  70. package/.claude/commands/ant/focus.md +29 -21
  71. package/.claude/commands/ant/help.md +11 -1
  72. package/.claude/commands/ant/history.md +10 -0
  73. package/.claude/commands/ant/init.md +91 -65
  74. package/.claude/commands/ant/interpret.md +15 -4
  75. package/.claude/commands/ant/lay-eggs.md +55 -7
  76. package/.claude/commands/ant/maturity.md +11 -1
  77. package/.claude/commands/ant/migrate-state.md +14 -2
  78. package/.claude/commands/ant/oracle.md +23 -15
  79. package/.claude/commands/ant/organize.md +29 -20
  80. package/.claude/commands/ant/pause-colony.md +17 -7
  81. package/.claude/commands/ant/phase.md +17 -8
  82. package/.claude/commands/ant/plan.md +20 -9
  83. package/.claude/commands/ant/redirect.md +29 -32
  84. package/.claude/commands/ant/resume-colony.md +19 -9
  85. package/.claude/commands/ant/resume.md +272 -96
  86. package/.claude/commands/ant/seal.md +201 -191
  87. package/.claude/commands/ant/status.md +71 -32
  88. package/.claude/commands/ant/swarm.md +26 -44
  89. package/.claude/commands/ant/tunnels.md +279 -105
  90. package/.claude/commands/ant/update.md +81 -20
  91. package/.claude/commands/ant/verify-castes.md +14 -4
  92. package/.claude/commands/ant/watch.md +13 -12
  93. package/.opencode/agents/aether-ambassador.md +63 -20
  94. package/.opencode/agents/aether-archaeologist.md +29 -12
  95. package/.opencode/agents/aether-auditor.md +51 -18
  96. package/.opencode/agents/aether-builder.md +69 -19
  97. package/.opencode/agents/aether-chaos.md +29 -12
  98. package/.opencode/agents/aether-chronicler.md +60 -18
  99. package/.opencode/agents/aether-gatekeeper.md +27 -18
  100. package/.opencode/agents/aether-includer.md +27 -18
  101. package/.opencode/agents/aether-keeper.md +89 -18
  102. package/.opencode/agents/aether-measurer.md +27 -18
  103. package/.opencode/agents/aether-probe.md +60 -18
  104. package/.opencode/agents/aether-queen.md +172 -24
  105. package/.opencode/agents/aether-route-setter.md +57 -12
  106. package/.opencode/agents/aether-sage.md +26 -18
  107. package/.opencode/agents/aether-scout.md +27 -19
  108. package/.opencode/agents/aether-surveyor-disciplines.md +53 -1
  109. package/.opencode/agents/aether-surveyor-nest.md +53 -1
  110. package/.opencode/agents/aether-surveyor-pathogens.md +51 -1
  111. package/.opencode/agents/aether-surveyor-provisions.md +53 -1
  112. package/.opencode/agents/aether-tracker.md +64 -18
  113. package/.opencode/agents/aether-watcher.md +66 -19
  114. package/.opencode/agents/aether-weaver.md +61 -18
  115. package/.opencode/commands/ant/build.md +406 -192
  116. package/.opencode/commands/ant/continue.md +66 -76
  117. package/.opencode/commands/ant/entomb.md +106 -45
  118. package/.opencode/commands/ant/init.md +46 -48
  119. package/.opencode/commands/ant/organize.md +5 -5
  120. package/.opencode/commands/ant/resume.md +334 -0
  121. package/.opencode/commands/ant/seal.md +33 -24
  122. package/.opencode/commands/ant/status.md +11 -0
  123. package/.opencode/commands/ant/tunnels.md +149 -0
  124. package/.opencode/commands/ant/update.md +59 -16
  125. package/CHANGELOG.md +79 -0
  126. package/README.md +135 -353
  127. package/bin/cli.js +243 -122
  128. package/bin/generate-commands.sh +2 -2
  129. package/bin/lib/init.js +13 -3
  130. package/bin/lib/update-transaction.js +119 -117
  131. package/bin/sync-to-runtime.sh +5 -137
  132. package/bin/validate-package.sh +84 -0
  133. package/package.json +9 -6
  134. package/.opencode/agents/aether-architect.md +0 -66
  135. package/.opencode/agents/aether-guardian.md +0 -107
  136. package/.opencode/agents/workers.md +0 -1034
  137. package/runtime/QUEEN_ANT_ARCHITECTURE.md +0 -402
  138. package/runtime/data/signatures.json +0 -41
  139. package/runtime/docs/AETHER-2.0-IMPLEMENTATION-PLAN.md +0 -1343
  140. package/runtime/docs/AETHER-PHEROMONE-SYSTEM-MASTER-SPEC.md +0 -2642
  141. package/runtime/docs/PHEROMONE-INJECTION.md +0 -240
  142. package/runtime/docs/PHEROMONE-INTEGRATION.md +0 -192
  143. package/runtime/docs/PHEROMONE-SYSTEM-DESIGN.md +0 -426
  144. package/runtime/docs/README.md +0 -94
  145. package/runtime/docs/VISUAL-OUTPUT-SPEC.md +0 -219
  146. package/runtime/docs/biological-reference.md +0 -272
  147. package/runtime/docs/codebase-review.md +0 -399
  148. package/runtime/docs/command-sync.md +0 -164
  149. package/runtime/docs/constraints.md +0 -116
  150. package/runtime/docs/implementation-learnings.md +0 -89
  151. package/runtime/docs/namespace.md +0 -148
  152. package/runtime/docs/pathogen-schema-example.json +0 -36
  153. package/runtime/docs/pathogen-schema.md +0 -111
  154. package/runtime/docs/planning-discipline.md +0 -159
  155. package/runtime/docs/progressive-disclosure.md +0 -184
  156. package/runtime/lib/queen-utils.sh +0 -729
  157. package/runtime/planning.md +0 -159
  158. package/runtime/recover.sh +0 -136
  159. package/runtime/utils/xml-utils.sh +0 -2196
  160. package/runtime/workers-new-castes.md +0 -516
  161. /package/{runtime → .aether/docs/disciplines}/coding-standards.md +0 -0
  162. /package/{runtime → .aether/docs/disciplines}/debugging.md +0 -0
  163. /package/{runtime → .aether/docs/disciplines}/learning.md +0 -0
  164. /package/{runtime → .aether/docs/disciplines}/tdd.md +0 -0
  165. /package/{runtime → .aether/docs/disciplines}/verification-loop.md +0 -0
  166. /package/{runtime → .aether/docs/disciplines}/verification.md +0 -0
  167. /package/{runtime → .aether}/docs/pheromones.md +0 -0
  168. /package/{runtime → .aether}/model-profiles.yaml +0 -0
  169. /package/{runtime → .aether}/schemas/aether-types.xsd +0 -0
  170. /package/{runtime → .aether}/schemas/colony-registry.xsd +0 -0
  171. /package/{runtime → .aether}/schemas/pheromone.xsd +0 -0
  172. /package/{runtime → .aether}/schemas/prompt.xsd +0 -0
  173. /package/{runtime → .aether}/schemas/queen-wisdom.xsd +0 -0
  174. /package/{runtime → .aether}/schemas/worker-priming.xsd +0 -0
  175. /package/{runtime → .aether}/templates/QUEEN.md.template +0 -0
  176. /package/{runtime → .aether}/utils/colorize-log.sh +0 -0
  177. /package/{runtime → .aether}/utils/queen-to-md.xsl +0 -0
  178. /package/{runtime → .aether}/utils/spawn-tree.sh +0 -0
  179. /package/{runtime → .aether}/utils/spawn-with-model.sh +0 -0
  180. /package/{runtime → .aether}/utils/state-loader.sh +0 -0
  181. /package/{runtime → .aether}/utils/swarm-display.sh +0 -0
  182. /package/{runtime → .aether}/utils/watch-spawn-tree.sh +0 -0
  183. /package/{runtime → .aether}/utils/xml-core.sh +0 -0
package/README.md CHANGED
@@ -7,9 +7,8 @@
7
7
  ```
8
8
 
9
9
  <div align="center">
10
- <img src="aether-logo.png" alt="Aether Logo" width="500">
11
10
 
12
- **A multi-agent orchestration system for Claude Code where workers spawn workers.**
11
+ **22 specialized agents that spawn, coordinate, and self-organize.**
13
12
 
14
13
  ➡️ Click **Use this template** (top-right) to create your own Aether repo in 30 seconds.
15
14
 
@@ -18,7 +17,7 @@
18
17
  [![npm version](https://img.shields.io/npm/v/aether-colony.svg)](https://www.npmjs.com/package/aether-colony)
19
18
  [![License: MIT](https://img.shields.io/badge/License-MIT-yellow.svg)](https://opensource.org/licenses/MIT)
20
19
 
21
- **v3.1.14** — Production ready with model routing
20
+ **v5.0.0** — Worker Emergence (22 real Claude Code agents)
22
21
  </div>
23
22
 
24
23
  ---
@@ -53,14 +52,14 @@ When a Builder hits something complex, it spawns a Scout to research. When code
53
52
 
54
53
  ### Key Features
55
54
 
56
- - **Model-Aware Routing** — Different castes use different AI models optimized for their tasks
57
- - **33 Slash Commands** — Lifecycle, management, research, and utility commands
58
- - **4 OpenCode Agents** — Specialized agents for different platforms
59
- - **6-Phase Verification** — Build, types, lint, tests, security, diff before advancing
55
+ - **22 Claude Code Agents** — Real subagents, not definitions `/ant:build` spawns a genuine `aether-builder`
56
+ - **34 Slash Commands** — Lifecycle, research, coordination, and utility
57
+ - **Real Agent Spawning** — Run `/ant:build 1` and a real builder spawns to write your code
58
+ - **6-Phase Verification** — Build, types, lint, tests, security, diff
60
59
  - **Colony Memory** — Learnings and instincts persist across sessions
60
+ - **Pheromone Signals** — Focus, Redirect, Feedback to steer the colony
61
61
  - **Pause/Resume** — Full state serialization for context breaks
62
- - **Oracle Deep Research** — 50+ iteration autonomous research loop (RALF pattern)
63
- - **Multi-Agent Surveys** — 4 parallel scouts for codebase analysis
62
+ - **Oracle Deep Research** — 50+ iteration autonomous research loop
64
63
 
65
64
  ---
66
65
 
@@ -78,8 +77,7 @@ When a Builder hits something complex, it spawns a Scout to research. When code
78
77
  npm install -g aether-colony
79
78
  ```
80
79
 
81
- This installs slash commands so Claude Code can find them:
82
- - 📁 **Claude Code Commands** → `~/.claude/commands/ant/` (33 slash commands)
80
+ This installs 22 Claude Code agents to `~/.claude/agents/ant/` plus 34 slash commands.
83
81
 
84
82
  All runtime state, utilities, and worker specs live **repo-local** in `.aether/` — each project is self-contained.
85
83
 
@@ -98,197 +96,133 @@ That's it. The colony takes over from there.
98
96
 
99
97
  ---
100
98
 
101
- ## Complete Command Reference (33 Commands)
99
+ ## Command Reference
102
100
 
103
- ### 🌱 Core Lifecycle Commands
101
+ ### Core Lifecycle
104
102
 
105
- | Command | Emoji | Description |
106
- |---------|-------|-------------|
107
- | `/ant:init "goal"` | 🌱 | Initialize colony with mission |
108
- | `/ant:plan` | 📝 | Generate phased roadmap (50-iteration research loop) |
109
- | `/ant:build N` | 🔨 | Execute phase N with worker waves |
110
- | `/ant:continue` | ➡️ | 6-phase verification, then advance to next phase |
111
- | `/ant:pause-colony` | 💾 | Save state for context break |
112
- | `/ant:resume-colony` | ▶️ | Restore from pause |
113
- | `/ant:lay-eggs "new goal"` | 🥚 | Start fresh colony (preserves instincts) |
114
- | `/ant:seal` | 🏺 | Complete and archive colony |
115
- | `/ant:entomb` | ⚰️ | Create chamber from completed colony |
103
+ | Command | Description |
104
+ |---------|-------------|
105
+ | `/ant:init "goal"` | Initialize colony with mission |
106
+ | `/ant:plan` | Generate phased roadmap |
107
+ | `/ant:build N` | Execute phase N with worker waves |
108
+ | `/ant:continue` | 6-phase verification, advance to next phase |
109
+ | `/ant:pause-colony` | Save state for context break |
110
+ | `/ant:resume-colony` | Restore from pause |
111
+ | `/ant:seal` | Complete and archive colony |
112
+ | `/ant:entomb` | Create chamber from completed colony |
116
113
 
117
- **Core Lifecycle Flow:**
114
+ **Core Flow:**
118
115
  ```
119
- /ant:init → /ant:plan → /ant:build 1 → /ant:continue → /ant:build 2 → ... → /ant:seal → /ant:entomb
116
+ /ant:init → /ant:plan → /ant:build 1 → /ant:continue → /ant:build 2 → ... → /ant:seal
120
117
  ```
121
118
 
122
- ### 📊 Research & Analysis Commands
123
-
124
- | Command | Emoji | Description |
125
- |---------|-------|-------------|
126
- | `/ant:colonize` | 🗺️ | **Multi-agent territory survey** — 4 parallel scouts analyze your codebase and produce: `STRUCTURE.md`, `INTEGRATIONS.md`, `CONVENTIONS.md`, `ARCHITECTURE.md`, `CONCERNS.md` |
127
- | `/ant:archaeology <path>` | 🏺 | Excavate git history for any file/directory — traces why code exists, surfaces tribal knowledge, identifies "don't touch" areas |
128
- | `/ant:oracle ["topic"]` | 🔮 | **Deep research with RALF pattern** — 50+ iteration autonomous research loop. Use `stop` or `status` as arguments |
129
- | `/ant:chaos <target>` | 🎲 | Resilience testing — probes edge cases, boundary conditions, finds cracks before they break |
130
- | `/ant:swarm ["problem"]` | 🔥 | Deploy 4 parallel scouts for stubborn bugs OR view real-time swarm display |
131
- | `/ant:dream` | 💭 | The Dreamer — philosophical codebase wanderer that observes and imagines |
132
- | `/ant:interpret` | 🔍 | Ground dreams in reality — validates observations against actual code |
133
- | `/ant:organize` | 🧹 | Codebase hygiene report — scans for stale files, dead code, orphaned configs |
134
-
135
- **Research Command Details:**
136
-
137
- #### `/ant:colonize` — Territory Survey
138
- Dispatches 4 parallel Scout agents to analyze your codebase:
139
- - **Scout 1**: Maps directory structure, identifies entry points, dependencies
140
- - **Scout 2**: Maps integrations (databases, APIs, third-party services)
141
- - **Scout 3**: Documents conventions (naming, patterns, architecture decisions)
142
- - **Scout 4**: Identifies concerns (tech debt, risks, areas needing attention)
143
-
144
- Produces 5 documentation files in `.aether/docs/`.
145
-
146
- #### `/ant:oracle` — Deep Research (RALF Pattern)
147
- The Oracle runs autonomously in a separate process using the Recursive Agent Loop Framework:
148
- 1. Configure research topic via interactive wizard
149
- 2. Oracle iterates 50+ times, accumulating knowledge
150
- 3. Each iteration reads previous progress, researches gaps
151
- 4. Produces comprehensive findings in `.aether/oracle/discoveries/`
152
-
153
- Non-invasive: Never touches colony state, only writes to `.aether/oracle/`.
154
-
155
- ### 🧭 Planning & Coordination Commands
156
-
157
- | Command | Emoji | Description |
158
- |---------|-------|-------------|
159
- | `/ant:council` | 🏛️ | Clarify intent via multi-choice questions |
160
- | `/ant:focus "area"` | 🔦 | Emit FOCUS signal — guide colony attention |
161
- | `/ant:redirect "pattern"` | ⚠️ | Emit REDIRECT signal — warn away from approaches |
162
- | `/ant:feedback "msg"` | 💬 | Emit FEEDBACK signal — teach preferences |
163
-
164
- **Pheromone Signals:**
165
- - **FOCUS** (normal priority): "Pay attention here"
166
- - **REDIRECT** (high priority): "Don't do this" (hard constraint)
167
- - **FEEDBACK** (low priority): "Adjust based on this"
168
-
169
- ### 📋 Visibility & Status Commands
170
-
171
- | Command | Emoji | Description |
172
- |---------|-------|-------------|
173
- | `/ant:status` | 📈 | Colony overview — current phase, progress, active workers |
174
- | `/ant:phase N` | 📝 | View phase details — tasks, status, assignments |
175
- | `/ant:history` | 📜 | Recent colony activity log |
176
- | `/ant:maturity` | 👑 | View colony maturity journey with ASCII art anthill |
177
- | `/ant:watch` | 👁️ | Set up tmux session to watch ants working in real-time |
178
- | `/ant:tunnels [ch1] [ch2]` | 🕳️ | Explore tunnels — browse archived colonies, compare chambers |
179
- | `/ant:flags` | 🚩 | List and manage flags (blockers, issues, notes) |
180
- | `/ant:help` | 📖 | Full command reference |
181
-
182
- ### 🚩 Issue Tracking Commands
183
-
184
- | Command | Emoji | Description |
185
- |---------|-------|-------------|
186
- | `/ant:flag "issue"` | 🚩 | Create blocker/issue/note |
187
- | `/ant:flags` | 📋 | List and manage flags |
188
-
189
- ### ⚙️ System Commands
190
-
191
- | Command | Emoji | Description |
192
- |---------|-------|-------------|
193
- | `/ant:update` | 🔄 | Sync system files from global hub |
194
- | `/ant:verify-castes` | ✓ | Check caste model assignments and system status |
195
- | `/ant:migrate-state` | 🚚 | One-time state migration from v1 to v2.0 format |
119
+ ### Research & Analysis
120
+
121
+ | Command | Description |
122
+ |---------|-------------|
123
+ | `/ant:colonize` | 4 parallel scouts analyze your codebase |
124
+ | `/ant:archaeology <path>` | Excavate git history for any file |
125
+ | `/ant:oracle ["topic"]` | Deep research (50+ iteration loop) |
126
+ | `/ant:chaos <target>` | Resilience testing, edge case probing |
127
+ | `/ant:swarm ["problem"]` | 4 parallel scouts for stubborn bugs |
128
+ | `/ant:dream` | Philosophical codebase wanderer |
129
+ | `/ant:organize` | Codebase hygiene report |
130
+
131
+ ### Coordination
132
+
133
+ | Command | Description |
134
+ |---------|-------------|
135
+ | `/ant:council` | Clarify intent via multi-choice questions |
136
+ | `/ant:focus "area"` | FOCUS signal guide attention |
137
+ | `/ant:redirect "pattern"` | REDIRECT signal hard constraint |
138
+ | `/ant:feedback "msg"` | FEEDBACK signal teach preferences |
139
+
140
+ ### Visibility
141
+
142
+ | Command | Description |
143
+ |---------|-------------|
144
+ | `/ant:status` | Colony overview |
145
+ | `/ant:watch` | Real-time swarm display |
146
+ | `/ant:history` | Recent activity log |
147
+ | `/ant:flags` | List blockers and issues |
148
+ | `/ant:help` | Full command reference |
196
149
 
197
150
  ---
198
151
 
199
152
  ## CLI Commands
200
153
 
201
- The `aether` CLI provides additional utilities:
202
-
203
154
  ```bash
204
155
  # View version and status
205
156
  aether version
206
157
 
207
158
  # Update all registered repos
208
159
  aether update --all
209
- aether update --all --force # Force even with dirty repos
210
-
211
- # Manage model routing
212
- aether caste-models list
213
- aether caste-models set builder=kimi-k2.5
214
- aether caste-models reset builder
215
160
 
216
161
  # Checkpoints (safe snapshots)
217
162
  aether checkpoint create "before refactor"
218
163
  aether checkpoint list
219
164
  aether checkpoint restore <id>
220
- aether checkpoint verify <id>
221
165
 
222
166
  # View telemetry
223
167
  aether telemetry
224
- aether telemetry model kimi-k2.5
225
- aether telemetry performance
226
-
227
- # Sync state with planning docs
228
- aether sync-state
229
168
 
230
169
  # Context
231
- aether context # Show auto-loaded context including nestmates
170
+ aether context # Show context including nestmates
232
171
  aether nestmates # List sibling colonies
233
172
  aether spawn-tree # Display worker spawn tree
234
-
235
- # Initialize in current repo
236
- aether init --goal "My project"
237
173
  ```
238
174
 
239
175
  ---
240
176
 
241
- ## Model Routing
177
+ ## The Castes
242
178
 
243
- Aether routes different worker castes to optimal AI models via `.aether/model-profiles.yaml`:
179
+ Workers have distinct personalities and roles, organized by tier:
244
180
 
245
- | Caste | Model | Best For |
246
- |-------|-------|----------|
247
- | Prime, Archaeologist, Architect | `glm-5` | Long-horizon coordination (200K context) |
248
- | Oracle | `minimax-2.5` | Research, web browsing (76.3% BrowseComp) |
249
- | Builder, Watcher, Route-Setter, Chaos | `kimi-k2.5` | Code generation (76.8% SWE-Bench) |
250
- | Scout, Colonizer | `minimax-2.5` | Parallel exploration, visual coding |
181
+ ### Core Workers
251
182
 
252
- ### How It Works
183
+ | Caste | Role | Personality |
184
+ |-------|------|-------------|
185
+ | 👑 **Queen** | Orchestrates, spawns workers | Coordinating |
186
+ | 🔨 **Builder** | Writes code, TDD-first | Pragmatic, direct |
187
+ | 👁️ **Watcher** | Tests, validates | Vigilant, careful |
188
+ | 🔍 **Scout** | Researches, discovers | Curious |
253
189
 
254
- 1. **Model Assignment** — Each caste mapped in `model-profiles.yaml`
255
- 2. **Environment Setup** — Queen sets `ANTHROPIC_MODEL` before spawning
256
- 3. **Proxy Routing** — Requests go through LiteLLM proxy at `localhost:4000`
257
- 4. **Fallback** — Unknown castes default to `kimi-k2.5`
190
+ ### Orchestration
258
191
 
259
- ### Proxy Configuration
192
+ | Caste | Role | Personality |
193
+ |-------|------|-------------|
194
+ | 📋 **Route-Setter** | Plans phases | Structured |
195
+ | 🗺️ **Colonizer** | Explores codebases, maps structure | Exploratory |
196
+ | 📊 **Surveyor** | Measures codebase metrics | Systematic |
260
197
 
261
- ```yaml
262
- # .aether/model-profiles.yaml
263
- proxy:
264
- endpoint: 'http://localhost:4000'
265
- auth_token: ${LITELLM_AUTH_TOKEN:-sk-litellm-local}
266
- ```
198
+ ### Specialists
267
199
 
268
- Set `LITELLM_AUTH_TOKEN` environment variable for custom auth.
200
+ | Caste | Role | Personality |
201
+ |-------|------|-------------|
202
+ | 📚 **Keeper** | Curates knowledge, patterns | Preserving |
203
+ | 🐛 **Tracker** | Investigates bugs, root cause | Methodical |
204
+ | 🧪 **Probe** | Generates tests | Thorough |
205
+ | 🔄 **Weaver** | Refactors code | Transformative |
206
+ | 👥 **Auditor** | Reviews code quality | Critical |
269
207
 
270
- ---
208
+ ### Niche
271
209
 
272
- ## The Castes
210
+ | Caste | Role | Personality |
211
+ |-------|------|-------------|
212
+ | 📦 **Gatekeeper** | Dependency audits | Protective |
213
+ | ♿ **Includer** | Accessibility audits | Inclusive |
214
+ | ⚡ **Measurer** | Performance profiling | Precise |
215
+ | 🎲 **Chaos** | Resilience testing | Adversarial |
216
+ | 🏺 **Archaeologist** | Excavates git history | Investigative |
217
+ | 🔌 **Ambassador** | Third-party APIs | Diplomatic |
218
+ | 📝 **Chronicler** | Documentation | Recording |
219
+ | 🔮 **Sage** | Deep research (RALF loop) | Analytical |
273
220
 
274
- | Caste | Emoji | Role | Model |
275
- |-------|-------|------|-------|
276
- | 👑 **Queen** | — | Orchestrates, spawns workers, synthesizes | glm-5 |
277
- | 🔨 **Builder** | 🛠️ | Writes code, TDD-first | kimi-k2.5 |
278
- | 👁️ **Watcher** | 👀 | Tests, validates, quality gates | kimi-k2.5 |
279
- | 🔍 **Scout** | 🗺️ | Researches docs, finds answers | minimax-2.5 |
280
- | 🗺️ **Colonizer** | 📊 | Explores codebases, maps structure | minimax-2.5 |
281
- | 🏗️ **Architect** | 🏛️ | Synthesizes patterns, coordinates docs | glm-5 |
282
- | 📋 **Route-Setter** | 🧭 | Plans phases, breaks down goals | kimi-k2.5 |
283
- | 🏺 **Archaeologist** | 📜 | Excavates git history | glm-5 |
284
- | 🔮 **Oracle** | 🔮 | Deep research, architecture analysis | minimax-2.5 |
285
- | 🎲 **Chaos** | 🎲 | Resilience testing, adversarial probing | kimi-k2.5 |
221
+ Run `/ant:colonize` and 4 surveyor agents map your entire codebase. Run `/ant:build 1` and a real builder spawns.
286
222
 
287
223
  ---
288
224
 
289
- ## How It Works
290
-
291
- ### Spawn Depth
225
+ ## Spawn Depth
292
226
 
293
227
  ```
294
228
  👑 Queen (depth 0)
@@ -303,9 +237,11 @@ Set `LITELLM_AUTH_TOKEN` environment variable for custom auth.
303
237
  - **Depth 3**: Complete inline, no further spawning
304
238
  - **Global cap**: 10 workers per phase
305
239
 
306
- ### 6-Phase Verification Loop
240
+ ---
241
+
242
+ ## 6-Phase Verification
307
243
 
308
- Before any phase advances, the colony runs:
244
+ Before any phase advances:
309
245
 
310
246
  | Gate | Check |
311
247
  |------|-------|
@@ -316,115 +252,48 @@ Before any phase advances, the colony runs:
316
252
  | Security | No exposed secrets or debug artifacts |
317
253
  | Diff | Review changes, no unintended modifications |
318
254
 
319
- ### Colony Memory
320
-
321
- The colony learns across sessions:
322
-
323
- ```
324
- Session 1: /ant:init → build → continue → complete
325
- └── completion-report.md saved with instincts & learnings
326
-
327
- Session 2: /ant:init → reads completion-report.md → seeds memory
328
- └── Workers receive inherited knowledge in their prompts
329
- ```
330
-
331
- **Instincts** are trigger→action patterns with confidence scores (0.0–1.0).
332
-
333
- **Learnings** start as hypotheses and graduate to "validated" with evidence.
334
-
335
- ### Milestones
336
-
337
- The colony tracks progress through auto-detected milestones:
338
-
339
- | Milestone | Trigger |
340
- |-----------|---------|
341
- | First Mound | Colony initialized |
342
- | Open Chambers | 1+ phase completed |
343
- | Brood Stable | 3+ phases completed |
344
- | Ventilated Nest | 5+ phases completed |
345
- | Sealed Chambers | All phases completed |
346
- | Crowned Anthill | Final celebration (explicit) |
347
-
348
- Detected automatically via `milestone-detect` utility.
349
-
350
- ### Colony Lifecycle
351
-
352
- ```
353
- /ant:init "goal" → Start colony (First Mound)
354
-
355
- /ant:plan → /ant:build → /ant:continue (repeat)
356
-
357
- /ant:seal → Complete colony, generate report
358
-
359
- /ant:entomb → Archive to .aether/chambers/
360
-
361
- /ant:lay-eggs "new" → Start fresh colony (preserves instincts)
362
- ```
363
-
364
- **Lay-Eggs** starts a new colony cycle while inheriting high-confidence instincts from the previous colony — like a queen ant laying eggs to begin anew.
365
-
366
255
  ---
367
256
 
368
257
  ## File Structure
369
258
 
259
+ See [repo-structure.md](repo-structure.md) for a quick overview of all directories.
260
+
370
261
  ```
371
262
  <your-repo>/.aether/ # Repo-local runtime
372
263
  ├── workers.md # Worker specs and spawn protocol
373
- ├── aether-utils.sh # Utility layer (50+ subcommands)
374
- ├── model-profiles.yaml # Caste-to-model routing
375
- ├── verification-loop.md # 6-phase verification reference
376
- ├── QUEEN_ANT_ARCHITECTURE.md # Complete system architecture
377
- ├── coding-standards.md # Coding standards reference
378
- ├── debugging.md # Debugging discipline
379
- ├── tdd.md # TDD discipline
264
+ ├── aether-utils.sh # Utility layer (80+ subcommands)
265
+ ├── model-profiles.yaml # Model routing config
380
266
 
381
267
  ├── docs/ # Documentation
382
- │ ├── known-issues.md # Known bugs and workarounds
383
- │ ├── implementation-learnings.md # Workflow patterns
384
- │ ├── codebase-review.md # Command inventory
385
- │ ├── planning-discipline.md # Planning guidelines
386
- │ └── ...
387
-
388
268
  ├── utils/ # Utility scripts
389
- ├── atomic-write.sh
390
- │ ├── colorize-log.sh
391
- │ ├── file-lock.sh
392
- │ ├── spawn-tree.sh
393
- │ └── ...
394
-
395
- ├── oracle/ # Oracle research infrastructure
396
- │ ├── oracle.sh # RALF loop script
397
- │ ├── oracle.md # Oracle agent prompt
398
- │ ├── research.json # Active research config
399
- │ ├── progress.md # Research progress
400
- │ └── discoveries/ # Research findings
269
+ ├── oracle/ # Oracle research
401
270
 
402
- ├── data/ # Per-project state (NEVER synced)
403
- │ ├── COLONY_STATE.json # Goal, plan, memory, instincts
404
- │ ├── flags.json # Blockers, issues, notes
405
- ├── constraints.json # Focus areas and redirects
406
- │ ├── activity.log # Worker activity stream
407
- │ ├── spawn-tree.txt # Spawn hierarchy
408
- │ ├── telemetry.json # Model performance data
409
- │ └── completion-report.md # End-of-project summary
271
+ ├── data/ # State (NEVER synced)
272
+ │ ├── COLONY_STATE.json # Goal, plan, memory
273
+ │ ├── constraints.json # Focus and redirects
274
+ └── spawn-tree.txt # Worker hierarchy
410
275
 
411
- ├── dreams/ # Dream session files (NEVER synced)
412
- ├── checkpoints/ # Update rollback data (NEVER synced)
413
- └── chambers/ # Entombed (archived) colonies
414
-
415
- bin/ # CLI
416
- ├── cli.js # Main entry point
417
- └── lib/ # Library modules
418
- ├── model-profiles.js # Model routing logic
419
- ├── state-sync.js # State reconciliation
420
- ├── update-transaction.js # Atomic updates with rollback
421
- ├── file-lock.js # Concurrent access control
422
- ├── telemetry.js # Performance tracking
423
- └── errors.js # Error class hierarchy
276
+ ├── dreams/ # Session notes (NEVER synced)
277
+ └── chambers/ # Archived colonies
424
278
  ```
425
279
 
426
280
  ---
427
281
 
282
+ ## Pheromone Signals
283
+
284
+ | Signal | Command | Use When |
285
+ |--------|---------|----------|
286
+ | FOCUS | `/ant:focus "area"` | "Pay attention here" |
287
+ | REDIRECT | `/ant:redirect "avoid"` | "Don't do this" (hard constraint) |
288
+ | FEEDBACK | `/ant:feedback "note"` | "Adjust based on this" |
289
+
290
+ - **Before builds**: FOCUS + REDIRECT to steer
291
+ - **After builds**: FEEDBACK to adjust
292
+ - **Hard constraints**: REDIRECT (will break)
293
+ - **Gentle nudges**: FEEDBACK (preferences)
294
+
295
+ ---
296
+
428
297
  ## Typical Workflows
429
298
 
430
299
  ### Starting a New Project
@@ -432,129 +301,50 @@ bin/ # CLI
432
301
  ```
433
302
  1. /ant:init "Build feature X" # Set the goal
434
303
  2. /ant:colonize # Analyze existing code (optional)
435
- 3. /ant:plan # Colony generates phases
304
+ 3. /ant:plan # Generate phases
436
305
  4. /ant:focus "security" # Guide attention (optional)
437
306
  5. /ant:build 1 # Execute phase 1
438
- 6. /ant:continue # Review, advance
439
- 7. /ant:build 2 # Repeat until done
307
+ 6. /ant:continue # Verify, advance
308
+ 7. Repeat until done
440
309
  8. /ant:seal # Complete and archive
441
310
  ```
442
311
 
443
- ### Deep Research Workflow
312
+ ### Deep Research
444
313
 
445
314
  ```
446
- /ant:oracle "research topic" # Configure and launch Oracle
447
- # Oracle runs autonomously for 50+ iterations
315
+ /ant:oracle "research topic" # Launch Oracle
448
316
  /ant:oracle status # Check progress
449
317
  /ant:oracle stop # Stop if needed
450
318
  # Read findings in .aether/oracle/discoveries/
451
319
  ```
452
320
 
453
- ### Codebase Analysis Workflow
454
-
455
- ```
456
- /ant:colonize # 4 scouts survey territory
457
- # Read generated docs in .aether/docs/
458
- /ant:archaeology src/legacy/ # Excavate git history
459
- /ant:organize # Hygiene report
460
- /ant:chaos "auth module" # Resilience test
461
- ```
462
-
463
- ### Between Sessions
464
-
465
- ```bash
466
- /ant:pause-colony # Save state + handoff doc
467
- # ... take a break ...
468
- /ant:resume-colony # Restore and continue
469
- ```
470
-
471
321
  ### When Stuck
472
322
 
473
- ```bash
323
+ ```
474
324
  /ant:dream # Let the Dreamer observe
475
- /ant:interpret # Ground the dream in evidence
476
- /ant:swarm "the bug description" # 4 parallel scouts investigate
477
- /ant:oracle "research topic" # Deep research (50+ iterations)
325
+ /ant:swarm "bug description" # 4 parallel scouts investigate
478
326
  /ant:archaeology src/module/ # Excavate why code exists
479
327
  /ant:chaos "auth flow" # Test resilience
480
328
  ```
481
329
 
482
330
  ---
483
331
 
484
- ## OpenCode Agents
485
-
486
- Aether includes specialized OpenCode agents:
487
-
488
- | Agent | Purpose | Temperature |
489
- |-------|---------|-------------|
490
- | `aether-queen` | Orchestrates phases, spawns workers | 0.3 |
491
- | `aether-builder` | Implements code, TDD-first | 0.2 |
492
- | `aether-scout` | Researches, gathers information | 0.4 |
493
- | `aether-watcher` | Validates, tests, quality gates | 0.1 |
494
-
495
- ---
496
-
497
- ## Architecture
498
-
499
- ```
500
- ┌─────────────────────────────────────────────────────────────┐
501
- │ USER INTERFACE │
502
- ├──────────────────┬──────────────────┬──────────────────────┤
503
- │ /ant:commands │ aether CLI │ OpenCode agents │
504
- │ (33 commands) │ (bin/cli.js) │ (4 agents) │
505
- └────────┬─────────┴────────┬─────────┴──────────┬───────────┘
506
- │ │ │
507
- ▼ ▼ ▼
508
- ┌─────────────────────────────────────────────────────────────┐
509
- │ UTILITIES LAYER │
510
- │ aether-utils.sh (50+ subcommands) + bin/lib/* (10 modules) │
511
- └────────────────────────────┬────────────────────────────────┘
512
-
513
-
514
- ┌─────────────────────────────────────────────────────────────┐
515
- │ STATE LAYER │
516
- │ .aether/data/ (COLONY_STATE, flags, constraints) │
517
- └─────────────────────────────────────────────────────────────┘
518
- ```
519
-
520
- ### Three-Tier Distribution
521
-
522
- ```
523
- Aether Repo (.aether/) → Hub (~/.aether/) → Target Repos (.aether/)
524
- │ │ │
525
- │ npm install -g . │ aether update │
526
- └───────────────────────→┴───────────────────────→┘
527
- (excluding user data)
528
- ```
529
-
530
- **User data directories are NEVER synced:** `data/`, `dreams/`, `checkpoints/`, `locks/`, `temp/`
531
-
532
- ---
533
-
534
332
  ## Safety Features
535
333
 
536
- - **File Locking** — Prevents concurrent modification of state with configurable stale lock detection
334
+ - **File Locking** — Prevents concurrent modification
537
335
  - **Atomic Writes** — Temp file + rename pattern
538
336
  - **Update Transactions** — Two-phase commit with rollback
539
- - **State Validation** — Schema validation before any state modifications
540
- - **Event Pruning** — Automatic cleanup prevents unbounded event history
337
+ - **State Validation** — Schema validation before modifications
541
338
  - **Git Checkpoints** — Automatic commits before phases
542
- - **Ant Graveyards** — Failed files marked for future caution
543
- - **Checkpoint System** — Safe snapshots before updates with `aether checkpoint`
339
+ - **Checkpoint System** — Safe snapshots with `aether checkpoint`
544
340
 
545
341
  ---
546
342
 
547
- ## Disciplines
343
+ ## Known Issues
548
344
 
549
- Workers follow strict disciplines:
345
+ 1. **Init may fail if `.aether/data/` doesn't exist** — Run `mkdir -p .aether/data` before `/ant:init` if you see "Error writing file".
550
346
 
551
- | Discipline | Rule |
552
- |------------|------|
553
- | **Verification** | No completion claims without fresh evidence |
554
- | **TDD** | No production code without a failing test first |
555
- | **Debugging** | No fixes without root cause investigation (3-fix rule) |
556
- | **Learning** | Pattern detection with validation lifecycle |
557
- | **Coding Standards** | KISS, DRY, YAGNI, readable code |
347
+ 2. **Long commands can cause Claude to lose context** — Commands like `build.md` (1,000+ lines) may cause Claude to skip steps. Use `/ant:status` and `/ant:continue` to recover.
558
348
 
559
349
  ---
560
350
 
@@ -567,27 +357,19 @@ npm install -g aether-colony
567
357
  # Verify install
568
358
  aether version
569
359
  ls ~/.claude/commands/ant/
570
- ls ~/.aether/ # Check hub structure
571
-
572
- # Verify runtime (from inside any repo)
573
- ls .aether/
574
360
 
575
- # Update system files in all registered repos
361
+ # Update all registered repos
576
362
  aether update --all
577
- aether update --all --force # Force even with dirty repos
578
363
 
579
364
  # Update npm package
580
365
  npm update -g aether-colony
581
-
582
- # Uninstall (preserves project state)
583
- aether uninstall && npm uninstall -g aether-colony
584
366
  ```
585
367
 
586
368
  ---
587
369
 
588
370
  ## Acknowledgments
589
371
 
590
- Massive shoutout to **[glittercowboy](https://github.com/glittercowboy)** and the **[GSD (Get Shit Done) system](https://github.com/glittercowboy/gsd)**. GSD showed what Claude Code could become with the right orchestration. Aether takes that inspiration and adds ant colony dynamics — pheromones, castes, nested spawning, and model-aware routing.
372
+ Inspired by **[glittercowboy](https://github.com/glittercowboy)** and the **[GSD system](https://github.com/glittercowboy/gsd)**. GSD showed what Claude Code could become with the right orchestration. Aether adds ant colony dynamics — pheromones, castes, nested spawning, and self-organizing workers.
591
373
 
592
374
  ---
593
375