By vzwjustin
Monitor, analyze, and optimize Claude Code context window usage with real-time alerts and historical tracking
Set up context usage alerts and thresholds
Analyze current context window usage and provide optimization recommendations
Generate comprehensive map of current context knowledge with token costs
View historical context usage data and trends
Get actionable steps to optimize context window usage right now
Executes bash commands
Hook triggers when Bash tool is used
Modifies files
Hook triggers on file write and edit operations
Uses power tools
Own this plugin?
Verify ownership to unlock analytics, metadata editing, and a verified badge. GitHub access is read-only (username + org membership).
Sign in to claimOwn this plugin?
Verify ownership to unlock analytics, metadata editing, and a verified badge. GitHub access is read-only (username + org membership).
Sign in to claimBased on adoption, maintenance, documentation, and repository signals. Not a security audit or endorsement.
Uses Bash, Write, or Edit tools
Uses Bash, Write, or Edit tools
A comprehensive plugin for monitoring, analyzing, and optimizing your Claude Code context window usage. Stay in control of your context and maximize productivity with real-time tracking, intelligent alerts, and actionable insights.
📖 See FEATURES.md for complete details on advanced features
Clone or download this plugin:
git clone <repository-url> context-window-manager
cd context-window-manager
Test locally with Claude Code:
claude --plugin-dir ./
Install permanently (optional):
# Copy to Claude Code plugins directory
mkdir -p ~/.claude/plugins
cp -r . ~/.claude/plugins/context-window-manager
Once loaded, try these commands in your Claude Code session:
# Quick status check
/context-window-manager:status
# Detailed analysis (agent-powered, fast!)
/context-window-manager:analyze
# Auto-prune unused context (NEW!)
/context-window-manager:prune
# View context knowledge map (NEW!)
/context-window-manager:context-map
# Track token savings (NEW!)
/context-window-manager:savings
# Get optimization recommendations
/context-window-manager:optimize
# Generate full report
/context-window-manager:report
📘 New to the plugin? Read QUICKSTART.md for a 5-minute guided tour!
The plugin provides six powerful slash commands:
/context-window-manager:statusQuick at-a-glance status check with visual indicator.
Use when: You want a fast check without detailed analysis.
Output:
┌─────────────────────────────────────────────────┐
│ CONTEXT WINDOW STATUS │
├─────────────────────────────────────────────────┤
│ Capacity: 200K tokens │
│ Used: 72,000 tokens (36%) │
│ Available: 128,000 tokens (64%) │
│ Status: 🟢 Healthy │
│ │
│ Progress: [███████░░░░░░░░░] 36% │
└─────────────────────────────────────────────────┘
/context-window-manager:analyzeDeep analysis of current context usage with optimization recommendations.
Use when: You want to understand what's consuming your context.
Output includes:
KEEL companion automation for Claude Code with reusable hooks and skills.
npx claudepluginhub vzwjustin/claudecontextOpus 4.8-aware context optimization: silent-by-default hooks, honest NET token savings, big-file map-then-load, Context Control Center, per-task tracking, prompt coach
Audit, fix, and monitor Claude Code context window usage. Find the ghost tokens.
Analyze Claude Code chat history to identify context window bloat and get optimization recommendations
Real-time session dashboard for Claude Code — cost tracking, analytics, and smart alerts
Session intelligence for Claude Code — find why your sessions fail and fix them
Governor: always-on compact professional output, telemetry, context slimming, tool-output filtering, prompt guidance, and drift guardrails for Claude Code Max users.