All Claude Code modsbobtat/claude-plugins
cost-ledger
Tracks what Claude Code costs: session, calendar-week and calendar-month totals with the month's pace and week-over-week change, a /costs pane with a spend calendar, the most expensive prompts and what filled the context, plus prompt-cache awareness: a cache warm/cold countdown, warnings before a prompt, model switch or large write re-caches the context, a per-category breakdown priced at list or your own (e.g. AWS) rates, per-project and subagent splits, budget alerts, CSV export and a /costs doctor self-check, the cache lifetime learned from Claude Code's own pricing, what a cold re-cache will cost before you resume, and an optional keep-alive that holds the cache warm while a session sits idle
cost-ledger reaches L2 (writes or runs) by its classified calls and passed claude plugin validate on Claude Code 2.1.302.
- Events hooked: 13
- API methods referenced: 23
- Access from classified calls: L2, writes or runs: runs processes, writes files, drives Claude, reads files, reads env vars, persists state, draws
- Unclassified calls: 2 (
$.state.get,$.state.set), full access unknown - Static scan, not a runtime test
Install hint
/plugin install cost-ledger --marketplace bobtat/claude-pluginsFrom 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
L2 Writes or runsother: $.state.get, other: $.state.set, runs processes, writes files, drives Claude, reads files, reads env vars, persists state, drawsValidation
Passed on Claude Code 2.1.302View the source on GitHub Back to the list
What the scan recorded
- Observed events
- classic hooks, every prompt, every tool call
- Hooks
session.start, classic.SessionStart, classic.PreModelSwitch, classic.PostModelSwitch, session.end, prompt.submit, turn.start, turn.step, turn.complete, tool.call, session.measure, command.run {command=costs}, ui.render {component=AbovePrompt}, ui.render {component=Pane, requestId=cost-ledger}- API calls
$.clock.after, $.clock.every, $.clock.now, $.command.register, $.env.get, $.fs.list, $.fs.read, $.fs.write, $.model.fork, $.process.run, $.session.id, $.session.root, $.session.usage, $.state.get, $.state.set, $.store.delete, $.store.get, $.store.keys, $.store.set, $.ui.open, $.ui.resolve, $.ui.status, $.ui.toast- Validation on 2.1.302
- Passed
- Scanned revision
d4a575415c0f- Marketplace passed
- bobtat-plugins
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 bobtat/claude-plugins
- subagent-treeA live /agents-tree pane showing the session's subagents as a tree: status, how long each has run, its tool c…
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/bobtat--claude-plugins--cost-ledger/)
[](https://mods.aidojo.si/mods/bobtat--claude-plugins--cost-ledger/)