ClaudeMods
☰
KO
● 0 명 접속 중 · 조회 0 회
후원프로젝트 제출
GitHub 저장소 · 작성자 mutlumehmet

context-alarm

컨텍스트 창이 가득 차면 경고하고 자동 compaction으로 세션의 결정이 요약되기 전에 /save-context로 저장하도록 제안하는 Claude Code mod입니다.

mutlumehmet@mutlumehmet

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

원본 게시물 이미지1
번역 완료

이 mod 소개

context-alarm

컨텍스트 창이 가득 차면 경고하고 자동 compaction으로 세션의 결정이 사라지기 전에 /save-context로 저장하도록 제안합니다. claude-plugins의 일부입니다.

What it does

  • 80%(warn_percent 설정, 50에서 95): 알림, 프롬프트 아래 상태 줄(Context 83% · /save-context suggested), 빈 프롬프트 상자의 /save-context 제안을 표시합니다.
  • 10포인트 높아지면 자동 compaction이 가까워졌다는 알림을 하나 더 냅니다.
  • 자동 compaction 전 저장하지 않았다면 마지막 알림을 냅니다. compaction은 계속 실행됩니다.
  • /save-context 후 제안을 멈추고 상태 줄에도 표시합니다.
  • /context-alarm은 컨텍스트 사용량과 임계값을 보여 줍니다.

같은 marketplace의 project-workflow를 의존성으로 설치해 /save-context를 제공합니다.

What it reads and does

  • Reads: 컨텍스트가 얼마나 찼는지, /save-context가 실행됐는지, 자동 compaction이 언제 시작되는지를 읽습니다.
  • Does: 알림, 프롬프트 아래 상태 줄, 빈 상자의 /save-context 제안을 표시합니다. save-context를 직접 실행하지 않습니다.
  • Hooks: skill.prompt는 save-context가 실행됐다는 사실만 기록하고 skill prompt를 그대로 전달합니다. session.compact는 경고만 하며 압축은 계속됩니다. command.run은 자체 /context-alarm에만 답합니다.
  • Privacy: PRIVACY.md를 참조하세요.
  • Never: 어디에도 보내지 않으며 네트워크 호출과 텔레메트리를 사용하지 않습니다.

Install

Claude Code 2.1.287 이상이 필요하며 2.1.289에서 테스트했습니다.

/plugin marketplace add mutlumehmet/claude-plugins
/plugin install context-alarm@mehmetmutlu

mod는 Claude Code 권한으로 실행됩니다. 설치 전에 코드를 읽으세요.

Known gaps

  • 임계값을 넘은 턴에서는 새 퍼센트가 턴 뒤에 도착해 prompt 제안을 놓칠 수 있지만 알림과 상태 줄은 표시됩니다.
  • 한 턴에서 두 임계값을 모두 넘으면 두 번째 알림만 표시됩니다.
  • VS Code chat panel에는 아무것도 그리지 않습니다.

About

Mehmet Mutlu: work that's shipped, at mehmetmutlu.dev

Made by Mehmet Mutlu. claude-plugins의 일부이며 더 많은 작업은 mehmetmutlu.dev에서 볼 수 있습니다.

License

MIT

설치

먼저 작성자의 README에서 marketplace와 플러그인 이름을 확인하세요. 저장소 구조에 따라 명령어가 달라질 수 있습니다.

claude plugin marketplace add mutlumehmet/claude-plugins
claude plugin install context-alarm
원문 / README

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.

What it does

  • At 80% (the 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.
  • 10 points higher: one more notice that automatic compaction is close.
  • Before an automatic compaction without a 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 is and the thresholds.

It installs project-workflow from the same marketplace as a dependency, which provides /save-context.

What it reads and does

  • Reads: how full the context window is, whether /save-context ran, and when an automatic compaction starts.
  • Does: notices, a status line under the prompt, and /save-context suggested in the empty prompt box. It never runs save-context itself.
  • Hooks: 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.
  • Privacy: see PRIVACY.md.
  • Never: sends anything anywhere (no network calls, no telemetry).

Install

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.

Known gaps

  • On the turn that crosses the threshold the prompt suggestion can be missed (the new percent arrives after the turn ends); the notice and status line still show.
  • If one turn jumps past both thresholds, only the second notice shows.
  • Nothing is drawn in the VS Code chat panel.

About

Mehmet Mutlu: work that's shipped, at mehmetmutlu.dev

Made by Mehmet Mutlu, part of claude-plugins. More of his work at mehmetmutlu.dev.

License

MIT

비슷한 프로젝트