spatial_nearby
Find files related to a given file by identifying those topologically nearby in the project's import and call graph, ranked by recent activity. Helps navigate code dependencies efficiently.
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 |