Safe read-only commands
The agent checks your toolchain and looks around the code all the time: java -version, node -v, git status, cat package.json. These commands only read, so Ingot runs them without an approval card. Anything that changes something still asks.


What runs at once
| Kind | Examples |
|---|---|
| Version checks | java -version, mvn -v, node -v, npm -v, docker --version |
| Reading inside the project | ls, cat, head, tail, grep, rg, find (without -exec or -delete), wc, tree, pwd, which |
| Moving around the project | cd mobile && cat package.json: a cd into a project folder |
| Read-only git | git status, git log, git diff, git show, git branch (list), git remote -v |
| Read-only tools | docker info, docker images, docker ps, npm ls, kubectl get |
Parts joined with &&, ; or | are checked one by one. Every part must be safe.
What still asks
- Anything that writes, installs or deletes:
npm install,rm,git commit,docker run. - Anything that uses the network:
curl,npx,git push. - A path outside the project, such as
cat ~/.ssh/id_rsaorcd .. && ls. - Shell tricks that hide what runs: redirects (
>),$(…), backticks, background jobs (&), subshells andsudo.
Your .ingot/policy.json rules and hooks that ask still ask first.
Always Run remembers the command family
When a command does ask, Always Run and Allow in workspace remember the kind of command, not one exact line:
| You allow | Later commands that run without asking |
|---|---|
git add src/a.ts && git commit -m "feat: x" | any git add … and git commit … |
cd mobile && npx tsc --noEmit | any cd … and npx tsc … |
cd backend/src && sed -n 1,200p Booking.java | any cd … and sed … |
Every part of a later command must match a remembered family, so git add . && git push still asks for the push. These are only remembered as the exact line: code runners (node, python, bash…), rm, curl, sudo, and commands that destroy or publish (git push, git reset, git clean, docker rm, kubectl delete, npm publish…).
Turn it off
| Setting | Default | Where |
|---|---|---|
ingot.agent.terminal.safeCommandsRunAtOnce | on | Settings › Agent tools › Terminal & scripts › Run safe read-only commands at once, Settings › Features |
ingot.agent.terminal.allowCommandFamilies | on | Settings › Agent tools › Terminal & scripts › Allow whole command families, Settings › Features |
Off: every command asks, as Commands wait for Run says.
See also Agent Sandbox and Terminal.