All Claude Code modsArunjay4213/claude-mods
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.
token-ledger reaches L0 (draws and remembers) and passed claude plugin validate on Claude Code 2.1.302.
- Events hooked: 5
- API methods referenced: 11
- Access from classified calls: L0, draws and remembers: persists state, draws
- Static scan, not a runtime test
Install hint
/plugin install token-ledger --marketplace Arunjay4213/claude-modsFrom the repository's own marketplace. Confirm the plugin name in the repository's README before installing. Mods need Claude Code 2.1.287 or later.
Access
L0 Draws & rememberspersists state, drawsValidation
Passed on Claude Code 2.1.302View the source on GitHub Back to the list
What the scan recorded
- Observed events
- Only what it hooks
- Hooks
session.start, turn.complete, command.run {command=clear}, command.run {command=resume}, command.run {command=ledger}, ui.close {id=ledger}, ui.render {component=Pane}- API calls
$.command.register, $.session.id, $.session.usage, $.store.get, $.store.set, $.ui.close, $.ui.invalidate, $.ui.log, $.ui.open, $.ui.resolve, $.ui.status- Validation on 2.1.302
- Passed
- Scanned revision
6de1b69a555a- Marketplace passed
- claude-mods
These are the hooks and API calls reported by claude plugin validate. Access levels describe the widest reach of those calls and are not safety ratings. Validation is a static check, not a runtime test, and a passing result does not prove that a mod works or is safe. How the scan works.
More from Arunjay4213/claude-mods
- budget-guardStops a session before it runs past a budget. Three figures are guarded, each with a limit you set: the sessi…
- context-lensA live /context: a pinned line under the prompt with the window fill and the growth per turn, and /context-le…
- quota-meterShows the subscription plan limits - the 5-hour window, the 7-day window and a gateway spend limit - as a pin…
Badge for your README
Authors can show the latest scan result in their README. Each badge links to this page.
[](https://mods.aidojo.si/mods/Arunjay4213--claude-mods--token-ledger/)
[](https://mods.aidojo.si/mods/Arunjay4213--claude-mods--token-ledger/)