Review context retrieval
Collects what a reviewer needs beyond the diff: callers, definitions, related tests, docs and repository rules.
Sub-techniques
3
| ID | Name | Description |
|---|---|---|
V1033.001 | Repository map | A ranked map of symbols and files built from syntax trees. |
V1033.002 | Precise code navigation | Definitions and references from a compiler-grade index. |
V1033.003 | Cross-repository context | Look up how other services call or are called by the changed code. |
Craft it
- Index the repository with tree-sitter or SCIP on the default branch.
- For each changed symbol, retrieve definitions, callers and tests.
- Cap context by relevance, not file order.
Reverse engineer it
Signs that a codebase already runs this technique, and where to read how it is configured.
- SCIP index uploads, tree-sitter grammars or a repo-map cache in tooling.
Open-source packages
4
- tree-sitter tree-sitter/tree-sitter
- Aider Aider-AI/aider
- SCIP scip-code/scip
- LlamaIndex run-llama/llama_index