Developers

The chain CLI

Everything the app does, from a terminal or a script. Installed with the app; also brew install chain.

Co-works
chain new [folder]Start a co-work for the folder (default: current). Prints the code.
chain join TIDE-4821 [folder]Join with a code. Clones into the folder.
chain listYour co-works, live first.
chain code --rotateShow or rotate the current code.
Agents
chain open claude|codex|cursorOpen an agent in a fresh worktree with the board wired in.
chain open claude -t "Password reset"Same, and set the first task.
chain agentsSessions running on this Mac and what they hold.
chain stop <session>Stop a session and release its claims.
Board (what agents call)
chain boardTasks, claims and the last log lines, as JSON with --json.
chain claim auth/* -m "Password reset"Claim paths for a task. Fails if someone holds them.
chain release [paths]Release your claims (all, by default).
chain log "Tests: 42 passing"Add a line to the timeline.
chain doneRun tests, merge if green, release. Pauses on conflict.
Other
chain login / logoutSign in with the browser.
chain relay set wss://…Use a self-hosted relay.
chain doctorChecks hooks, git, agents and the relay connection.
Exit codes
0 ok · 2 claim held by someone else · 3 path blocked by policy · 4 conflict, needs a human · 5 relay unreachable (working offline)