claudemods

All Claude Code modsgpr/claude-code-mods

branch-usage

A Claude Code mod in gpr/claude-code-mods

Tracks tokens and cost per model, agent and session for every session on a git branch, in a right pane.

branch-usage reaches L2 (writes or runs) and passed claude plugin validate with warnings.

Install hint

/plugin install branch-usage --marketplace gpr/claude-code-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 runsruns processes, writes files, drives Claude, reads files, reads mod state, draws

Validation

Passed with warnings

Listed under Context and usage meters for Claude Code.

View the source on GitHub Back to the list

What the scan recorded

Observed events
classic hooks, Bash calls, mcp__branch-usage__get_branch_usage calls
Hooks
session.start, classic.SessionStart, turn.start, turn.step, tool.call {tool=Bash}, session.measure, command.run {command=branch-usage}, tool.call {tool=mcp__branch-usage__get_branch_usage}, ui.render {component=AbovePrompt}, ui.render {component=Pane, requestId=branch-usage}
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
Validation
Passed with warnings
Scanned revision
b6281b7fde0c
Marketplace warnings
claude-code-mods

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.

Badge for your README

Reach badge for branch-usage Validation badge for branch-usage

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/gpr--claude-code-mods--branch-usage-reach.svg)](https://mods.aidojo.si/mods/gpr--claude-code-mods--branch-usage/)
[![validates](https://raw.githubusercontent.com/karanb192/awesome-claude-code-mods/main/badges/gpr--claude-code-mods--branch-usage-validates.svg)](https://mods.aidojo.si/mods/gpr--claude-code-mods--branch-usage/)