summaryrefslogtreecommitdiffhomepage
diff options
context:
space:
mode:
authorDax Raad <[email protected]>2026-04-30 23:48:48 -0400
committerDax Raad <[email protected]>2026-04-30 23:48:48 -0400
commit3615d8e226a5dae909139d306e2a684a92680ccf (patch)
tree072523b5a4262cbfae9e4850db8dac197e6f4b8d
parent22839791999161c7bd84f8b17cda46a2d2cb5ade (diff)
downloadopencode-3615d8e226a5dae909139d306e2a684a92680ccf.tar.gz
opencode-3615d8e226a5dae909139d306e2a684a92680ccf.zip
core: clarify that temp directory already exists for AI agents
The bash tool description now explicitly states that the temp directory has already been created and exists, preventing agents from unnecessarily trying to create it before use.
-rw-r--r--packages/opencode/src/tool/bash.txt2
1 files changed, 1 insertions, 1 deletions
diff --git a/packages/opencode/src/tool/bash.txt b/packages/opencode/src/tool/bash.txt
index 04e935fe7..a131ed7e6 100644
--- a/packages/opencode/src/tool/bash.txt
+++ b/packages/opencode/src/tool/bash.txt
@@ -4,7 +4,7 @@ Be aware: OS: ${os}, Shell: ${shell}
All commands run in the current working directory by default. Use the `workdir` parameter if you need to run a command in a different directory. AVOID using `cd <directory> && <command>` patterns - use `workdir` instead.
-Use `${tmp}` for temporary work outside the workspace. This directory is pre-approved for external directory access.
+Use `${tmp}` for temporary work outside the workspace. This directory has already been created, already exists, and is pre-approved for external directory access.
IMPORTANT: This tool is for terminal operations like git, npm, docker, etc. DO NOT use it for file operations (reading, writing, editing, searching, finding files) - use the specialized tools for this instead.