Skip to content

Commit bb5ab62

Browse files
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
1 parent 6cea28d commit bb5ab62

File tree

1 file changed

+10
-0
lines changed

1 file changed

+10
-0
lines changed

.openhands/microagents/repo.md

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -66,6 +66,16 @@ state = conversation.state
6666
3. **Testing**: All functionality should be tested against a running OpenHands Agent Server instance
6767
4. **Documentation**: API changes should be reflected in the README.md and example code
6868

69+
## Agent Behavior Guidelines
70+
71+
**IMPORTANT**: The agent should NEVER start the server or browse to view the app unless the user explicitly asks for it. This includes:
72+
- Running development servers (e.g., `npm run dev`, `npm start`)
73+
- Opening browsers or navigating to application URLs
74+
- Starting any web servers or applications automatically
75+
- Viewing the running application in a browser
76+
77+
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.
78+
6979
## Related Repositories
7080

7181
- **[OpenHands/OpenHands](https://github.com/OpenHands/OpenHands)**: Core OpenHands application

0 commit comments

Comments
 (0)