From c5d51d62c426a4300e840db0253f4fd2e02fa42f Mon Sep 17 00:00:00 2001 From: Paul Gauthier Date: Mon, 9 Dec 2024 15:30:01 -0800 Subject: [PATCH] feat: add architect command and improve coder class documentation --- aider/coders/editor_editblock_coder.py | 1 + aider/coders/editor_whole_coder.py | 1 + aider/commands.py | 7 +++++++ 3 files changed, 9 insertions(+) diff --git a/aider/coders/editor_editblock_coder.py b/aider/coders/editor_editblock_coder.py index 301ab14af..98628ed77 100644 --- a/aider/coders/editor_editblock_coder.py +++ b/aider/coders/editor_editblock_coder.py @@ -3,5 +3,6 @@ from .editor_editblock_prompts import EditorEditBlockPrompts class EditorEditBlockCoder(EditBlockCoder): + "A coder that uses search/replace blocks, focused purely on editing files." edit_format = "editor-diff" gpt_prompts = EditorEditBlockPrompts() diff --git a/aider/coders/editor_whole_coder.py b/aider/coders/editor_whole_coder.py index d3b4d278e..9f37a3698 100644 --- a/aider/coders/editor_whole_coder.py +++ b/aider/coders/editor_whole_coder.py @@ -3,5 +3,6 @@ from .wholefile_coder import WholeFileCoder class EditorWholeFileCoder(WholeFileCoder): + "A coder that operates on entire files, focused purely on editing files." edit_format = "editor-whole" gpt_prompts = EditorWholeFilePrompts() diff --git a/aider/commands.py b/aider/commands.py index 3e6ced299..864e07128 100644 --- a/aider/commands.py +++ b/aider/commands.py @@ -103,6 +103,13 @@ class Commands: ("help", "Get help about using aider (usage, config, troubleshoot)."), ("ask", "Ask questions about your code without making any changes."), ("code", "Ask for changes to your code (using the best edit format)."), + ( + "architect", + ( + "Work with an architect model to design code changes, and an editor to make" + " them." + ), + ), ] )