Hacker ApprovedDepartments

Claude Code sandbox

Ranked 3 of 17 agent sandboxes by recommenders

Sandbox built into Claude Code that cuts down permission prompts for commands. Critics say it gives read access to everything and is disabled by default.

Sandbox built into Claude Code that cuts down permission prompts for commands. Critics say it gives read access to everything and is disabled by default.

34 people gave an opinion

recommend it
16
criticize it
18
approval share
47%
Each figure is one person. RecommendsCriticizes

Recommended in 6 of 13 months

  1. November 2025: not recommended
  2. December 2025: recommended
  3. January 2026: recommended
  4. February 2026: not recommended
  5. March 2026: recommended
  6. April 2026: recommended
  7. May 2026: not recommended
  8. June 2026: not recommended
  9. July 2026: not recommended
  10. August 2026: recommended
  11. September 2026: not recommended
  12. October 2026: recommended
  13. November 2026: not recommended (month in progress)

Why it doesn’t carry the badge

  • 16 people recommend itNeeds 10 or more, met.
  • 0.8 recommenders for every criticNeeds 2 to 1 or better, not met.
  • Recommended in 6 of 13 monthsNeeds 4 or more, met.

The same three rules apply to every product, and the badge can’t be bought. How the badge works

What people say about it

The reasons people give, with the number of comments that give each one. Open a reason to read what they said.

Why people recommend it

Each mark is one comment

  • Very simple to enable

    “very simple to enable, if nothing else”

    Comment from 31 Aug 2026 in “Breaking Claude Code Opus 5 Auto Mode”

    “Esp with the simplicity of /sandbox”

    Comment from 30 Dec 2025 in “Show HN: A Claude Code plugin that catch destructive Git and filesystem commands”
  • Fewer permission prompts for commands

    “You can relax permissions while avoiding the flag with BashTool sandboxing”

    Comment from 13 Mar 2026 in “Shall I implement it? No”

    “it stops asking for permission for these kinds of commands”

    Comment from 13 Mar 2026 in “Shall I implement it? No”
  • Balances safety and autonomy

    “strike a good balance between safety and autonomy on macOS”

    Comment from 13 Mar 2026 in “Shall I implement it? No”

    “You can relax permissions while avoiding the flag with BashTool sandboxing”

    Comment from 13 Mar 2026 in “Shall I implement it? No”

What people warn about

Each mark is one comment

  • Read access to whole filesystem

    “It still grants full read only access to the file system so any secrets in your home directory can still be exfiltrated.”

    Comment from 22 Jan 2026 in “Running Claude Code dangerously (safely)”

    “Claude sandbox practically useless IMO. It gives read access to everything by default so its not deny-default.”

    Comment from 8 Feb 2026 in “Matchlock: Linux-based sandboxing for AI agents”

    “the built in sandbox in Claude Code is bad (read only access to everything by default) and tightly coupled”

    Comment from 8 Mar 2026 in “Agent Safehouse – macOS-native sandboxing for local agents”
  • Breaks toolchains and Docker workflows

    “had quite a job getting my toolchains and skills to work with it”

    Comment from 28 Mar 2026 in “Don't YOLO your file system”

    “sanboxing breaks immediately when I need to docker compose run sometask.sh”

    Comment from 28 Mar 2026 in “Don't YOLO your file system”
  • Config can be changed or disabled

    “could remove or simply change the config name just as silently as it was introduced”

    Comment from 28 Mar 2026 in “Don't YOLO your file system”

    “there are reports that it can disable sandbox”

    Comment from 15 Jan 2026 in “Claude Cowork Runs Linux VM via Apple Virtualization Framework”

Other agent sandboxes people recommend

The four most recommended other agent sandboxes, with the same counts for each, so you can compare like for like. The tick on each bar marks the 2 to 1 line the badge needs.

Claude Code sandbox compared with 4 alternatives
ProductRecommendCriticizeApprovalMonthsOwnedBadge
Docker Sandboxes503956%9——
NVIDIA OpenShell36882%9—Approved
Claude Code sandboxThis page161847%6——
MXC (Microsoft Execution Containers)151747%1——
microsandbox13287%6—Approved
See all 17 agent sandboxes, ranked

What people said

33 of the 35 comments that mention it, newest first. Each links to the original comment.

“a real security benefit but it just turned into an extra confirmation for me”

MixedComment from 9 Oct 2026 in “Why are coding agents so dumb?”

“very simple to enable, if nothing else”

RecommendsComment from 31 Aug 2026 in “Breaking Claude Code Opus 5 Auto Mode”

“I think none of them is actually usable - they either allow too much or too little.”

CriticizesComment from 20 Jul 2026 in “Stop Using OpenCode”

“Anthropic are not interested in building an effective sandbox. It's a feelgood sandbox.”

CriticizesComment from 2 Jul 2026 in “Claude's AskUserQuestion: "No response after 60s – continued without an answer"”

“Claude's sandbox mode is also worse than having no sandbox feature at all.”

CriticizesComment from 1 Jun 2026 in “Codex just found a "workaround" of not having sudo on my PC”

“Don't even need a separate user if you're on linux (or wsl), just use the sandbox feature”

RecommendsComment from 13 Apr 2026 in “The Peril of Laziness Lost”

“sanboxing breaks immediately when I need to docker compose run sometask.sh”

CriticizesComment from 28 Mar 2026 in “Don't YOLO your file system”

“this doesn’t always work as expected”

CriticizesComment from 28 Mar 2026 in “Don't YOLO your file system”

“had quite a job getting my toolchains and skills to work with it”

MixedComment from 28 Mar 2026 in “Don't YOLO your file system”

“if you think Claude is smart enough to block sneaky path strings based on your config”

CriticizesComment from 28 Mar 2026 in “Don't YOLO your file system”

“to be effective it would need to be implemented at a very low level”

MixedComment from 28 Mar 2026 in “Don't YOLO your file system”

“It will just do ssh you@localhost”

CriticizesComment from 28 Mar 2026 in “Don't YOLO your file system”

“Nice extra guardrail though, will add it to the project-level settings.”

RecommendsComment from 28 Mar 2026 in “Don't YOLO your file system”

“could remove or simply change the config name just as silently as it was introduced”

CriticizesComment from 28 Mar 2026 in “Don't YOLO your file system”

“it's great and pretty much this”

RecommendsComment from 28 Mar 2026 in “Don't YOLO your file system”

“It's disabled by default though, and in general (especially with other agents) you very much still have to get out of your way”

MixedComment from 16 Mar 2026 in “"How I write software with LLMs"”

“it stops asking for permission for these kinds of commands”

RecommendsComment from 13 Mar 2026 in “Shall I implement it? No”

“You can relax permissions while avoiding the flag with BashTool sandboxing”

RecommendsComment from 13 Mar 2026 in “Shall I implement it? No”

“strike a good balance between safety and autonomy on macOS”

RecommendsComment from 13 Mar 2026 in “Shall I implement it? No”

“it can only filter network requests by IP address”

CriticizesComment from 11 Mar 2026 in “Show HN: Ash, an Agent Sandbox for Mac”

“Claude Code has ways to escape its sandbox”

CriticizesComment from 8 Mar 2026 in “Agent Safehouse – macOS-native sandboxing for local agents”

“the built in sandbox in Claude Code is bad (read only access to everything by default) and tightly coupled”

CriticizesComment from 8 Mar 2026 in “Agent Safehouse – macOS-native sandboxing for local agents”

“with proper configuration (e.g. /sandbox with normal claude code) it is impossible for the agent to escape.”

RecommendsComment from 5 Mar 2026 in “Tell HN: AI Lies About Having Sandbox Guardrails”

“much more configurable than the default claude code sandbox”

CriticizesComment from 26 Feb 2026 in “just-bash: Bash for Agents”

“Claude sandbox practically useless IMO. It gives read access to everything by default so its not deny-default.”

CriticizesComment from 8 Feb 2026 in “Matchlock: Linux-based sandboxing for AI agents”

“Claude's built-in sandbox allows read-only access everywhere”

CriticizesComment from 4 Feb 2026 in “Show HN: Sx – macOS sandbox CLI for credential protection”

“sandbox feature is not fully baked and does not seem to be high priority”

CriticizesComment from 30 Jan 2026 in “Claude Code Daily Benchmarks for Degradation Tracking”

“It still grants full read only access to the file system so any secrets in your home directory can still be exfiltrated.”

CriticizesComment from 22 Jan 2026 in “Running Claude Code dangerously (safely)”

“sandbox-exec on MacOS (ie. https://github.com/neko-kai/claude-code-sandbox ) seems like the perfect solution to me.”

RecommendsComment from 20 Jan 2026 in “Running Claude Code dangerously (safely)”

“there are reports that it can disable sandbox”

CriticizesComment from 15 Jan 2026 in “Claude Cowork Runs Linux VM via Apple Virtualization Framework”

“As I can't trust Claude Code to use a correct shell, I don't know why I would trust this feature.”

CriticizesComment from 15 Jan 2026 in “Claude Cowork Runs Linux VM via Apple Virtualization Framework”

“Esp with the simplicity of /sandbox”

RecommendsComment from 30 Dec 2025 in “Show HN: A Claude Code plugin that catch destructive Git and filesystem commands”

“Docs promised empty allowedDomains = no network access but Actually disabled all restrictions (macOS + Linux)”

CriticizesComment from 4 Dec 2025 on Hacker News

Counts come from 1,795,640 Hacker News comments, November 2025 to November 2026. How we count. Report a mistake.