branch-usage
by gpr · ★ 0 · updated 2 days ago
0
Tracks tokens and cost per model, agent and session for every session on a git branch, in a right pane.
Install
/plugin marketplace add gpr/claude-code-mods/plugin install branch-usage@claude-code-modsThen 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.startclassic.SessionStartturn.startturn.steptool.callsession.measurecommand.runui.render- API calls
$.agent.list$.clock.every$.command.register$.fs.exists$.fs.list$.fs.read$.fs.write$.process.run$.session.id$.session.repo$.session.root$.state.get$.state.set$.tool.register$.ui.log$.ui.open$.ui.resolve$.ui.toast- Draws
AbovePromptPane- Can see
classic hooksBash callsmcp__branch-usage__get_branch_usage calls- Reach
- level 2 of 3 other: $.state.getother: $.state.setruns processeswrites filesdrives Claudereads filesdraws
Origin
- How it got here
- Automated scan of public GitHub repos, via the CC0 dataset awesome-claude-code-mods (scan of ).
- Repository
- github.com/gpr/claude-code-mods
- Path in repo
plugins/branch-usage- Source commit
d1dc42cthe exact code the scan read- Author
- @gpr
- 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.