Documentation
¶
Overview ¶
caprock is the mission-control CLI and daemon: `caprock up` starts the local daemon (hook receiver + transcript ingest + API + dashboard), `caprock down` stops it, `caprock status` reports, `caprock hooks install|uninstall|status` manage the shim in ~/.claude/settings.json, and `caprock service install|uninstall|status` registers the daemon with the OS's login-time supervisor so it survives a reboot.
`caprock report` — your measured usage, in a form you can publish.
This exists because a number on a page goes stale silently. The /numbers page on caprock.dev is the owner's own usage presented as proof, and its figures were hard-coded constants read on one day; nothing made them wrong out loud when the machine moved on. A command that re-reads the same measures from the same database turns "a number someone typed once" into "a number you can re-run", which is the only version of it that stays honest (rule 6).
Two shapes, because there are two readers:
- the default is a block a person pastes into a post — terse, specific, and carrying its caveat *inline* so the caveat cannot be lost by quoting only the first line;
- `--json` is the same measures machine-readable, shaped to regenerate the site's facts block.
`--markdown` earns its place as a third only because the paste target is often a README or a post that renders markdown, where the plain block's alignment collapses; it is the same facts and the same caveat, in a table.
On reading from the daemon rather than the database: the CLI never opens SQLite (internal/store: "Nothing else in Caprock issues SQL"), and the daemon is what holds the pricing table and the plan settings that the figures are computed against. Talking to it also means `caprock report` cannot contend for a write lock on a database a live daemon is using. When the daemon is down the command says so and stops, rather than opening the database behind its back with a second, drifting copy of the aggregation SQL.