SuperAPI AI Directory

daemon

Agents & models

View repository

Updated 10-26 18:53

About this skill

/daemon (bro)

All mechanics live in the bro CLI. This skill is policy only.

The three process roles, never conflated:

Role Command Lifetime
Owner bro fleet daemon up — spawns daemon run (the bro review drive --every loop) detached long-lived, until down
Observer bro review watch --every N --for S bounded window, dies on its own
UI bro fleet serve a debug surface, not orchestration

The daemon holds drive.lock (one supervisor per repo) and owns the drive pass: act gates → fixer spawns → merges. Task agents are spawned through the registry as detached peers — killing the daemon never kills in-flight agents, and killing a watch window never touches either.

Commands

  • bro fleet daemon up [--every SEC] — orchestrator-only. Spawns the supervisor detached, records the armer in <git-common>/bro/daemon.json, logs to <git-common>/bro/daemon.log. Idempotent: a live holder (even a raw bro review drive --every) reports already, never doubles.
  • bro fleet daemon status — lock holder + armer record + log path; an armed bro/drive.json shows · installed.
  • bro fleet daemon down — SIGTERM the holder, clear the record. Transient under an install: bro review drive install armed bro/drive.json, so the next session checkpoint rearms the supervisor; bro review drive uninstall is the disarm.
  • bro fleet daemon run — the loop itself; spawned by up (or by a session checkpoint rearming an installed supervisor), not for direct use.

Guards

  • BRO_AGENT_ID sessions are refused at up — spawned workers never arm supervisors (same predicate as bro review drive --every).
  • daemon run inherits drive's own guard, drive.lock hold, and heartbeat emission — the watchdog reads supervisor liveness through them, and bro review watch renders it in the daemon section. A recorded-but-dead daemon lands in attention — the pulse's job is noticing, up is the fix.