Generate Repo Map
repo_mapGenerate a ranked map of code definitions using PageRank on cross-file references to understand codebase structure, find entry points, or locate code related to specific files.
Instructions
Generate a ranked repository map of code definitions via PageRank over cross-file reference graphs. Useful for understanding codebase structure, discovering entry points, or finding code related to specific files or identifiers.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| verbose | No | ||
| focusFiles | No | Already-known files used as ranking anchor (x20 boost). Related code ranks higher; these files are excluded from output. | |
| tokenLimit | No | Maximum token count for the output map | |
| projectRoot | Yes | Absolute path to the repository root | |
| forceRefresh | No | Bypass tag cache and re-parse all files | |
| priorityFiles | No | Important files that receive a ranking boost (x5). Still included in output, unlike focusFiles. | |
| additionalFiles | No | Extra file paths to include in analysis beyond auto-discovered ones. | |
| excludeUnranked | No | Exclude files with zero PageRank from output | |
| priorityIdentifiers | No | Identifier names to boost in ranking (x10). Matches definitions across all files. |