Aider Commands & Prompt Reference
43 commands & parameters · 1 categories · Source: Aider Docs — In-chat commands
Aider is a chat-first pair programmer for your terminal, and nearly everything you do beyond plain conversation happens through its in-chat slash commands: adding and dropping files, committing, undoing, switching models, and running shell commands without leaving the session. This page lists the command set from the official Aider documentation.
The core loop is /add to bring files into the chat, plain prompts to request changes, and /diff or /undo to inspect and roll back what Aider committed. /run and /test feed command output back into the conversation, which is the fastest way to hand the model an error to fix.
All Commands
Slash Commands (43)
| Command / Syntax | What it does | Notes |
|---|---|---|
| /add | Add files to the chat so aider can edit them or review them in detail | Add files to the chat so aider can edit them or review them in detail |
| /architect | Enter architect/editor mode using 2 different models. If no prompt provided, switches | Enter architect/editor mode using 2 different models. If no prompt provided, switches to architect/editor mode. |
| /ask | Ask questions about the code base without editing any files. If no prompt provided, switches | Ask questions about the code base without editing any files. If no prompt provided, switches to ask mode. |
| /chat-mode | Switch to a new chat mode | Switch to a new chat mode |
| /clear | Clear the chat history | Clear the chat history |
| /code | Ask for changes to your code. If no prompt provided, switches to code mode | Ask for changes to your code. If no prompt provided, switches to code mode. |
| /commit | Commit edits to the repo made outside the chat (commit message optional) | Commit edits to the repo made outside the chat (commit message optional) |
| /context | Enter context mode to see surrounding code context. If no prompt provided, switches to context | Enter context mode to see surrounding code context. If no prompt provided, switches to context mode. |
| /copy | Copy the last assistant message to the clipboard | Copy the last assistant message to the clipboard |
| /copy-context | Copy the current chat context as markdown, suitable to paste into a web UI | Copy the current chat context as markdown, suitable to paste into a web UI |
| /diff | Display the diff of changes since the last message | Display the diff of changes since the last message |
| /drop | Remove files from the chat session to free up context space | Remove files from the chat session to free up context space |
| /edit | Alias for /editor: Open an editor to write a prompt | Alias for /editor: Open an editor to write a prompt |
| /editor | Open an editor to write a prompt | Open an editor to write a prompt |
| /editor-model | Switch the Editor Model to a new LLM | Switch the Editor Model to a new LLM |
| /exit | Exit the application | Exit the application |
| /git | Run a git command (output excluded from chat) | Run a git command (output excluded from chat) |
| /help | Ask questions about aider | Ask questions about aider |
| /lint | Lint and fix in-chat files or all dirty files if none in chat | Lint and fix in-chat files or all dirty files if none in chat |
| /load | Load and execute commands from a file | Load and execute commands from a file |
| /ls | List all known files and indicate which are included in the chat session | List all known files and indicate which are included in the chat session |
| /map | Print out the current repository map | Print out the current repository map |
| /map-refresh | Force a refresh of the repository map | Force a refresh of the repository map |
| /model | Switch the Main Model to a new LLM | Switch the Main Model to a new LLM |
| /models | Search the list of available models | Search the list of available models |
| /multiline-mode | Toggle multiline mode (swaps behavior of Enter and Meta+Enter) | Toggle multiline mode (swaps behavior of Enter and Meta+Enter) |
| /ok | Alias for /code Ok, please go ahead and make those changes. (any args are appended) | Alias for /code Ok, please go ahead and make those changes. (any args are appended) |
| /paste | Paste image/text from the clipboard into the chat. Optionally provide a name for the image | Paste image/text from the clipboard into the chat. Optionally provide a name for the image. |
| /quit | Exit the application | Exit the application |
| /read-only | Add files to the chat that are for reference only, or turn added files to read-only | Add files to the chat that are for reference only, or turn added files to read-only |
| /reasoning-effort | Set the reasoning effort level (values: number or low/medium/high depending on model) | Set the reasoning effort level (values: number or low/medium/high depending on model) |
| /report | Report a problem by opening a GitHub Issue | Report a problem by opening a GitHub Issue |
| /reset | Drop all files and clear the chat history | Drop all files and clear the chat history |
| /run | Run a shell command and optionally add the output to the chat (alias: !) | Run a shell command and optionally add the output to the chat (alias: !) |
| /save | Save commands to a file that can reconstruct the current chat session's files | Save commands to a file that can reconstruct the current chat session's files |
| /settings | Print out the current settings | Print out the current settings |
| /test | Run a shell command and add the output to the chat on non-zero exit code | Run a shell command and add the output to the chat on non-zero exit code |
| /think-tokens | Set the thinking token budget, eg: 8096, 8k, 10.5k, 0.5M, or 0 to disable | Set the thinking token budget, eg: 8096, 8k, 10.5k, 0.5M, or 0 to disable. |
| /tokens | Report on the number of tokens used by the current chat context | Report on the number of tokens used by the current chat context |
| /undo | Undo the last git commit if it was done by aider | Undo the last git commit if it was done by aider |
| /voice | Record and transcribe voice input | Record and transcribe voice input |
| /weak-model | Switch the Weak Model to a new LLM | Switch the Weak Model to a new LLM |
| /web | Scrape a webpage, convert to markdown and send in a message | Scrape a webpage, convert to markdown and send in a message |
Frequently Asked Questions
How do I give Aider the right files to edit?
Use /add to bring files into the chat and /drop to remove them. Aider edits only what is in the chat, so a tight file set gives better results than adding the whole repository.
Can I undo a change Aider made?
Yes. Aider commits its edits to git, and /undo reverts the last Aider commit. /diff shows the change before you decide.
How do I hand Aider a failing test?
/test runs your configured test command and puts the output into the chat, so the next prompt can simply ask Aider to fix the failure it just saw.
Every entry on this page is a literal, typeable token taken from the official documentation linked above. Command sets in AI tools change quickly - the in-product command menu is always authoritative for your installed version.