← All projects
Project record1 mention
Originally shared on Hacker News

Code index tool

A code index tool that finds symbols in a codebase and creates a single-table SQLite database for querying. It uses tree-sitter to parse the AST and adds each symbol with its kind (function, class, argument, etc.) to the database. It works with TypeScript, with C and PHP support in progress.

Last shared
01 / The problem

What it addresses

AI coding agents like Claude Code try to guess patterns with grep and often come back with empty results; the tool prevents these fruitless searches.

02 / Source history

Shared over time

Each entry reflects what was shared on that date. Details may have changed since then.

  1. Code index tool

    A code index tool that finds symbols in a codebase and creates a single-table SQLite database for querying. It uses tree-sitter to parse the AST and adds each symbol with its kind (function, class, argument, etc.) to the database. It works with TypeScript, with C and PHP support in progress.

    Problem: AI coding agents like Claude Code try to guess patterns with grep and often come back with empty results; the tool prevents these fruitless searches.

    Posted by @ebcode · Original source ↗

    Source text · @ebcode · · Source ↗

    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.