indexer
code_context_agent.indexer ¶
Deterministic indexing pipeline for code analysis without LLM invocations.
Runs static analysis tools (ripgrep, semgrep, radon, vulture, knip, repomix), git history analysis, and GitNexus graph indexing. All external tool calls are graceful -- if a tool is missing the step is skipped and indexing continues.
build_index async ¶
Build a deterministic index of a codebase without LLM invocations.
Pipeline: 1. File manifest via ripgrep 1a. Write file manifest to disk 2. Language detection from file extensions 3. GitNexus analyze (graph indexing) 4. Git hotspots + co-changes -> JSON files 5. Repomix compressed signatures 6. Repomix orientation 7. BM25 index prebuild 8. Semgrep auto 9. Semgrep OWASP 10. Type checker 11. Linter 12. Complexity analysis 13. Dead code (Python) 14. Dead code (TypeScript) 15. Dependencies 16. Generate heuristic_summary.json
Parameters:
| Name | Type | Description | Default |
|---|---|---|---|
repo_path | Path | Path to the repository root. | required |
output_dir | Path | None | Where to save artifacts (default: repo_path/.code-context/). | None |
quiet | bool | Suppress progress output. | False |