usageline

by sma1lboy · ★ 2 · updated 10 days ago

ReskinsGuardsCommandsvalidates

0

A status line under the prompt: context, cache hit rate, cache TTL countdown, today's spend for this project, and why a turn missed the cache. /usage prints the project ledger.

install usageline

Install

/plugin marketplace add Sma1lboy/claude-mods
/plugin install usageline@claude-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.startturn.startturn.stepturn.completetool.callsession.compactcommand.runui.render
API calls
$.clock.every$.clock.now$.command.register$.env.get$.fs.read$.process.run$.session.model$.session.repo$.session.root$.session.usage$.store.get$.store.set$.ui.invalidate$.ui.log$.ui.resolve
Draws
PromptHint
Can see
every tool callcompaction
Reach
level 2 of 3 runs processesreads filesreads env varspersists 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/Sma1lboy/claude-mods
Path in repo
usageline
Author
sma1lboy @Sma1lboy
License
No license declared — ask the author before reusing code.
First published
Last pushed
First listed here
On X
Mentioned in 1 post on X

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.

Posts about this repo

Sma1lboy@Sma1lboy

In long-running tasks, /loop keeps waking Claude up, but it easily loses focus. Pair it with /goal: one goal holds across many loops, and once it's met, set the next. /goal used to be human-only, so I made a plugin that lets the model set it. claude plugin install goal@claude-mods http://github.com/Sma1lboy/claude-mods