README
¶
Hand
Hand is a personal supervisor layer for coding agents. You talk to one supervisor agent. It captures every request as a task, starts Claude Code, Codex, opencode or Antigravity workers in isolated git worktrees through Luvus, waits for them with zero tokens, reads their reports, and asks you only through decisions. Each fleet is a folder with its own SQLite state, and one hand board shows every fleet.
Hand is built for one operator on Linux or macOS, not as a product for other users. Native Windows is experimental: see Windows. The design and its non-goals are in docs/spec.md, and every term used here is defined in docs/vocabulary.md.
Wiki: deepwiki.com/atqamz/hand, a generated overview for browsing the code.
flowchart LR
operator["Operator"] -- "messages, answers" --> board["hand board"]
board -- "messages" --> supervisor["Supervisor sN"]
supervisor -- "tasks, plans, decisions" --> state[("hand.db")]
supervisor -- "hand attempt start" --> w1["Worker a1<br/>worktree t1-a1"]
supervisor -- "hand attempt start" --> w2["Worker a2<br/>worktree t2-a2"]
w1 -- "hand report add" --> state
w2 -- "hand report add" --> state
state -- "wakes, through hand watch" --> supervisor
state -- "tasks, reports, decisions" --> board
The idea of one agent running a crew of workers in worktrees is also the idea behind firstmate. Hand keeps the supervisor, the fleet memory and the determinism, in one Go binary with few dependencies.
Why
A single coding agent works well on one task. Running several at once leaves someone to:
- write each request down before work starts, so nothing lives only in chat;
- keep concurrent work in separate worktrees and branches;
- know which worker is running, blocked, quiet or finished, without watching terminals;
- keep plans, reports and decisions when a chat session ends;
- ask the operator only when a choice is theirs;
- stop and clean up workers without losing uncommitted work.
In Hand, the supervisor handles judgement and hand handles the mechanics. Workflow state lives in a state machine over SQLite, never in an agent's memory, so a fresh supervisor orients from hand orient alone. Waiting costs no tokens: a watcher wakes the supervisor only when something changed.
Requirements
- Linux, or macOS (Apple silicon or Intel).
- On macOS,
hand unitstill prints systemd units, so runhand watchandhand boardin a terminal or under your own LaunchAgent. The Luvus server starts directly, without restart on failure. launchd support comes later. - On Windows 10 or 11 (amd64), Hand runs natively and is experimental. See Windows.
- On macOS,
- git, to make worktrees. Go 1.26.5 or newer only to build Hand from source.
- Luvus, with
luvusonPATHwhen you first runhand init. Hand needs its UHP 1.x protocol, and was tested with Luvus 0.14.hand initpins a copy of that binary under~/.secondhand/luvus/, so a system upgrade never changes the Luvus a fleet runs.hand luvus pinpins another one. - At least one harness, logged in: Claude Code (
claude), Codex (codex) or opencode 2.x (opencode). Run Codex once before using it, so its model cache exists. opencode uses the model from its own configuration. - Optional: the Antigravity CLI (
agy), logged in, so thatagy modelslists its models. - Optional:
notify-sendfor desktop notifications andxdg-openforhand open(on macOS, the built-inosascriptandopen; on Windows,hand openuses the shell and there are no notifications), and a systemd user session to keep the watcher, the board and Luvus running.
Install
Install the latest release on Linux or macOS (amd64 or arm64):
curl -fsSL https://raw.githubusercontent.com/atqamz/hand/main/install.sh | sh
You can choose another version:
- Edge:
curl -fsSL https://raw.githubusercontent.com/atqamz/hand/main/install.sh | HAND_INSTALL_VERSION=edge sh. Edge is the rolling build ofmainthat passed CI. - A pinned release:
HAND_INSTALL_VERSION=v0.10.0.
HAND_INSTALL_DIR picks the folder; the default is ~/.local/bin. The script checks the download against the release's checksums.txt, and installs nothing if it does not match.
To update an installed Hand, run hand update from anywhere. It does the following:
- downloads the newest build of the channel the running
handcame from, and checks it; - backs up every fleet's
hand.dband the old binary under~/.secondhand/backups/; - replaces the binary and restarts the board and watch units that run it;
- runs
hand initin every fleet.
It also pins the Luvus version that build was tested with when that is newer than the pin. It switches a fleet's Luvus server only when the fleet is quiet: no worker attempt is live, the supervisor is idle, no message waits for it, and no pane is live in that server besides the supervisor's and the shell Luvus opens when it starts. Otherwise it prints the command to run at a quiet time, and names any other live pane, since stopping the server ends it. Once it starts changing things it ignores Ctrl-C, and its own steps run outside the terminal's process group, so it does not leave a fleet without its watcher. If it is killed anyway, the next hand update finishes the steps it left, from its journal at ~/.secondhand/update.json. A failed update can leave the new Luvus pin in place; a running server ignores it, and the next hand update carries on. Run it from a plain terminal: a hand update started inside a fleet's Luvus panes leaves that fleet's server alone.
To restore a backup:
- stop the fleet's watch unit and the board;
- remove
hand.db-walandhand.db-shmnext to the fleet'shand.db; - copy the backup over
hand.db: ahand.db.<stamp>fromhand update, or a dailyhand-YYYYMMDD.dbfrom the watcher, both under$SECONDHAND_HOME/backups/<fleet id>/(~/.secondhand/backups/<fleet id>/unless you set it); - put the old binary back from
~/.secondhand/backups/hand.<stamp>if the new one is the problem; - start the units again.
The options:
hand update --checkshows what would change and changes nothing; itsunitsrows list the stop, start and restart steps a real run would take, each markedwould run;hand update --channel edge(orstable) moves to the other channel;- a
handbuilt from source needs--channel.
To build from source instead:
git clone https://github.com/atqamz/hand
cd hand
go build -o ~/.local/bin/hand .
To try it next to an older Hand, build it under another name such as ~/.local/bin/hand-next. Hand calls itself by its binary's name in the fleet's AGENTS.md, its skill, its help lines and its errors, so a supervisor in that fleet runs hand-next. When you later install it as plain hand, run that hand init in each fleet to rewrite them.
Windows (experimental)
Native Windows support is experimental. It has not yet passed an end-to-end run on a real Windows machine, so expect rough edges and report them.
Install the latest release into %LOCALAPPDATA%\hand\bin from PowerShell 5.1 or newer. No admin rights are needed:
& ([scriptblock]::Create((irm https://raw.githubusercontent.com/atqamz/hand/main/install.ps1)))
The script downloads hand-windows-amd64.zip, checks it against the release's hand-windows-amd64.sha256, installs nothing if it does not match, and adds the folder to your user PATH once. Open a new terminal afterwards.
The options go after the command, as in ... -Edge:
-Edge: the rolling build ofmainthat passed CI;-Version v0.10.0: a pinned release;-Dir PATH: the folder, which may contain spaces.-TimeoutSec N: give up on a download that takes longer than N seconds (default 300).
HAND_INSTALL_VERSION, HAND_INSTALL_DIR and HAND_INSTALL_BASE set the same defaults as in install.sh.
Before your first worktree, allow long paths in git:
git config --global core.longpaths true
Put luvus.exe from a Luvus Windows release on your PATH before hand init, as on Linux.
What differs from Linux and macOS:
- there are no units:
hand unitprints systemd units only, and no service keeps the watcher, the board or Luvus alive.hand supervisor startstarts the watcher when it is free, and Luvus starts directly; - desktop notifications are off: the watcher's notify step does nothing;
- stopping a worker ends its whole process tree at once, with no graceful phase;
hand updateswaps the binary by renaming the runninghand.exetohand.exe.old, stops the watcher and the board, and prints a line to runhand boardagain. The nexthandrun deletes the old file.
To start the board at logon without admin rights, put a shortcut in the Startup folder. This creates it from PowerShell:
$link = (New-Object -ComObject WScript.Shell).CreateShortcut("$([Environment]::GetFolderPath('Startup'))\Hand board.lnk")
$link.TargetPath = "$env:LOCALAPPDATA\hand\bin\hand.exe"
$link.Arguments = "board"
$link.WindowStyle = 7
$link.Save()
shell:startup in the Run dialog opens the same folder, to move or delete the shortcut.
Quick start
1. Make a fleet
mkdir -p ~/fleets/demo && cd ~/fleets/demo
hand init # or: hand init --name demo DIR
hand init creates hand.db, writes the folder's AGENTS.md and CLAUDE.md, installs the secondhand skill, and writes a starter routing.json and memory/operator.md. Running it again is safe: it rewrites only the files Hand owns.
2. Register a project
hand project add api /absolute/path/to/api
A project is a name for a git repository on this machine. Hand does not clone it: each worker gets its own worktree of that repository, on its own branch.
Claude asks once to trust a folder. Trust the worktrees folder once for every fleet:
w="${SECONDHAND_HOME:-$HOME/.secondhand}/worktrees"; mkdir -p "$w" && cd "$w" && claude
3. Capture a task
The supervisor normally does this for you, but the command is the same:
hand task add --goal "sign-in redirects to /home" api "Fix the login redirect"
It prints the task's ref, t1, in the inbox state.
4. Run the watcher and the board
The watcher delivers wakes and messages to the supervisor, and the board is your interface. For a first try, run each in its own terminal, from inside the fleet folder:
hand watch
hand board
To keep them running, install them as systemd user units, as described in Keep the watcher and the board running.
5. Start the supervisor and open the board
hand supervisor start --profile default
hand open
hand open opens the fleet's page and logs your browser in. You can also start the supervisor from that page instead: press Start and pick a routing profile, or a harness with its model and effort. The supervisor runs hand orient and sees t1 in its inbox. Write your requests in the Chat tab.
The daily loop
What you do:
- Open the fleet's page with
hand open. The Needs you tab lists what waits on you: open decisions, the supervisor's blocked screens, unread reports, failed, exited or interrupted attempts, and a supervisor that stopped unexpectedly. - Ask for work in the Chat tab. The supervisor captures each request as a task before doing anything else.
- Answer decisions on their card or their page, or with
hand decision answer dN "ANSWER". - Read reports, and press Mark read once you have read one.
- Follow a task on its page, or open its newest pull request with
hand open tN --pr.
What the supervisor does, following the secondhand skill:
hand orient, at the start of every turn and after every wake.- Capture with
hand task add, start withhand task start tN, and plan withhand plan set --body-file PLAN.md tN. - Start a worker with
hand attempt start --profile NAME --prompt-file BRIEF.md tN. - Wait: wakes arrive as messages that start with
[hand v1 wake]. - Read reports with
hand report show rN, act on them, and acknowledge them withhand report ack rN. - Ask you with
hand decision ask tN "QUESTION". - Verify the acceptance check, then
hand attempt stop aNif the worker still runs,hand attempt clean aNandhand task done tN.
Routing profiles live in <home>/routing.json, and hand route list shows them. The starter has quick, default, high, deep and max: claude sonnet at rising effort.
Fleets
A fleet is any folder hand init has run in. Commands find it from --home DIR (given before the command), from the working directory or any folder inside it, or from $HAND_HOME. Run as many fleets as you like: each has its own Luvus session, worktrees and watcher, and one board serves them all. hand fleet list shows them.
Rename a fleet with hand init --name NEW. To move one, mv the folder and run hand init in its new place.
A fleet folder looks like this:
~/fleets/demo/
├── AGENTS.md Hand's; rewritten by every hand init
├── CLAUDE.md Hand's; points to AGENTS.md
├── .claude/ .agents/ .grok/ .pi/
│ the secondhand skill, for Claude Code, Codex, Grok and Pi
├── hand.db the fleet's state
├── routing.json routing profiles
├── memory/
│ ├── operator.md your standing preferences
│ └── projects/ one file of lessons per project
└── board.token the board's token for this fleet
hand init rewrites AGENTS.md, CLAUDE.md and the skills every time, so put your own preferences in memory/operator.md instead. hand orient shows the supervisor up to 4000 bytes of that file on every turn.
Hand keeps shared state in ~/.secondhand, or $SECONDHAND_HOME. There, fleets/ holds a file per fleet ID that names its folder, and worktrees/ holds every worker worktree, outside every fleet:
~/.secondhand/
├── fleets/<fleet id> file naming the fleet folder
├── worktrees/<fleet id>/tN-aN/ one worktree per attempt
├── luvus/ pinned Luvus copies and pin.json
└── board.addr where the running board listens
Each attempt works on the branch hand/<fleet id>/tN-aN in the project's repository. hand attempt clean aN removes the worktree and keeps the branch.
Keep the watcher and the board running
hand supervisor start, resume and switch start the fleet's watcher when none runs. In a systemd user session it runs as the transient unit secondhand-watch-<fleet id>. Otherwise it runs detached, with its output in watch.log in the fleet folder. hand orient shows watch: running or watch: missing. That watcher stops with the user session and does not restart after a crash. To keep it across logins and restarts, install a unit:
Each fleet has its own watcher, so give each fleet's unit its own name. From inside the fleet folder:
name=demo
mkdir -p ~/.config/systemd/user
hand unit watch > ~/.config/systemd/user/secondhand-watch-$name.service
systemctl --user daemon-reload
systemctl --user enable --now secondhand-watch-$name
One board serves every fleet. Install it once, from any folder:
hand unit board > ~/.config/systemd/user/secondhand-board.service
systemctl --user daemon-reload
systemctl --user enable --now secondhand-board
Each unit keeps the PATH of the shell you ran hand unit from. systemd starts user units at boot, before your desktop session exports its PATH, and the board, the watcher and the Luvus server they start need it to find claude, hand and your tools. Run hand unit again, and systemctl --user daemon-reload, after you install tools into a new folder.
In a systemd user session, Hand runs each fleet's Luvus server in its own user unit, secondhand-luvus-<fleet id>. Restarting the watcher or the board therefore never stops the agents, and systemctl --user stop secondhand-luvus-<fleet id> stops the server and every agent in that fleet. Without a user session, for example over plain SSH, Hand starts Luvus directly; there is no unit then, so that command does not apply.
To move from one board per fleet, stop and remove each old board unit, then install the one above:
systemctl --user disable --now secondhand-board-demo
rm ~/.config/systemd/user/secondhand-board-demo.service
The board
The board listens on 127.0.0.1:7777. Each fleet has its own page at http://127.0.0.1:7777/<fleet id>/, and / lists the fleets. Each fleet keeps its own token in board.token in its folder, so logging in to one fleet never logs you out of another. A fleet you add or move shows up without a restart. After a move, generate only its watcher unit again. To reach the board from a phone, use a tunnel such as ssh -L or tailscale serve.
A fleet's page has two tabs. Needs you lists what waits on you, then the task cards. Chat shows the conversation without tool calls or thinking, the message box, and the supervisor controls. Each task and each decision also has its own page. The board is a projection of Hand's state, so restarting it loses nothing, and it updates itself as things change.
hand open opens a page in your browser, from inside a fleet:
| Command | Opens |
|---|---|
hand open, hand open supervisor |
the fleet page |
hand open tN |
the task |
hand open dN |
the decision |
hand open rN, hand open aN |
the report or attempt, on its task's page |
hand open tN --pr |
the task's newest PR, on GitHub |
It logs the browser in with the fleet's token through xdg-open (on macOS, open) and never prints the token; hand open --print prints the login link instead, for a phone or another browser, so keep that output private. It finds the board through ~/.secondhand/board.addr, which the running board writes.
The board is where you start, chat with and resume the supervisor. Those controls work only while the board listens on a loopback address, which a tunnel keeps true. On a network address such as 0.0.0.0 the supervisor controls are off; answering decisions and marking reports read still work.
Alerts on your phone
The watcher alerts you when an attempt ends, blocks, hits a usage limit or goes quiet (a repeated turn end, attempt.idle, does not alert), and when the supervisor asks a decision (t3 decision: Keep the old cookie name?). By default that is a desktop notification. To send every alert to your own command instead, put its argv in routing.json. This sh example is for Linux and macOS:
"notify": ["sh", "-c", "exec curl -s -H \"Title: $HAND_NOTIFY_REF\" -H \"Click: $HAND_NOTIFY_URL\" --data-raw \"$HAND_NOTIFY_TEXT\" https://ntfy.sh/CHOOSE-A-LONG-RANDOM-TOPIC"]
Install the ntfy app on your phone and subscribe to that topic. Hand runs the command without a shell, with HAND_NOTIFY_KIND (decision.asked, attempt.blocked, attempt.quiet, attempt.limited, attempt.exited, attempt.failed, attempt.interrupted, attempt.long, supervisor.limited), HAND_NOTIFY_REF (d3, a7, supervisor), HAND_NOTIFY_TEXT and HAND_NOTIFY_URL set. The URL is the item's board page at the address the running board listens on, and is empty when no board runs. The command gets 10 seconds, and a failure is ignored. When the timeout expires Hand kills the command; on Linux and macOS it kills the whole process group, but on Windows only the command itself, so a child of sh -c can outlive the kill. Prefer an argv that runs the program directly, or exec inside sh -c. A routing.json that cannot be read leaves the desktop notifier in use, and the watcher says so once. --notify=false turns all alerts off.
The supervisor
Hand runs the supervisor in the background in the fleet's Luvus session, in full-auto mode:
claude --dangerously-skip-permissions;codex --dangerously-bypass-approvals-and-sandbox --disable hooks;opencode --standalone --auto;agy --model ID --dangerously-skip-permissions.
Workers run with the same flags, each in its own worktree.
agy asks once per folder whether to trust it. Every attempt is a new folder, and so is a new fleet home. Hand presses Enter on that screen only when it names the attempt's own worktree, or for the supervisor the fleet home. Otherwise it notes the attempt or the supervisor blocked. Claude asks too, with Quick safety check: Is this a project you created or one you trust?. Its cursor starts on No, exit, so Hand sends Down once, re-reads the screen, and sends Enter only when the cursor is on Yes, I trust this folder. A reworded screen is left alone, and the watcher reports the attempt blocked. If the screen is recognized but the cursor never reaches Yes, or the screen does not clear after Enter, Hand notes the attempt or supervisor blocked. The board reads agy's conversation database for Chat and the context bar.
The fleet page updates itself as things change, and keeps what you are typing. It takes your messages, and answers the supervisor's blocked screens with a fixed set of keys.
To attach images, paste them into the message box, drop them on it, or pick them with its paperclip button. On a phone, the button opens the gallery or the camera.
- Accepted: png, jpeg, webp and gif, up to 10 MiB each.
- Where they go: each one is saved in the fleet's
inbox/folder, and the message gets a line[image: PATH]. Hand never deletesinbox/. - What the supervisor sees: the supervisor reads the image from that path.
- In Chat: the line shows as a thumbnail.
Attaching works over loopback only, but thumbnails also show on a network address. The live terminal stays in Luvus. hand attach supervisor opens it in your terminal, hand attach aN opens a worker's, and hand attach opens the whole fleet session. You never have to.
The model menu next to the message box changes the supervisor's model or effort, keeping its harness and its conversation. The switch waits for the current turn to end. opencode keeps its model in its session, so it cannot switch. The same controls exist as hand supervisor start|send|keys|interrupt|switch|stop|resume|show.
hand init writes the folder's AGENTS.md and CLAUDE.md, which make the agent run hand orient every turn, and the secondhand skill, which describes the loop above.
You can still open an agent in the fleet folder by hand (cd ~/fleets/demo && claude). It then waits with hand wait --after CURSOR, and it stands down while a managed supervisor runs.
After a reboot
The supervisor shows as interrupted. Press Resume, or run hand supervisor resume, to continue the same session with its history. It spends no tokens until you write or a wake arrives. New session starts fresh from hand orient. To resume automatically when hand watch starts, add "supervisor": {"autoresume": true} to routing.json.
Safe use
Every worker runs with its permission prompts skipped (see The supervisor), as the operator's own OS user. It can read whatever that account can: ~/.ssh, ~/.config/gh, ~/.gnupg, other fleets and each fleet's board.token. A worktree is not a fence, and Hand builds no sandbox. A worker that obeys text planted in an issue, a PR or a review can use all of it. The protection is the setup around Hand:
- Own account. Run Hand as a dedicated OS user, or in a VM, with its own
~/.sshandghlogin and none of your other directories. - Narrow token. Log that account in to GitHub with a fine-grained personal access token limited to the repositories in use, with the Contents and Pull requests permissions and an expiry date. GitHub does not require an expiry, so set one. Do not use a broad
gh auth login. - Own signing key. Sign with a key used only by that account, ideally a FIDO key (
ssh-keygen -t ed25519-sk) that needs a touch for each signature. An unlocked signing agent signs whatever a process that can reach it asks. - Protected default branch. Require a pull request and refuse force-pushes, so a hijacked worker can propose a change but not land one. GitHub exempts repository admins from these rules unless "Do not allow bypassing the above settings" is on, so give the account write access rather than admin, or turn that setting on. Keep the account, and any role, team or app it belongs to, off every bypass list in branch protection and rulesets.
- Clean environment. Start fleets from a shell with no cloud or API secrets. Hand drops only
HAND_HOMEand the Claude, Codex and Luvus variables when it starts the Luvus server, and its panes inherit the rest of the environment. - Review and rotate. Keep production credentials off the machine, read worker PRs before you merge them, and rotate tokens after a suspicious run.
- Private board. Keep the board on loopback and reach it with
ssh -Linstead of exposing it.
Commands
Run hand with no command to list the commands, and a command with no subcommand, such as hand attempt, to list its subcommands. Put flags before the positional arguments; only hand open also takes --pr after the ref. --home DIR, given before the command, picks the fleet.
| Command | Purpose |
|---|---|
hand init [--name NAME] [DIR] |
Make a fleet, or refresh, rename or adopt a moved one. |
hand fleet list |
List the registered fleets and whether each home is found. |
hand project add NAME PATH, hand project list |
Register a repository by its absolute path, and list projects. |
hand task add --goal TEXT PROJECT TITLE |
Capture a request as an inbox task. |
hand task start tN, hand task done tN, hand task abandon tN |
Move a task to active, done or abandoned. |
hand task list [--status LIST] [--limit N], hand task show tN |
List tasks (default inbox,active), or show one with its plan, attempt, report and decisions. |
hand plan set --body-file PATH tN, hand plan show tN |
Add a plan revision (or --body TEXT), and show the current one. |
hand attempt start --profile NAME --prompt-file PATH tN |
Start a worker in a new worktree from the repository's fetched default branch (origin/HEAD, else origin/main, else origin/master, else its current branch; from a remote ref, unpushed local commits are left out, so pass --base HEAD to keep them); --harness, --model and --effort replace --profile, --base REF picks another start point, and --continue aN checks out the branch of aN, an ended and cleaned attempt of the same task, so pushes reach its PR. |
hand attempt list [--task tN] [--limit N], hand attempt show aN |
List attempts, or show one with its live agent state, or the last screen the watcher read from one that ended. |
hand attempt read [--lines N] aN |
Print a running worker's screen, as an indented multi-line block, and its revision. |
hand attempt keys --revision N aN KEY... |
Answer a worker's screen, only if it is still at that revision. |
hand attempt send --text TEXT aN |
Send a worker a message (or --file PATH, or --file - for stdin), only while it is at its prompt. |
hand attempt stop aN, hand attempt clean [--discard] aN |
Stop a worker, and remove an ended attempt's worktree while keeping its branch. |
hand report add --status STATUS --file - |
Report from inside a worker's worktree: progress, done or stuck, from stdin, a file, or --text. |
hand report list [--task tN] [--attempt aN] [--unacked], hand report show rN |
List and read reports. |
hand report ack [--by NAME] rN |
Acknowledge a report. |
hand decision ask [--file PATH|-] tN [QUESTION] |
Ask the operator about a task; the first line is the headline (at most 120 characters). |
hand decision answer [--by NAME] dN ANSWER, hand decision withdraw dN |
Answer or withdraw a decision. |
hand decision list [--all], hand decision show dN |
List open decisions (or all), and read one with its answer. |
hand route list |
Show the routing profiles and the harnesses. |
hand luvus pin [BIN] |
Pin a copy of a Luvus binary (default: luvus on PATH) for every fleet under this SECONDHAND_HOME. |
hand luvus show |
Show the pinned Luvus and whether the fleet's running server is that copy. |
hand orient |
Print the bounded fleet summary the supervisor starts every turn with. |
hand wait [--after CURSOR] [--timeout DURATION] |
Block until a wake event arrives, for a supervisor opened by hand. |
hand watch [--every DURATION] [--notify=false] |
Run the fleet's watcher. |
hand supervisor start [--profile NAME] |
Start the managed supervisor; --harness, --model and --effort replace --profile, and with no flags it copies the last one. |
hand supervisor resume, hand supervisor stop, hand supervisor show |
Continue the last session, stop it, or show its state, screen revision and number of queued messages. |
hand supervisor send --text TEXT |
Queue a message for the supervisor (or --file PATH, or --file - for stdin). |
hand supervisor keys --revision N KEY... |
Answer the supervisor's blocked screen with enter, esc, up, down, 1, 2 or 3. |
hand supervisor interrupt |
Press Escape in the supervisor's terminal. |
hand supervisor force |
When Luvus misreads the supervisor as blocked but its screen shows an empty Claude Code prompt, type the queued messages (or else the wakes) into it. |
hand supervisor switch --model M --effort E |
Switch the model or effort after this turn; or --profile NAME, or --cancel. --harness H switches to another harness between turns. |
hand board [--addr ADDR] |
Serve the board for every fleet. |
hand open [--print] [REF], hand open tN --pr |
Open the fleet page, a task, decision, report or attempt, or a task's newest PR. --print prints the login link instead, for another device or browser. |
hand attach [supervisor], hand attach aN |
Open the fleet's Luvus session, the supervisor's terminal, or a worker's. |
hand unit watch, hand unit board |
Print a systemd user unit for the watcher or the board. Your PATH, and a SECONDHAND_HOME if set, go into the unit. |
hand update [--channel edge|stable] [--check] |
Update the binary from its channel, back up and refresh every fleet, restart Hand's units, and pin the tested Luvus. |
hand version |
Print the version, the channel (source, edge or stable), the commit, the state schema and the tested Luvus. |
Upgrading from 0.7
The new Hand does not read 0.7 data. Its supervisor rebuilds what still matters, with your approval. docs/vocabulary.md lists the 0.7 terms that changed.
- With 0.7 still installed, finish or
hand teardownevery live task. - Keep the old binary if you like, for example
cp "$(command -v hand)" ~/.local/bin/hand-0.7. - Build the new one, either as
hand-nextto try it beside 0.7 or ashandto replace it. - In the fleet folder, remove the 0.7 wiring that would keep waking a supervisor: the Stop hook with
supervision claude-stopin.claude/settings.json, and.pi/extensions/hand-*and.opencode/plugins/hand-*.hand initwarns if they are still there. - Run
hand initthere with the new binary. The oldAGENTS.mdand skill are replaced. Everything else (data/,state/,config/,projects/) is left alone, and the folder gets asecondhand-migrateskill. - Open the supervisor there and ask it to migrate the fleet. It lists what it would create (projects, open tasks, queue items, decisions, routing and memory), then waits for your approval before it changes anything.
- Afterwards it can remove the 0.7 pool worktrees and shared files, and then archive the old data into
legacy-0.7/. Each of those steps waits for your approval. Its last step runshand init, which removes the migrate skill. - Trust the worktrees folder once, as described in Register a project.
Development
Read AGENTS.md and docs/spec.md before changing anything. The dependencies are modernc.org/sqlite, and golang.org/x/sys for macOS process start times. Before committing, run:
gofmt -l .
go vet ./...
go test -race ./...
The tests set SECONDHAND_HOME to a temporary folder and never touch the real one.
License
MIT