Local-first codebase indexing - Anchor Docs
Build a local SQLite codebase index for AI coding agents with files, chunks, symbols, tests, architecture patterns, and safe sanitized snippets.
Agents need current-code evidence, but sending the whole repo into every prompt is noisy, expensive, and often impossible.
- Indexes tracked and non-ignored local files while excluding generated, private, binary, and secret-like paths.
- Stores sanitized chunks, symbols, imports, test links, and architecture components in local SQLite.
- Ranks exact file and symbol evidence higher than loose text matches to keep context compact.
anchor index-code
anchor architecture --file src/api/routes.ts
anchor test-command src/api/routes.ts