usage-line

by Anand Chapla · ★ 0 · updated today

BandsCommandsPromptvalidates

0

Shows live session cost, context use, and the 5-hour and weekly limits with their pace in one line above the prompt.

install usage-line

Install

/plugin marketplace add achapla/cc-mods
/plugin install usage-line@cc-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.measureturn.stepprompt.contextui.render
API calls
$.clock.every$.clock.now$.command.register$.env.get$.fs.read$.session.model$.session.usage$.settings.read$.state.get$.state.set$.store.get$.store.set$.ui.resolve
Draws
AbovePrompt
Can see
the system prompt
Reach
level 1 of 3 other: $.state.getother: $.state.setreads filesreads env varsreads settingspersists 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/achapla/cc-mods
Path in repo
usage-line
Source commit
743bfa0 the exact code the scan read
Author
Anand Chapla @achapla
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 achapla/cc-mods

danger-check

achapla/cc-mods

Asks you before a command that can destroy work, such as rm -rf, git reset --hard or git push --force.

★ 0GuardsAutomation

done-sound

achapla/cc-mods

Plays a sound, picked by chance from the ones you chose, when a long turn ends and when Claude waits for your answer.

★ 0GuardsCommandsAutomation

mod-lab

achapla/cc-mods

Shows what mods can do: a live list of events, a dump of what a mod can read, and demos you run with one press.

★ 0PanesGuardsCommands

no-new-branch

achapla/cc-mods

Asks you before any command that would create a new git branch or worktree.

★ 0Guards

no-process-kill

achapla/cc-mods

Asks you before any command that would stop a running process.

★ 0Guards

pnpm-only

achapla/cc-mods

Blocks npm and npx commands and tells Claude the pnpm command to use instead.

★ 0Guards

prompt-snippets

achapla/cc-mods

Replaces short names such as ;plan in your prompt with longer texts that you saved.

★ 0ToastsCommandsPrompt