context-compactor
Installation
SKILL.md
Context Compactor
Compresses long conversations into structured summaries. Saves token by replacing raw conversation history with dense, searchable digests.
Requirements
- Runtime: Python 3.10+ (standard library only)
- OS: Linux, macOS
- Environment variables:
OPENCLAW_WORKSPACE— Workspace root (default:~/.openclaw/workspace)
- Environment:
OPENCLAW_WORKSPACE(default:~/.openclaw/workspace)
Security
Write Restrictions (Hard Rules)
The agent may ONLY write to these locations:
memory/compacts/— compact files onlySESSION-STATE.md— via smart-memory skill (not this skill)