Install any skill in seconds. Free to start, no credit card required.
Get Started Free →Intelligent context management system for AI coding agents. Solves the critical problem of context window overflow by implementing a tiered context architecture with smart prioritization, automatic summarization, and dynamic loading. Features include: automatic context budget calculation based on model capacity, smart file prioritization using dependency graph analysis, conversation summarization with key decision preservation, and a rolling context window that keeps the most relevant informatio
| Test case | Without → With | Effect | Δ tokens | Δ turns |
|---|---|---|---|---|
| case-02 | ✗→✓ | ▲ Improved | 181% | 0% |
| case-03 | ✗→✓ | ▲ Improved | 212% | 0% |
| case-04 | ✗→✓ | ▲ Improved | 36% | 0% |
| case-05 | ✗→✓ | ▲ Improved | 5% | 0% |
| case-06 | ✗→✓ | ▲ Improved | 70% | 0% |
> Stop losing context in long coding sessions. Let Context Master manage your AI's memory intelligently.
Every AI coding agent has a context window limit. When conversations get long or codebases are large:
Context Master solves this with a smart, tiered context management system.
┌─────────────────────────────────────────────┐
│ TIER 1: HOT CONTEXT (Always Loaded) │
│ - Current task description │
│ - Active file contents │
│ - Recent decisions (last 10) │
│ - User preferences │
│ Budget: 30% of context window │
├─────────────────────────────────────────────┤
│ TIER 2: WARM CONTEXT (Loaded on Demand) │
│ - Related file summaries │
│ - Architecture decisions │
│ - Error history & fixes │
│ Budget: 40% of context window │
├─────────────────────────────────────────────┤
│ TIER 3: COLD CONTEXT (Archived) │
│ - Old conversation summaries │
│ - Historical decisions │
│ - Resolved issues │
│ Accessed via semantic search │
│ Budget: 30% of context window │
└─────────────────────────────────────────────┘The skill calculates optimal context allocation based on:
When context reaches 70% capacity, it automatically:
When working with large codebases, not all files are equally important. Context Master uses a dependency graph to prioritize:
Priority Score = f(dependency_depth, change_frequency, relevance_to_task, test_coverage_inverse)Files are ranked:
When summarizing conversations, Context Master preserves:
| What to Keep | What to Summarize | What to Discard | |-------------|-------------------|-----------------| | Final decisions | Discussion process | Greetings/pleasantries | | Code changes made | Alternative approaches | Error output (keep summary) | | Architecture choices | Reasoning chains | Repetitive confirmations | | User preferences | Trade-off analysis | "OK", "thanks" responses | | Open questions | Constraints discovered | Duplicate information | | Error patterns | Debugging journey | Failed attempts summary |
Every important decision is captured in a structured format:
markdown## Decision Log ### [DEC-001] Use Zustand instead of Redux (Session 3) - **Date**: 2026-03-20 - **Context**: Choosing state management for new React project - **Decision**: Use Zustand for state management - **Reasoning**: Smaller bundle size, simpler API, sufficient for our scale - **Alternatives Considered**: Redux Toolkit, Jotai, Context API - **Impact**: Affects all components, store setup pattern - **Reversible**: Yes (medium effort)
Instead of a simple FIFO queue, Context Master uses a smart rolling window:
When a new session begins:
.context/ directory.context/session-latest.mdmarkdown## Session Handoff Note **From**: Session #12 (2026-03-20 14:30) **To**: Next session ### Current Task Implementing user authentication flow with JWT tokens ### Progress - [x] Login API endpoint - [x] JWT token generation - [ ] Token refresh mechanism - [ ] Protected route middleware ### Key Decisions - Using bcrypt for password hashing (DEC-015) - JWT expires in 24h (DEC-016) - Refresh tokens stored in httpOnly cookies (DEC-017) ### Open Questions - Should we implement rate limiting on login? ### Files Modified - src/api/auth.ts (added login endpoint) - src/middleware/auth.ts (JWT verification) - src/utils/jwt.ts (new file - token helpers) ### Next Steps 1. Implement refresh token rotation 2. Add rate limiting to login endpoint 3. Write integration tests for auth flow
.context/
├── config.toml # Context management config
├── decisions/
│ ├── DEC-001.md # Individual decisions
│ └── ...
├── summaries/
│ ├── session-001.md # Session summaries
│ └── ...
├── files/
│ ├── index.json # File dependency graph
│ └── priorities.json # Current file priorities
├── handoff.md # Latest handoff note
└── stats.json # Usage statistics| Command | Description | |---------|-------------| | "context status" | Show current context usage and budget | | "context summarize" | Force a conversation summary | | "context decisions" | Show all decisions made | | "context handoff" | Generate handoff note for next session | | "context priority <file>" | Manually set file priority | | "context search <query>" | Search archived context | | "context compact" | Force context compaction | | "context budget <size>" | Set context window size |
This skill works with any AI coding agent that supports the SKILL.md standard:
Other measured skills in the registry, with their headline benchmark lift.