claudemods

All Claude Code modsnatsume-777/claude-mods

usage-ledger

A Claude Code mod in natsume-777/claude-mods

Shows where the session's tokens go and when a fresh session would be cheaper

review UI rewrite

usage-ledger reaches L2 (writes or runs) by its classified calls and passed claude plugin validate on Claude Code 2.1.302.

Install hint

/plugin install usage-ledger --marketplace natsume-777/claude-mods

From 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: $.prompt.read, other: $.state.get, other: $.state.set, writes files, writes the prompt box, reads files, persists state, draws

Validation

Passed on Claude Code 2.1.302

View the source on GitHub Back to the list

What the scan recorded

Observed events
classic hooks, Agent calls, every prompt
Hooks
session.start, turn.step, classic.SubagentStart, tool.call {tool=Agent}, classic.SubagentStop, prompt.submit, command.run {command=usage-ledger}, ui.render {component=Pane, requestId=usage-ledger}, ui.render {component=AbovePrompt}, ui.press {plugin=usage-ledger}
API calls
$.agent.list, $.clock.after, $.clock.every, $.clock.now, $.clock.sleep, $.command.register, $.fs.read, $.fs.stat, $.fs.write, $.prompt.fill, $.prompt.read, $.session.id, $.session.root, $.session.turns, $.state.get, $.state.set, $.store.get, $.store.set, $.ui.close, $.ui.invalidate, $.ui.open, $.ui.resolve, $.ui.scroll, $.ui.toast
Validation on 2.1.302
Passed
Scanned revision
35b1395bccaf
Marketplace passed
codingway-claude-mods
UI rewrite review
UI hook source contains control-character strings. Review any values passed to next() as rewritten props.text; the scanner does not trace whether these strings reach that call. plugins/usage-ledger/hooks/aggregate.js:228

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 natsume-777/claude-mods

Badge for your README

Reach badge for usage-ledger Validation badge for usage-ledger

Authors can show the latest scan result in their README. Each badge links to this page.

[![reach](https://raw.githubusercontent.com/karanb192/awesome-claude-code-mods/main/badges/natsume-777--claude-mods--usage-ledger-reach.svg)](https://mods.aidojo.si/mods/natsume-777--claude-mods--usage-ledger/)
[![validates](https://raw.githubusercontent.com/karanb192/awesome-claude-code-mods/main/badges/natsume-777--claude-mods--usage-ledger-validates.svg)](https://mods.aidojo.si/mods/natsume-777--claude-mods--usage-ledger/)