Repository navigation
Repo map tool with dependency graph and PageRank - #13
Conversation
AST extraction, dependency graph, PageRank ranking, and context-aware truncation for compact codebase navigation. The big differentiator.
Codebase-aware navigation tool that gives the model a ranked "table of contents" showing the most relevant files and symbols for a given query. Architecture: - symbolExtractor.ts: regex-based extraction (ISymbolExtractor interface allows tree-sitter swap later) - dependencyGraph.ts: import graph + iterative PageRank (20 iterations, damping 0.85) - symbolRanker.ts: TF-IDF (0.6) + PageRank (0.3) + recency (0.1) - repoIndex.ts: orchestrator with fdir crawling, content-hash caching, lazy build, auto-rebuild on >20% file changes - repoMap.ts: tool entry point (singleton index per session) Zero new dependencies — reuses fdir, crypto, fs from existing deps. The ISymbolExtractor interface is the upgrade seam for tree-sitter. All 1873 tests pass. Full workspace build clean.
|
Warning Rate limit exceeded
Your organization is not enrolled in usage-based pricing. Contact your admin to enable usage-based pricing to continue reviews beyond the rate limit, or try again in 6 minutes and 48 seconds. ⌛ How to resolve this issue?After the wait time has elapsed, a review can be triggered using the We recommend that you space out your commits to avoid hitting the rate limit. 🚦 How do rate limits work?CodeRabbit enforces hourly rate limits for each developer per organization. Our paid plans have higher rate limits than the trial, open-source and free plans. In all cases, we re-allow further reviews after a brief timeout. Please see our FAQ for further information. ℹ️ Review info⚙️ Run configurationConfiguration used: defaults Review profile: CHILL Plan: Pro Run ID: 📒 Files selected for processing (8)
✨ Finishing Touches🧪 Generate unit tests (beta)
Thanks for using CodeRabbit! It's free for OSS, and your support helps us grow. If you like it, consider giving us a shout-out. Comment |
Summary
The biggest feature — a codebase-aware navigation tool that pre-digests the project for the model.
ISymbolExtractorinterface for tree-sitter upgrade later)Zero new dependencies.
New files
packages/core/src/indexing/types.ts— shared interfacespackages/core/src/indexing/symbolExtractor.ts— regex extractionpackages/core/src/indexing/dependencyGraph.ts— import graph + PageRankpackages/core/src/indexing/symbolRanker.ts— TF-IDF + combined scoringpackages/core/src/indexing/repoIndex.ts— orchestrator + cachepackages/core/src/tools/repoMap.ts— tool entry pointTest plan
repo_mapquery against Delta-code's own codebase