repo_map
repo_mapGenerates a token-budgeted outline of a code repository, ranking files and key symbols by centrality to orient AI agents unfamiliar with the codebase.
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 approximates centrality via fanIn * 2 + fanOut + 0.1; symbol selection prefers exported declarations. Read-only; default budget 1024 tokens (char/4 approximation), cap 16384.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| projectId | No | ||
| projectRef | No | ||
| tokenBudget | No | ||
| maxFiles | No | ||
| maxSymbolsPerFile | No | ||
| focusFiles | No | ||
| pathGlob | No |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| toolName | Yes | ||
| projectId | Yes | ||
| rendered | Yes | ||
| files | Yes | ||
| tokenBudget | Yes | ||
| estimatedTokens | Yes | ||
| totalFilesIndexed | Yes | ||
| totalFilesEligible | Yes | ||
| truncatedByBudget | Yes | ||
| truncatedByMaxFiles | Yes | ||
| warnings | Yes | ||
| _hints | Yes |