From bb5ab620ed85541401f725b95a01a75f6c3af59a Mon Sep 17 00:00:00 2001 From: openhands Date: Thu, 30 Oct 2025 04:12:36 +0000 Subject: [PATCH] Add agent behavior guidelines to prevent automatic server startup - Add new 'Agent Behavior Guidelines' section to .openhands/microagents/repo.md - Specify that agents should NEVER start servers or browse apps unless explicitly requested - Include specific examples of prohibited automatic actions - Clarify that agents should focus on code development, testing, and documentation --- .openhands/microagents/repo.md | 10 ++++++++++ 1 file changed, 10 insertions(+) diff --git a/.openhands/microagents/repo.md b/.openhands/microagents/repo.md index b64fee1..15f16e8 100644 --- a/.openhands/microagents/repo.md +++ b/.openhands/microagents/repo.md @@ -66,6 +66,16 @@ state = conversation.state 3. **Testing**: All functionality should be tested against a running OpenHands Agent Server instance 4. **Documentation**: API changes should be reflected in the README.md and example code +## Agent Behavior Guidelines + +**IMPORTANT**: The agent should NEVER start the server or browse to view the app unless the user explicitly asks for it. This includes: +- Running development servers (e.g., `npm run dev`, `npm start`) +- Opening browsers or navigating to application URLs +- Starting any web servers or applications automatically +- Viewing the running application in a browser + +The agent should focus on code development, testing, and documentation tasks. Only when the user specifically requests to run or view the application should the agent start servers or open browsers. + ## Related Repositories - **[OpenHands/OpenHands](https://github.com/OpenHands/OpenHands)**: Core OpenHands application