Tanuki Context cuts log prompts by 94% by turning text into images
0syna · reddit · 2026-07-27
Tanuki Context is an open-source tool that tries to cut LLM token costs by converting some context into images.
- The author says a log dump of 37,111 tokens can be compressed to 2,240 tokens, roughly a 94% reduction.
- The idea is that pricing for images is based on pixel size, while text is charged per token.
- The system includes a log distiller that collapses repeated lines but preserves errors, a columnar codec for JSON, and a cost model that decides when image encoding is not worth it.
- It argues against itself when retrieval or prompt caching is cheaper.
- The tool can run as an MCP server (npx -y tanuki-context) or as a proxy that rewrites requests in place.
- The author notes limits: it needs a vision-capable model, it does not reduce output tokens, and retrieval can still win for narrow queries.
Code, benchmarks, and npm/GitHub links are provided.
Related event: Tanuki Context Slashes LLM Token Costs by Converting Text to Images(2 posts)→
More from coding & agent
- Free workshop spotlights open-source AI tools for security, audit, and DevOps — Al_Grigor · 2026-07-27
- Analyzing Hugging Face Business Model and Testing Kimi K3 for Video Editing — NielsRogge · 2026-07-27
- Stopful ships a travel MCP server that turns an agent’s road trip plan into an editable map — AffectionateGain3245 · 2026-07-27
- Production agent pipelines need to split human rejection from execution failure — mark_automates · 2026-07-27
- OpenAI splits Codex and ChatGPT Work into code-first and knowledge-work products — johnseach · 2026-07-27
- Arena screenshot says Gemini 3.5 Pro beats Opus 5 in two tests — Last_Conclusion_8984 · 2026-07-27