cd /news/ai-agents/show-hn-i-cut-my-agent-tokens-by-50 · home › topics › ai-agents › article
[ARTICLE · art-149297] src=news.ycombinator.com ↗ pub= topic=ai-agents verified=true sentiment=↑ positive

Show HN: I Cut my Agent Tokens By 50%

IOServicesLabs released Indexio, an open-source Rust binary that indexes a codebase into an internal database and serves lookups to coding agents over MCP, reporting a 50%-60% reduction in token usage versus built-in regex search tools in its real-world testing. The tool falls back to regex lookups when a query is not in the index, and the team notes it underperforms regex for symbol lookups, though most agent work involved word strings rather than symbols. Indexio was inspired by CocoIndex and is available at github.com/IOServicesLabs/indexio.

by read2 min views3 publishedOct 11, 2026

This started by watching the built-in tool calls in Claude code. We noticed that a LOT of the time was being spent searching for lines of code with regex. This approach makes sense when you are working in an unknown environment, but we all work inside of some codebase structure and tracking. This took us down the rabbit hole of codebase indexing and led to us building Indexio. Indexio was built to eliminate the time and tokens agents waste rediscovering a codebase. Regex calls return lots of data each time to the context window which causes bloat over time with items that don't really matter. Since codebase work container mostly static files indexing them and quickly getting to data for discovery is what we were trying to solve.

Indexio index's the codebase to its internal DB and then returns what is needed via MCP when asked. We ran into some fun issues when trying to force the session to use a tool call for lookups so there is some aggressive tool call logic which attempts to override built-in lookup tools. If something isn't in the index it will just fallback to regex lookups.

The whole system is a single binary written in Rust for performance. In our real world testing we are seeing about 50%-60% reduction in token usage compared to the built-in tools, and near instant lookup times compared to multiple seconds for each regex lookup. One place that indexio does come up shorter than then regex is when looking up symbols. We found that most of the agent's work was done looking at strings of words rather than symbols, but if you have a workflow that is heavy in this specific situation just know it may not fit.

We opened sourced everything and would love to hear feedback. Huge Shout out to CocoIndex who gave us the inspiration for this idea.

[https://github.com/IOServicesLabs/indexio](https://github.com/IOServicesLabs/indexio)

Comments URL: [https://news.ycombinator.com/item?id=50047627](https://news.ycombinator.com/item?id=50047627)

Points: 2

── more in #ai-agents 4 stories · sorted by recency
── more on @ioserviceslabs 3 stories trending now
sponsored brought to you by zahid.host 4,200+ EU-deployed projects
reading about agents? ship yours in a single git push.

Run your AI side-project on zahid.host

EU-based hosting, git-push deploys, automatic HTTPS, no cold starts. Free tier with a custom domain — perfect for shipping the agent you just read about.

$git push zahid main
→ Live at https://your-agent.zahid.host ✓
Get free account → Pricing
from €0/mo · no card required
LIVE [news/show-hn-i-cut-my-age…] indexed:0 read:2min 2026-10-11 · —