swarm-ledgerlisted
Install: claude install-skill the-cloud-clockwork/agentihooks
# Swarm Ledger — The Operator's Live Checklist for a Plan
Every tool runs through one command that agentihooks installs (code in its
`scripts/swarm_ledger/`, standard library only), so every Bash call and every
Monitor resolves it without shell state:
```bash
agentihooks ledger new … # build a ledger
agentihooks ledger serve … # the local server
agentihooks ledger watch … # the Monitor feed
agentihooks ledger --slug <slug> --as <name> <command> # the agent CLI
```
A ledger `<slug>` is a record in the SQLite database `ledgers.sqlite3` in
`~/development-ledger/` (`$LEDGER_DIR`); no per ledger JSON or HTML file is
written. The local server (`$LEDGER_PORT`, default 8765) serves the page shell,
stores every operator and agent edit in that record and streams changes to open
pages. `agentihooks ledger storage export <slug>` writes the whole ledger as JSON
on request, and `storage import <file> --slug <slug>` loads one back losslessly.
Use it for a plan with several phases worked across sessions; a single-step task
needs no ledger.
## Part A — Create a ledger
### A1. Write the content file (AI-JUDGMENT)
Read the plan file and every document named in the arguments. Write
`~/scratchpad/<repo>/<task>/ledger-content.json`:
```json
{
"title": "<plan name>",
"overview": "<what the work is for and what done looks like, plain words, ≤ 200 words>",
"sources": ["<absolute path of the plan file>"