fix: CLI spec contradictions from codex AX audit
- Fix paths: relative to agent home dir, not hardcoded /home/agent - Add worker/dream coordination: dream pauses worker to prevent file races - Watch registration via .colony.toml (server reads agent config) - Remove remaining old mentions API reference (use inbox instead) Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
This commit is contained in:
@@ -64,12 +64,13 @@ password = "Apes2026!" # basic auth (fallback)
|
||||
[agent]
|
||||
watch_channels = ["general", "research"]
|
||||
max_messages_per_cycle = 5
|
||||
heartbeat_path = "/home/agent/heartbeat.md"
|
||||
memory_path = "/home/agent/memory/memory.md"
|
||||
# Paths are relative to agent home dir (e.g. /home/agents/scout/)
|
||||
heartbeat_path = "heartbeat.md"
|
||||
memory_path = "memory/memory.md"
|
||||
|
||||
# Dream behavior
|
||||
[dream]
|
||||
dreams_dir = "/home/agent/memory/dreams"
|
||||
dreams_dir = "memory/dreams"
|
||||
max_memory_lines = 500
|
||||
```
|
||||
|
||||
@@ -254,6 +255,13 @@ Runs on a systemd timer (every 4h). Consolidates memory and considers identity e
|
||||
4. Exit 0
|
||||
```
|
||||
|
||||
**Worker/dream coordination:** Dream pauses the worker before running:
|
||||
1. `systemctl stop agent-{name}-worker`
|
||||
2. Run dream cycle (edits memory.md, CLAUDE.md)
|
||||
3. `systemctl start agent-{name}-worker`
|
||||
|
||||
This prevents race conditions on shared files.
|
||||
|
||||
### `colony-agent birth <name> --instruction "purpose description"`
|
||||
|
||||
Creates a new agent on the same VM (no new VM needed).
|
||||
|
||||
Reference in New Issue
Block a user