/map
Prints the current repository map (an overview of the most important classes/functions in the repo).
/map prints the current repository map: a compact overview of the most important classes and functions in the git repo, including type info and signatures, which Aider also uses itself as context for the LLM. The map's size is controlled by --map-tokens (default 1k tokens); /map-refresh can rebuild it manually.
โ WHEN TO USE IT?
Get a quick overview of the project yourself
/map โ before deciding which files to add next with /add
Check what Aider currently "sees" as context about the repo
/map, to see which symbols from which files were included in the map
โ WHEN NOT TO?
Wanting to see a file's full source code
The docs describe the repo map as containing only the most important symbols with signatures, not the full code.
Better: Open the file directly or add it to the chat with /add to see the full content
Wanting an outdated map refreshed immediately
/map shows the currently existing map but doesn't force a rebuild.
Better: Use /map-refresh to rebuild the repository map immediately
SOURCES
- Aider Docs โ In-chat commands โ aider.chat
- Aider Docs โ Repository map โ aider.chat