Guide08 / Tools & permissions
Topics
Tools & permissions
The agent can read files, search, edit, run commands and look things up online. Everything that could change something asks first, unless you tell it otherwise.
When it asks
The four answers
- ▪Yes, and stop asking — for the rest of the session.
- ▪Yes, allow this kind of change from now on.
- ▪Yes, just this once.
- ▪No — and you can type a short reason; it will not try the same thing again.
What it can do
| Tool | In plain words |
|---|---|
run_terminal_cmd | Run shell commands, including long-running ones in the background. |
read_file | Read a file with line numbers and ranges. |
write | Create or replace a file. |
search_replace | Make precise edits; every change shows as a diff. |
list_dir | List what is in a folder. |
grep | Search inside files with a pattern. |
glob | Find files by name pattern. |
web_fetch | Read a web page as text. |
web_search | Search the web. |
todo_write | Keep the task list you see in the plan panel. |
task | Send a side task to a helper agent. |
get_task_output | Check on a background command or helper. |
wait_tasks | Wait for background work to finish. |
kill_task | Stop a running task. |
search_tool | Find tools from your connected servers. |
use_tool | Use one of those tools. |
Rules, set once
Allow or block specific things
On the command line
$ cachycli --deny "Bash(rm*)" $ cachycli --allow "Bash(npm*)" --deny "Bash(sudo*)" $ cachycli --deny "Edit(/etc/**)" $ cachycli --allow "WebFetch(domain:docs.rs)"
Patterns are simple: * for one part, ** for everything below a folder. A block always wins over an allow.
How much it may do unattended
Modes
| Mode | Behaviour |
|---|---|
default | Read-only work runs; edits and commands ask. |
acceptEdits | Edits go through; commands still ask. |
auto | Everything runs without asking. |
plan | Read-only session — useful to think first. |
dontAsk | Never interrupts; anything unapproved simply fails. |
$ cachycli --permission-mode plan /always-approve toggle it inside a session
Limit which tools exist
$ cachycli --tools "read_file,grep,list_dir" # only these $ cachycli --disallowed-tools "web_fetch,task" # not these
Safer defaults for a shared machine
Keep the default mode, add
--deny for the few commands your team never wants, and let everything else ask.Side tasks
For a well-scoped job the agent can start a helper with its own context — good for searching a large project without filling your chat. Helpers can be limited to reading only, and long ones keep running in the background while you continue.