top | item 45562929

(no title)

ebcode | 4 months ago

A “code index” tool that finds symbols in a codebase and creates a single table sqlite database for querying. It’s my second month using Claude Code, and I see a common pattern where Claude tries to guess patterns with grep, and often comes back with empty results. I’m writing the tool to prevent these fruitless searches. Using tree-sitter to parse the AST and add the symbols and what they are (function, class, argument, etc) to the db. I have it working with TypeScript, and am working on adding C and PHP.

discuss

order

good-idea|4 months ago

Aider builds something it calls a "repo map" that I believe is for a similar purpose. Might be worth taking a look!

I haven't used Claude Code, but recently switched to OpenCode. My token usage and cost is a lot higher, I'm not sure why yet, but I suspect Aider's approach is much more lean.

epolanski|4 months ago

Got a link?

ebcode|4 months ago

No, not yet. I'm planning on a proper Show HN, once C and PHP are implemented. But if you want to be updated when I release it, I just created an empty repo for it here: https://github.com/ebcode/indexer-c