This commit is contained in:
Paul Gauthier 2025-01-10 15:08:15 -08:00
parent c939521f5f
commit f9c5cb73a2
3 changed files with 9 additions and 15 deletions

View file

@ -1061,18 +1061,15 @@ class Commands:
) )
def cmd_ask(self, args): def cmd_ask(self, args):
"""Ask questions about the code base without editing any files. """Ask questions about the code base without editing any files. If no prompt provided, switches to ask mode.""" # noqa
If no prompt is provided, switches to ask mode."""
return self._generic_chat_command(args, "ask") return self._generic_chat_command(args, "ask")
def cmd_code(self, args): def cmd_code(self, args):
"""Ask for changes to your code. """Ask for changes to your code. If no prompt provided, switches to code mode.""" # noqa
If no prompt is provided, switches to code mode."""
return self._generic_chat_command(args, self.coder.main_model.edit_format) return self._generic_chat_command(args, self.coder.main_model.edit_format)
def cmd_architect(self, args): def cmd_architect(self, args):
"""Enter architect mode to discuss high-level design and architecture. """Enter architect mode to discuss high-level design and architecture. If no prompt provided, switches to architect mode.""" # noqa
If no prompt is provided, switches to architect mode."""
return self._generic_chat_command(args, "architect") return self._generic_chat_command(args, "architect")
def _generic_chat_command(self, args, edit_format): def _generic_chat_command(self, args, edit_format):

View file

@ -1,6 +1,3 @@
{"event": "launched", "properties": {}, "user_id": "c42c4e6b-f054-44d7-ae1f-6726cc41da88", "time": 1736270699}
{"event": "no-repo", "properties": {}, "user_id": "c42c4e6b-f054-44d7-ae1f-6726cc41da88", "time": 1736270700}
{"event": "message_send_starting", "properties": {}, "user_id": "c42c4e6b-f054-44d7-ae1f-6726cc41da88", "time": 1736270700}
{"event": "no-repo", "properties": {}, "user_id": "c42c4e6b-f054-44d7-ae1f-6726cc41da88", "time": 1736270701} {"event": "no-repo", "properties": {}, "user_id": "c42c4e6b-f054-44d7-ae1f-6726cc41da88", "time": 1736270701}
{"event": "message_send_starting", "properties": {}, "user_id": "c42c4e6b-f054-44d7-ae1f-6726cc41da88", "time": 1736270701} {"event": "message_send_starting", "properties": {}, "user_id": "c42c4e6b-f054-44d7-ae1f-6726cc41da88", "time": 1736270701}
{"event": "exit", "properties": {"reason": "Completed --message"}, "user_id": "c42c4e6b-f054-44d7-ae1f-6726cc41da88", "time": 1736270730} {"event": "exit", "properties": {"reason": "Completed --message"}, "user_id": "c42c4e6b-f054-44d7-ae1f-6726cc41da88", "time": 1736270730}
@ -998,3 +995,6 @@
{"event": "launched", "properties": {}, "user_id": "c42c4e6b-f054-44d7-ae1f-6726cc41da88", "time": 1736550079} {"event": "launched", "properties": {}, "user_id": "c42c4e6b-f054-44d7-ae1f-6726cc41da88", "time": 1736550079}
{"event": "gui session", "properties": {}, "user_id": "c42c4e6b-f054-44d7-ae1f-6726cc41da88", "time": 1736550079} {"event": "gui session", "properties": {}, "user_id": "c42c4e6b-f054-44d7-ae1f-6726cc41da88", "time": 1736550079}
{"event": "exit", "properties": {"reason": "GUI session ended"}, "user_id": "c42c4e6b-f054-44d7-ae1f-6726cc41da88", "time": 1736550079} {"event": "exit", "properties": {"reason": "GUI session ended"}, "user_id": "c42c4e6b-f054-44d7-ae1f-6726cc41da88", "time": 1736550079}
{"event": "launched", "properties": {}, "user_id": "c42c4e6b-f054-44d7-ae1f-6726cc41da88", "time": 1736550370}
{"event": "gui session", "properties": {}, "user_id": "c42c4e6b-f054-44d7-ae1f-6726cc41da88", "time": 1736550370}
{"event": "exit", "properties": {"reason": "GUI session ended"}, "user_id": "c42c4e6b-f054-44d7-ae1f-6726cc41da88", "time": 1736550370}

View file

@ -22,14 +22,11 @@ cog.out(get_help_md())
|Command|Description| |Command|Description|
|:------|:----------| |:------|:----------|
| **/add** | Add files to the chat so aider can edit them or review them in detail | | **/add** | Add files to the chat so aider can edit them or review them in detail |
| **/architect** | Enter architect mode to discuss high-level design and architecture. | **/architect** | Enter architect mode to discuss high-level design and architecture. If no prompt provided, switches to architect mode. |
If no prompt is provided, switches to architect mode. | | **/ask** | Ask questions about the code base without editing any files. If no prompt provided, switches to ask mode. |
| **/ask** | Ask questions about the code base without editing any files.
If no prompt is provided, switches to ask mode. |
| **/chat-mode** | Switch to a new chat mode | | **/chat-mode** | Switch to a new chat mode |
| **/clear** | Clear the chat history | | **/clear** | Clear the chat history |
| **/code** | Ask for changes to your code. | **/code** | Ask for changes to your code. If no prompt provided, switches to code mode. |
If no prompt is provided, switches to code mode. |
| **/commit** | Commit edits to the repo made outside the chat (commit message optional) | | **/commit** | Commit edits to the repo made outside the chat (commit message optional) |
| **/copy** | Copy the last assistant message to the clipboard | | **/copy** | 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-context** | Copy the current chat context as markdown, suitable to paste into a web UI |