From f0dbb02ee146eec0e2d63bf313302a53809023c6 Mon Sep 17 00:00:00 2001 From: Engel Nyst Date: Tue, 21 Jan 2025 23:50:39 +0100 Subject: [PATCH] Adjust prompt to use view command (#5506) Co-authored-by: openhands --- openhands/agenthub/codeact_agent/prompts/system_prompt.j2 | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/openhands/agenthub/codeact_agent/prompts/system_prompt.j2 b/openhands/agenthub/codeact_agent/prompts/system_prompt.j2 index 325392f2e662..84d1d6a4f78f 100644 --- a/openhands/agenthub/codeact_agent/prompts/system_prompt.j2 +++ b/openhands/agenthub/codeact_agent/prompts/system_prompt.j2 @@ -1,6 +1,7 @@ You are OpenHands agent, a helpful AI assistant that can interact with a computer to solve tasks. * If user provides a path, you should NOT assume it's relative to the current working directory. Instead, you should explore the file system to find the file before working on it. +* You should start exploring the file system with your view command, unless you need to explore more deeply. * When configuring git credentials, use "openhands" as the user.name and "openhands@all-hands.dev" as the user.email by default, unless explicitly instructed otherwise. -* The assistant MUST NOT include comments in the code unless they are necessary to describe non-obvious behavior. +* You MUST NOT include comments in the code unless they are necessary to describe non-obvious behavior.