index_codebase
Index codebases to build dependency graphs for Haskell and ReScript. Supports incremental updates of changed files, with option for full re-index.
Instructions
Index a codebase to build the dependency graph. Supports Haskell and ReScript. Performs incremental indexing (only changed files) unless force_full is set. For Haskell, optionally uses hie-reader binary for rich type info; falls back to source parsing.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| root_path | Yes | Absolute path to the codebase root directory | |
| name | Yes | Name for this codebase (used in all subsequent queries) | |
| language | Yes | Programming language | |
| force_full | No | Force full re-index, ignoring mtime cache | |
| hie_dir | No | [Haskell only] Path to .hie files directory. If omitted, searches dist-newstyle/ |