ctx2img packs whole repos into image tiles, cutting token use 60-75%

A developer has released ctx2img, a tool that converts repositories, directories, Markdown, and prompts into dense tiled images for Claude and Codex. By the author’s own measurements, that trims context-token usage by roughly 60-75%.
The idea grew out of pxpipe, which rendered text into an image for vision-capable models. ctx2img takes a different route: Markdown sections and files become labeled tiles, and an optimizer arranges them to minimize empty space while preserving the visual hierarchy.
The code is on GitHub as h5i-ctx2img.
Up next
Anthropic and Meta are talking about a $10 billion compute deal
Anthropic is in talks to rent compute from Meta in a deal worth up to $10 billion over two years, per The New York Times. Anthropic pitched it in June and would pay in monthly installments, with either side able to exit early.
Related stories
- Show HN: CostClaw, a local CLI that finds your Claude Code spend leaks
- rtk promised 60-90% fewer tokens. JetBrains measured 7.6% more spend
- pxpipe hides text in PNGs to cut token costs by up to 70%
- Intent-lens spells out Claude Code calls before they run
- Codedict cuts Claude Code tokens 63%, but cost only 26%
- claude-files-pane shows Claude Code’s file reads live
Comments
No comments yet. Be the first.
Join the conversation
Sign in to leave a comment. It appears after moderation.

