Skip to content

developer-tools

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

Claude News

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.

Related stories

  1. Show HN: CostClaw, a local CLI that finds your Claude Code spend leaks
  2. rtk promised 60-90% fewer tokens. JetBrains measured 7.6% more spend
  3. pxpipe hides text in PNGs to cut token costs by up to 70%
  4. Claude helped make claude.ai 3x faster in two weeks
  5. 57% of public Claude Code subagents inherit Bash
  6. Toolog keeps a forensic log of Claude Code tool calls

Comments

No comments yet. Be the first.

Join the conversation

Sign in with Google to leave a comment. Your name and avatar come from your Google profile, and the comment appears after moderation.

We only use your name and avatar from Google. We never store your email address.