eturkes/agents/tree/main/claude/mods/context-alert
context-alert
A Claude Code mod that emits one closure notice per loop and tier as context nears compaction, reading CLAUDE_CODE_MAX_CONTEXT_TOKENS and CLAUDE_CODE_AUTO_COMPACT_WINDOW via a tool.call hook.
About this mod
context-alert is a Claude Code plugin (manifest at .claude-plugin/plugin.json) that watches context usage and issues a single closure notice per loop and tier when approaching auto-compaction. It reads environment variables such as CLAUDE_CODE_MAX_CONTEXT_TOKENS and CLAUDE_CODE_AUTO_COMPACT_WINDOW (default 200,000 tokens) and registers a tool.call hook to assess usage. Source: https://github.com/eturkes/agents/tree/main/claude/mods/context-alert.
Installation
Check the author's README for the marketplace and plugin name first. Commands may change as the repository evolves.
claude plugin marketplace add eturkes/agents claude plugin install context-alert