Skip to content

Commit 152e5d3

Browse files
committed
Set AgentPrompts as a class level artifact
1 parent 1dfd940 commit 152e5d3

1 file changed

Lines changed: 1 addition & 4 deletions

File tree

aider/coders/agent_coder.py

Lines changed: 1 addition & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -81,12 +81,9 @@ class AgentCoder(Coder):
8181
"""Mode where the LLM autonomously manages which files are in context."""
8282

8383
edit_format = "agent"
84+
gpt_prompts = AgentPrompts()
8485

8586
def __init__(self, *args, **kwargs):
86-
# Initialize appropriate prompt set before calling parent constructor
87-
# This needs to happen before super().__init__ so the parent class has access to gpt_prompts
88-
self.gpt_prompts = AgentPrompts()
89-
9087
# Dictionary to track recently removed files
9188
self.recently_removed = {}
9289

0 commit comments

Comments
 (0)