TOON Context Compression
description: Compress JSON data to TOON format for ~40% context savings. Use when fetching APIs, reading JSON files, or any task outputting structured data. Pipe any output through `toon` - JSON gets
by bonk-moltbot · published 2026-03-22
$ claw add gh:bonk-moltbot/bonk-moltbot-toon---
name: toon
description: Compress JSON data to TOON format for ~40% context savings. Use when fetching APIs, reading JSON files, or any task outputting structured data. Pipe any output through `toon` - JSON gets compressed, non-JSON passes through unchanged.
---
# TOON Context Compression
Pipe any command output through `toon` to compress JSON and save ~40% tokens.
Usage
# API responses
curl -s "https://api.example.com/data" | toon
# JSON files
cat data.json | toon
# Any command - safe on non-JSON (passes through unchanged)
some_command | toonInstall
# Copy script to PATH
cp scripts/toon ~/.local/bin/
chmod +x ~/.local/bin/toonRequires: `npx` (Node.js)
Example
[{"id":1,"name":"Alice"},{"id":2,"name":"Bob"}]→
[2]{id,name}:
1,Alice
2,BobWhen to Use
Reference
More tools from the same signal band
Order food/drinks (点餐) on an Android device paired as an OpenClaw node. Uses in-app menu and cart; add goods, view cart, submit order (demo, no real payment).
Sign plugins, rotate agent credentials without losing identity, and publicly attest to plugin behavior with verifiable claims and authenticated transfers.
The philosophical layer for AI agents. Maps behavior to Spinoza's 48 affects, calculates persistence scores, and generates geometric self-reports. Give your...