promptgarten 🌱

Command reference Β· Cursor CLI

/sandbox

Configures sandbox mode and network access via an interactive menu.

/sandbox opens a menu to configure sandbox mode and network access settings. Sandbox policy files (~/.cursor/sandbox.json, .cursor/sandbox.json) are honored, including over SSH; a default-deny network proxy applies to sandboxed commands.

πŸ”„ THE SAME TASK (β€œTOGGLE SANDBOX MODE”) ON OTHER PLATFORMS

Compare all 28 tasks β†’

βœ… WHEN TO USE IT?

Restrict write access while trusting an unfamiliar repo

/sandbox β€” enable before the agent works on a foreign project

Allow network access specifically for one task

/sandbox β€” adjust the network mode before a package install

β›” WHEN NOT TO?

A single command should run isolated with its own path rules, not the whole session

/sandbox sets the policy for the running session, not for a one-off command.

Better: Use agent sandbox run --allow-paths <paths> for a single command

Everything should just run without any prompts at all

Sandbox deliberately restricts, which conflicts with a fully autonomous run.

Better: Use --yolo or /run-everything

SOURCES

MORE COMMANDS Β· Cursor CLI

/bedrock/add-dir/save-workspace/load-workspace/auto-review/context/full-conversation/btw/skills/rules/commands/changes

All commands Β· Cursor CLI β†’

Share:𝕏inπŸ’¬