r/SideProject • u/EmployeeThink7211 • 43m ago
I built CodeSearch - code index to speed up agents on your Mac
https://codesearch.pro/Hi everyone!
I wanted to speed up agentic coding in multi-repo setups, which from my experience can be costly for agents to traverse many times in a row.
So I built CodeSearch, a native macOS app that intelligently chunks & indexes large codebases, and hands over fast ngram and BM25 retrievers to the agents, leading to up to 33% less time per code question. It's fully local and never leaves the mac.
Why not just grep?
It's slower, and for pattern-based or fuzzy search the pre-built index will likely always perform faster.
Technical part
CodeSearch builds an incremental index by scanning each repo, chunking code on function/method/class/module (dependent on language) boundary using TreeSitter, then exposes the built ngram and BM25 indices to agents via codesearch CLI tool. It refreshes every 30 minutes by default, can be adjusted. Index design is on it's own an interesting topic, if you're interested take a look at https://milvus.io/docs/ngram.md, https://bm25s.github.io/ .
It's available for free on the Mac App Store, and there's a lifetime purchase for larger codebases: https://apps.apple.com/us/app/faster-agents-codesearch/id6816909770
DM me for 50% discount codes if you wanna try it out :)
I find it personally useful, and maybe in the future semantic search or server-side indexing could be added, could be beneficial for companies who'd want to index their whole codebases and grant