From c37e5b0ac1de2afae795310cef262a4a03d5fcc0 Mon Sep 17 00:00:00 2001 From: AI Christianson Date: Mon, 24 Feb 2025 19:56:47 -0500 Subject: [PATCH] optimize prompts --- ra_aid/tools/memory.py | 4 +++- ra_aid/tools/programmer.py | 6 ++++-- 2 files changed, 7 insertions(+), 3 deletions(-) diff --git a/ra_aid/tools/memory.py b/ra_aid/tools/memory.py index 86db4a3..f851ab5 100644 --- a/ra_aid/tools/memory.py +++ b/ra_aid/tools/memory.py @@ -58,7 +58,9 @@ _global_memory: Dict[ @tool("emit_research_notes") def emit_research_notes(notes: str) -> str: - """Use this when you have completed your research to share your notes in markdown format, no more than 500 words. + """Use this when you have completed your research to share your notes in markdown format. + + Keep your research notes information dense and no more than 300 words. Args: notes: REQUIRED The research notes to store diff --git a/ra_aid/tools/programmer.py b/ra_aid/tools/programmer.py index 7cd101c..b0b3781 100644 --- a/ra_aid/tools/programmer.py +++ b/ra_aid/tools/programmer.py @@ -60,9 +60,11 @@ def run_programming_task( The programmer sees only what you provide, no conversation history. - Give detailed instructions including multi-file tasks but do not write their code. + Give detailed instructions including multi-file tasks but do not write the code in the instructions. - The programmer cannot run commands. + Keep your instructions information dense and no more than 300 words. + + The programmer cannot run commands or see context other than related files and what you say in the instructions. If new files are created, emit them after finishing.