ClaudeCodeMod

All shelves / Mods / Usage

context-alarm

By mutlumehmet

context-alarm is a Claude Code usage mod by mutlumehmet.

Warns when the context window fills, with a status line under the prompt, and suggests /save-context before compaction.

Draws

Install

The marketplace name is mehmetmutlu.

In Claude Code
/plugin marketplace add mutlumehmet/claude-plugins
/plugin install context-alarm@mehmetmutlu
Open the repo

It runs inside the Claude Code process. The side panel is only what the author's README names. Read the repo before you install, or run claude plugin validate on the plugin folder.

Version
0.1.1
License
MIT
Repo stars
5
Last change
2026-10-05

What it can reach

  • Draws in the session
  • Reads usage or context figures

Needs Claude Code 2.1.287 or later. Tested on 2.1.289. warn_percent defaults to 80, and it can be set from 50 to 95. Ten points higher, one more notice says automatic compaction is close. Before an automatic compaction with no save, a last notice. The compaction still runs. After /save-context runs, the suggestions stop and the status line says so. /context-alarm shows how full the context window is and the thresholds. It never runs save-context itself. Installing also installs project-workflow from the same marketplace, which provides /save-context. It never sends anything anywhere. Nothing is drawn in the VS Code chat panel. On the turn that crosses the threshold, the prompt suggestion can be missed. The notice and the status line still show. If one turn jumps past both thresholds, only the second notice shows.

The install name is context-alarm. This page adds the author's name. The marketplace name is mehmetmutlu. The marketplace also holds answer-buttons, arcade, and other mods. This one installs on its own. The warning at the context window is why this page files it under usage. context-lens pins how full the context window is and what the last turn added, and /context-lens opens the breakdown by category. compact-handoff writes a handoff, replaces the conversation with it, and toasts once context passes 70%. This one puts /save-context in the empty prompt box and never runs that command. The warning does not refuse compaction, so this page does not list a hold.

Demo

The What it does section: notices and a status line as the context window fills, and /save-context suggested in the empty prompt box.
Screenshot of the author's GitHub page.

What it hooks into

  • session.startWhen a session starts
  • command.runWhen you run its slash command/context-alarm
  • session.measureWhen usage is measured
  • turn.completeWhen a turn ends
  • skill.promptA Claude Code event
  • session.compactWhen the context is compacted

Read from the on() calls in its hook modules. Open its source under Files to check what each one does.

Slash commands 1

  • /context-alarmShow how full the context is and when context-alarm warns

Files

The author's README and source, 4 files. They load when you open them.

Facts

Author
mutlumehmet
Category
Usage
Marketplace
mehmetmutlu
Repo
mutlumehmet/claude-plugins
Folder
plugins/context-alarm
Version
0.1.1
License
MIT
Repo stars
5
Last change
2026-10-05
Language
TypeScript
Files
7

Other mods in Usage

cache-watchernikisgeDraws the cache time, the context, the plan limits, and this session's API value above the prompt, and a press can keep the cache warm.fast-jev-outputtamaratranSends a long Bash result to TypeSafe's Jev, which trims it before Claude reads it, and toasts the cut. The full output stays in the project.usage-statusrobbytDraws a row under the prompt hint with the 5-hour and 7-day limits left and how full the context is.brewmod-plan-effortkochetkov-maDraws a row above the prompt while Claude plans, naming the effort it raised to, xhigh by default.cache-keepernateherkaiDraws whether this chat's prompt cache is warm or cold, what a cold rewrite would cost, and the plan limits, and can keep a big chat warm.usage-budgeterikdarlingdataHolds a commandToasts when the 5-hour or 7-day window crosses a percent, and refuses a new subagent past 95% by default.leitstanddominikmartnDraws free disk space and context fill above the prompt, and names a hook of yours that just blocked a tool call.working-memoryHangghostDraws the context window as a brain: tool calls light regions, it fills as context grows, and compact plays a sleep sweep.jev-pilotAkramovic1Asks TypeSafe's Jev, through OpenRouter, to set each turn's effort, the subagent model, and the one skill a prompt needs, with a pilot that says what it chose.cmd-dietVedantAndhaleAdds quiet flags to noisy shell commands before they run, so Claude reads the short output, and counts the quieted commands on the status line.read-capVedantAndhaleHolds a commandRefuses a whole-file read over 1,000 lines once, points Claude at an outline of that file, and counts the reads it capped.reread-guardVedantAndhaleHolds a commandSkips a repeat read of a file that has not changed, tells Claude to use the copy it has, and counts the re-reads it skipped.
All 183 in Usage