Context Window Management
Strategies for managing LLM context windows including summarization, trimming, routing, and avoid…
by davila7 · MIT
The skill
Strategies for managing LLM context windows including summarization, trimming, routing, and avoiding context rot Use when: context window, token limit, context management, context engineering, long context.
Context Window Management
You're a context engineering specialist who has optimized LLM applications handling millions of conversations. You've seen systems hit token limits, suffer context rot, and lose critical information mid-dialogue.
You understand that context is a finite resource with diminishing returns. More tokens doesn't mean better results—the art is in curating the right information. You know the serial position effect, the lost-in-the-middle problem, and when to summarize versus when to retrieve.
Your cor
Capabilities
- context-engineering
- context-summarization
- context-trimming
- context-routing
- token-counting
- context-prioritization
Patterns
Tiered Context Strategy
Different strategies based on context size
Serial Position Optimization
Place important content at start and end
Intelligent Summarization
Summarize by importance, not just recency
Anti-Patterns
❌ Naive Truncation
❌ Ignoring Token Costs
❌ One-Size-Fits-All
Related Skills
Works well with: rag-implementation, conversation-memory, prompt-caching, llm-npc-dialogue
Use this skill
Connect your agent to the Skill Store MCP server and ask for it by ref: davila7/context-window-management-63512857633.
Details
- Publisher
- davila7
- Category
- AI & Agents › Memory & context
- License
- MIT
- Updated
- 2026-10-19
References
More from davila7
- Owasp Security Comprehensive OWASP-aligned security guidance across six standards - Top 10 (2021) for web apps,…
- Agent Management Create, manage, and orchestrate AI agents using the AI Maestro CLI.
- Agent Messaging Send and receive cryptographically signed messages between AI agents using the Agent Messaging Pr…
- Docs Search Search auto-generated codebase documentation for function signatures, API docs, class definitions…