ClaudeMods
☰
EN
● 0 online · Views 0 times
SponsorsSubmit a project
GitHub repositories · by redzrush101

context-meter

A Claude Code plugin adding a status band above the prompt showing context fill toward auto-compact, prompt-cache expiry countdown, 5-hour/weekly usage limits with reset times, and a resume guard for cold sessions.

redzrush101@redzrush101

redzrush101/claude-mods/tree/main/plugins/context-meter

Translated

About this mod

A band above the prompt:

context ━━──────────  19% 185k/967k · cache 59m · usage 5h 23% ↻ 14:40 · week 41% ↻ Thu 09:00
  • context: fill against the auto-compact point; yellow from 75%, red from 90%. Turns left before compaction appear when fewer than 30 remain.
  • cache: time until the prompt cache expires, counted from the last request; a toast 5 minutes before, and cold · next message re-reads … after. The hit rate appears when it drops below 80%.
  • usage: the 5-hour and weekly limits with reset times; toasts at 80% and 95%.
  • resume guard: resuming a session whose cache expired shows its size, idle time and estimated re-cache cost, with Compact and Dismiss buttons, and holds the first message once when the context is over 50k (send again to go ahead).

It makes no API requests of its own: every figure is one Claude Code already has.

Options (/plugin configure context-meter@claude-mods): cacheTtlMinutes (default 60; 60 for the 1-hour prompt cache, 5 for the 5-minute one) and resumeGuard (default true; hold the first message after a cold resume).

Install:

claude plugin marketplace add redzrush101/claude-mods
claude plugin install context-meter@claude-mods

Tests: claude plugin test plugins/context-meter.

Installation

Check the author's README for the marketplace and plugin name first. Commands may change as the repository evolves.

claude plugin marketplace add redzrush101/claude-mods
claude plugin install context-meter
Original text / README

claude-mods

Claude Code mods (plugins of function hooks).

claude plugin marketplace add redzrush101/claude-mods
claude plugin install context-meter@claude-mods

Or inside Claude Code: /plugin marketplace add redzrush101/claude-mods.

context-meter

A band above the prompt:

context ━━──────────  19% 185k/967k · cache 59m · usage 5h 23% ↻ 14:40 · week 41% ↻ Thu 09:00
  • context: fill against the auto-compact point; yellow from 75%, red from 90%. Turns left before compaction appear when fewer than 30 remain.
  • cache: time until the prompt cache expires, counted from the last request; a toast 5 minutes before, and cold · next message re-reads … after. The hit rate appears when it drops below 80%.
  • usage: the 5-hour and weekly limits with reset times; toasts at 80% and 95%.
  • resume guard: resuming a session whose cache expired shows its size, idle time and estimated re-cache cost, with Compact and Dismiss buttons, and holds the first message once when the context is over 50k (send again to go ahead).

It makes no API requests of its own: every figure is one Claude Code already has.

Options (/plugin configure context-meter@claude-mods):

| Option | Default | | | --- | --- | --- | | cacheTtlMinutes | 60 | 60 for the 1-hour prompt cache, 5 for the 5-minute one | | resumeGuard | true | hold the first message after a cold resume |

Tests: claude plugin test plugins/context-meter.

Other works with the same name

Similar projects