code_graph_index
Index a repository's Python and JS/TS files into a local SQLite symbol graph for use with code analysis tools. Run once before read tools to enable symbol, import, and inheritance queries.
Instructions
Index a repository's Python + JS/TS files into a local SQLite symbol graph
(symbols, import/inherit edges, per-file stats). Run once before the read
tools. Pure stdlib ast — no network, no Postgres, no external CLI.
repo_root (required): the directory to index. db_path: override the graph
DB location (default $WILLOW_HOME/code_graph/graph.db, or WILLOW_CODE_GRAPH_DB).
force: reserved (the indexer upserts, so re-running is already idempotent).
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| force | No | ||
| app_id | Yes | ||
| db_path | No | ||
| repo_root | Yes |