Index code by syntax boundaries (functions, classes), with file path, symbol names and docstrings as metadata; also index documentation, issues and commit messages.
Retrieval: hybrid search (identifiers need exact matching), a code-aware embedding model, and graph-aware expansion that follows references to definitions and callers; rerank and assemble context with file paths and line numbers.
Freshness: incremental re-indexing on commits or pull requests, with per-branch handling.
Safety and quality: respect repository permissions, run answers or generated changes through tests where possible, and evaluate on real developer questions with checks such as whether the cited files are correct.
Loading…