waystone
A local handoff ledger for coding agents: cards, tasks with claims, and a waiting-on-me inbox.
Quick start · Requirements · MCP setup · Configuration · Documentation · Troubleshooting · Contributing
waystone is a local SQLite ledger of boards, channels, threads, messages and tasks. Agents write handoff cards to it when work ends or stalls, claim tasks from it, and leave questions in one inbox for you. It is a command-line tool and a stdio MCP server with no dependencies; the data stays in one folder on your machine. It is not a hosted service. A contract for a shared server, version 0.2.0, is written down in spec/; no server implements it yet.
- Handoff cards with proof. A card says what was asked, what was done and what backs it. A
done card needs a command, file or url as proof, and only waystone marks proof as verified.
- One inbox. Every question an agent leaves for you, every task blocked on a person, and every failed watcher is in
waystone inbox, with the command that answers it.
- Tasks with claims, leases and needs. One agent at a time holds a task. A claim has an epoch, a token and a lease, so a stale worker cannot finish work that someone else took over.
- Events and waits. Every write is an event with a cursor.
waystone wait blocks until the event you care about, so nothing polls in a loop.
- Watchers. React to events by typing into a herdr pane or running a fixed command.
- An MCP server for Claude Code and Codex. Eight tools, plus a skill that tells the agent when to write a card.
- Source cards for outside tools. A CI job or a ticket tracker can mirror its own questions into your inbox and close them when you answer.
How it fits together
flowchart LR
agents["Agents<br/>Claude Code, Codex"]
cli["waystone CLI"]
mcp["waystone MCP server"]
store[("Local store<br/>one SQLite file per board")]
tool["An outside tool<br/>(optional)"]
watch["waystone watch"]
herdr["herdr panes<br/>(optional)"]
exec["exec commands<br/>(optional)"]
server["waystone servers<br/>(contract 0.3.0, none yet)"]
agents --> cli
agents --> mcp
cli --> store
mcp --> store
tool -.->|"source cards"| cli
store --> watch
watch -.-> herdr
watch -.-> exec
store -.->|"future sync"| server
Solid lines are the core. Dashed lines are optional, or not built yet.
Requirements
| Component | Required? | What it gives you | Setting |
|---|
| Node.js 22.13 or later | Required | Runs waystone. node:sqlite is built in, so there is nothing to install. waystone hides Node's SQLite ExperimentalWarning. | |
| herdr | Optional | The herdr watcher action, which types into an agent's pane. | watchers.json |
| An outside tool that uses the integration surface | Optional | Its own questions in your inbox, as source cards. | --source |
| uv | Only for the spec check | Runs npm run check:spec. | |
| Claude Code or Codex | Optional | Agents that use waystone through MCP and the skill. | MCP setup |
Quick start
These steps ran for real under a temporary home. Ids and times differ on your machine.
1. Clone waystone
git clone https://github.com/borkweb/waystone.git ~/projects/waystone
2. Put waystone on your PATH
Pick one:
cd ~/projects/waystone && npm link # waystone and waystone-mcp in npm's bin folder
ln -s ~/projects/waystone/client/waystone.mjs ~/.local/bin/waystone # a plain symlink
node ~/projects/waystone/client/waystone.mjs link # the same symlink, made by waystone
waystone link writes ~/.local/bin/waystone (or --dir <d>), makes the script executable, and prints linked <link> -> <target>. Run it again if the checkout moves. Check the result:
$ waystone --version
0.1.0
3. Read the brief
waystone brief is what a session reads first. Run it inside a git repo:
$ cd ~/code/example-app
$ waystone brief
actor user (no agent marker), board general, repo example-app
nothing waiting on you
The first command creates ~/.waystone/general.db (mode 0600). Inside an agent session, the actor line names the agent, such as claude:… or codex:…, instead of user.
4. Write a first card and see it in the inbox
$ waystone card --status needs-decision \
--asked "Add a retry to the upload client" \
--did "Added a retry with backoff; the timeout is still open" \
--question "Retry 3 times or 5 times?" \
--option "3=Fails fast" --option "5=Rides out longer outages" \
--recommendation 3
msg_0mx67buqh74c541f8f2