No. 130·noun·also called agent sandbox, isolated environment, safe mode

Sandbox

A walled-off workspace where an AI agent can run commands and edit files without being able to touch your real machine, accounts or live data.

SPECIMEN · DIAGRAM · LAYERS
Your real worldYour files, passwords, live app and customer data
Sandbox wallBlocks anything the agent shouldn't reach
Agent workspaceWhere commands run and files change
Definition

What it is

A sandbox is a fenced-in area for running code. Inside it, a coding agent can create files, install things, run tests and even make mistakes. The fence keeps those mistakes away from everything outside: your other folders, your passwords and keys, your live app and its real data.

You care about it when the agent runs commands for you. Without a sandbox, the agent has to stop and ask permission before nearly every step, and people end up clicking yes without reading. With one, the agent can move faster because the worst case is already contained. It matters most when you let the agent run unattended.

A sandbox limits damage but it's not a guarantee, and it's not a backup. It's also not staging, which is a test copy of your whole app used before release. Check what your tool's sandbox actually blocks, especially network access and any secrets you've given it.

Say it like a builder

How to ask for it

Vague

“I'm nervous about letting the AI run things on its own. Can you make it safe so it can't wreck anything?”

Precise

“Run the agent in a sandbox limited to this project folder, with no access to production credentials or the live database. It can edit files and run tests freely, but it must ask before installing anything or reaching the network.”

Why it works

"Make it safe" doesn't say what to protect or what is allowed; "sandbox" names a boundary and the prompt sets what is inside it, what is blocked and what still needs approval.

In the wild

You've seen this in

  • SClaude Code running commands inside its built-in sandbox, with fewer permission prompts
  • RCursor's agent sandboxing, which lets the agent run commands in a restricted space
  • CCodex pairing a sandbox with an approval setting, so it asks before stepping outside the walls
Usage note

Often confused with