10 Repos That Conserve Your Token Usage — The Next New Thing
The Next New Thing’s Andrew Warner and Mat Nolen test a collection of GitHub projects aimed at one of the biggest costs in agentic coding: context and token usage. Ten repos get demoed on camera (plus one more flagged in the episode’s resource list), and for most of them Mat reports his own measurement next to the project’s claim. Routing around the bill Free LLM API — stacks the free tiers from multiple providers behind one interface and automatically switches to the next one when a tier runs out. Warner interviewed the founder, who says providers now pitch him for inclusion because they want to be the entry point where users experiment. Ships Mac, Windows, and Android apps. OmniRoute — one endpoint, hundreds of providers, free tier first. Unlike Free LLM API it also routes across your paid providers (Anthropic to OpenAI and on down the list) when a quota runs dry, using the RTK compression engine on the way through. The hosts saved it for the end because it folds most of the other tricks into a single gateway. Compressing what comes back Headroom — a compression layer that sits between your agent and the API and squeezes tool output on the way back: it shortens what you read, not what you write. Mat’s test compressed a file to roughly 37% of its size and he had no complaints — at times it beat the README’s numbers. Magic Compact — a lossless context compressor that swaps a large tool output for a one-line note and moves the payload to disk on the logic that context is expensive and disk is cheap, so move it rather than delete it. Mat ran it eight times and got identical results every time. Low profile at 147 stars, and the developer has paused it to build a successor around agent memory. PX Pipe — the viral experiment: render the context as images and have the model read the picture instead of the text. It worked, but accuracy slipped, especially on older or local models that read images poorly — and the failure mode is a hallucinated context. 7,000+ stars off the back of the X attention alone. LeanCTX — change one import line and compress prompts by dropping low-value filler words. The project claims 40–60% savings; Mat measured 52%. His caveat: you do not get to see exactly which words were thrown away. Keeping context out of the window Context Mode — keeps raw tool output out of the context window entirely, storing it in a local index the model queries when it needs the data. The README claims a 98% reduction; Mat measured around 95%, which he called a hit. Token Optimizer MCP — an MCP server that blocks expensive calls the agent has already made and points it back at what it already read, acting as a short-term memory layer. Watch this one: installing it turns off Claude Code’s trust prompt, which the hosts flag as a production no-no. Graphify — parses a codebase into a knowledge graph so the agent queries the map rather than opening files, and it builds that map with zero model tokens, so you can try it without spending anything. 100,000+ stars and a Y Combinator batch behind it. codebase-memory-mcp — listed in the episode’s resources as a local memory server for codebases; not demoed on camera. Writing less instead of cheaper Ponytail — the jaded senior developer sitting inside your agent: where an overeager junior installs a library and wraps it, this pushes the agent toward what the browser or the codebase already has. Mat measured the cheapest token usage of the batch, and it stayed on par with its claims. The takeaway The pattern across the roundup: most of these savings come from moving work out of the context window — to disk, to a local index, to a graph, or to another provider — rather than from making the model smarter. The two caveats worth remembering are the ones the hosts surfaced themselves: tools that strip context you cannot inspect, and tools that loosen your agent’s permission settings on install. ...