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 = """---