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 / SyntaxWhat it doesNotes
/addAdd files to the chat so aider can edit them or review them in detailAdd files to the chat so aider can edit them or review them in detail
/architectEnter architect/editor mode using 2 different models. If no prompt provided, switchesEnter architect/editor mode using 2 different models. If no prompt provided, switches to architect/editor mode.
/askAsk questions about the code base without editing any files. If no prompt provided, switchesAsk questions about the code base without editing any files. If no prompt provided, switches to ask mode.
/chat-modeSwitch to a new chat modeSwitch to a new chat mode
/clearClear the chat historyClear the chat history
/codeAsk for changes to your code. If no prompt provided, switches to code modeAsk for changes to your code. If no prompt provided, switches to code mode.
/commitCommit edits to the repo made outside the chat (commit message optional)Commit edits to the repo made outside the chat (commit message optional)
/contextEnter context mode to see surrounding code context. If no prompt provided, switches to contextEnter context mode to see surrounding code context. If no prompt provided, switches to context mode.
/copyCopy the last assistant message to the clipboardCopy the last assistant message to the clipboard
/copy-contextCopy the current chat context as markdown, suitable to paste into a web UICopy the current chat context as markdown, suitable to paste into a web UI
/diffDisplay the diff of changes since the last messageDisplay the diff of changes since the last message
/dropRemove files from the chat session to free up context spaceRemove files from the chat session to free up context space
/editAlias for /editor: Open an editor to write a promptAlias for /editor: Open an editor to write a prompt
/editorOpen an editor to write a promptOpen an editor to write a prompt
/editor-modelSwitch the Editor Model to a new LLMSwitch the Editor Model to a new LLM
/exitExit the applicationExit the application
/gitRun a git command (output excluded from chat)Run a git command (output excluded from chat)
/helpAsk questions about aiderAsk questions about aider
/lintLint and fix in-chat files or all dirty files if none in chatLint and fix in-chat files or all dirty files if none in chat
/loadLoad and execute commands from a fileLoad and execute commands from a file
/lsList all known files and indicate which are included in the chat sessionList all known files and indicate which are included in the chat session
/mapPrint out the current repository mapPrint out the current repository map
/map-refreshForce a refresh of the repository mapForce a refresh of the repository map
/modelSwitch the Main Model to a new LLMSwitch the Main Model to a new LLM
/modelsSearch the list of available modelsSearch the list of available models
/multiline-modeToggle multiline mode (swaps behavior of Enter and Meta+Enter)Toggle multiline mode (swaps behavior of Enter and Meta+Enter)
/okAlias 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)
/pastePaste image/text from the clipboard into the chat. Optionally provide a name for the imagePaste image/text from the clipboard into the chat. Optionally provide a name for the image.
/quitExit the applicationExit the application
/read-onlyAdd files to the chat that are for reference only, or turn added files to read-onlyAdd files to the chat that are for reference only, or turn added files to read-only
/reasoning-effortSet 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)
/reportReport a problem by opening a GitHub IssueReport a problem by opening a GitHub Issue
/resetDrop all files and clear the chat historyDrop all files and clear the chat history
/runRun 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: !)
/saveSave commands to a file that can reconstruct the current chat session's filesSave commands to a file that can reconstruct the current chat session's files
/settingsPrint out the current settingsPrint out the current settings
/testRun a shell command and add the output to the chat on non-zero exit codeRun a shell command and add the output to the chat on non-zero exit code
/think-tokensSet the thinking token budget, eg: 8096, 8k, 10.5k, 0.5M, or 0 to disableSet the thinking token budget, eg: 8096, 8k, 10.5k, 0.5M, or 0 to disable.
/tokensReport on the number of tokens used by the current chat contextReport on the number of tokens used by the current chat context
/undoUndo the last git commit if it was done by aiderUndo the last git commit if it was done by aider
/voiceRecord and transcribe voice inputRecord and transcribe voice input
/weak-modelSwitch the Weak Model to a new LLMSwitch the Weak Model to a new LLM
/webScrape a webpage, convert to markdown and send in a messageScrape 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.