anthonyhungnguyen/claude-code-mods/tree/main/context-guard
context-guard
상태 줄에 컨텍스트 창 사용량을 표시하고 사용량이 80%를 넘으면 toast를 발생시키는 Claude Code plugin입니다.
이 mod 소개
상태 줄에 컨텍스트 창 사용량을 표시하고 모두 소진되기 전에 알려 줍니다. claude-code-mods 컬렉션의 일부이며 저장소를 clone하고 각 mod 폴더를 CLAUDE_CODE_PLUGIN_DIRS에 나열한 뒤 세션을 다시 시작해 설치합니다.
설치
먼저 작성자의 README에서 marketplace와 플러그인 이름을 확인하세요. 저장소 구조에 따라 명령어가 달라질 수 있습니다.
claude plugin marketplace add anthonyhungnguyen/claude-code-mods claude plugin install context-guard
원문 / README
claude-code-mods
Mods for Claude Code, one folder each. A mod is a plugin of function hooks: panes, status lines, slash commands, tool guards.
| Mod | What it does |
| --- | --- |
| cost-pane | Token and USD spend per session and per day, in the status line and a /cost-pane pane |
| context-guard | Context window fill in the status line; a toast once it passes 80% |
| cache-watch | A toast when a turn rebuilt the prompt cache: tokens written, turn cost, likely cause (idle, model change) |
| turn-timer | Speaks (say on macOS) and toasts when a turn longer than 2 minutes finishes |
Install
git clone [email protected]:anthonyhungnguyen/claude-code-mods.git ~/.claude/mods
List each mod folder you want in ~/.claude/settings.json, separated by ::
{ "env": { "CLAUDE_CODE_PLUGIN_DIRS": "~/.claude/mods/cost-pane:~/.claude/mods/context-guard:~/.claude/mods/cache-watch:~/.claude/mods/turn-timer" } }
New sessions load them. Check a mod with claude plugin validate ~/.claude/mods/<mod>.
동명의 다른 작품
- context-guardmelodic-software · ★ 22
