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) and passed claude plugin validate.

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 runswrites files, writes the prompt box, reads files, reads env vars, reads the prompt box, reads mod state, persists state, draws

Validation

Passed

Listed under Context and usage meters for Claude Code.

View the source on GitHub Back to the list

What the scan recorded

Observed events
Agent calls, every prompt
Hooks
session.start, turn.step, turn.start, turn.complete, tool.call {tool=Agent}, 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, $.env.get, $.fs.exists, $.fs.list, $.fs.read, $.fs.stat, $.fs.write, $.prompt.fill, $.prompt.read, $.session.cwd, $.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
Passed
Scanned revision
a517a395f88c
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. What a mod can access and 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/)