context-compressor

Installation
SKILL.md

Context Compressor

Finite channel (context window) must carry maximum decision-relevant signal. Score fragments by entropy and redundancy, cut or compress accordingly.

Vocabulary

Info Theory Context Engineering
Channel / Capacity Context window / window minus system prompt overhead
Entropy Information per token
Self-information How much a fragment reduces agent uncertainty
Redundancy Tokens carrying no new info given other context
Lossy compression Summarize at lower fidelity to save tokens
Lossless compression Reformulate more densely, same facts

Phase 1 — Budget

Calculate: window - system_prompt - tools - history - output_reserve = available.

Related skills

More from andurilcode/craftwork

Installs
3
GitHub Stars
6
First Seen
Apr 2, 2026