diff --git a/aider/commands.py b/aider/commands.py index 0c4340730..bdecfc54a 100644 --- a/aider/commands.py +++ b/aider/commands.py @@ -864,7 +864,7 @@ class Commands: return self._generic_chat_command(args, "ask") def cmd_code(self, args): - "Ask for changes to your code using the best edit format" + "Ask for changes to your code" return self._generic_chat_command(args, self.coder.main_model.edit_format) def _generic_chat_command(self, args, edit_format): diff --git a/aider/website/docs/config/options.md b/aider/website/docs/config/options.md index a95f060ba..331ec13e2 100644 --- a/aider/website/docs/config/options.md +++ b/aider/website/docs/config/options.md @@ -165,6 +165,9 @@ Aliases: ### `--edit-format EDIT_FORMAT` Specify what edit format the LLM should use (default depends on model) Environment variable: `AIDER_EDIT_FORMAT` +Aliases: + - `--edit-format EDIT_FORMAT` + - `--chat-mode EDIT_FORMAT` ### `--weak-model WEAK_MODEL` Specify the model to use for commit messages and chat history summarization (default depends on --model) diff --git a/aider/website/docs/usage/commands.md b/aider/website/docs/usage/commands.md index 930c3b815..30e9c6461 100644 --- a/aider/website/docs/usage/commands.md +++ b/aider/website/docs/usage/commands.md @@ -19,6 +19,7 @@ cog.out(get_help_md()) | **/chat-mode** | Switch to a new chat mode | | **/clear** | Clear the chat history | | **/clipboard** | Add image/text from the clipboard to the chat (optionally provide a name for the image) | +| **/code** | Ask for changes to your code | | **/commit** | Commit edits to the repo made outside the chat (commit message optional) | | **/diff** | Display the diff of changes since the last message | | **/drop** | Remove files from the chat session to free up context space | diff --git a/aider/website/docs/usage/modes.md b/aider/website/docs/usage/modes.md index f1538fd54..5d13e45f2 100644 --- a/aider/website/docs/usage/modes.md +++ b/aider/website/docs/usage/modes.md @@ -13,7 +13,7 @@ Aider has 3 different chat modes: - `help` - Aider will answer questions about using aider, configuring, troubleshooting, etc. By default, aider starts in "code" mode. As you are talking, you can -send messages in other modes using `/code`, `/ask`, and `/help` commands: +send individual messages in a specific mode using `/code`, `/ask`, and `/help` commands:
@@ -53,7 +53,7 @@ This function uses recursion to calculate the factorial. It's been added to your
Using `/code`, `/ask`, and `/help` applies just to that particular message. -Your next message will go back to code mode. +Your next message will go back to the active mode (usually "code" mode by default). You can switch between the modes in a sticky way with the `/chat-mode ` command: @@ -65,4 +65,3 @@ with the `/chat-mode ` command: ``` Or you can launch aider in one of the modes with the `--chat-mode ` switch. -