adding in ability to provide per repo hints (#32)

* adding in ability to provide per repo hints

* tidy up test
This commit is contained in:
Michael Neale
2024-09-04 16:18:01 +10:00
committed by GitHub
parent bb8966bb02
commit 13db5150bd
2 changed files with 10 additions and 1 deletions
+6 -1
View File
@@ -34,7 +34,12 @@ class Developer(Toolkit):
def system(self) -> str:
"""Retrieve system configuration details for developer"""
return Message.load("prompts/developer.jinja").text
hints_path = Path('.goosehints')
system_prompt = Message.load("prompts/developer.jinja").text
if hints_path.is_file():
goosehints = hints_path.read_text()
system_prompt = f"{system_prompt}\n\nHints:\n{goosehints}"
return system_prompt
@tool
def update_plan(self, tasks: List[dict]) -> List[dict]: