Built-in Commands Reference
AiderDesk provides a set of built-in commands that you can use in the prompt field to perform various actions quickly. To use a command, simply type /
followed by the command name.
Core Commands
- /add: Adds one or more files to the chat context. You can specify file paths separated by spaces.
- Example:
/add src/main.js src/utils.js
- Example:
- /drop: Removes one or more files from the chat context.
- Example:
/drop src/main.js
- Example:
- /read-only: Adds files to the context in read-only mode. Aider will use these files for reference but will not attempt to edit them.
- Example:
/read-only docs/api.md
- Example:
- /run: Executes a shell command and optionally adds the output to the chat.
- Example:
/run ls -l
- Example:
- /test: Runs the predefined test command for your project.
- Example:
/test
- Example:
Chat & Context Management
- /clear: Clears the entire chat history and drops all files from the context.
- /clear-logs: Removes only log messages (info, warnings, errors) from the chat, keeping the user/AI conversation intact.
- /compact: Summarizes the current conversation to reduce token usage while preserving context.
- /copy-context: Copies the current chat context to your clipboard in a markdown format suitable for pasting into web UIs like ChatGPT or Claude.
- /tokens: Reports the number of tokens currently being used by the chat context, broken down by files, messages, and repo map.
Mode Switching
- /code: Switches to Code Mode for direct coding requests.
- /agent: Switches to Agent Mode for autonomous task execution.
- /ask: Switches to Ask Mode to ask questions about the code without making changes.
- /architect: Switches to Architect Mode for planning and executing large-scale changes.
- /context: Switches to Context Mode, where Aider will automatically add relevant files based on your prompt.
Model & Aider Control
- /model: Opens the model selector to change the AI model on the fly.
- Example:
/model openai/gpt-4.1
- Example:
- /reasoning-effort: Sets the reasoning effort level for the model (e.g.,
low
,medium
,high
).- Example:
/reasoning-effort high
- Example:
- /think-tokens: Sets the thinking token budget for models that support it.
- Example:
/think-tokens 8k
- Example:
- /undo: Undoes the last git commit if it was made by Aider.
- /redo: Re-runs the last user prompt.
- /edit-last: Allows you to edit your last message and re-submit it.
Other Utilities
- /web: Scrapes the content of a URL and adds it to the chat.
- Example:
/web https://aider.chat/docs/
- Example:
- /map: Prints the current repository map in the chat.
- /map-refresh: Forces a refresh of the repository map.
- /commit: Commits any unstaged changes in your repository.
- /init: Initializes a
AGENTS.md
rule file for your project (only available in Agent Mode).