spatial_nearby
Find files topologically near a given file, ranked by recent activity, using import and call relationships.
Instructions
v3.1.0 M4: Files topologically near a given file, ranked by recent activity. Candidate set = BFS distance ≤ 2 over the indexer graph (imports + call edges) ∪ same-neighborhood files. Ranking: (1 / (1 + bfs_dist)) × log(1 + visit_count_30d). Falls back to neighborhood-only if the indexer graph isn't built.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| k | No | Max neighbors to return (default 5) | |
| file_path | Yes | Project-relative file path |