repomap walks the repo, ranks files by inbound import refs, prints symbols inline, cuts at a token budget. Orient before you read or search.
Real output from this repo, verified 2026-09-15. Toggle the budget.
A file is important when other files import it. Score per file:
| Signal | Weight | Source |
|---|---|---|
Import in-degree (refs) | 0.45 | Go blocks, Python, JS/TS, Rust, Ruby |
| Symbol count | 0.25 | Regex, first 200 lines |
| Size | 0.15 | Bytes, log scale |
| Symbol density | 0.05 | Symbols per byte |
Token estimate is bytes/4. Budget keeps top-N by score, always keeps rank 1.
| Flag | Effect |
|---|---|
--budget N | Max output tokens (default 4000, 0 = unlimited) |
--full | All files, no truncation (includes tests, vendor) |
--json | Machine-readable, same rank order |
--index | Searchable HTML page, no server |
-o FILE | Write to file |
--no-gitignore | Include ignored files (warning: huge) |