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.
/plugin marketplace add mutlumehmet/claude-plugins /plugin install context-alarm@mehmetmutlu
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

What it hooks into
session.startWhen a session startscommand.runWhen you run its slash command/context-alarmsession.measureWhen usage is measuredturn.completeWhen a turn endsskill.promptA Claude Code eventsession.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
- Folder
- plugins/context-alarm
- Version
- 0.1.1
- License
- MIT
- Repo stars
- 5
- Last change
- 2026-10-05
- Language
- TypeScript
- Files
- 7