Skip to content

Commit 3615d8e

Browse files
committed
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.
1 parent 2283979 commit 3615d8e

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

packages/opencode/src/tool/bash.txt

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@ Be aware: OS: ${os}, Shell: ${shell}
44

55
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.
66

7-
Use `${tmp}` for temporary work outside the workspace. This directory is pre-approved for external directory access.
7+
Use `${tmp}` for temporary work outside the workspace. This directory has already been created, already exists, and is pre-approved for external directory access.
88

99
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.
1010

0 commit comments

Comments
 (0)