Context Compression

Configure the context compaction that modern agent runtimes already provide, instead of coding your own — and get the settings right so it shrinks history without destroying it. Use this when long or multi-agent runs overflow the model's context window, when you're choosing which model should summarize old turns, or when compaction is "on" but the agent keeps losing track of things. The load-bearing rule: the summarizer's context window must be at least as large as the main model's, or the compaction that was supposed to save the run silently corrupts it.

sharp-skills Updated

File contents

sharp-skills/skills/tree/main/skills/context-compression commit 6e3b9116ac

Frequently asked questions

npx skillmds@latest add sharp-skills/context-compression