repo_map
repo_mapGenerates a ranked outline of a codebase, highlighting key files and symbols to orient AI agents in unfamiliar projects. Focuses on dependencies and dependents using PageRank.
Instructions
Code-intelligence tool for repo orientation: emit a token-budgeted aider-style outline of the indexed project (ranked files + key symbols) as first-turn context for agents meeting an unfamiliar codebase. Ranking uses import-graph PageRank, personalized bidirectionally around focusFiles, focusRoutes, focusSymbols, or focusDatabaseObjects when supplied so nearby dependencies and dependents surface first. Symbol selection prefers exported declarations. Read-only; default budget 1024 tokens (char/4 approximation), cap 16384.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| maxFiles | No | ||
| pathGlob | No | ||
| projectId | No | ||
| focusFiles | No | ||
| projectRef | No | ||
| focusRoutes | No | ||
| tokenBudget | No | ||
| focusSymbols | No | ||
| maxSymbolsPerFile | No | ||
| focusDatabaseObjects | No |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| files | Yes | ||
| _hints | Yes | ||
| rendered | Yes | ||
| toolName | Yes | ||
| warnings | Yes | ||
| projectId | Yes | ||
| tokenBudget | Yes | ||
| estimatedTokens | Yes | ||
| totalFilesIndexed | Yes | ||
| truncatedByBudget | Yes | ||
| totalFilesEligible | Yes | ||
| truncatedByMaxFiles | Yes |