watchtower

A watchtower for a fleet of coding agents.

Every machine herdr-core dials, every terminal on it, and the projects that give those terminals a reason to exist — from a phone, without a terminal. Two processes: a gateway (Bun, the API and this UI) and a lens (the board, its own SQLite). The agents are pi, unchanged.

The board: a Demo project with three cards — one proposed in the backlog, one running in doing with a live run pill, and one queued behind it showing `queued 1/1`.
The demo's own board, not a mockup: three cards, one running on machine-a, one queued behind it in the same checkout. Captured from ./demo/demo.sh up.

the board

Five lanes, and a card's run is derived from hc on every read — never stored, so “is this still going” cannot go stale. The only automatic move is the agent's own claim (HANDOFF: review); done stays a person's verdict. Two cards into one checkout do not collide — the second queues, or gets a worktree.

backlog 3

A card's run is derived, never stored
proposed
Probe: the tree row's byte count
proposed

ready 2

Every machine name wears its colour
readynpm test
Bind the second pi session in a shared cwd
ready

doing 1 - queued 1

Queue: the line is the order, and a person sets it
workingt9y
Hover checks for the surfaces a card check cannot reach
queued 2/2

review 1

Stream extension: retire it
reviewclaims done

done 85

Releases swap by renameat2, never rm -rf
done

the 60-second look

Two containers: the gateway and the lens, a real hc core, and a real machine with sshd, python3, git, node and pi. Docker and ssh-keygen are the only things you need — bun, hc and pi are installed inside. It copies no credential unless you tell it to.

# clone, then
./demo/demo.sh up

== waiting for the gateway
   gateway answers on http://127.0.0.1:15270
== seeding the board
   registered machine-a
   created project Demo (1)
   created card task_… (ready)
# press start on the card
   ● doing · working   t1 → machine-a:/work/demo-repo
   done test  cd /work/demo-repo && npm test

# and when it stops talking
   review   the agent claimed it; done is yours

the install

One command, six questions with the right answer already typed in — press Enter. It prints a plan and writes nothing until you confirm. For an agent: --yes --single, non-interactive, and docs/agent-setup.md says where it must stop and ask you.

# a person
git clone <repo> ~/hc-watchtower && cd ~/hc-watchtower
bun install
./install.sh

# an agent, or CI
./install.sh --yes --single
./install.sh --yes --single --no-systemd   # no sudo
# the check that names the fault
./doctor.sh

  ✓ bun 1.4.5
  ✓ hc 0.1.21  (/usr/local/bin/hc)
  ✓ pi 1.6.0  (it runs, not merely exists)
  ✓ 3 machine(s) connected
  ! no registry — this host and nothing else
doctor: nothing broken

what it needs beyond hc

This is the part that surprises people, so it is on the front page rather than in a footnote.

Two links per machine

hc's own link runs terminals. The gateway's own ssh link reads files, transcripts and folders. Neither implies the other — without the second you get a live terminal with an empty chat.

The lens is the truth

Projects, spaces, cards, runs: one SQLite file, loopback only, never proxied. The gateway's own database is a cache and can be deleted. Back up the lens.

One credential, no tenancy

Single operator. Whoever holds the password can start a process on any machine in the fleet and type into its terminal — treat it like an ssh key, because it is one.

read

Getting started

Ten minutes from a bare box to one chat session.

Coming from herdr

Panes → terminals, profiles → machine names, plugin events → terminal status.

A machine at home, your phone

The tailnet shape: the bind, `tailscale serve`, the origin rule that makes writes 403.

Machine access

The second link, per machine, in five minutes.

Agent setup

One command, a definition of done, and the four things a person must do.

Glossary

Six nouns, including the four that mean different things elsewhere.