
Context Compression
When your agent sessions blow past context limits or you're working with multi-million token codebases, this breaks down three compression approaches with real tradeoffs. The key insight is optimizing for tokens per task, not tokens per request, because aggressive compression that loses file paths or error messages costs more in re-fetching than it saves. Anchored iterative summarization with structured sections (intent, files modified, decisions, next steps) outperforms naive approaches by forcing the summarizer to populate explicit categories. The weakest link across all methods is artifact trail integrity, scoring 2.2-2.5 out of 5.0, so expect to build separate file tracking if your agent needs reliable modification history. Includes probe-based evaluation strategies and a three-phase workflow for compressing large codebases into executable specs.
- skills.sh installs
- 1.2K
- GitHub stars
- 43.1K
- last updated
- Jul 14, 2026
Install
$ npx -y skills add sickn33/antigravity-awesome-skills --skill context-compression --agent claude-codeInstalls into .claude/skills of the current project.
Files
Context Compression Strategies
When agent sessions generate millions of tokens of conversation history, compression becomes mandatory. The naive approach is aggressive compression to minimize tokens per request. The correct optimization target is tokens per task: total tokens consumed to complete a task, including re-fetching costs when compression loses critical information.
When to Use
Activate this skill when:
- Agent sessions exceed context window limits
- Codebases exceed context windows (5M+ token systems)
- Designing conversation summarization strategies
- Debugging cases where agents "forget" what files they modified
- Building evaluation frameworks for compression quality
Core Concepts
Context compression trades token savings against information loss. Three approaches to evaluate for the current workload are:
Sponsors
Details
- Repository
- github.com/sickn33/antigravity-awesome-skills
- First seen
- Apr 16, 2026
More from sickn33/antigravity-awesome-skills
All 708- Context Window Management1.2K
- Frontend Dev Guidelines1.2K
- Interactive Portfolio1.2K
- Office Productivity1.2K
- React Ui Patterns1.2K
- Telegram Mini App1.2K
- Workflow Automation1.2K
- Api Patterns1.1K
- Audio Transcriber1.1K
- Business Analyst1.1K
- Cc Skill Frontend Patterns1.1K
- Code Review Checklist1.1K
- Micro Saas Launcher1.1K
- Multi Agent Brainstorming1.1K
- Prompt Engineering1.1K
- Python Patterns1.1K
- Superpowers Lab1.1K
- Tailwind Patterns1.1K
- Test Driven Development1.1K
- Typescript Advanced Types1.1K
- Inngest1K
- Langgraph1K
- Unreal Engine Cpp Pro1K
- Vulnerability Scanner1K