fix: Add important prompting to always call tools (#1009)

This commit is contained in:
Brace Sproul 2026-03-04 17:33:20 -08:00 • committed by GitHub
parent d18318404b
commit a1fcb23498
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

View file

@ -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=<seconds>` 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=<seconds>` 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 = """---