From token-ledger
A per-turn cost and token ledger: a pinned status line with the session cost, the last turn's tokens and the cache hit ratio, and /ledger for a table of the recent turns with their model, tokens, cache reads and writes, duration and cost.
5 events · 11 calls
Ships in token-ledger. Installing the plugin adds it to Claude Code.
A mod runs inside Claude Code as you, unsandboxed. This is what its source calls.
Its source makes none of the file, program, network, model or prompt calls listed here. Its hooks and calls are below.
Each event it registers a hook on, with the matcher when it sets one
session.startturn.completecommand.run{command=clear}command.run{command=resume}command.run{command=ledger}ui.close{id=ledger}ui.render{component=Pane}Every mods API method its source calls, by namespace
registeridusagegetsetcloseinvalidatelogopenresolvestatusWhere Claude Code finds the mod
hooks/hooks.jsonhooks/register.tsx (written ./register.tsx)Read from the source, never run. Claude Code checks a mod again when it loads it and can refuse code this reading accepts; claude plugin validate shows its own list.
npx claudepluginhub arunjay4213/claude-mods --plugin token-ledger