Repository navigation
Releases
limits-meter 0.6.1
- Fix:
/renameshows on the row at once. The row kept the old name, or none, until your next prompt, while Claude Code's prompt border already showed the new one. A name you type shows as Claude Code kept it, with the suffix it adds when another live session already has that name; a bare/rename, which makes a name up, shows the name it printed./nameis the same command. - Checked in a live session: after
/clearthe row keeps the name, as Claude Code keeps it on the session, and after/resumeit shows the resumed session's name, or none. - Access: two new hooks, declared in
capabilities.jsonand the README's "What it can access" section.command.runonrenamelets each/renamerun as Claude Code made it and reads the new name from the note it leaves Claude.ui.renderonCommandOutput, for/rename's line only, reads the name a bare/renameprinted, for a few seconds after it runs, and draws the line unchanged.
Upgrade: nothing to do.
Install or update from a Claude Code terminal session:
/plugin install limits-meter --marketplace marcelmatula/claude-mods
Already installed? Run /plugin marketplace update marcel-mods to get 0.6.1.
limits-meter 0.6.0
- New: the session's name leads the row, in bold, once you have named the session with
/renameorclaude --name:limits work Session ███ 38% ↻2:31 …. Before the session has any figures, the name is the row on its own. A session you haven't named shows no name, as before: Claude Code doesn't tell a mod the title it gives a session by itself. - Claude Code tells a mod the name when a session starts and with each prompt, so the name shows from the start, or at the latest with your next prompt, and after
/renamethe row shows the new name with your next prompt. After/clearor/resumethe row takes the name of the session that starts, or none, by your next prompt at the latest. - A name over 24 characters is cut short with
…. On a narrow terminal it shortens further, down to 8 characters, before the meters lose detail, and goes when not even that fits beside the bars. With no name, the row is drawn exactly as in 0.5.1. - The desktop app's footer text leaves the name out, since the app shows the session's name itself.
/limitshides the name with the rest of the row. - Access: two new hooks, declared in
capabilities.jsonand the README's "What it can access" section. They areclassic.SessionStartandclassic.UserPromptSubmit, the settings hook events that carry the session's name. TheUserPromptSubmithook receives each prompt as any hook on that event does, but reads only the name, and passes every prompt on unchanged. The session state holds one more value, the name. Nothing about the name is saved to the store or shared between sessions.
Upgrade: nothing to do. Name a session with /rename <name> to see it.
Install or update from a Claude Code terminal session:
/plugin install limits-meter --marketplace marcelmatula/claude-mods
Already installed? Run /plugin marketplace update marcel-mods to get 0.6.0.
limits-meter 0.5.1
- Each percentage now sits one cell from its bar and one space from its countdown,
38% ↻2:31, aswarm ↓4mdoes. It was padded on the left to keep its width, which left two cells between bar and figure (three below 10 %). What a shorter figure lacks now goes at the end of its meter, after the countdown, so the row keeps its width and doesn't shift when a figure gains a digit.
Upgrade: nothing to do.
Install or update from a Claude Code terminal session:
/plugin install limits-meter --marketplace marcelmatula/claude-mods
Already installed? Run /plugin marketplace update marcel-mods to get 0.5.1.
limits-meter 0.5.0
- New: whether the session's prompt cache is still warm, and for how long. A third item on the row after the two windows,
Cache █████▋ warm ↓4m: the bar empties as the cache cools, in the limits' colours turned round (green while more than half of its lifetime is left, yellow from half, red in the last fifth), and↓4mis the time left until it is cold. Once its lifetime has run out it readscold, with an empty bar. It counts down at the start of every minute and rounds up, like the other countdowns, and goes cold at the moment its lifetime ends, not up to a minute later. In the desktop app the footer text gains· Cache warm ↓4m. - New option,
cacheTtl: how long the account's prompt cache lasts,5m(the default) or1h. Claude Code doesn't tell a mod which applies, so the countdown counts down from this. Installing the mod asks for it; later it is a row in/config. - It is an estimate, counted from the end of the latest response. It shows nothing until the session's first response, and again after a compaction,
/clearor/resume. While a turn is running the terminal row shows it as warm with no countdown, since every request of the turn uses it. It doesn't see a/modelswitch, which drops the cache too. Nothing about it is shared between sessions, as the cache belongs to one session's conversation. - A session on an API key, which has no rate-limit windows, now keeps a row with the cache alone, where before its row went after its first response.
- On a narrow terminal the cache item goes below about 70 columns, after the labels have shortened; the windows then keep the row they had before it.
- Access: nothing new. The cache is read from
session.measure, which the windows already use, and the end of its lifetime is marked with$.clock.after.capabilities.jsonis unchanged; the README's "What it can access" section says what the mod reads for it. The session state holds one more value, when the cache was last used.
Upgrade: install asks for the cache lifetime; an existing install uses 5m until you change cacheTtl in /config. If your account has the hour-long cache, set it to 1h.
Install or update from a Claude Code terminal session:
/plugin install limits-meter --marketplace marcelmatula/claude-mods
Already installed? Run /plugin marketplace update marcel-mods to get the newest version, 0.5.1 or later.
limits-meter 0.4.1
- Fix: in a desktop app session that was running when the mod was updated,
/limitswent missing until a new session. The minute check now adds it again whenever the session no longer lists it. Should a load of the mod come without the session start that normally follows it, its first reading adds/limitsand starts the minute check. - New access, declared in
capabilities.jsonand the README's "What it can access" section:$.command.list, to see whether the session still lists/limits.
Upgrade: nothing to do.
Install or update from a Claude Code terminal session:
/plugin install limits-meter --marketplace marcelmatula/claude-mods
Already installed? Run /plugin marketplace update marcel-mods to get 0.4.1.
limits-meter 0.4.0
- The Claude desktop app shows the figures. Its Code tab draws no hint line, so the meter row never appeared there; now a session in the app shows them as text in the prompt's footer, beside the model's name:
Session 61% ↻0:42 · Week 75% ↻2d 21h. They count down every minute and/limitshides and shows them. Terminal sessions keep the meter row and show no such text. - Fix: a session you left idle while working in another one kept showing the figures from its own last response, say 61% when you were already at 91%. Your limits are shared by all your sessions, but each session gets figures only with its own responses. Now every session saves the newest figures it gets, and the others pick them up at their next minute check.
- A new session shows the newest saved figures straight away, instead of waiting for its first response. A session on an API key, which has no rate-limit windows, drops them after its first response.
- New access, declared in
capabilities.jsonand the README's "What it can access" section:$.session.surfaces, to tell a desktop app session from a terminal one, and$.ui.status, to show the figures in the app's footer. The mod's store, which held only the shown or hidden choice, now also holds the newest figures and when they arrived, and the session state holds one more value, when the session's own figures arrived.
Upgrade: nothing to do.
Install or update from a Claude Code terminal session:
/plugin install limits-meter --marketplace marcelmatula/claude-mods
Already installed? Run /plugin marketplace update marcel-mods to get 0.4.0.
limits-meter 0.3.0
- Each meter shows the time left until its window resets, dim, after its percentage:
↻2:31(hours and minutes) for the session and↻3d 4h(days and hours) for the week, which reads hours and minutes in its last day. It counts down at the start of every minute without waiting for a response, and rounds up, so it never reads0:00before the reset. Each countdown keeps the same width, so the centred row doesn't shift as it ticks over. - On a narrow terminal the countdowns go after the labels shorten and before the bars do.
- The minute check now runs at the start of each minute instead of a minute after the session started.
- Access: nothing new. The minute check uses
$.clock.afteralone, so$.clock.everyis gone fromcapabilities.jsonand the README. The mod's session state holds one more value, the time the countdowns count from.
Upgrade: nothing to do.
Install or update from a Claude Code terminal session:
/plugin install limits-meter --marketplace marcelmatula/claude-mods
Already installed? Run /plugin marketplace update marcel-mods to get 0.3.0.
limits-meter 0.2.1
- Fix: a window whose reset time passes while the session sits idle no longer stays at its old figure (say 100%) until the next response. The mod checks once a minute and drops it to 0%, and a reading that arrives already past its reset time shows 0% too.
- Fix: after
/clearor/resumethe meters come back at once. Before, Claude Code emptied the mod's state there without starting it again, so the row stayed away until a window moved a whole point, and/limitstoggled a meter that had nothing to draw. A meter you hid stays hidden through them. /limitssays when the meter has no usage figures to show yet, instead of answering "Limits meter shown." with nothing drawn.- New access, declared in
capabilities.jsonand the README's "What it can access" section: asession.endhook, to see a/clearor/resume, and$.clock.now,$.clock.everyand$.clock.after, to read the time, run the minute check and fill the state in again shortly after.
Upgrade: nothing to do.
Install or update from a Claude Code terminal session:
/plugin install limits-meter --marketplace marcelmatula/claude-mods
Already installed? Run /plugin marketplace update marcel-mods to get 0.2.1.
limits-meter 0.2.0
/limitshides or shows the meter row:/limitson its own switches it, and/limits offand/limits onset it. Claude Code's own hint line stays as it is either way.- The choice is remembered across sessions, so a hidden meter stays hidden until you turn it back on.
- New access, declared in
capabilities.jsonand the README's "What it can access" section: acommand.runhook for/limits, plus$.command.register,$.store.getand$.store.setto add the command and keep the setting.
Upgrade: nothing to do. The meter shows by default, as before.
Install or update from a Claude Code terminal session:
/plugin install limits-meter --marketplace marcelmatula/claude-mods
Already installed? Run /plugin marketplace update marcel-mods to get 0.2.0.
limits-meter 0.1.0
First release.
- Shows your session (5 h) and weekly usage limits as small progress bars with a percentage, on a centred row under the prompt's hint line.
- Bars are green below 50 %, yellow from 50 % and red from 80 %, in your theme's colours. On a narrow terminal the labels shorten to
5h/7d. - Uses the figures Claude Code already receives with each response, so it makes no requests of its own.
- Needs a Claude subscription. In a new session the row appears after the first response.
Install from a Claude Code terminal session:
/plugin install limits-meter --marketplace marcelmatula/claude-mods
Built and tested on Claude Code 2.1.294. It uses the function-hooks plugin API, which is early access. MIT licensed.