Context Management
Proactive context window management with token monitoring, selective snapshots, and tiered rehydration.
- CCM score
- 47 of 100
- skills.sh installs
- 175
- GitHub stars
- 77
- last updated
- Aug 21, 2026
Own this skill? Claim it
What it does
- Covers token usage checks, snapshot creation, rehydration, and snapshot listing for Claude Code sessions
- Includes four actions (
status,snapshot,rehydrate,list) with essential, standard, and comprehensive detail levels - Enforces priority-based retention that keeps requirements and decisions while archiving verbose logs
- Designed for long sessions and complex tasks that approach token limits or need preserved state
Install
$ npx -y skills add rysweet/amplihack --skill context-management -yInstalls into .agents/skills for every agent it finds here, and .claude/skills for Claude Code.
Files
Context Management Skill
Purpose
This skill enables proactive management of Claude Code's context window through intelligent token monitoring, context extraction, and selective rehydration. Instead of reactive recovery after compaction, this skill helps users preserve essential context before hitting limits and restore it efficiently when needed.
Version 3.0 Enhancements:
- Predictive Budget Monitoring: Estimate when capacity thresholds will be reached
- Context Health Indicators: Visual indicators for statusline integration
- Priority-Based Retention: Keep requirements and decisions, archive verbose logs
- Burn Rate Tracking: Monitor token consumption velocity for early warnings
When to Use This Skill
Details
- Repository
- github.com/rysweet/amplihack
- Categories
- Memory & Context, Agent Workflow & Planning
- First seen
- Jun 3, 2026
Questions
What does the context-management skill do for Claude Code?
The context-management skill manages Claude Code's context window proactively through token monitoring, context extraction, and selective rehydration. It helps preserve essential requirements and decisions before token limits are reached and restores them efficiently when needed.
When should I use the context-management skill?
Use it when approaching token limits, creating snapshots at 70-85% usage, or after compaction to restore essential context. It also suits long sessions, complex tasks, context switching and team handoffs.
How do I install the context-management skill?
Run npx -y skills add rysweet/amplihack --skill context-management -y in a project to install it. Once installed, the agent can check token status, create context snapshots and rehydrate them at essential, standard or comprehensive detail levels.
Where does context-management stand in the Memory & Context category?
It is listed in the Memory & Context category alongside handoff and several caveman skills such as caveman-compress and caveman-stats. Its distinct focus is predictive budget monitoring and context health indicators that warn before capacity is reached.
More from rysweet/amplihack
All 55- Model Evaluation Benchmark166
- Goal Seeking Agent Pattern162
- Poet Analyst161
- Azure Devops159
- Email Drafter159
- Ethicist Analyst157
- Lsp Setup156
- Session Learning156
- Anthropologist Analyst153
- Mcp Manager151
- Indigenous Leader Analyst146
- Dynamic Debugger145
- Multi Repo142
- Philosophy Compliance Workflow141
- N Version Workflow139
- Outside In Testing139
- Cybersecurity Analyst1.5K
- Lawyer Analyst700
- Psychologist Analyst465
- Mermaid Diagram Generator435
- Economist Analyst387
- Design Patterns Expert370
- Learning Path Builder347
- Philosopher Analyst329
Similar to Context Management
More Memory & Contextcontext-optimizerSkillrohitg00/pro-workflow208 installsStrategies for managing context window size, token budgets, and session degradation in Claude Code.
cozempicPluginRuya-AI/cozempic430 stars2x the effective context with smart weight-loss for Claude Code — prune bloated sessions, protect agent teams from compaction, monitor token usage with MCP tool
session-guardSkillwshobson/agents3.6K installsBehavioral self-monitoring skill that counters long-session drift and context compaction amnesia without hooks or packages.
session-persistSkillruvnet/ruflo775 installsSave, list, restore, inspect, and delete agent sessions through MCP session tools and lifecycle hooks.
session-managementSkillalinaqi/maggy273 installsTiered session checkpointing that logs state, decisions, and code landmarks so work resumes exactly where it stopped.