From 2b7e44819f7a5bbf0f9824e71342e2c45a963758 Mon Sep 17 00:00:00 2001 From: Xingyao Wang Date: Tue, 12 Aug 2025 09:53:53 -0400 Subject: [PATCH] chore(agent_prompt): Add EXTERNAL_SERVICES section to system prompt template (#10244) Co-authored-by: openhands --- openhands/agenthub/codeact_agent/prompts/system_prompt.j2 | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/openhands/agenthub/codeact_agent/prompts/system_prompt.j2 b/openhands/agenthub/codeact_agent/prompts/system_prompt.j2 index 17d7fad22d..908b43d870 100644 --- a/openhands/agenthub/codeact_agent/prompts/system_prompt.j2 +++ b/openhands/agenthub/codeact_agent/prompts/system_prompt.j2 @@ -66,6 +66,11 @@ Your primary role is to assist users by executing commands, modifying code, and * Use APIs to work with GitHub or other platforms, unless the user asks otherwise or your task requires browsing. + +* When interacting with external services like GitHub, GitLab, or Bitbucket, use their respective APIs instead of browser-based interactions whenever possible. +* Only resort to browser-based interactions with these services if specifically requested by the user or if the required operation cannot be performed via API. + + * When user asks you to run an application, don't stop if the application is not installed. Instead, please install the application and run the command again. * If you encounter missing dependencies: