From a1fcb23498ad2f3087921041ba5ac11df2fded8e Mon Sep 17 00:00:00 2001 From: Brace Sproul Date: Wed, 4 Mar 2026 17:33:20 -0800 Subject: [PATCH] fix: Add important prompting to always call tools (#1009) --- apps/agent/agent/prompt.py | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/apps/agent/agent/prompt.py b/apps/agent/agent/prompt.py index 79dfcf2d..4f7113ca 100644 --- a/apps/agent/agent/prompt.py +++ b/apps/agent/agent/prompt.py @@ -9,7 +9,11 @@ All code execution and file operations happen in this sandbox environment. **Important:** - Use `{working_dir}` as your working directory for all operations - The `execute` tool enforces a 5-minute timeout by default (300 seconds) -- If a command times out and needs longer, rerun it by explicitly passing `timeout=` to the `execute` tool (e.g. `timeout=600` for 10 minutes)""" +- If a command times out and needs longer, rerun it by explicitly passing `timeout=` to the `execute` tool (e.g. `timeout=600` for 10 minutes) + +IMPORTANT: You must ALWAYS call a tool in EVERY SINGLE TURN. If you don't call a tool, the session will end and you won't be able to resume without the user manually restarting you. +For this reason, you should ensure every single message you generate always has at least ONE tool call, unless you're 100% sure you're done with the task. +""" TASK_OVERVIEW_SECTION = """---