← 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.

Read what people asked

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.

Named in the answersClaude 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.

Show 11 more

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.

Goes straight to the person who runs this site. No account needed.