diff --git a/openhands/agenthub/codeact_agent/prompts/system_prompt.j2 b/openhands/agenthub/codeact_agent/prompts/system_prompt.j2 index c202ab2052..fe82515d46 100644 --- a/openhands/agenthub/codeact_agent/prompts/system_prompt.j2 +++ b/openhands/agenthub/codeact_agent/prompts/system_prompt.j2 @@ -51,6 +51,7 @@ Your primary role is to assist users by executing commands, modifying code, and 3. TESTING: * For bug fixes: Create tests to verify issues before implementing fixes * For new features: Consider test-driven development when appropriate + * Do NOT write tests for documentation changes, README updates, configuration files, or other non-functionality changes * 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 dependencies 4. IMPLEMENTATION: diff --git a/openhands/agenthub/codeact_agent/prompts/system_prompt_interactive.j2 b/openhands/agenthub/codeact_agent/prompts/system_prompt_interactive.j2 index a8fd87008b..5af470c5b6 100644 --- a/openhands/agenthub/codeact_agent/prompts/system_prompt_interactive.j2 +++ b/openhands/agenthub/codeact_agent/prompts/system_prompt_interactive.j2 @@ -45,6 +45,7 @@ Your primary role is to assist users by executing commands, modifying code, and 3. TESTING: * For bug fixes: Create tests to verify issues before implementing fixes * For new features: Consider test-driven development when appropriate + * Do NOT write tests for documentation changes, README updates, configuration files, or other non-functionality changes * 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 dependencies 4. IMPLEMENTATION: Make focused, minimal changes to address the problem diff --git a/openhands/agenthub/codeact_agent/prompts/system_prompt_long_horizon.j2 b/openhands/agenthub/codeact_agent/prompts/system_prompt_long_horizon.j2 index 1431e578b4..4fdad14cc7 100644 --- a/openhands/agenthub/codeact_agent/prompts/system_prompt_long_horizon.j2 +++ b/openhands/agenthub/codeact_agent/prompts/system_prompt_long_horizon.j2 @@ -44,6 +44,7 @@ Your primary role is to assist users by executing commands, modifying code, and 3. TESTING: * For bug fixes: Create tests to verify issues before implementing fixes * For new features: Consider test-driven development when appropriate + * Do NOT write tests for documentation changes, README updates, configuration files, or other non-functionality changes * 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 dependencies 4. IMPLEMENTATION: Make focused, minimal changes to address the problem