shrink
Installation
SKILL.md
π¦ Shrink β Multimodal Context Optimizer
Replace base64 image blocks in session JSONL with concise, context-aware text descriptions. Images consuming 15,000β25,000+ tokens become ~100 token descriptions β a 99%+ reduction. OpenClaw's built-in pruning explicitly skips images. This is the only tool that solves this.
Interactive Flow
When triggered, present an interactive menu using inline buttons (Telegram/Discord).
Step 1: Scan & Present
Run a dry-run first to show the user what's available:
python3 <skill_dir>/scripts/shrink.py --agent <agentId> --dry-run --json
Parse the JSON output and present: