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

一个 Claude Code mod,在上下文窗口填满时发出警告,并建议在自动压缩抹去会话决定前用 /save-context 保存它们。
mutlumehmet/claude-plugins/tree/main/plugins/context-alarm

一个 Claude Code mod,在上下文窗口快满时发出警告,并建议在自动 compaction 将会话决定总结掉之前,用 /save-context 保存它们。它属于 claude-plugins。
它会从同一 marketplace 安装提供 /save-context 的 project-workflow 作为依赖。
需要 Claude Code 2.1.287 或更高版本(mods),已在 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.