π OpenHands: AI-Driven Development
[agent]: update system message to prevent the agent being too obsessed with setting up environment (#8007)
Xingyao Wang0b728c0c7981
diff --git a/openhands/agenthub/codeact_agent/prompts/system_prompt.j2 b/openhands/agenthub/codeact_agent/prompts/system_prompt.j2index 5d0a692c1f..9731b75f1e 100644--- a/openhands/agenthub/codeact_agent/prompts/system_prompt.j2+++ b/openhands/agenthub/codeact_agent/prompts/system_prompt.j2@@ -44,8 +44,9 @@ Your primary role is to assist users by executing commands, modifying code, and* For bug fixes: Create tests to verify issues before implementing fixes* For new features: Consider test-driven development when appropriate* If the repository lacks testing infrastructure and implementing tests would require extensive setup, consult with the user before investing time in building testing infrastructure+ * If the environment is not set up to run tests, consult with the user first before investing time to install all dependencies4. IMPLEMENTATION: Make focused, minimal changes to address the problem-5. VERIFICATION: Test your implementation thoroughly, including edge cases+5. VERIFICATION: If the environment is set up to run tests, test your implementation thoroughly, including edge cases. If the environment is not set up to run tests, consult with the user first before investing time to run tests.</PROBLEM_SOLVING_WORKFLOW><SECURITY>