usage-percent
by Stephan Schreiber · ★ 3 · updated 19 days ago
A row under the prompt: context, 5-hour, weekly and model-scoped weekly usage; in Nx repos also memory, the session's nx serve projects and the branch's pipeline
Install
/plugin marketplace add schreibse/claude-code-mods/plugin install usage-percent@schreibse-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.startsession.measuretool.callui.render- API calls
$.clock.every$.clock.now$.fs.exists$.fs.read$.http.fetch$.process.run$.session.authorize$.session.root$.session.usage$.state.get$.state.set$.ui.log$.ui.resolve- Draws
PromptHint- Can see
Bash calls- Reach
- level 3 of 3 networkruns processesreads filesreads mod staterequests an Anthropic credential handledraws
Origin
- How it got here
- Automated scan of public GitHub repos, via the CC0 dataset awesome-claude-code-mods (scan of ).
- Repository
- github.com/schreibse/claude-code-mods
- Path in repo
usage-percent- Source commit
5e83faathe exact code the scan read- Author
- Stephan Schreiber @schreibse
- License
- MIT
- 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 schreibse/claude-code-mods
ask-guard
schreibse/claude-code-mods
Sends Claude back when a reply ends on a yes/no question written as prose instead of AskUserQuestion
coderabbit-band
schreibse/claude-code-mods
A band above the prompt with the open CodeRabbit threads and nitpicks of the branch's MR
handover
schreibse/claude-code-mods
The handover sentence for a cold session, one per session: a band above the prompt, /handover-copy to copy it, after /clear it waits in the prompt, and /handover picks or drops one in a new terminal
mem-guard
schreibse/claude-code-mods
Bash memory rules: Node commands run in claude-cmd.slice, and runs that would starve the machine are refused
mr-banner
schreibse/claude-code-mods
A colored card with a link under each MR/PR created, merged, approved or reviewed
needs-you
schreibse/claude-code-mods
Lines where Claude waits on you are drawn in colour and pinned in a band above the prompt
pii-guard
schreibse/claude-code-mods
Asks before a tool call sends your name or email to a non-local destination
quiet-bash
schreibse/claude-code-mods
One-line tool rows, tool output hidden, inline PNG thumbnails; /quiet shows everything, /thumb shows a PNG
quiet-spinner
schreibse/claude-code-mods
Plain words for the turn spinner and the turn-duration line
redact
schreibse/claude-code-mods
Secrets found by betterleaks reach the model as ‹secret:…› tokens; Write/Edit restore them, other tools refuse them
reminder-log
schreibse/claude-code-mods
Tallies the reminders Claude Code injects for the model, per session; drops the token counter and repeated attribution blocks; /reminders prints the last 30 days
repo-line
schreibse/claude-code-mods
A line right above the prompt with the repository's name as a badge in the repository's own colour, the branch and the worktree, so a prompt never goes to the wrong session