]> git.giacomolli.uk - onechat/commit
Run each child with its own files and loop
authorAnderson A. Giacomolli <redacted>
Tue, 10 Nov 2026 04:38:37 +0000 (01:38 -0300)
committerAnderson A. Giacomolli <redacted>
Tue, 10 Nov 2026 04:49:06 +0000 (01:49 -0300)
commit2a276c273c21a1752d541bf87e074c5d1c27e30f
tree7ea76c1a7be1839540a9a39b69a57dd2490b2c5b
parent77f29e78734dc16cfcea5f41b8e0185f8b33534a
Run each child with its own files and loop

The daemon opens the root and each direct child with separate memory,
compaction, usage records, schedules, and subagents. Invalid child
configuration stops startup, and the ready event names the children.
Each child uses its own cache key and has no WhatsApp tools. Its turn
and compaction calls share the same prompt and tools.

Backups flush and lock every agent and its subagent logs during the
copy, so the archive holds the full state of the children as well as the
root. Clients still address only the root.
14 files changed:
agent.go
backup_test.go
build_run_test.go
compactor.go
compactor_test.go
daemon.go
daemon_agent.go [new file with mode: 0644]
daemon_agent_helper_test.go [new file with mode: 0644]
daemon_agent_test.go [new file with mode: 0644]
probe.go
rebuild_test.go
tools.go
turn.go
whatsapp_import.go