Skip to content
rysweet avatar

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
View on GitHub

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 -y

Installs 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

Similar to Context Management

More Memory & Context