Available in
Marketplaces, most starred first
Tags
Add to README
Shows its components, always-on context cost and install status, kept current. Add ?tokens=0 to hide the cost.
Marketplaces, most starred first
Shows its components, always-on context cost and install status, kept current. Add ?tokens=0 to hide the cost.
Marketplaces, most starred first
Shows its components, always-on context cost and install status, kept current. Add ?tokens=0 to hide the cost.
By thewolffv0.3.8MITIn 1 marketplace
A durable record of the questions an agent asks you and the choices it makes without asking, in one SQLite file; hooks keep every question, answer and decision on a row and gate a push on it.
Claude loads one when your task matches it, or you run it by name.
1 critical · 1 caution to review before installing
JavaScript or TypeScript that runs inside Claude Code as you, unsandboxed. Read from its source, it runs programs.
A hook runs when Claude uses the Bash tool
Static checks of hooks, mods, MCP servers and commands. Not a security audit.
1 marketplace, most starred first
Shows its components, always-on context cost and install status, kept current. Add ?tokens=0 to hide the cost.
A durable, id'd record of the questions an agent asks you and the choices it makes without
asking, kept in one SQLite file on your machine. The agent asks you in plain words and you
answer in plain words; it records each question as a q- row and records your reply against
it, and the ids stay on its side. Every unasked decision gets an nt- note. A CLI the agent
runs, a batch mode that applies a pasted block line by line, and five hooks that make the record
hard to skip: open questions and recent notes are injected at session start, the
AskUserQuestion tool is denied until the question has a row, git push and gh pr create are
denied until the session has a note or an outcome saying why, and a reply is sent back once when
it ends without recording an answer you already gave, asks you something with no row, or states
a decision without a note.
The hooks are on in every folder until you turn them off for one (/ledger:disable). Every hook fails open:
the ledger never blocks a session because the ledger itself is broken.
/plugin marketplace add thewolff/jo-wolff-plugins
/plugin install ledger@jo-wolff-plugins
Needs Node 22.13 or later (node:sqlite; see Node and node:sqlite below). Zero config: the
database is created on first use at ~/.local/share/ledger/ledger.db. Claude Code only in this
version; there is no OMP adapter.
Every session records once the plugin is installed. To stop one folder (and everything under it), type in a session there:
/ledger:disable
or run node <plugin dir>/scripts/ledger.mjs disable in the folder. Either writes
.ledger.json with {"enabled": false} there and never deletes it; /ledger:enable (or
… enable) sets it back to true. Delete the file yourself to return to the default. The hooks
look for that file in the session's cwd and every parent above it, so disabling a repo root
covers its packages. "enabled": false in the user file turns the hooks off everywhere, and a
project file with "enabled": true turns them back on under it. LEDGER_ENABLED=1 or =0 in
the environment overrides both files (handy for one session or for CI).
A disabled project costs one directory walk per hook and nothing else: no database is opened or
created, nothing is printed. The CLI itself always works; enabled only gates the hooks.
No, provided one allow rule is in place. The agent reaches the ledger through one command,
node <plugin dir>/scripts/ledger.mjs <verb> …. The SessionStart hook tells the agent to run
exactly that command, with the literal path, and prints the matching allow rule, which is one
line of the shape:
Bash(node /path/to/ledger/scripts/ledger.mjs *)
Put it in permissions.allow of ~/.claude/settings.json (every project) or
.claude/settings.json (one project). Installed from the marketplace, the path contains a
version segment that changes on update, so the rule the hook prints wildcards it:
Bash(node /…/plugins/cache/jo-wolff-plugins/ledger/*/scripts/ledger.mjs *). Copy the rule
from the first SessionStart injection rather than typing it.
Nothing else in the plugin asks. The hooks never return permissionDecision: "ask", never exit
with code 2, and never insert a question of their own; test/no-prompts.test.mjs holds that.
The skill record (skills/record/SKILL.md, typed as /ledger:record) tells the agent to:
ask "<body>" --name <short> --options a,b --default a whenever it needs your decision, then
ask you in plain words without showing the id. --ceiling <usd> and --about "<text>" attach
a spend limit or the thing the question concerns;answer <q-id> <option> as soon as you reply, with the option your words mean; when your reply
is none of the options, answer <q-id> "<your reply>" records it as you gave it (or
withdraw <q-id> if you set the question aside);note "<text>" for a choice it made without asking;git push or gh pr create, a note or an outcome <ref> "<text>" saying what is being pushed and why;pending and log when it resumes.Slash commands: /ledger:record loads that skill, /ledger:enable and /ledger:disable set
the folder's switch, /ledger:review runs a review, and /ledger (no suffix) opens the
ledger pane. Before 0.3.7 the skill shared the plugin's name, so a bare
/ledger resolved to that skill and ran it instead of opening the pane.
You answer the way you would answer anyone. If the agent ends a turn after your reply without recording the answer, the Stop hook sends it back once with the ids to record.
Built from public signals: copy clicks on this site, GitHub stars and activity, the README and the manifest. Not a security audit or an endorsement.
npx claudepluginhub thewolff/jo-wolff-plugins --plugin ledgerPlugins from other owners that cover similar ground