Tanuki Context claims up to 94% token savings by turning some LLM inputs into images
0syna · reddit · 2026-07-27
Tanuki Context is an open-source MCP server and proxy that tries to cut LLM context costs by turning some inputs into images when that is cheaper than sending text.
The author claims up to 94% token savings on logs and describes several techniques:
- a log distiller that collapses repeated lines while keeping errors verbatim
- a columnar codec for JSON so keys are stated once
- a cost model that prefers cache reads over re-imaging when cached tokens are cheaper
It works with vision-capable models and supports Claude Code, the Claude Agent SDK, and a machine-wide proxy mode via ANTHROPICBASEURL. The author says output tokens are unaffected and retrieval is still cheaper for some narrow queries.
Related event: Tanuki Context Slashes LLM Token Costs by Converting Text to Images(2 posts)→
More from coding & agent
- Steve Yegge after a year of software factories: the last bottleneck is human attention — Steve_Yegge · 2026-12-02
- AI models a full sunset train car in Blender via MCP, 60% done — minchoi · 2026-12-02
- Swarms v18 "Multiplex" Ships Self-Organizing Swarms, Async Agents, A2A — KyeGomezB · 2026-12-02
- ASCII-only Minecraft: Gemini 4 Neon renders the whole game world in text characters — minchoi · 2026-12-02
- Two prompts in Antigravity auto-generate a full AI music video — minchoi · 2026-12-02
- How to rebuild TradingView's $2,399/year terminal free with Gemini 4 Neon, OpenBB and Lightweight Charts — minchoi · 2026-12-02