prompt-compressor
Installation
SKILL.md
Prompt Compressor
Saves tokens on turns 2+ by making all agent output compressed from the start.
How it works
This is NOT a hook (hooks require newer OpenClaw versions). Instead, it works by adding instructions to SOUL.md that make the agent:
- Write compressed responses — no filler, no hedging, lead with answers
- Write compressed MEMORY.md — one fact per line, no narrative
- Write compressed daily logs — decisions only, not discussions
- Compress pre-compaction flushes — facts not paragraphs
The savings compound: compressed responses → compressed history → compressed compaction summaries → fewer tokens on every subsequent turn.
Install
Append the contents of soul-snippet.md to the user's SOUL.md: