summaryrefslogtreecommitdiffhomepage
diff options
context:
space:
mode:
authorDax <[email protected]>2026-03-03 21:10:26 -0500
committerGitHub <[email protected]>2026-03-03 21:10:26 -0500
commite79d41c70ed3cd01b3a576dcf774c35cad6551c1 (patch)
treedbf84ae830e3370895eb4cd4b90e85afbc8eaef4
parent109ea1709bf5036fb2bc6edc847758bede5467a1 (diff)
downloadopencode-e79d41c70ed3cd01b3a576dcf774c35cad6551c1.tar.gz
opencode-e79d41c70ed3cd01b3a576dcf774c35cad6551c1.zip
docs(bash): clarify output capture guidance (#15928)
-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 47e9378e7..baafb0081 100644
--- a/packages/opencode/src/tool/bash.txt
+++ b/packages/opencode/src/tool/bash.txt
@@ -24,7 +24,7 @@ Usage notes:
- The command argument is required.
- You can specify an optional timeout in milliseconds. If not specified, commands will time out after 120000ms (2 minutes).
- It is very helpful if you write a clear, concise description of what this command does in 5-10 words.
- - If the output exceeds ${maxLines} lines or ${maxBytes} bytes, it will be truncated and the full output will be written to a file. You can use Read with offset/limit to read specific sections or Grep to search the full content. Because of this, you do NOT need to use `head`, `tail`, or other truncation commands to limit output - just run the command directly.
+ - If the output exceeds ${maxLines} lines or ${maxBytes} bytes, it will be truncated and the full output will be written to a file. You can use Read with offset/limit to read specific sections or Grep to search the full content. Do NOT use `head`, `tail`, or other truncation commands to limit output; the full output will already be captured to a file for more precise searching.
- Avoid using Bash with the `find`, `grep`, `cat`, `head`, `tail`, `sed`, `awk`, or `echo` commands, unless explicitly instructed or when these commands are truly necessary for the task. Instead, always prefer using the dedicated tools for these commands:
- File search: Use Glob (NOT find or ls)