Wednesday, October 21, 2026 Today’s Paper
Log in Join free
Vol. I · No. 22 Texas Edition
Wednesday, Oct 21
Texas first. Then the world.
Always free Updated 3 minutes ago
Read. React. Discuss.
Tech

Show HN: I Cut my Agent Tokens By 50%

By iohotspot 2 min read 2 views 0 comments

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…

Hacker News (Newest) Original story · news.ycombinator.com
Read the full story

Discussion (0)

No comments yet. Start the conversation!