Guide models to read-only inspection: prompt rules, pipes and find in the read-only gate, approval stats

This commit is contained in:
hermes committed 2026-10-06 13:14:09 +00:00
1 parent 8345d0f504
commit 37dfbc3102
7 files changed
+70 -11

No files matched your search

+1 -1
View File
@@ -310,7 +310,7 @@ impl Tool for Bash {
fn spec(&self) -> ToolSpec {
spec(
"bash",
"Run a shell command in the working directory. stdout and stderr are merged. Long output keeps the start and the end; the middle is cut and the full output saved to a file.",
"Run a shell command in the working directory. Read-only commands (ls cat head tail rg fd find grep wc jq sort, git status/log/diff/show, piped together) run at once; everything else, e.g. node, python, sed, cargo, asks the user first. To inspect files prefer read/rg/fd. stdout and stderr are merged. Long output keeps the start and the end; the middle is cut and the full output saved to a file.",
json!({"type":"object","properties":{
"command":{"type":"string"},
"timeout":{"type":"integer","description":"seconds, default 120"}},