aether-colony 3.1.0 → 3.1.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.
- package/.aether/visualizations/anthill-stages/brood-stable.txt +26 -0
- package/.aether/visualizations/anthill-stages/crowned-anthill.txt +30 -0
- package/.aether/visualizations/anthill-stages/first-mound.txt +18 -0
- package/.aether/visualizations/anthill-stages/open-chambers.txt +24 -0
- package/.aether/visualizations/anthill-stages/sealed-chambers.txt +28 -0
- package/.aether/visualizations/anthill-stages/ventilated-nest.txt +27 -0
- package/.claude/commands/ant/build.md +38 -60
- package/.claude/commands/ant/continue.md +3 -3
- package/.claude/commands/ant/organize.md +1 -1
- package/.claude/commands/ant/pause-colony.md +2 -2
- package/.claude/commands/ant/plan.md +5 -5
- package/.claude/commands/ant/resume-colony.md +2 -13
- package/.claude/commands/ant/status.md +4 -4
- package/.claude/commands/ant/verify-castes.md +59 -69
- package/.opencode/commands/ant/ant:build.md +982 -0
- package/.opencode/commands/ant/ant:verify-castes.md +157 -0
- package/.opencode/commands/ant/build.md +4 -4
- package/.opencode/commands/ant/organize.md +1 -1
- package/.opencode/commands/ant/plan.md +2 -2
- package/CHANGELOG.md +10 -0
- package/README.md +214 -255
- package/bin/cli.js +21 -5
- package/bin/lib/model-profiles.js +32 -1
- package/bin/lib/update-transaction.js +8 -0
- package/package.json +2 -1
- package/runtime/workers.md +147 -3
package/README.md
CHANGED
|
@@ -9,7 +9,7 @@
|
|
|
9
9
|
<div align="center">
|
|
10
10
|
<img src="aether-logo.png" alt="Aether Logo" width="500">
|
|
11
11
|
|
|
12
|
-
**A multi-agent system for Claude Code
|
|
12
|
+
**A multi-agent orchestration system for Claude Code where workers spawn workers.**
|
|
13
13
|
|
|
14
14
|
➡️ Click **Use this template** (top-right) to create your own Aether repo in 30 seconds.
|
|
15
15
|
|
|
@@ -18,7 +18,7 @@
|
|
|
18
18
|
[](https://www.npmjs.com/package/aether-colony)
|
|
19
19
|
[](https://opensource.org/licenses/MIT)
|
|
20
20
|
|
|
21
|
-
**v1.
|
|
21
|
+
**v1.1.0** — Production ready with model routing
|
|
22
22
|
</div>
|
|
23
23
|
|
|
24
24
|
---
|
|
@@ -29,7 +29,7 @@
|
|
|
29
29
|
|
|
30
30
|
## What Is Aether?
|
|
31
31
|
|
|
32
|
-
Aether brings **ant colony intelligence** to Claude Code
|
|
32
|
+
Aether brings **ant colony intelligence** to Claude Code. Instead of one agent doing everything sequentially, you get a colony of specialists that self-organize around your goal.
|
|
33
33
|
|
|
34
34
|
```
|
|
35
35
|
👑 Queen (you)
|
|
@@ -45,18 +45,28 @@ Aether brings **ant colony intelligence** to Claude Code and OpenCode. Instead o
|
|
|
45
45
|
├── 📋 Route-setters — plan phases
|
|
46
46
|
├── 🏛️ Architects — extract patterns
|
|
47
47
|
├── 🏺 Archaeologists — excavate git history
|
|
48
|
+
├── 🔮 Oracles — deep research
|
|
48
49
|
└── 🎲 Chaos Ants — resilience testing
|
|
49
50
|
```
|
|
50
51
|
|
|
51
52
|
When a Builder hits something complex, it spawns a Scout to research. When code is written, a Watcher spawns to verify. **The colony adapts to the problem.**
|
|
52
53
|
|
|
54
|
+
### Key Features
|
|
55
|
+
|
|
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
|
|
60
|
+
- **Colony Memory** — Learnings and instincts persist across sessions
|
|
61
|
+
- **Pause/Resume** — Full state serialization for context breaks
|
|
62
|
+
|
|
53
63
|
---
|
|
54
64
|
|
|
55
65
|
## Quick Start
|
|
56
66
|
|
|
57
67
|
### Prerequisites
|
|
58
68
|
|
|
59
|
-
- [Claude Code](https://claude.ai/code) (Anthropic's CLI)
|
|
69
|
+
- [Claude Code](https://claude.ai/code) (Anthropic's CLI)
|
|
60
70
|
- Node.js >= 16
|
|
61
71
|
- `jq` — `brew install jq` on macOS
|
|
62
72
|
|
|
@@ -66,16 +76,14 @@ When a Builder hits something complex, it spawns a Scout to research. When code
|
|
|
66
76
|
npm install -g aether-colony
|
|
67
77
|
```
|
|
68
78
|
|
|
69
|
-
This installs slash commands so
|
|
70
|
-
- 📁 **Claude Code Commands** → `~/.claude/commands/ant/` (
|
|
71
|
-
- 📁 **OpenCode Commands** → `~/.config/opencode/commands/ant/` (25 slash commands)
|
|
72
|
-
- 📁 **OpenCode Agents** → `~/.config/opencode/agents/` (4 specialized agents)
|
|
79
|
+
This installs slash commands so Claude Code can find them:
|
|
80
|
+
- 📁 **Claude Code Commands** → `~/.claude/commands/ant/` (33 slash commands)
|
|
73
81
|
|
|
74
82
|
All runtime state, utilities, and worker specs live **repo-local** in `.aether/` — each project is self-contained.
|
|
75
83
|
|
|
76
84
|
### Your First Colony
|
|
77
85
|
|
|
78
|
-
Open Claude Code
|
|
86
|
+
Open Claude Code in any repo:
|
|
79
87
|
|
|
80
88
|
```bash
|
|
81
89
|
/ant:init "Build a REST API with authentication"
|
|
@@ -90,33 +98,19 @@ That's it. The colony takes over from there.
|
|
|
90
98
|
|
|
91
99
|
## Commands
|
|
92
100
|
|
|
93
|
-
Aether has **
|
|
101
|
+
Aether has **33 slash commands** organized into categories.
|
|
94
102
|
|
|
95
|
-
### Core
|
|
103
|
+
### Core Lifecycle
|
|
96
104
|
|
|
97
105
|
| Command | Purpose |
|
|
98
106
|
|---------|---------|
|
|
99
|
-
| `/ant:init "goal"` |
|
|
100
|
-
| `/ant:plan` | Generate phased roadmap |
|
|
101
|
-
| `/ant:build N` | Execute phase N |
|
|
102
|
-
| `/ant:continue` |
|
|
103
|
-
|
|
104
|
-
|
|
105
|
-
|
|
106
|
-
/ant:init "Build a REST API with JWT authentication"
|
|
107
|
-
```
|
|
108
|
-
|
|
109
|
-
**`/ant:plan`** — Generate a phased project plan. The colony iterates (up to 50 times) with Scout research and Route-Setter planning until confidence reaches 95%. Includes anti-stuck detection.
|
|
110
|
-
|
|
111
|
-
**`/ant:build N`** — Execute phase N of your plan. The Queen spawns Builders and Watchers in parallel waves. Workers can spawn sub-workers up to depth 3.
|
|
112
|
-
```bash
|
|
113
|
-
/ant:build 1 # Build phase 1 (compact output)
|
|
114
|
-
/ant:build 3 --verbose # Build phase 3 (full details)
|
|
115
|
-
```
|
|
116
|
-
|
|
117
|
-
**`/ant:continue`** — Reviews work through 6 verification gates (build, types, lint, tests, security, diff), checks success criteria with evidence, then advances to the next phase.
|
|
118
|
-
|
|
119
|
-
---
|
|
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 |
|
|
111
|
+
| `/ant:status` | Colony overview |
|
|
112
|
+
| `/ant:pause-colony` | Save state for context break |
|
|
113
|
+
| `/ant:resume-colony` | Restore from pause |
|
|
120
114
|
|
|
121
115
|
### Pheromone Signals
|
|
122
116
|
|
|
@@ -126,68 +120,15 @@ Aether has **25 slash commands** organized into 8 categories.
|
|
|
126
120
|
| `/ant:redirect "pattern"` | Warn away from approaches |
|
|
127
121
|
| `/ant:feedback "msg"` | Teach preferences |
|
|
128
122
|
|
|
129
|
-
**`/ant:focus "area"`** — Tell the colony to pay special attention to something. Max 5 focus areas.
|
|
130
|
-
```bash
|
|
131
|
-
/ant:focus "error handling in the auth module"
|
|
132
|
-
```
|
|
133
|
-
|
|
134
|
-
**`/ant:redirect "pattern"`** — Warn the colony away from specific approaches. These act as hard constraints.
|
|
135
|
-
```bash
|
|
136
|
-
/ant:redirect "don't use jsonwebtoken, use jose instead"
|
|
137
|
-
```
|
|
138
|
-
|
|
139
|
-
**`/ant:feedback "msg"`** — Teach the colony your preferences. Creates an instinct that persists across phases.
|
|
140
|
-
```bash
|
|
141
|
-
/ant:feedback "prefer composition over inheritance"
|
|
142
|
-
```
|
|
143
|
-
|
|
144
|
-
---
|
|
145
|
-
|
|
146
123
|
### Power Commands
|
|
147
124
|
|
|
148
125
|
| Command | Purpose |
|
|
149
126
|
|---------|---------|
|
|
150
|
-
| `/ant:
|
|
151
|
-
| `/ant:
|
|
152
|
-
|
|
153
|
-
**`/ant:council`** — Convene the council when you need to clarify your intent through guided multi-choice questions. Auto-injects appropriate signals based on your answers.
|
|
154
|
-
```bash
|
|
155
|
-
/ant:council # Opens interactive clarification session
|
|
156
|
-
```
|
|
157
|
-
|
|
158
|
-
**`/ant:swarm "problem"`** — The nuclear option for stubborn bugs. Deploys 4 parallel scouts to investigate from different angles, then applies the best fix automatically.
|
|
159
|
-
```bash
|
|
160
|
-
/ant:swarm "Tests keep failing in auth module with undefined error"
|
|
161
|
-
```
|
|
162
|
-
|
|
163
|
-
The 4 scouts:
|
|
164
|
-
- 🏛️ **Git Archaeologist** — Traces git history to find when it broke
|
|
165
|
-
- 🔍 **Pattern Hunter** — Finds similar working code in the codebase
|
|
166
|
-
- 💥 **Error Analyst** — Parses error chains to identify root cause
|
|
167
|
-
- 🌐 **Web Researcher** — Searches docs/issues for known solutions
|
|
168
|
-
|
|
169
|
-
---
|
|
170
|
-
|
|
171
|
-
### Dreaming & Reflection
|
|
172
|
-
|
|
173
|
-
| Command | Purpose |
|
|
174
|
-
|---------|---------|
|
|
175
|
-
| `/ant:dream` | Philosophical codebase wanderer |
|
|
176
|
-
| `/ant:interpret` | Ground dreams in reality |
|
|
127
|
+
| `/ant:swarm "problem"` | Deploy 4 parallel scouts for stubborn bugs |
|
|
128
|
+
| `/ant:council` | Clarify intent via multi-choice questions |
|
|
129
|
+
| `/ant:oracle` | Deep research with 50+ iterations |
|
|
177
130
|
|
|
178
|
-
|
|
179
|
-
```bash
|
|
180
|
-
/ant:dream # The Dreamer explores and writes
|
|
181
|
-
```
|
|
182
|
-
|
|
183
|
-
**`/ant:interpret`** — The Interpreter loads dream sessions, investigates observations against the actual codebase with evidence, and delivers verdicts (confirmed / partially confirmed / unconfirmed / refuted).
|
|
184
|
-
```bash
|
|
185
|
-
/ant:interpret # Review and ground the latest dream
|
|
186
|
-
```
|
|
187
|
-
|
|
188
|
-
---
|
|
189
|
-
|
|
190
|
-
### Analysis & Investigation
|
|
131
|
+
### Research & Analysis
|
|
191
132
|
|
|
192
133
|
| Command | Purpose |
|
|
193
134
|
|---------|---------|
|
|
@@ -195,156 +136,112 @@ The 4 scouts:
|
|
|
195
136
|
| `/ant:archaeology <path>` | Excavate git history |
|
|
196
137
|
| `/ant:chaos <target>` | Resilience testing |
|
|
197
138
|
| `/ant:organize` | Codebase hygiene report |
|
|
198
|
-
|
|
199
|
-
|
|
200
|
-
|
|
201
|
-
**`/ant:archaeology <path>`** — The Archaeologist excavates git history to explain WHY code exists. Surfaces tribal knowledge buried in commits, identifies workarounds, tech debt, and dead code candidates.
|
|
202
|
-
```bash
|
|
203
|
-
/ant:archaeology src/auth/
|
|
204
|
-
/ant:archaeology lib/legacy/cache.ts
|
|
205
|
-
```
|
|
206
|
-
|
|
207
|
-
**`/ant:chaos <target>`** — The Chaos Ant is a resilience tester that probes edge cases, boundary conditions, and unexpected inputs. Investigates 5 scenarios across 5 categories to strengthen code.
|
|
208
|
-
```bash
|
|
209
|
-
/ant:chaos src/auth/login.ts
|
|
210
|
-
/ant:chaos "user signup flow"
|
|
211
|
-
```
|
|
212
|
-
|
|
213
|
-
**`/ant:organize`** — Run a hygiene report on the codebase. Scans for stale files, dead code, orphaned configs. Report-only — doesn't modify files.
|
|
214
|
-
|
|
215
|
-
---
|
|
139
|
+
| `/ant:dream` | Philosophical codebase wanderer |
|
|
140
|
+
| `/ant:interpret` | Ground dreams in reality |
|
|
216
141
|
|
|
217
142
|
### Issue Tracking
|
|
218
143
|
|
|
219
144
|
| Command | Purpose |
|
|
220
145
|
|---------|---------|
|
|
221
|
-
| `/ant:flag "issue"` | Create
|
|
222
|
-
| `/ant:flags` | List
|
|
223
|
-
|
|
224
|
-
**`/ant:flag "issue"`** — Create a flag to track blockers, issues, or notes. Flags persist across context resets.
|
|
225
|
-
```bash
|
|
226
|
-
/ant:flag "Database migration needs manual review" --type blocker
|
|
227
|
-
/ant:flag "Consider adding rate limiting" --type issue
|
|
228
|
-
/ant:flag "Good pattern for error handling" --type note
|
|
229
|
-
```
|
|
146
|
+
| `/ant:flag "issue"` | Create blocker/issue/note |
|
|
147
|
+
| `/ant:flags` | List and manage flags |
|
|
230
148
|
|
|
231
|
-
|
|
232
|
-
```bash
|
|
233
|
-
/ant:flags # List all active flags
|
|
234
|
-
/ant:flags --resolve 3 "Fixed in commit abc123"
|
|
235
|
-
```
|
|
236
|
-
|
|
237
|
-
---
|
|
238
|
-
|
|
239
|
-
### Visibility & Status
|
|
149
|
+
### Visibility
|
|
240
150
|
|
|
241
151
|
| Command | Purpose |
|
|
242
152
|
|---------|---------|
|
|
243
|
-
| `/ant:status` | Colony overview |
|
|
244
|
-
| `/ant:phase N` | View phase details |
|
|
245
153
|
| `/ant:watch` | Live tmux monitoring |
|
|
154
|
+
| `/ant:phase N` | View phase details |
|
|
155
|
+
| `/ant:history` | Recent colony activity |
|
|
246
156
|
| `/ant:help` | Full command reference |
|
|
247
157
|
|
|
248
|
-
|
|
249
|
-
|
|
250
|
-
**`/ant:phase N`** — View details of a specific phase including tasks, status, and assigned castes.
|
|
251
|
-
|
|
252
|
-
**`/ant:watch`** — Set up a tmux session with 4 panes showing real-time colony activity: status, progress bar, spawn tree, and activity log. Requires tmux.
|
|
253
|
-
|
|
254
|
-
**`/ant:help`** — Full command reference covering all commands, session resume workflow, and state file inventory.
|
|
255
|
-
|
|
256
|
-
---
|
|
257
|
-
|
|
258
|
-
### Session Management
|
|
158
|
+
### System
|
|
259
159
|
|
|
260
160
|
| Command | Purpose |
|
|
261
161
|
|---------|---------|
|
|
262
|
-
| `/ant:
|
|
263
|
-
| `/ant:resume-colony` | Restore from pause |
|
|
162
|
+
| `/ant:update` | Sync system files from hub |
|
|
264
163
|
| `/ant:migrate-state` | Upgrade old state format |
|
|
265
|
-
| `/ant:
|
|
266
|
-
|
|
267
|
-
|
|
268
|
-
|
|
269
|
-
**`/ant:resume-colony`** — Restore colony state from a previous pause.
|
|
270
|
-
|
|
271
|
-
**`/ant:migrate-state`** — One-time migration for colonies created with older state formats.
|
|
272
|
-
|
|
273
|
-
**`/ant:update`** — Update this repo's Aether system files from the global distribution hub (`~/.aether/`). Syncs commands, agents, and runtime files.
|
|
274
|
-
|
|
275
|
-
> **Tip:** All commands show auto-recovery headers after `/clear`. You never lose context — the colony always knows where it was.
|
|
164
|
+
| `/ant:verify-castes` | Check model routing |
|
|
165
|
+
| `/ant:seal` | Complete and archive colony |
|
|
166
|
+
| `/ant:entomb` | Create chamber from completed colony |
|
|
276
167
|
|
|
277
168
|
---
|
|
278
169
|
|
|
279
|
-
##
|
|
170
|
+
## CLI Commands
|
|
280
171
|
|
|
281
|
-
|
|
282
|
-
- 🐜 **Nested Spawning** — Workers spawn sub-workers (depth 1→2→3 chains)
|
|
283
|
-
- 🎨 **Colorized Output** — Each caste has its own terminal color
|
|
284
|
-
- 👁️ **Runtime Verification** — Watchers actually execute code, not just read it
|
|
285
|
-
- 🚩 **Flagging System** — Issues persist across context resets
|
|
286
|
-
- 🔨 **Named Ants** — Hammer-42, Vigil-17, Quest-33... they feel real
|
|
287
|
-
- 📊 **Spawn Tree Visualization** — See the colony hierarchy in real-time
|
|
172
|
+
The `aether` CLI provides additional utilities:
|
|
288
173
|
|
|
289
|
-
|
|
290
|
-
|
|
291
|
-
|
|
292
|
-
- 💭 **Dream/Interpret Cycle** — A philosophical Dreamer observes; an Interpreter grounds dreams in evidence
|
|
174
|
+
```bash
|
|
175
|
+
# View version and status
|
|
176
|
+
aether version
|
|
293
177
|
|
|
294
|
-
|
|
295
|
-
|
|
296
|
-
-
|
|
297
|
-
- ⚰️ **Ant Graveyards** — When a builder fails on a file, a marker records what went wrong. Future builders increase caution.
|
|
178
|
+
# Manage model routing
|
|
179
|
+
aether caste-models list
|
|
180
|
+
aether caste-models set builder=kimi-k2.5
|
|
298
181
|
|
|
299
|
-
|
|
300
|
-
|
|
301
|
-
|
|
302
|
-
|
|
182
|
+
# Checkpoints
|
|
183
|
+
aether checkpoint create "before refactor"
|
|
184
|
+
aether checkpoint list
|
|
185
|
+
aether checkpoint restore <id>
|
|
303
186
|
|
|
304
|
-
|
|
305
|
-
|
|
306
|
-
|
|
307
|
-
|
|
187
|
+
# View telemetry
|
|
188
|
+
aether telemetry
|
|
189
|
+
|
|
190
|
+
# Sync state with planning docs
|
|
191
|
+
aether sync-state
|
|
192
|
+
```
|
|
308
193
|
|
|
309
194
|
---
|
|
310
195
|
|
|
311
|
-
##
|
|
196
|
+
## Model Routing
|
|
312
197
|
|
|
313
|
-
|
|
198
|
+
Aether routes different worker castes to optimal AI models via `.aether/model-profiles.yaml`:
|
|
314
199
|
|
|
315
|
-
| Caste |
|
|
316
|
-
|
|
317
|
-
|
|
|
318
|
-
|
|
|
319
|
-
|
|
|
320
|
-
|
|
|
321
|
-
| 🗺️ **Colonizer** | Explores codebases, maps structure |
|
|
322
|
-
| 🏛️ **Architect** | Synthesizes patterns, extracts learnings |
|
|
323
|
-
| 📋 **Route-Setter** | Plans phases, breaks down goals |
|
|
324
|
-
| 🏺 **Archaeologist** | Excavates git history, surfaces tribal knowledge |
|
|
325
|
-
| 🎲 **Chaos** | Resilience testing, adversarial probing |
|
|
200
|
+
| Caste | Model | Best For |
|
|
201
|
+
|-------|-------|----------|
|
|
202
|
+
| Prime, Archaeologist, Architect | `glm-5` | Long-horizon coordination (200K context) |
|
|
203
|
+
| Oracle | `minimax-2.5` | Research, web browsing (76.3% BrowseComp) |
|
|
204
|
+
| Builder, Watcher, Route-Setter, Chaos | `kimi-k2.5` | Code generation (76.8% SWE-Bench) |
|
|
205
|
+
| Scout, Colonizer | `minimax-2.5` | Parallel exploration, visual coding |
|
|
326
206
|
|
|
327
|
-
###
|
|
207
|
+
### How It Works
|
|
328
208
|
|
|
329
|
-
|
|
209
|
+
1. **Model Assignment** — Each caste mapped in `model-profiles.yaml`
|
|
210
|
+
2. **Environment Setup** — Queen sets `ANTHROPIC_MODEL` before spawning
|
|
211
|
+
3. **Proxy Routing** — Requests go through LiteLLM proxy at `localhost:4000`
|
|
212
|
+
4. **Fallback** — Unknown castes default to `kimi-k2.5`
|
|
330
213
|
|
|
331
|
-
|
|
332
|
-
|
|
333
|
-
|
|
334
|
-
|
|
335
|
-
|
|
214
|
+
### Proxy Configuration
|
|
215
|
+
|
|
216
|
+
```yaml
|
|
217
|
+
# .aether/model-profiles.yaml
|
|
218
|
+
proxy:
|
|
219
|
+
endpoint: 'http://localhost:4000'
|
|
220
|
+
auth_token: ${LITELLM_AUTH_TOKEN:-sk-litellm-local}
|
|
221
|
+
```
|
|
336
222
|
|
|
337
|
-
|
|
223
|
+
Set `LITELLM_AUTH_TOKEN` environment variable for custom auth.
|
|
338
224
|
|
|
339
|
-
|
|
225
|
+
---
|
|
340
226
|
|
|
341
|
-
|
|
227
|
+
## The Castes
|
|
228
|
+
|
|
229
|
+
| Caste | Role | Model |
|
|
230
|
+
|-------|------|-------|
|
|
231
|
+
| 👑 **Queen** | Orchestrates, spawns workers, synthesizes | glm-5 |
|
|
232
|
+
| 🔨 **Builder** | Writes code, TDD-first | kimi-k2.5 |
|
|
233
|
+
| 👁️ **Watcher** | Tests, validates, quality gates | kimi-k2.5 |
|
|
234
|
+
| 🔍 **Scout** | Researches docs, finds answers | minimax-2.5 |
|
|
235
|
+
| 🗺️ **Colonizer** | Explores codebases, maps structure | minimax-2.5 |
|
|
236
|
+
| 🏛️ **Architect** | Synthesizes patterns, coordinates docs | glm-5 |
|
|
237
|
+
| 📋 **Route-Setter** | Plans phases, breaks down goals | kimi-k2.5 |
|
|
238
|
+
| 🏺 **Archaeologist** | Excavates git history | glm-5 |
|
|
239
|
+
| 🔮 **Oracle** | Deep research, architecture analysis | minimax-2.5 |
|
|
240
|
+
| 🎲 **Chaos** | Resilience testing, adversarial probing | kimi-k2.5 |
|
|
342
241
|
|
|
343
|
-
|
|
344
|
-
2. **Route-Setter** drafts/refines the plan based on findings
|
|
345
|
-
3. **Loop** continues until confidence reaches 95% (max 50 iterations)
|
|
242
|
+
---
|
|
346
243
|
|
|
347
|
-
|
|
244
|
+
## How It Works
|
|
348
245
|
|
|
349
246
|
### Spawn Depth
|
|
350
247
|
|
|
@@ -361,6 +258,19 @@ Confidence is measured across 5 dimensions: codebase knowledge, requirement clar
|
|
|
361
258
|
- **Depth 3**: Complete inline, no further spawning
|
|
362
259
|
- **Global cap**: 10 workers per phase
|
|
363
260
|
|
|
261
|
+
### 6-Phase Verification Loop
|
|
262
|
+
|
|
263
|
+
Before any phase advances, the colony runs:
|
|
264
|
+
|
|
265
|
+
| Gate | Check |
|
|
266
|
+
|------|-------|
|
|
267
|
+
| Build | Project compiles/bundles |
|
|
268
|
+
| Types | Type checker passes |
|
|
269
|
+
| Lint | Linter passes |
|
|
270
|
+
| Tests | All tests pass (80%+ coverage target) |
|
|
271
|
+
| Security | No exposed secrets or debug artifacts |
|
|
272
|
+
| Diff | Review changes, no unintended modifications |
|
|
273
|
+
|
|
364
274
|
### Colony Memory
|
|
365
275
|
|
|
366
276
|
The colony learns across sessions:
|
|
@@ -373,21 +283,40 @@ Session 2: /ant:init → reads completion-report.md → seeds memory
|
|
|
373
283
|
└── Workers receive inherited knowledge in their prompts
|
|
374
284
|
```
|
|
375
285
|
|
|
376
|
-
**Instincts** are trigger→action patterns with confidence scores (0.0–1.0).
|
|
286
|
+
**Instincts** are trigger→action patterns with confidence scores (0.0–1.0).
|
|
377
287
|
|
|
378
|
-
**Learnings** start as hypotheses and graduate to "validated"
|
|
288
|
+
**Learnings** start as hypotheses and graduate to "validated" with evidence.
|
|
379
289
|
|
|
380
|
-
###
|
|
290
|
+
### Milestones
|
|
381
291
|
|
|
382
|
-
|
|
292
|
+
The colony tracks progress through auto-detected milestones:
|
|
383
293
|
|
|
384
|
-
|
|
|
385
|
-
|
|
386
|
-
|
|
|
387
|
-
|
|
|
388
|
-
|
|
|
389
|
-
|
|
|
390
|
-
|
|
|
294
|
+
| Milestone | Trigger |
|
|
295
|
+
|-----------|---------|
|
|
296
|
+
| First Mound | Colony initialized |
|
|
297
|
+
| Open Chambers | 1+ phase completed |
|
|
298
|
+
| Brood Stable | 3+ phases completed |
|
|
299
|
+
| Ventilated Nest | 5+ phases completed |
|
|
300
|
+
| Sealed Chambers | All phases completed |
|
|
301
|
+
| Crowned Anthill | Final celebration (explicit) |
|
|
302
|
+
|
|
303
|
+
Detected automatically via `milestone-detect` utility.
|
|
304
|
+
|
|
305
|
+
### Colony Lifecycle
|
|
306
|
+
|
|
307
|
+
```
|
|
308
|
+
/ant:init "goal" → Start colony (First Mound)
|
|
309
|
+
↓
|
|
310
|
+
/ant:plan → /ant:build → /ant:continue (repeat)
|
|
311
|
+
↓
|
|
312
|
+
/ant:seal → Complete colony, generate report
|
|
313
|
+
↓
|
|
314
|
+
/ant:entomb → Archive to .aether/chambers/
|
|
315
|
+
↓
|
|
316
|
+
/ant:lay-eggs "new" → Start fresh colony (preserves instincts)
|
|
317
|
+
```
|
|
318
|
+
|
|
319
|
+
**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.
|
|
391
320
|
|
|
392
321
|
---
|
|
393
322
|
|
|
@@ -395,28 +324,32 @@ Workers follow strict disciplines:
|
|
|
395
324
|
|
|
396
325
|
```
|
|
397
326
|
<your-repo>/.aether/ # Repo-local runtime
|
|
398
|
-
├── workers.md # Worker specs
|
|
399
|
-
├── aether-utils.sh # Utility layer (
|
|
327
|
+
├── workers.md # Worker specs and spawn protocol
|
|
328
|
+
├── aether-utils.sh # Utility layer (50+ subcommands)
|
|
329
|
+
├── model-profiles.yaml # Caste-to-model routing
|
|
400
330
|
├── verification-loop.md # 6-phase verification reference
|
|
401
|
-
├── DISCIPLINES.md # All worker disciplines
|
|
402
|
-
├── utils/ # Colorization, spawn tree, file locking
|
|
403
331
|
│
|
|
404
332
|
├── data/ # Per-project state
|
|
405
333
|
│ ├── COLONY_STATE.json # Goal, plan, memory, instincts
|
|
406
334
|
│ ├── flags.json # Blockers, issues, notes
|
|
407
|
-
│ ├── constraints.json # Focus areas and
|
|
335
|
+
│ ├── constraints.json # Focus areas and redirects
|
|
408
336
|
│ ├── activity.log # Worker activity stream
|
|
409
337
|
│ ├── spawn-tree.txt # Spawn hierarchy
|
|
410
|
-
│ ├──
|
|
411
|
-
│
|
|
412
|
-
│ └── pathogens.json # Error pattern signatures
|
|
338
|
+
│ ├── telemetry.json # Model performance data
|
|
339
|
+
│ └── completion-report.md # End-of-project summary
|
|
413
340
|
│
|
|
414
|
-
|
|
415
|
-
|
|
416
|
-
|
|
417
|
-
|
|
418
|
-
|
|
419
|
-
|
|
341
|
+
├── dreams/ # Dream session files
|
|
342
|
+
└── chambers/ # Entombed (archived) colonies
|
|
343
|
+
|
|
344
|
+
bin/ # CLI
|
|
345
|
+
├── cli.js # Main entry point
|
|
346
|
+
└── lib/ # Library modules
|
|
347
|
+
├── model-profiles.js # Model routing logic
|
|
348
|
+
├── state-sync.js # State reconciliation
|
|
349
|
+
├── update-transaction.js # Atomic updates with rollback
|
|
350
|
+
├── file-lock.js # Concurrent access control
|
|
351
|
+
├── telemetry.js # Performance tracking
|
|
352
|
+
└── errors.js # Error class hierarchy
|
|
420
353
|
```
|
|
421
354
|
|
|
422
355
|
---
|
|
@@ -431,13 +364,15 @@ Workers follow strict disciplines:
|
|
|
431
364
|
5. /ant:build 1 # Execute phase 1
|
|
432
365
|
6. /ant:continue # Review, advance
|
|
433
366
|
7. /ant:build 2 # Repeat until done
|
|
367
|
+
8. /ant:seal # Complete and archive
|
|
434
368
|
```
|
|
435
369
|
|
|
436
370
|
### Between Sessions
|
|
437
371
|
|
|
438
372
|
```bash
|
|
439
373
|
/ant:pause-colony # Save state + handoff doc
|
|
440
|
-
|
|
374
|
+
# ... take a break ...
|
|
375
|
+
/ant:resume-colony # Restore and continue
|
|
441
376
|
```
|
|
442
377
|
|
|
443
378
|
### When Stuck
|
|
@@ -445,23 +380,15 @@ Workers follow strict disciplines:
|
|
|
445
380
|
```bash
|
|
446
381
|
/ant:dream # Let the Dreamer observe
|
|
447
382
|
/ant:interpret # Ground the dream in evidence
|
|
448
|
-
/ant:swarm "the bug description" #
|
|
383
|
+
/ant:swarm "the bug description" # 4 parallel scouts investigate
|
|
384
|
+
/ant:oracle "research topic" # Deep research (50+ iterations)
|
|
449
385
|
/ant:archaeology src/module/ # Excavate why code exists
|
|
450
386
|
/ant:chaos "auth flow" # Test resilience
|
|
451
387
|
```
|
|
452
388
|
|
|
453
389
|
---
|
|
454
390
|
|
|
455
|
-
##
|
|
456
|
-
|
|
457
|
-
Both Claude Code and OpenCode share the same state files in `.aether/data/`. This means you can:
|
|
458
|
-
|
|
459
|
-
- Start a project in Claude Code, continue in OpenCode
|
|
460
|
-
- Switch tools when hitting rate limits
|
|
461
|
-
- Use Claude for orchestration, other models for bulk coding
|
|
462
|
-
- Mix and match based on task requirements
|
|
463
|
-
|
|
464
|
-
### OpenCode Agents
|
|
391
|
+
## OpenCode Agents
|
|
465
392
|
|
|
466
393
|
Aether includes 4 specialized OpenCode agents:
|
|
467
394
|
|
|
@@ -472,18 +399,54 @@ Aether includes 4 specialized OpenCode agents:
|
|
|
472
399
|
| `aether-scout` | Researches, gathers information | 0.4 |
|
|
473
400
|
| `aether-watcher` | Validates, tests, quality gates | 0.1 |
|
|
474
401
|
|
|
475
|
-
|
|
476
|
-
|
|
477
|
-
|
|
478
|
-
|
|
479
|
-
"agents": {
|
|
480
|
-
"aether-queen": { "model": "anthropic/claude-sonnet" },
|
|
481
|
-
"aether-builder": { "model": "your-preferred/coding-model" },
|
|
482
|
-
"aether-scout": { "model": "your-preferred/research-model" },
|
|
483
|
-
"aether-watcher": { "model": "anthropic/claude-sonnet" }
|
|
484
|
-
}
|
|
485
|
-
}
|
|
402
|
+
---
|
|
403
|
+
|
|
404
|
+
## Architecture
|
|
405
|
+
|
|
486
406
|
```
|
|
407
|
+
┌─────────────────────────────────────────────────────────────┐
|
|
408
|
+
│ USER INTERFACE │
|
|
409
|
+
├──────────────────┬──────────────────┬──────────────────────┤
|
|
410
|
+
│ /ant:commands │ aether CLI │ OpenCode agents │
|
|
411
|
+
│ (33 commands) │ (bin/cli.js) │ (4 agents) │
|
|
412
|
+
└────────┬─────────┴────────┬─────────┴──────────┬───────────┘
|
|
413
|
+
│ │ │
|
|
414
|
+
▼ ▼ ▼
|
|
415
|
+
┌─────────────────────────────────────────────────────────────┐
|
|
416
|
+
│ UTILITIES LAYER │
|
|
417
|
+
│ aether-utils.sh (50+ subcommands) + bin/lib/* (10 modules) │
|
|
418
|
+
└────────────────────────────┬────────────────────────────────┘
|
|
419
|
+
│
|
|
420
|
+
▼
|
|
421
|
+
┌─────────────────────────────────────────────────────────────┐
|
|
422
|
+
│ STATE LAYER │
|
|
423
|
+
│ .aether/data/ (COLONY_STATE, flags, constraints) │
|
|
424
|
+
└─────────────────────────────────────────────────────────────┘
|
|
425
|
+
```
|
|
426
|
+
|
|
427
|
+
---
|
|
428
|
+
|
|
429
|
+
## Safety Features
|
|
430
|
+
|
|
431
|
+
- **File Locking** — Prevents concurrent modification of state
|
|
432
|
+
- **Atomic Writes** — Temp file + rename pattern
|
|
433
|
+
- **Update Transactions** — Two-phase commit with rollback
|
|
434
|
+
- **Git Checkpoints** — Automatic commits before phases
|
|
435
|
+
- **Ant Graveyards** — Failed files marked for future caution
|
|
436
|
+
|
|
437
|
+
---
|
|
438
|
+
|
|
439
|
+
## Disciplines
|
|
440
|
+
|
|
441
|
+
Workers follow strict disciplines:
|
|
442
|
+
|
|
443
|
+
| Discipline | Rule |
|
|
444
|
+
|------------|------|
|
|
445
|
+
| **Verification** | No completion claims without fresh evidence |
|
|
446
|
+
| **TDD** | No production code without a failing test first |
|
|
447
|
+
| **Debugging** | No fixes without root cause investigation (3-fix rule) |
|
|
448
|
+
| **Learning** | Pattern detection with validation lifecycle |
|
|
449
|
+
| **Coding Standards** | KISS, DRY, YAGNI, readable code |
|
|
487
450
|
|
|
488
451
|
---
|
|
489
452
|
|
|
@@ -496,14 +459,10 @@ npm install -g aether-colony
|
|
|
496
459
|
# Verify install
|
|
497
460
|
aether version
|
|
498
461
|
ls ~/.claude/commands/ant/
|
|
499
|
-
ls ~/.config/opencode/commands/ant/
|
|
500
462
|
|
|
501
463
|
# Verify runtime (from inside any repo)
|
|
502
464
|
ls .aether/
|
|
503
465
|
|
|
504
|
-
# Lint (after cloning)
|
|
505
|
-
npm run lint
|
|
506
|
-
|
|
507
466
|
# Update
|
|
508
467
|
npm update -g aether-colony
|
|
509
468
|
|
|
@@ -515,7 +474,7 @@ aether uninstall && npm uninstall -g aether-colony
|
|
|
515
474
|
|
|
516
475
|
## Acknowledgments
|
|
517
476
|
|
|
518
|
-
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, and
|
|
477
|
+
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.
|
|
519
478
|
|
|
520
479
|
---
|
|
521
480
|
|