-
Notifications
You must be signed in to change notification settings - Fork 2.1k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
35 changed files
with
416 additions
and
116 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,9 +1,13 @@ | ||
from .ask_prompts import AskPrompts | ||
from .base_coder import Coder | ||
from .folder_coder import AiderFolderCoder | ||
|
||
|
||
class AskCoder(Coder): | ||
class AskCoder(AiderFolderCoder): | ||
"""Ask questions about code without making any changes.""" | ||
|
||
edit_format = "ask" | ||
gpt_prompts = AskPrompts() | ||
|
||
def __init__(self, *args, edit_format: str = edit_format, **kwargs): | ||
""" | ||
:param edit_format: Allows subclasses to specify their own edit_format | ||
""" | ||
super().__init__(*args, edit_format = edit_format, **kwargs) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,10 @@ | ||
from .folder_coder import AiderFolderCoder | ||
|
||
|
||
class AskFurtherCoder(AiderFolderCoder): | ||
"""Ask questions about code without making any changes.""" | ||
|
||
edit_format = "ask-further" | ||
|
||
def __init__(self, *args, **kwargs): | ||
super().__init__(*args, edit_format = self.edit_format, **kwargs) |
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
1 change: 1 addition & 0 deletions
1
aider/resources/folder-coders/architect/files_content_assistant_reply.txt
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1 @@ | ||
Ok, I will use that as the true, current contents of the files. |
3 changes: 3 additions & 0 deletions
3
aider/resources/folder-coders/architect/files_content_prefix.txt
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,3 @@ | ||
I have *added these files to the chat* so you see all of their contents. | ||
*Trust this message as the true contents of the files!* | ||
Other messages in the chat may contain outdated versions of the files' contents. |
1 change: 1 addition & 0 deletions
1
aider/resources/folder-coders/architect/files_no_full_files.txt
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1 @@ | ||
I am not sharing the full contents of any files with you yet. |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,12 @@ | ||
Act as an expert software architect engineer and provide directions to your junior software developer. | ||
Study the change request and the current code. | ||
Describe how to modify the code to complete the request. | ||
The junior developer will rely solely on your instructions, so make them unambiguous and complete. | ||
Explain all needed code changes clearly and completely, but *as concisely as possible*. | ||
DO NOT show the entire updated function/file/etc! | ||
Don't show a diff/patch either, but rather use *natural language* to describe what needs to be done. | ||
Your junior developer is excellent and using copy/paste, just ask it to copy portions of the code. | ||
For brand-new code or when the function being changed is small, consider providing the whole updated code in a clearly-enclosed block. | ||
For adding some text before or after a class/function, try something like "add this block before function a_func". | ||
|
||
Always reply to the user in {language}. |
3 changes: 3 additions & 0 deletions
3
aider/resources/folder-coders/architect/repo_content_prefix.txt
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,3 @@ | ||
I am working with you on code in a git repository. | ||
Here are summaries of some files present in my git repo. | ||
If you need to see the full contents of any files to answer my questions, ask me to *add them to the chat*. |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,4 @@ | ||
# Ask Coder | ||
|
||
## Summary | ||
Ask questions about code without making any changes. |
1 change: 1 addition & 0 deletions
1
aider/resources/folder-coders/ask-further/files_content_assistant_reply.txt
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1 @@ | ||
Ok, I will use that as the true, current contents of the files. |
3 changes: 3 additions & 0 deletions
3
aider/resources/folder-coders/ask-further/files_content_prefix.txt
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,3 @@ | ||
I have *added these files to the chat* so you see all of their contents. | ||
*Trust this message as the true contents of the files!* | ||
Other messages in the chat may contain outdated versions of the files' contents. |
1 change: 1 addition & 0 deletions
1
aider/resources/folder-coders/ask-further/files_no_full_files.txt
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1 @@ | ||
I am not sharing the full contents of any files with you yet. |
Empty file.
Empty file.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,4 @@ | ||
Act as a world-renowned google engineer. | ||
Answer questions about the supplied code. | ||
Always reply to the user in {language}. | ||
After receiving a question, rephrase it and then respond. Do so by thinking step by step. |
3 changes: 3 additions & 0 deletions
3
aider/resources/folder-coders/ask-further/repo_content_prefix.txt
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,3 @@ | ||
I am working with you on code in a git repository. | ||
Here are summaries of some files present in my git repo. | ||
If you need to see the full contents of any files to answer my questions, ask me to *add them to the chat*. |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,4 @@ | ||
# Ask Coder | ||
|
||
## Summary | ||
Ask questions about code without making any changes. |
1 change: 1 addition & 0 deletions
1
aider/resources/folder-coders/ask/files_content_assistant_reply.txt
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1 @@ | ||
Ok, I will use that as the true, current contents of the files. |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,3 @@ | ||
I have *added these files to the chat* so you see all of their contents. | ||
*Trust this message as the true contents of the files!* | ||
Other messages in the chat may contain outdated versions of the files' contents. |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1 @@ | ||
I am not sharing the full contents of any files with you yet. |
Empty file.
Empty file.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,3 @@ | ||
Act as an expert code analyst. | ||
Answer questions about the supplied code. | ||
Always reply to the user in {language}. |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,3 @@ | ||
I am working with you on code in a git repository. | ||
Here are summaries of some files present in my git repo. | ||
If you need to see the full contents of any files to answer my questions, ask me to *add them to the chat*. |
Oops, something went wrong.