What this thread does
Do first: use /add for files Aider should edit, then /ls to inspect membership.
Short answer
File membership and chat history have separate commands. Reference-only files can be added with /read-only.
What to do
| In-chat command | Action |
|---|---|
/add | Include files for editing or detailed review |
/read-only | Add reference files or turn already-added files into read-only files |
/drop | Remove files from the session to free context space |
/ls | List known files and mark those included in chat |
/tokens | Report token use in the current context |
/map | Show the current repository map |
/map-refresh | Force the repository map to refresh |
/clear | Clear chat history |
/reset | Drop all files and clear history |
/save | Save commands that reconstruct the session's files |
/load | Load and execute commands from a file |
Use the membership commands as the coding task moves to different files. Use /tokens to inspect context use after adjusting membership.
Limits and open questions
- The command reference gives no fixed file-count or token budget for these commands.
/clearis documented as clearing history; use/dropfor file removal or/resetfor both.
Not for: Claude Code context management; Aider model-selection options.
Sources
- Aider official documentation, Aider-AI.
Checked
2026-11-16; read the linked Aider documentation page, including the sections described above; no command was run.
Started from a post by @Aider, packaged by the editor. Original post