hook-context-window-monitor
CommunityContext usage alerts to prevent overload.
Authorxuezhaojun
Version1.0.0
Installs0
System Documentation
What problem does it solve?
Lightweight monitor that injects reminders when context window usage exceeds configurable thresholds. Unlike preemptive-compaction, this does NOT trigger compaction — it only warns the LLM to be more concise and suggests running /compact.
Core Features & Use Cases
- Monitor and warn when context usage crosses warnThreshold (default 0.7) or criticalThreshold (default 0.85).
- Non-invasive reminders to improve dialogue efficiency and avoid hidden token overflows.
- Useful for long-running sessions or when tight token budgets apply.
Quick Start
Configure the monitor with your desired thresholds to start receiving warnings.
Dependency Matrix
Required Modules
None requiredComponents
Standard package💻 Claude Code Installation
Recommended: Let Claude install automatically. Simply copy and paste the text below to Claude Code.
Please help me install this Skill: Name: hook-context-window-monitor Download link: https://github.com/xuezhaojun/oh-your-opencode/archive/main.zip#hook-context-window-monitor Please download this .zip file, extract it, and install it in the .claude/skills/ directory.
Agent Skills Search Helper
Install a tiny helper to your Agent, search and equip skill from 471,000+ vetted skills library on demand.