You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
- Build dependency graph once, pass to both computeHotPaths and connectedComponents
- Return explicit error when traceTo is set but indexer is missing
- Document directed-only limitation in traceTo description
- Switch BFS from queue.shift() (O(n)) to index-based (O(1))
- Require 2+ path segments for subsystem labels (avoid "packages" alone)
- Track traceTo adapter test gap in scratchpad
Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
Copy file name to clipboardExpand all lines: .claude/scratchpad.md
+1Lines changed: 1 addition & 0 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -25,6 +25,7 @@
25
25
26
26
## Test Gaps
27
27
28
+
-**RefsAdapter integration test with `traceTo`.** The `traceTo` path tracing feature is tested at the algorithm level (shortestPath in graph.test.ts) but not at the adapter level. Needs a test that constructs RefsAdapter with a mock indexer, calls `execute()` with `traceTo`, and verifies the path output format. Also needs a test for the error case when indexer is missing.
28
29
-**InspectAdapter integration test with PatternMatcher.** The InspectAdapter test constructs without a `patternMatcher` — the AST path is never exercised through the MCP layer. Needs a test that constructs `InspectAdapter` with `createPatternMatcher()`, mocks the search service, calls `execute()`, and verifies AST-enhanced results flow through. Requires mock search service setup — larger integration test scope.
Copy file name to clipboardExpand all lines: website/content/latest-version.ts
+4-4Lines changed: 4 additions & 4 deletions
Original file line number
Diff line number
Diff line change
@@ -4,10 +4,10 @@
4
4
*/
5
5
6
6
exportconstlatestVersion={
7
-
version: '0.10.5',
8
-
title: 'AST-Based Pattern Analysis',
7
+
version: '0.10.6',
8
+
title: 'Graph Algorithms for dev_map and dev_refs',
9
9
date: 'March 31, 2026',
10
10
summary:
11
-
'dev_patterns uses tree-sitter AST queries for more accurate detection of error handling, imports, and type coverage across .ts, .tsx, .js, .jsx files.',
Copy file name to clipboardExpand all lines: website/content/updates/index.mdx
+15Lines changed: 15 additions & 0 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -9,6 +9,21 @@ What's new in dev-agent. We ship improvements regularly to help AI assistants un
9
9
10
10
---
11
11
12
+
## v0.10.6 — Graph Algorithms for dev_map and dev_refs
13
+
14
+
*March 31, 2026*
15
+
16
+
**PageRank-based file ranking, subsystem detection, and dependency path tracing.**
17
+
18
+
-`dev_map` hot paths now use PageRank over the weighted dependency graph — files depended on by other important files rank higher than files with many shallow references
19
+
-`dev_map` shows connected subsystems: groups of interdependent files identified via graph analysis
20
+
-`dev_refs` new `traceTo` parameter: `dev_refs { name: "authenticate", traceTo: "src/database.ts" }` → traces the shortest dependency chain between files
21
+
- Weighted edges with sqrt dampening (inspired by [aider's repo map](https://github.com/Aider-AI/aider))
22
+
- PageRank: 2,000 nodes + 10,000 edges in 4ms — no performance impact
23
+
- All algorithms hand-rolled (~230 lines), no new dependencies
0 commit comments