← All questionsSteadyAI coding tools
How do we sandbox agents so they can't wreck things?
You are not the only one. Asked 20 times since June 2026, 8 of them in the last 4 weeks.
Times asked per week
9 Sept – 1 Dec
1Week of 9 SeptTimes asked1Week of 16 SeptTimes asked02Week of 23 SeptTimes asked22Week of 30 SeptTimes asked2Week of 7 OctTimes asked02Week of 14 OctTimes asked23Week of 21 OctTimes asked3Week of 28 OctTimes asked01Week of 4 NovTimes asked1Week of 11 NovTimes asked0Week of 18 NovTimes asked07Week of 25 NovTimes asked7
Week of 9 SeptWeek of 25 Nov
Coloured columns are the last 4 weeks.
What people answer
- Some sayEnforce limits outside the agent with a sandbox, read-only tokens, or a hook that blocks commands before they run, because prompt instructions are only mostly obeyed.
- One saysGive each agent session its own isolated environment, such as a separate virtual machine and browser, instead of running it in your own workspace.
- One saysMake the agent ask before irreversible or external actions like sending messages, paying, signing or deleting data, and keep passwords and sign-in tokens out of its reach.
- One saysDefine explicitly what the agent must leave alone: files outside the project, production config and secrets, CI and deploy settings, other people's branches, and accounts where actions cost money or reach customers.
- Some sayWrap risky operations like deploys in a scripted routine with backup, build check and automatic rollback, and keep visibility into what the agent is doing so unattended runs don't silently delete tests or data.
Claude DuetClaude CodecrewbossPM2Cloudflare
A language model summarised 6 public replies and posts. They mostly agree. These are other people's views, not advice from Navigara.
What people asked
Each line is our one-sentence summary. The link opens the original discussion.
- How could a guardrail steer an LLM coding agent's session toward a different behaviour, rather than only classifying and terminating the session?Open thread →
- How is running AI agents in a hosted sandbox that is not on your own machine different from giving the agent a VM on a cloud service like EC2?Open thread →
- Would the e2b embed sandbox tool be useful in a self-hosted AI software development factory?Open thread →
Show 11 more
- Is it a good idea to give an AI coding agent SSH access so it can read logs, edit code and run deploys on a production server?Open thread →
- How can developers see what autonomous coding agents are doing in real time and have them ask for confirmation before risky changes such as editing old migrations or deleting failing tests?Open thread →
- How can you stop an AI coding agent from touching files outside the project, production config, CI or deploy settings, and other protected resources, and is a prompt instruction enough?Open thread →
- What guardrails should developers consider non-negotiable when building always-on AI agents that act on users' work accounts?Open thread →
- How do you implement and enforce safety boundaries and guardrails when letting AI coding agents like Claude Code work autonomously on sensitive codebases?Open thread →
- How do you sandbox an AI coding agent so it cannot delete your files?Open thread →
- How can you make AI coding agents sandbox themselves without the setup friction of configuring a full sandbox on macOS?Open thread →
- How do developers manage AI coding agent tool permissions so they don't have to approve every action in the terminal?Open thread →
- How do developers control and constrain AI coding agents in their workflows?Open thread →
- How should developers handle credentials for local coding agents so the agent can use tokens without seeing them in prompts or output?Open thread →
- Should AI coding agents be allowed to make changes to production infrastructure?Open thread →
Where it is asked
- Hacker News10
- A private community6
- dev.to4
Private messages are counted, never shown. That is why you can read 14 of them.