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/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 and OpenCode where workers spawn workers.**
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
  [![npm version](https://img.shields.io/npm/v/aether-colony.svg)](https://www.npmjs.com/package/aether-colony)
19
19
  [![License: MIT](https://img.shields.io/badge/License-MIT-yellow.svg)](https://opensource.org/licenses/MIT)
20
20
 
21
- **v1.0.0** — First stable production release
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 and OpenCode. Instead of one agent doing everything sequentially, you get a colony of specialists that self-organize around your goal.
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) and/or [OpenCode](https://github.com/sst/opencode)
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 your editor can find them:
70
- - 📁 **Claude Code Commands** → `~/.claude/commands/ant/` (25 slash commands)
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 or OpenCode in any repo:
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 **25 slash commands** organized into 8 categories.
101
+ Aether has **33 slash commands** organized into categories.
94
102
 
95
- ### Core Workflow
103
+ ### Core Lifecycle
96
104
 
97
105
  | Command | Purpose |
98
106
  |---------|---------|
99
- | `/ant:init "goal"` | Set colony mission |
100
- | `/ant:plan` | Generate phased roadmap |
101
- | `/ant:build N` | Execute phase N |
102
- | `/ant:continue` | Review & advance to next phase |
103
-
104
- **`/ant:init "goal"`** — Initialize the colony with your project goal. Creates colony state, sets up constraints, and seeds memory from previous sessions. If a `completion-report.md` exists from a prior colony, instincts and learnings are automatically inherited.
105
- ```bash
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:council` | Clarify intent via multi-choice |
151
- | `/ant:swarm "problem"` | Stubborn bug destroyer |
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
- **`/ant:dream`** The Dreamer is the colony's philosopher. It wanders the codebase reading code, git history, and TO-DOs. It observes patterns others miss because they're too busy building. Sessions saved to `.aether/dreams/`.
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
- **`/ant:colonize`** — Analyze an existing codebase before planning. Scans key files and creates a codebase map including detected build/test/lint commands. Run this before `/ant:plan` when working with existing projects.
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 a flag |
222
- | `/ant:flags` | List all flags |
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
- **`/ant:flags`** — List all flags, resolve them, or acknowledge issues.
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
- **`/ant:status`** — Quick overview of colony state: current phase, confidence, active constraints, recent activity, and flags. Use `--verbose` for extended details.
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:pause-colony` | Save state for break |
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:update` | Update system files from hub |
266
-
267
- **`/ant:pause-colony`** Save full colony state to a handoff document when you need to take a break. Creates `.aether/HANDOFF.md`.
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
- ## Features
170
+ ## CLI Commands
280
171
 
281
- ### Core
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
- ### Memory & Learning
290
- - 🧠 **Colony Memory Inheritance** — New colonies inherit instincts and learnings from previous sessions via `completion-report.md`
291
- - 📚 **Knowledge in Prompts** — Spawned workers receive top instincts, recent learnings, and flagged error patterns
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
- ### Safety & Git
295
- - 💾 **Git Checkpoints** — Automatic `aether-checkpoint:` commits before each phase
296
- - 🔄 **Gate-Based Commits** — Colony suggests commits at verified boundaries (you stay in control)
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
- ### Verification
300
- - 🔒 **6-Phase Verification Loop** — Build, types, lint, tests, security scan, diff review before phase advances
301
- - 🏗️ **CLAUDE.md-Aware Commands** — Workers resolve build/test/lint commands via priority chain: CLAUDE.md → CODEBASE.md → fallback
302
- - 📋 **Automatic Changelog** — `/ant:continue` appends a changelog entry for each completed phase
182
+ # Checkpoints
183
+ aether checkpoint create "before refactor"
184
+ aether checkpoint list
185
+ aether checkpoint restore <id>
303
186
 
304
- ### Developer Experience
305
- - 📏 **Compact-by-Default** — Status (~8 lines) and build (~12 lines) summaries. Use `--verbose` for full details.
306
- - 🔄 **Auto-Recovery Headers** — Every command shows context after `/clear`
307
- - **Lint Suite** `npm run lint` validates shell scripts, JSON config, and mirror sync
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
- ## How It Works
196
+ ## Model Routing
312
197
 
313
- ### The Castes
198
+ Aether routes different worker castes to optimal AI models via `.aether/model-profiles.yaml`:
314
199
 
315
- | Caste | Role |
316
- |-------|------|
317
- | 👑 **Queen** | Orchestrates, spawns workers, synthesizes results |
318
- | 🔨 **Builder** | Writes code, runs commands |
319
- | 👁️ **Watcher** | Tests, validates, quality gates |
320
- | 🔍 **Scout** | Researches docs, finds answers |
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
- ### Pheromone Signals
207
+ ### How It Works
328
208
 
329
- Instead of direct commands, you emit signals that the colony interprets:
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
- | Signal | Purpose | Priority | Default Expiration |
332
- |--------|---------|----------|--------------------|
333
- | 🎯 `FOCUS` | "Pay attention to this" | normal | phase end |
334
- | 🚫 `REDIRECT` | "Avoid this approach" | high | phase end |
335
- | 💬 `FEEDBACK` | "Here's what I like/dislike" | low | phase end |
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
- Workers read all active signals and adjust behavior. Use `--ttl` flag for wall-clock expiration (e.g., `--ttl 2h`).
223
+ Set `LITELLM_AUTH_TOKEN` environment variable for custom auth.
338
224
 
339
- ### Iterative Planning (95% Confidence)
225
+ ---
340
226
 
341
- When you run `/ant:plan`, the colony iterates:
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
- 1. **Scout** researches the codebase, identifies knowledge gaps
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
- Confidence is measured across 5 dimensions: codebase knowledge, requirement clarity, risk identification, dependencies, and effort estimation.
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). They strengthen with successful application and weaken on failure.
286
+ **Instincts** are trigger→action patterns with confidence scores (0.0–1.0).
377
287
 
378
- **Learnings** start as hypotheses and graduate to "validated" only when tested with evidence.
288
+ **Learnings** start as hypotheses and graduate to "validated" with evidence.
379
289
 
380
- ### Disciplines
290
+ ### Milestones
381
291
 
382
- Workers follow strict disciplines:
292
+ The colony tracks progress through auto-detected milestones:
383
293
 
384
- | Discipline | Purpose |
385
- |------------|---------|
386
- | **Verification** | No completion claims without fresh evidence |
387
- | **TDD** | No production code without a failing test first |
388
- | **Debugging** | No fixes without root cause investigation |
389
- | **Learning** | Pattern detection with validation lifecycle |
390
- | **Coding Standards** | KISS, DRY, YAGNI, readable code |
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 with spawn protocol
399
- ├── aether-utils.sh # Utility layer (59 subcommands)
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 avoidance patterns
335
+ │ ├── constraints.json # Focus areas and redirects
408
336
  │ ├── activity.log # Worker activity stream
409
337
  │ ├── spawn-tree.txt # Spawn hierarchy
410
- │ ├── completion-report.md # End-of-project summary
411
- ├── graveyard.json # Failed file markers
412
- │ └── pathogens.json # Error pattern signatures
338
+ │ ├── telemetry.json # Model performance data
339
+ └── completion-report.md # End-of-project summary
413
340
 
414
- └── dreams/ # Dream session files
415
-
416
- ~/.claude/commands/ant/ # Claude Code slash commands
417
- ~/.config/opencode/ # OpenCode config
418
- ├── commands/ant/ # OpenCode slash commands
419
- └── agents/ # Specialized agents (queen, builder, scout, watcher)
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
- /ant:resume-colony # or just /ant:status auto-recovery kicks in
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" # Nuclear option for stubborn issues
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
- ## Cross-Tool Compatibility
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
- **Optional: Model-per-agent configuration**
476
-
477
- ```json
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 nested spawning.
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