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, cache writes priced at the lifetime each response names, 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) and passed claude plugin validate.
- 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, reads mod state, persists state, draws
- Reads mod state: the scan does not record whose state, so this does not show that it reads another mod’s values
- 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 runsruns processes, writes files, drives Claude, reads files, reads env vars, reads mod state, persists state, drawsValidation
PassedListed under Prompt cache mods for Claude Code, Context and usage meters for Claude Code.
View 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
- Passed
- Scanned revision
4122fb788a48- 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. What a mod can access and how the scan works.
More from bobtat/claude-plugins
- adversaryAdversarial review of a PR, plan or document by an isolated reviewer that never sees the author's context, wi…
- 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/)