usage-rail

by ImTotem · ★ 0 · updated 6 days ago

PanesCommandsPromptvalidates

0

Adds a usage card to the session pane: session limit, weekly limit and cloud session credit, as the app's usage card shows them.

install usage-rail

Install

/plugin marketplace add ImTotem/claude-code-mods
/plugin install usage-rail@claude-code-mods

Then run /reload-plugins or start a new session. Requires Claude Code 2.1.287+.

View source on GitHub

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.runsession.measureprompt.submitui.openui.render
API calls
$.clock.after$.clock.every$.clock.now$.clock.sleep$.command.register$.env.get$.http.fetch$.session.authorize$.session.usage$.state.get$.state.set$.store.set$.ui.resolve
Draws
Pane
Can see
every prompt
Reach
level 3 of 3 networkreads env varsreads mod staterequests an Anthropic credential handlepersists statedraws

Origin

How it got here
Automated scan of public GitHub repos, via the CC0 dataset awesome-claude-code-mods (scan of ).
Repository
github.com/ImTotem/claude-code-mods
Path in repo
plugins/usage-rail
Source commit
803044f the exact code the scan read
Author
@ImTotem
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 ImTotem/claude-code-mods

session-rail

ImTotem/claude-code-mods

One session pane that other mods add cards to, with a button at the right of the prompt footer to open and close it.

★ 0PanesReskinsCommands

todo-stack

ImTotem/claude-code-mods

Adds a todo card to the session pane that keeps every todo the model creates on one stack shared by every session, newest on top, so none is lost to compaction, a reload or a new session; the model reads and edits it through a todos tool.

★ 0PanesGuardsCommands