Reef is the root control plane for a Vers agent fleet.
It runs the root Reef server, owns the global registry/vm-tree/commits state, manages remote lieutenants, serves the /ui, and provides the child-safe Reef tools that golden-image child VMs use to talk back to the root.
vers-fleetsbootstraps only the root Reef infra VMreefowns the runtime control planepi-versprovides the Vers extensions Reef-managed agents load into thepunkinharnesspunkin-piw/routeris the harness used on the root and child agent VMs
After bootstrap, Reef is responsible for:
- ensuring a golden image exists
- creating lieutenants from that golden image
- tracking lineage in
vm-tree - tracking liveness/discovery in
registry - managing golden commits in
commits - serving the root UI and conversation system
Root Reef VM:
- runs the Reef server
- owns SQLite-backed services like
registry,vm-tree, andcommits - is the only global authority
- defaults its own task runner to
claude-opus-4-6-thinking
Child agent VMs:
- are restored from the golden image at runtime
- do not run their own Reef server
- use
punkinas the harness - install
pi-vers - install the Reef client extension
- point back to the root Reef via
VERS_INFRA_URL
Lieutenants are branch managers. Workers are execution nodes. Global control-plane authority stays on the root.
Lieutenants default to claude-opus-4-6-thinking. Swarm workers default to claude-sonnet-4-6.
Reef now scopes child tools intentionally.
All child VMs get:
reef_selfreef_parent
Lieutenants additionally get:
reef_lt_childrenreef_lt_subtreereef_lt_worker_capacity
Child VMs do not expose raw global registry, vm-tree, commits, or lieutenant-lifecycle tools locally.
The /ui is a 3-column root control-plane interface:
- left: conversation list and create-chat flow
- middle: active conversation
- right: activity feed
Conversations are persisted on disk:
- metadata lives in Reef task/tree state
- message transcripts are appended as JSONL under
REEF_DATA_DIR/conversations/<conversationId>.jsonl
Closing a conversation archives it from the active list without deleting it.
Root-only control-plane services include:
commitsregistryvm-treelieutenantservicesuivers-configbootloader
The bootloader now matters only for root/infra bootstrap and related recovery flows. Normal child-agent provisioning should come from Reef golden-image runtime flows, not from bootloader-generated child scripts.
The current golden image for child agent VMs is expected to contain:
punkin-piw/routerpisymlinked topunkin- local
pi-versinstall - Reef client extension install
- child env pointing at the root Reef:
VERS_INFRA_URLPI_VERS_HOMESERVICES_DIR
- no local child Reef server
- RPC-ready runtime for lieutenants and workers
- source checkouts for inspectability:
/root/punkin-pi/root/pi-vers/root/reef
Golden creation also adds VM-local compatibility aliases for legacy @mariozechner/* Pi packages so they can still load under punkin.
bun install
bun test
bun run startUseful env:
VERS_AUTH_TOKENLLM_PROXY_KEYVERS_VM_IDVERS_INFRA_URLSERVICES_DIRREEF_DATA_DIR
- Root Reef is the only SQLite authority in the fleet.
vers-fleetsis bootstrap-only after the root comes up.- Child lieutenants and workers should be created from Reef runtime flows, not pre-bootstrapped externally.