aether-colony 3.1.5 → 3.1.16
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/.claude/commands/ant/archaeology.md +12 -0
- package/.claude/commands/ant/build.md +382 -319
- package/.claude/commands/ant/chaos.md +23 -1
- package/.claude/commands/ant/colonize.md +147 -87
- package/.claude/commands/ant/continue.md +213 -23
- package/.claude/commands/ant/council.md +22 -0
- package/.claude/commands/ant/dream.md +18 -0
- package/.claude/commands/ant/entomb.md +178 -6
- package/.claude/commands/ant/init.md +87 -13
- package/.claude/commands/ant/lay-eggs.md +45 -5
- package/.claude/commands/ant/oracle.md +82 -9
- package/.claude/commands/ant/organize.md +2 -2
- package/.claude/commands/ant/pause-colony.md +86 -28
- package/.claude/commands/ant/phase.md +26 -0
- package/.claude/commands/ant/plan.md +204 -111
- package/.claude/commands/ant/resume-colony.md +23 -1
- package/.claude/commands/ant/resume.md +159 -0
- package/.claude/commands/ant/seal.md +177 -3
- package/.claude/commands/ant/swarm.md +78 -97
- package/.claude/commands/ant/verify-castes.md +7 -7
- package/.claude/commands/ant/watch.md +17 -0
- package/.opencode/agents/aether-ambassador.md +97 -0
- package/.opencode/agents/aether-archaeologist.md +91 -0
- package/.opencode/agents/aether-architect.md +66 -0
- package/.opencode/agents/aether-auditor.md +111 -0
- package/.opencode/agents/aether-builder.md +28 -10
- package/.opencode/agents/aether-chaos.md +98 -0
- package/.opencode/agents/aether-chronicler.md +80 -0
- package/.opencode/agents/aether-gatekeeper.md +107 -0
- package/.opencode/agents/aether-guardian.md +107 -0
- package/.opencode/agents/aether-includer.md +108 -0
- package/.opencode/agents/aether-keeper.md +106 -0
- package/.opencode/agents/aether-measurer.md +119 -0
- package/.opencode/agents/aether-probe.md +91 -0
- package/.opencode/agents/aether-queen.md +72 -19
- package/.opencode/agents/aether-route-setter.md +85 -0
- package/.opencode/agents/aether-sage.md +98 -0
- package/.opencode/agents/aether-scout.md +33 -15
- package/.opencode/agents/aether-surveyor-disciplines.md +334 -0
- package/.opencode/agents/aether-surveyor-nest.md +272 -0
- package/.opencode/agents/aether-surveyor-pathogens.md +209 -0
- package/.opencode/agents/aether-surveyor-provisions.md +277 -0
- package/.opencode/agents/aether-tracker.md +91 -0
- package/.opencode/agents/aether-watcher.md +30 -12
- package/.opencode/agents/aether-weaver.md +87 -0
- package/.opencode/agents/workers.md +1034 -0
- package/.opencode/commands/ant/archaeology.md +44 -26
- package/.opencode/commands/ant/build.md +326 -294
- package/.opencode/commands/ant/chaos.md +32 -4
- package/.opencode/commands/ant/colonize.md +119 -93
- package/.opencode/commands/ant/continue.md +98 -10
- package/.opencode/commands/ant/council.md +28 -0
- package/.opencode/commands/ant/dream.md +24 -0
- package/.opencode/commands/ant/entomb.md +73 -1
- package/.opencode/commands/ant/feedback.md +8 -2
- package/.opencode/commands/ant/flag.md +9 -3
- package/.opencode/commands/ant/flags.md +8 -2
- package/.opencode/commands/ant/focus.md +8 -2
- package/.opencode/commands/ant/help.md +12 -0
- package/.opencode/commands/ant/init.md +49 -4
- package/.opencode/commands/ant/lay-eggs.md +30 -2
- package/.opencode/commands/ant/oracle.md +39 -7
- package/.opencode/commands/ant/organize.md +8 -2
- package/.opencode/commands/ant/pause-colony.md +54 -1
- package/.opencode/commands/ant/phase.md +36 -4
- package/.opencode/commands/ant/plan.md +224 -116
- package/.opencode/commands/ant/redirect.md +8 -2
- package/.opencode/commands/ant/resume-colony.md +51 -26
- package/.opencode/commands/ant/seal.md +76 -0
- package/.opencode/commands/ant/status.md +50 -20
- package/.opencode/commands/ant/swarm.md +108 -104
- package/.opencode/commands/ant/tunnels.md +107 -2
- package/CHANGELOG.md +16 -0
- package/README.md +199 -86
- package/bin/cli.js +142 -25
- package/bin/generate-commands.sh +100 -16
- package/bin/lib/caste-colors.js +5 -5
- package/bin/lib/errors.js +16 -0
- package/bin/lib/file-lock.js +279 -44
- package/bin/lib/state-sync.js +206 -23
- package/bin/lib/update-transaction.js +206 -24
- package/bin/sync-to-runtime.sh +138 -0
- package/package.json +2 -2
- package/runtime/CONTEXT.md +160 -0
- package/runtime/aether-utils.sh +1421 -55
- package/runtime/docs/AETHER-2.0-IMPLEMENTATION-PLAN.md +1343 -0
- package/runtime/docs/AETHER-PHEROMONE-SYSTEM-MASTER-SPEC.md +2642 -0
- package/runtime/docs/PHEROMONE-INJECTION.md +240 -0
- package/runtime/docs/PHEROMONE-INTEGRATION.md +192 -0
- package/runtime/docs/PHEROMONE-SYSTEM-DESIGN.md +426 -0
- package/runtime/docs/README.md +94 -0
- package/runtime/docs/VISUAL-OUTPUT-SPEC.md +219 -0
- package/runtime/docs/biological-reference.md +272 -0
- package/runtime/docs/codebase-review.md +399 -0
- package/runtime/docs/command-sync.md +164 -0
- package/runtime/docs/implementation-learnings.md +89 -0
- package/runtime/docs/known-issues.md +217 -0
- package/runtime/docs/namespace.md +148 -0
- package/runtime/docs/planning-discipline.md +159 -0
- package/runtime/exchange/pheromone-xml.sh +574 -0
- package/runtime/exchange/registry-xml.sh +269 -0
- package/runtime/exchange/wisdom-xml.sh +312 -0
- package/runtime/lib/queen-utils.sh +729 -0
- package/runtime/model-profiles.yaml +100 -0
- package/runtime/recover.sh +136 -0
- package/runtime/schemas/aether-types.xsd +255 -0
- package/runtime/schemas/colony-registry.xsd +309 -0
- package/runtime/schemas/pheromone.xsd +163 -0
- package/runtime/schemas/prompt.xsd +416 -0
- package/runtime/schemas/queen-wisdom.xsd +325 -0
- package/runtime/schemas/worker-priming.xsd +276 -0
- package/runtime/templates/QUEEN.md.template +79 -0
- package/runtime/utils/atomic-write.sh +5 -5
- package/runtime/utils/chamber-utils.sh +6 -3
- package/runtime/utils/error-handler.sh +200 -0
- package/runtime/utils/queen-to-md.xsl +395 -0
- package/runtime/utils/spawn-tree.sh +428 -0
- package/runtime/utils/spawn-with-model.sh +56 -0
- package/runtime/utils/state-loader.sh +215 -0
- package/runtime/utils/swarm-display.sh +5 -5
- package/runtime/utils/watch-spawn-tree.sh +90 -22
- package/runtime/utils/xml-compose.sh +247 -0
- package/runtime/utils/xml-core.sh +186 -0
- package/runtime/utils/xml-utils.sh +2196 -0
- package/runtime/verification-loop.md +1 -1
- package/runtime/workers-new-castes.md +516 -0
- package/runtime/workers.md +18 -6
- package/.aether/visualizations/anthill-stages/brood-stable.txt +0 -26
- package/.aether/visualizations/anthill-stages/crowned-anthill.txt +0 -30
- package/.aether/visualizations/anthill-stages/first-mound.txt +0 -18
- package/.aether/visualizations/anthill-stages/open-chambers.txt +0 -24
- package/.aether/visualizations/anthill-stages/sealed-chambers.txt +0 -28
- package/.aether/visualizations/anthill-stages/ventilated-nest.txt +0 -27
|
@@ -0,0 +1,240 @@
|
|
|
1
|
+
# Pheromone Injection System
|
|
2
|
+
|
|
3
|
+
## Auto-Injection at Critical Points
|
|
4
|
+
|
|
5
|
+
### Critical Moments Map
|
|
6
|
+
|
|
7
|
+
| Moment | Auto-Pheromone | Signal to User | Purpose |
|
|
8
|
+
|--------|---------------|----------------|---------|
|
|
9
|
+
| `/ant:init` completes | PHILOSOPHY[emergence-over-orchestration] | "🐜 Queen's scent laid: Emergence" | Foundation |
|
|
10
|
+
| First `/ant:plan` starts | PHILOSOPHY[minimal-planning-maximum-doing] | "🐜 Trail: Plan just enough, build soon" | Planning bias |
|
|
11
|
+
| Worker encounters error | REDIRECT[error-pattern] | "🐜 Warning pheromone deposited: {pattern}" | Learn from failure |
|
|
12
|
+
| Phase completes | PATTERN[what-worked] | "🐜 Success trail: {pattern} (strength: {n})" | Reinforce success |
|
|
13
|
+
| `/ant:seal` invoked | PHILOSOPHY[maturity-{milestone}] + PATTERN[sealed-conventions] | "🐜 Colony wisdom archived to eternal memory" | Lineage |
|
|
14
|
+
| `/ant:swarm` fixes bug | PATTERN[fix-strategy] + REDIRECT[what-failed] | "🐜 Swarm left trail: {solution-type}" | Bug immunity |
|
|
15
|
+
| User overrides worker | DECREE[override-reason] | "🐜 Decree recorded: {reason}" | Authority |
|
|
16
|
+
|
|
17
|
+
### User Signaling Format
|
|
18
|
+
|
|
19
|
+
```
|
|
20
|
+
═══════════════════════════════════════════════════════
|
|
21
|
+
🐜 PHEROMONE DEPOSITED
|
|
22
|
+
═══════════════════════════════════════════════════════
|
|
23
|
+
|
|
24
|
+
Type: PATTERN
|
|
25
|
+
Substance: prefer-bash-over-node-for-file-ops
|
|
26
|
+
Strength: 0.7
|
|
27
|
+
Source: milestone:phase-3-complete
|
|
28
|
+
Why: Workers used bash 5x more than node for file ops
|
|
29
|
+
|
|
30
|
+
This trail will guide future workers.
|
|
31
|
+
To see all active trails: /ant:sniff
|
|
32
|
+
|
|
33
|
+
═══════════════════════════════════════════════════════
|
|
34
|
+
```
|
|
35
|
+
|
|
36
|
+
## Async Injection System
|
|
37
|
+
|
|
38
|
+
### The Challenge
|
|
39
|
+
User wants to inject pheromone while workers are active, without interrupting flow.
|
|
40
|
+
|
|
41
|
+
### Solution: Pheromone Queue + Checkpoint Polling
|
|
42
|
+
|
|
43
|
+
```
|
|
44
|
+
User: /ant:emit FOCUS "error-handling" (while workers building)
|
|
45
|
+
|
|
46
|
+
System:
|
|
47
|
+
1. Deposit pheromone immediately to .aether/data/pheromone-queue.json
|
|
48
|
+
2. Display: "🐜 Pheromone queued - workers will detect at next checkpoint"
|
|
49
|
+
3. Continue worker flow uninterrupted
|
|
50
|
+
|
|
51
|
+
Workers:
|
|
52
|
+
- Poll for queue at natural breakpoints (task completion, before spawn)
|
|
53
|
+
- Pick up queued pheromones without breaking context
|
|
54
|
+
```
|
|
55
|
+
|
|
56
|
+
### Pheromone Queue Structure
|
|
57
|
+
|
|
58
|
+
```json
|
|
59
|
+
{
|
|
60
|
+
"queue": [
|
|
61
|
+
{
|
|
62
|
+
"id": "phem_123",
|
|
63
|
+
"type": "FOCUS",
|
|
64
|
+
"substance": "error-handling",
|
|
65
|
+
"strength": 0.9,
|
|
66
|
+
"deposited_at": "2026-02-15T10:30:00Z",
|
|
67
|
+
"deposited_by": "user:queen",
|
|
68
|
+
"status": "queued",
|
|
69
|
+
"picked_up_by": null,
|
|
70
|
+
"picked_up_at": null
|
|
71
|
+
}
|
|
72
|
+
]
|
|
73
|
+
}
|
|
74
|
+
```
|
|
75
|
+
|
|
76
|
+
### Worker Checkpoint Protocol
|
|
77
|
+
|
|
78
|
+
```markdown
|
|
79
|
+
Every worker, at natural breaks:
|
|
80
|
+
1. Check pheromone-queue.json for unclaimed pheromones
|
|
81
|
+
2. If found:
|
|
82
|
+
- Log: "[Worker] New scent detected: FOCUS[error-handling]"
|
|
83
|
+
- Incorporate into context
|
|
84
|
+
- Mark as picked_up_by: worker_id
|
|
85
|
+
3. Continue with adjusted context
|
|
86
|
+
|
|
87
|
+
Natural breakpoints:
|
|
88
|
+
- After completing a task
|
|
89
|
+
- Before spawning a sub-worker
|
|
90
|
+
- After tool use (Read/Edit/Bash)
|
|
91
|
+
- Every 5 minutes of continuous work
|
|
92
|
+
```
|
|
93
|
+
|
|
94
|
+
## Commands
|
|
95
|
+
|
|
96
|
+
### `/ant:emit <type> "<substance>" [--strength 0.0-1.0]`
|
|
97
|
+
|
|
98
|
+
Inject pheromone immediately or queue if workers active.
|
|
99
|
+
|
|
100
|
+
```
|
|
101
|
+
/ant:emit FOCUS "authentication-flow" --strength 0.9
|
|
102
|
+
|
|
103
|
+
🐜 PHEROMONE EMITTED
|
|
104
|
+
═══════════════════════════════════════════════════════
|
|
105
|
+
|
|
106
|
+
Type: FOCUS
|
|
107
|
+
Substance: authentication-flow
|
|
108
|
+
Strength: 0.9 (high priority)
|
|
109
|
+
Status: Active
|
|
110
|
+
|
|
111
|
+
Workers will detect this scent.
|
|
112
|
+
═══════════════════════════════════════════════════════
|
|
113
|
+
```
|
|
114
|
+
|
|
115
|
+
### `/ant:sniff [--type <type>] [--all]`
|
|
116
|
+
|
|
117
|
+
Display active pheromone trails.
|
|
118
|
+
|
|
119
|
+
```
|
|
120
|
+
/ant:sniff
|
|
121
|
+
|
|
122
|
+
🐜 ACTIVE PHEROMONE TRAILS
|
|
123
|
+
═══════════════════════════════════════════════════════
|
|
124
|
+
|
|
125
|
+
ETERNAL (never decay):
|
|
126
|
+
PHILOSOPHY[emergence-over-orchestration] ████████░░ 0.8
|
|
127
|
+
PHILOSOPHY[minimal-change] ████████░░ 0.8
|
|
128
|
+
DECREE[no-force-push] █████████░ 0.9
|
|
129
|
+
|
|
130
|
+
FOCUS (decay: 30 days):
|
|
131
|
+
FOCUS[authentication-flow] █████████░ 0.9 (12 days left)
|
|
132
|
+
FOCUS[performance-optimization] ██████░░░░ 0.6 (5 days left)
|
|
133
|
+
|
|
134
|
+
REDIRECT (decay: 60 days):
|
|
135
|
+
REDIRECT[regex-parsing] ███████░░░ 0.7 (45 days left)
|
|
136
|
+
|
|
137
|
+
PATTERN (decay: 90 days):
|
|
138
|
+
PATTERN[bash-for-file-ops] ████████░░ 0.8 (78 days left)
|
|
139
|
+
|
|
140
|
+
Queued for pickup:
|
|
141
|
+
FOCUS[error-handling] █████████░ 0.9 (waiting)
|
|
142
|
+
|
|
143
|
+
═══════════════════════════════════════════════════════
|
|
144
|
+
To emit: /ant:emit <type> "<substance>" [--strength N]
|
|
145
|
+
```
|
|
146
|
+
|
|
147
|
+
## UX Flow: Onboarding Through Pheromones
|
|
148
|
+
|
|
149
|
+
### First Colony Experience
|
|
150
|
+
|
|
151
|
+
```
|
|
152
|
+
User: /ant:init "Build auth system"
|
|
153
|
+
|
|
154
|
+
System:
|
|
155
|
+
[Standard init flow...]
|
|
156
|
+
|
|
157
|
+
🐜 FIRST COLONY DETECTED
|
|
158
|
+
═══════════════════════════════════════════════════════
|
|
159
|
+
|
|
160
|
+
Your Queen's scent is being established.
|
|
161
|
+
|
|
162
|
+
Auto-deposited pheromones:
|
|
163
|
+
✓ PHILOSOPHY[emergence-over-orchestration]
|
|
164
|
+
✓ PHILOSOPHY[minimal-change]
|
|
165
|
+
|
|
166
|
+
These guide all future workers in this colony.
|
|
167
|
+
|
|
168
|
+
💡 Tip: You can adjust worker behavior mid-flight:
|
|
169
|
+
/ant:emit FOCUS "security" --strength 0.9
|
|
170
|
+
|
|
171
|
+
═══════════════════════════════════════════════════════
|
|
172
|
+
```
|
|
173
|
+
|
|
174
|
+
### Learning by Example
|
|
175
|
+
|
|
176
|
+
When workers do something notable, system suggests pheromone:
|
|
177
|
+
|
|
178
|
+
```
|
|
179
|
+
[Builder Worker] Implemented 3 files using same pattern
|
|
180
|
+
|
|
181
|
+
🐜 PATTERN DETECTED
|
|
182
|
+
═══════════════════════════════════════════════════════
|
|
183
|
+
|
|
184
|
+
Workers consistently used: "check-file-exists-before-write"
|
|
185
|
+
|
|
186
|
+
Suggested pheromone:
|
|
187
|
+
PATTERN[check-exists-before-write]
|
|
188
|
+
|
|
189
|
+
Deposit this for future colonies? [Y/n/help]
|
|
190
|
+
|
|
191
|
+
═══════════════════════════════════════════════════════
|
|
192
|
+
```
|
|
193
|
+
|
|
194
|
+
### Mid-Work Injection Example
|
|
195
|
+
|
|
196
|
+
```
|
|
197
|
+
[Workers actively building Phase 2...]
|
|
198
|
+
|
|
199
|
+
User: /ant:emit FOCUS "error-handling"
|
|
200
|
+
|
|
201
|
+
System:
|
|
202
|
+
🐜 PHEROMONE QUEUED
|
|
203
|
+
═══════════════════════════════════════════════════════
|
|
204
|
+
|
|
205
|
+
FOCUS[error-handling] queued for active workers.
|
|
206
|
+
Next checkpoint (within 60s), workers will adjust.
|
|
207
|
+
|
|
208
|
+
Current workers: 3 active
|
|
209
|
+
Queue position: 1
|
|
210
|
+
|
|
211
|
+
═══════════════════════════════════════════════════════
|
|
212
|
+
|
|
213
|
+
[30 seconds later, Prime Worker completes task]
|
|
214
|
+
|
|
215
|
+
Prime Worker: "New scent detected: FOCUS[error-handling]"
|
|
216
|
+
Prime Worker: "Adjusting priorities..."
|
|
217
|
+
Prime Worker: [Continues work with new focus]
|
|
218
|
+
```
|
|
219
|
+
|
|
220
|
+
## Implementation Notes
|
|
221
|
+
|
|
222
|
+
### Signal Batching
|
|
223
|
+
- Don't show every pheromone immediately
|
|
224
|
+
- Batch notifications every 30 seconds if multiple deposited
|
|
225
|
+
- Priority: DECREE > REDIRECT > FOCUS > PATTERN > PHILOSOPHY
|
|
226
|
+
|
|
227
|
+
### Context Window Management
|
|
228
|
+
- Pheromones condensed to single line in worker context:
|
|
229
|
+
`[Pheromones: FOCUS(auth,0.9) REDIRECT(regex,0.7) PATTERN(bash-files,0.8)]`
|
|
230
|
+
- Full sniff available via tool call if worker needs details
|
|
231
|
+
|
|
232
|
+
### Persistence
|
|
233
|
+
- Eternal pheromones: `~/.aether/eternal/pheromones.json`
|
|
234
|
+
- Colony pheromones: `.aether/data/pheromones.json`
|
|
235
|
+
- Queue: `.aether/data/pheromone-queue.json`
|
|
236
|
+
- Midden (expired): `.aether/data/midden/pheromones.json`
|
|
237
|
+
|
|
238
|
+
---
|
|
239
|
+
|
|
240
|
+
*The colony learns as it works. The Queen guides without interrupting.*
|
|
@@ -0,0 +1,192 @@
|
|
|
1
|
+
# Pheromone Integration (No New Commands)
|
|
2
|
+
|
|
3
|
+
## Philosophy
|
|
4
|
+
Pheromones are the **invisible substrate** - they emerge from existing commands, they don't require new ones.
|
|
5
|
+
|
|
6
|
+
## Auto-Injection via Existing Commands
|
|
7
|
+
|
|
8
|
+
### `/ant:init` → Foundation Pheromones
|
|
9
|
+
```
|
|
10
|
+
/ant:init "Build auth system"
|
|
11
|
+
|
|
12
|
+
[...init flow...]
|
|
13
|
+
|
|
14
|
+
🐜 Colony scent established
|
|
15
|
+
Workers will favor: emergence, minimal-change
|
|
16
|
+
|
|
17
|
+
═══════════════════════════════════════════════════════
|
|
18
|
+
👑 Goal: Build auth system
|
|
19
|
+
📍 State: READY
|
|
20
|
+
═══════════════════════════════════════════════════════
|
|
21
|
+
```
|
|
22
|
+
Silently deposits:
|
|
23
|
+
- PHILOSOPHY[emergence-over-orchestration] (strength: 1.0)
|
|
24
|
+
- PHILOSOPHY[minimal-change] (strength: 0.8)
|
|
25
|
+
|
|
26
|
+
### `/ant:plan` → Pattern Detection
|
|
27
|
+
When planning completes, auto-detect patterns from the plan:
|
|
28
|
+
```
|
|
29
|
+
📊🐜🗺️🐜📊 Plan Generated
|
|
30
|
+
|
|
31
|
+
4 phases, 12 tasks identified
|
|
32
|
+
|
|
33
|
+
🐜 Pattern detected: Heavy API integration work
|
|
34
|
+
Depositing FOCUS[external-apis] trail
|
|
35
|
+
|
|
36
|
+
═══════════════════════════════════════════════════════
|
|
37
|
+
```
|
|
38
|
+
|
|
39
|
+
### `/ant:build` → Worker Pheromones
|
|
40
|
+
Workers deposit trails as they work (visible in activity log):
|
|
41
|
+
```
|
|
42
|
+
[10:05:01] Builder: Implementing auth middleware
|
|
43
|
+
[10:05:03] Builder: PATTERN[express-middleware-pattern] deposited
|
|
44
|
+
[10:05:08] Builder: Complete
|
|
45
|
+
```
|
|
46
|
+
|
|
47
|
+
### `/ant:seal` → Wisdom Extraction
|
|
48
|
+
```
|
|
49
|
+
🏺 Colony Sealed - Crowned Anthill
|
|
50
|
+
|
|
51
|
+
3 phases completed, 47 tasks done
|
|
52
|
+
|
|
53
|
+
🐜 Wisdom archived:
|
|
54
|
+
• PATTERN[prefer-joi-over-zod] (validated 5x)
|
|
55
|
+
• PATTERN[bash-for-file-ops] (used 12x)
|
|
56
|
+
• REDIRECT[avoid-sync-fs] (failed once, fixed)
|
|
57
|
+
|
|
58
|
+
Preserved in eternal memory for future colonies.
|
|
59
|
+
```
|
|
60
|
+
|
|
61
|
+
### `/ant:swarm` → Fix Patterns
|
|
62
|
+
After swarm fixes a bug:
|
|
63
|
+
```
|
|
64
|
+
🔥 Swarm Resolved
|
|
65
|
+
|
|
66
|
+
Applied: Null check with early return
|
|
67
|
+
|
|
68
|
+
🐜 Immunity deposited: REDIRECT[unchecked-null-access]
|
|
69
|
+
Future workers will guard against this pattern.
|
|
70
|
+
```
|
|
71
|
+
|
|
72
|
+
## Existing Commands Enhanced
|
|
73
|
+
|
|
74
|
+
### `/ant:focus "area"` → FOCUS Pheromone
|
|
75
|
+
Already exists - now visibly deposits:
|
|
76
|
+
```
|
|
77
|
+
/ant:focus "authentication"
|
|
78
|
+
|
|
79
|
+
🐜 Focus trail laid: authentication
|
|
80
|
+
Workers will prioritize auth concerns.
|
|
81
|
+
Strength: 0.9 (30-day decay)
|
|
82
|
+
|
|
83
|
+
Active trails: FOCUS[auth,0.9] FOCUS[performance,0.6]
|
|
84
|
+
```
|
|
85
|
+
|
|
86
|
+
### `/ant:redirect "pattern"` → REDIRECT Pheromone
|
|
87
|
+
Already exists - now visibly deposits:
|
|
88
|
+
```
|
|
89
|
+
/ant:redirect "regex-parsing"
|
|
90
|
+
|
|
91
|
+
🐜 Warning trail laid: regex-parsing
|
|
92
|
+
Workers will avoid or carefully consider.
|
|
93
|
+
Strength: 0.8 (60-day decay)
|
|
94
|
+
```
|
|
95
|
+
|
|
96
|
+
### `/ant:status` → Show Pheromones
|
|
97
|
+
Add section to existing status:
|
|
98
|
+
```
|
|
99
|
+
/ant:status
|
|
100
|
+
|
|
101
|
+
📈🐜🏘️🐜📊 Colony Status
|
|
102
|
+
═══════════════════════════════════════════════════════
|
|
103
|
+
|
|
104
|
+
State: EXECUTING
|
|
105
|
+
Phase: 2 of 4
|
|
106
|
+
|
|
107
|
+
Active Pheromone Trails:
|
|
108
|
+
🎯 FOCUS: authentication (0.9), error-handling (0.7)
|
|
109
|
+
⚠️ REDIRECT: regex-parsing (0.8)
|
|
110
|
+
📚 PATTERN: bash-for-file-ops (0.8), express-middleware (0.6)
|
|
111
|
+
|
|
112
|
+
[rest of status...]
|
|
113
|
+
```
|
|
114
|
+
|
|
115
|
+
## Mid-Work Injection (No Command Needed)
|
|
116
|
+
|
|
117
|
+
User can use existing signal commands while workers are active:
|
|
118
|
+
```
|
|
119
|
+
[Workers building...]
|
|
120
|
+
|
|
121
|
+
User: /ant:focus "security" (anytime, even mid-build)
|
|
122
|
+
|
|
123
|
+
System: 🐜 FOCUS[security] queued
|
|
124
|
+
Workers will detect at next checkpoint.
|
|
125
|
+
|
|
126
|
+
[Workers continue, pick it up naturally]
|
|
127
|
+
```
|
|
128
|
+
|
|
129
|
+
The pheromone queue system works silently in the background.
|
|
130
|
+
|
|
131
|
+
## Auto-Onboarding
|
|
132
|
+
|
|
133
|
+
### First Colony
|
|
134
|
+
```
|
|
135
|
+
/ant:init "My first colony"
|
|
136
|
+
|
|
137
|
+
🌱 First colony initialized
|
|
138
|
+
🐜 Queen's scent automatically established:
|
|
139
|
+
• Emergence over orchestration
|
|
140
|
+
• Minimal changes preferred
|
|
141
|
+
|
|
142
|
+
These guide all workers. View with /ant:status
|
|
143
|
+
```
|
|
144
|
+
|
|
145
|
+
### Pattern Suggestions (Non-blocking)
|
|
146
|
+
When workers do something notable, suggest (don't require):
|
|
147
|
+
```
|
|
148
|
+
[Worker completed 3 similar tasks]
|
|
149
|
+
|
|
150
|
+
💡 Pattern noticed: Workers consistently check file existence before write.
|
|
151
|
+
This will be deposited as PATTERN at phase completion.
|
|
152
|
+
```
|
|
153
|
+
|
|
154
|
+
No user action needed - it just happens silently.
|
|
155
|
+
|
|
156
|
+
## Pheromone Visualization
|
|
157
|
+
|
|
158
|
+
Integrated into existing visual systems:
|
|
159
|
+
|
|
160
|
+
### Watch Mode (`/ant:watch`)
|
|
161
|
+
```
|
|
162
|
+
┌─────────────────────────────────────────────┐
|
|
163
|
+
│ AETHER COLONY :: EXECUTING │
|
|
164
|
+
│ │
|
|
165
|
+
│ Phase: 2/4 │
|
|
166
|
+
│ │
|
|
167
|
+
│ Active Trails: │
|
|
168
|
+
│ 🎯 FOCUS[auth:0.9] │
|
|
169
|
+
│ ⚠️ REDIRECT[regex:0.8] │
|
|
170
|
+
│ │
|
|
171
|
+
│ Workers: │
|
|
172
|
+
│ [Builder] Implementing middleware │
|
|
173
|
+
└─────────────────────────────────────────────┘
|
|
174
|
+
```
|
|
175
|
+
|
|
176
|
+
### Activity Log
|
|
177
|
+
```
|
|
178
|
+
[10:05:01] Builder spawned
|
|
179
|
+
[10:05:02] Builder: Inhaled trails: FOCUS[auth] REDIRECT[regex]
|
|
180
|
+
[10:05:03] Builder: Working on auth middleware
|
|
181
|
+
```
|
|
182
|
+
|
|
183
|
+
## Key Principle
|
|
184
|
+
|
|
185
|
+
**No new commands.** Pheromones are:
|
|
186
|
+
1. **Auto-deposited** during normal workflow
|
|
187
|
+
2. **Visible but not noisy** - brief mentions in output
|
|
188
|
+
3. **Queryable** via enhanced `/ant:status`
|
|
189
|
+
4. **Injectable** via existing `/ant:focus` and `/ant:redirect`
|
|
190
|
+
5. **Always working** - even when user doesn't know they're there
|
|
191
|
+
|
|
192
|
+
The colony learns silently. The Queen guides through existing signals.
|