usage-log
by MahadSalim · ★ 0 · updated 23 days ago
Logs plan readings, context fill, engine cost, turn outcomes, tool timing, permission asks, commands and settings hook runs per session. Serves the usage dashboard at http://127.0.0.1:5198, started with each session; needs node on the PATH. /usage-dashboard turns the server on or off. /usage-dashboard auto turns the start with each session on or off.
Install
git clone https://github.com/MahadSalim/claude-modsclaude --plugin-dir ./claude-mods/usage-logThen run /reload-plugins or start a new session. Requires Claude Code 2.1.287+.
What it hooks into
From an automated scan with claude plugin validate, not a security review. Mods run with your permissions; read the code before installing.
- Events
session.startcommand.runturn.startturn.completesession.measuretool.checktool.callprompt.attachmentclassic.*session.compactsession.end- API calls
$.clock.now$.command.register$.env.get$.fs.write$.http.fetch$.process.run$.session.id$.session.model$.session.usage$.session.version$.store.get$.store.set- Can see
every tool callclassic hookscompaction- Reach
- level 3 of 3 networkruns processeswrites filesreads env varspersists state
Origin
- How it got here
- Automated scan of public GitHub repos, via the CC0 dataset awesome-claude-code-mods (scan of ).
- Repository
- github.com/MahadSalim/claude-mods
- Path in repo
usage-log- Source commit
1904adathe exact code the scan read- Author
- @MahadSalim
- License
- No license declared — ask the author before reusing code.
- First published
- Last pushed
- First listed here
Name and description come from the mod's own manifest. We link to the code; we don't host it, and it stays under its author's license.
More from MahadSalim/claude-mods
browser-pane
MahadSalim/claude-mods
A text-mode browser pane with tabs, history and a launcher for the dev servers in .claude/launch.json.
changes-pane
MahadSalim/claude-mods
A Changes pane: the repository's changed files and their diffs, with stage, unstage and discard
files-pane
MahadSalim/claude-mods
A Files pane: project tree, filename and content search, and a file viewer with open tabs
live-voice-mode
MahadSalim/claude-mods
Voice mode, tap to talk or hands-free: local Whisper transcribes you, Kokoro reads replies.
prompt-strip
MahadSalim/claude-mods
Strips, rewrites and reorders what Claude Code loads into every session: system prompt sections, first-message context, per-turn reminders, tool descriptions, skill bodies, the subagent listing and command descriptions, and adds sections of your own. Edited in its dashboard at http://127.0.0.1:5199, opened with /prompt-strip; needs node on the PATH.
session-rail
MahadSalim/claude-mods
A side pane with the session's environment, context use, outputs, connectors and dev servers
settings-manager
MahadSalim/claude-mods
Turn skills, system prompt sections, reminders, subagents, commands, tools, plugins, hooks and settings on or off from one desktop window. Run /settings-manager to open it.
Related mods
Other mods in Guards, close to this one by stars.