CachyCLI
Guide08 / Tools & permissions
Guide · 08

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

ToolIn plain words
run_terminal_cmdRun shell commands, including long-running ones in the background.
read_fileRead a file with line numbers and ranges.
writeCreate or replace a file.
search_replaceMake precise edits; every change shows as a diff.
list_dirList what is in a folder.
grepSearch inside files with a pattern.
globFind files by name pattern.
web_fetchRead a web page as text.
web_searchSearch the web.
todo_writeKeep the task list you see in the plan panel.
taskSend a side task to a helper agent.
get_task_outputCheck on a background command or helper.
wait_tasksWait for background work to finish.
kill_taskStop a running task.
search_toolFind tools from your connected servers.
use_toolUse 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

ModeBehaviour
defaultRead-only work runs; edits and commands ask.
acceptEditsEdits go through; commands still ask.
autoEverything runs without asking.
planRead-only session — useful to think first.
dontAskNever 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.