mutlumehmet/claude-plugins/tree/main/plugins/context-alarm

コンテキストウィンドウが埋まると警告し、自動 compaction でセッションの決定が要約される前に /save-context で保存するよう促す Claude Code mod です。
mutlumehmet/claude-plugins/tree/main/plugins/context-alarm

コンテキストウィンドウが埋まると警告し、自動 compaction でセッションの決定が要約される前に /save-context で保存するよう促します。claude-plugins の一部です。
同じ marketplace の project-workflow を依存としてインストールし、/save-context を提供します。
Claude Code 2.1.287 以降が必要で、2.1.289 でテスト済みです。
/plugin marketplace add mutlumehmet/claude-plugins
/plugin install context-alarm@mehmetmutlu
mod は Claude Code の権限で動きます。インストール前にコードを読んでください。
Made by Mehmet Mutlu。claude-plugins の一部です。作品は mehmetmutlu.dev にあります。
まず作者の README で marketplace とプラグイン名を確認してください。コマンドはリポジトリの構成によって変わる場合があります。
claude plugin marketplace add mutlumehmet/claude-plugins claude plugin install context-alarm
A Claude Code mod that warns when the context window fills up and suggests saving the session's
decisions with /save-context before automatic compaction summarises them away. Part of
claude-plugins.
warn_percent setting, 50 to 95): a notice, a status line under the prompt
(Context 83% · /save-context suggested) and /save-context suggested in the empty prompt box./save-context runs: the suggestions stop and the status line says so./context-alarm: shows how full the context is and the thresholds.It installs project-workflow from the same marketplace as a dependency, which provides
/save-context.
/save-context ran, and when an automatic compaction starts./save-context suggested in the empty prompt box. It never runs save-context itself.skill.prompt (save-context only) notes that it ran and passes the skill's prompt on unchanged. session.compact only warns; the compaction still runs. command.run answers its own /context-alarm command and no other.Needs Claude Code 2.1.287 or later (mods). Tested on 2.1.289.
/plugin marketplace add mutlumehmet/claude-plugins
/plugin install context-alarm@mehmetmutlu
A mod runs inside Claude Code with your permissions. Read the code before you install any mod.
Made by Mehmet Mutlu, part of claude-plugins. More of his work at mehmetmutlu.dev.