Hacker ApprovedDepartments

Agent Safehouse

Hacker Approved

Ranked 2 of 10 sandboxing tools by recommenders

Free shell-script wrapper around macOS sandbox-exec that restricts coding agents to the current folder; people value its transparency and simplicity. Main caveat: it only works on macOS.

Free shell-script wrapper around macOS sandbox-exec that restricts coding agents to the current folder; people value its transparency and simplicity. Main caveat: it only works on macOS.

45 people gave an opinion

recommend it
43
criticize it
2
approval share
96%
Each figure is one person. RecommendsCriticizes

Recommended in 7 of 13 months

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

Why it carries the badge

  • 43 people recommend itNeeds 10 or more, met.
  • 22 recommenders for every criticNeeds 2 to 1 or better, met.
  • Recommended in 7 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

  • Restricts agents to the current folder

    “hides and protects your filesystem from the agent CLI - it cannot read/write/delete anything outside of the current folder”

    Comment from 11 Aug 2026 in “Auto mode is now the default in Claude Code”

    “use built-in sandboxing to jail Claude (and every other agent) to $CWD so it doesn't read/write anything it shouldn't”

    Comment from 18 Feb 2026 in “Claude Sonnet 4.6 System Card”

    “I made a local sandbox to jail all TUI clunkers to $CWD and run all of them in —-yolo mode”

    Comment from 25 Feb 2026 in “Pi – a minimal terminal coding harness”
  • Works with any agent

    “use built-in sandboxing to jail Claude (and every other agent) to $CWD so it doesn't read/write anything it shouldn't”

    Comment from 18 Feb 2026 in “Claude Sonnet 4.6 System Card”

    “I wanted something that offers strong guarantees across all agents”

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

    “it works for any agent and has many sane default for developers”

    Comment from 28 Mar 2026 in “Don't YOLO your file system”
  • Simple, transparent, few dependencies

    “IMO, that's the best part about the project - no dependencies, no fancy tech, no virtualization.”

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

    “I implemented this in Bash to avoid having an opaque binary in the way.”

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

    “the transparency of what your thing does is really great”

    Comment from 9 Mar 2026 in “Agent Safehouse – macOS-native sandboxing for local agents”
  • Built on native sandbox-exec

    “The macOS sandbox approach is smart because it leverages the OS-level enforcement rather than relying on application-layer restrictions”

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

    “You don’t actually need to install anything and can just generate a text file with the security profile for sandbox-exec.”

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

    “Well maintained and is built on existing sandbox-exec so you are not locked in”

    Comment from 30 Jun 2026 in “Ask HN: Secure Wrapper for Coding Agents”

Other sandboxing tools people recommend

The four most recommended other sandboxing tools, 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.

Agent Safehouse compared with 4 alternatives
ProductRecommendCriticizeApprovalMonthsOwnedBadge
Bubblewrap (bwrap)1093277%12—Approved
Agent SafehouseThis page43296%7—Approved
nono34392%10—Approved
Firejail30683%12—Approved
sandbox-exec25778%11—Approved
See all 10 sandboxing tools, ranked

What people said

40 of the 63 comments that mention it, newest first. Each links to the original comment.

“wrapping the harness around something like sandbox-exec or agent-safehouse is a must”

RecommendsComment from 18 Sep 2026 in “Inside ZCode: Silently uploading your Git history to the cloud”

“hides and protects your filesystem from the agent CLI - it cannot read/write/delete anything outside of the current folder”

RecommendsComment from 11 Aug 2026 in “Auto mode is now the default in Claude Code”

“Looks like a tool easy enough to use and start with the agentic world in a sandboxed and much safer manner.”

RecommendsComment from 11 Aug 2026 in “Auto mode is now the default in Claude Code”

“The syntax is a bit archaic, so I built a Bash wrapper around it to dynamically detect which agent you use and from what dir”

RecommendsComment from 10 Aug 2026 in “Auto mode is now the default in Claude Code”

“macOS-native sandboxing for local agents. Move fast, break nothing.”

RecommendsComment from 10 Aug 2026 in “Auto mode is now the default in Claude Code”

“Well maintained and is built on existing sandbox-exec so you are not locked in”

RecommendsComment from 30 Jun 2026 in “Ask HN: Secure Wrapper for Coding Agents”

“Don't give your agent access to content it should not edit, don't give keys it shouldn't use.”

RecommendsComment from 22 Apr 2026 in “Coding Models Are Doing Too Much”

“it works for any agent and has many sane default for developers”

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

“Containers and VMs are really annoying to work with for these kinds of applications”

RecommendsComment from 18 Mar 2026 in “Nvidia NemoClaw”

“I have significantly more trust in literally any individual dev creating a free generic open-source tool”

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

“prompt injection doesn't care about your filesystem permissions”

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

“something like Agent Safehouse makes more sense”

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

“could be the perfect playground fence around my sandbox”

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

“this is very cool even (and especially) if it's so simple.”

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

“Agent Safehouse is a clean solution to problem 1. That's genuinely useful and worth having”

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

“the transparency of what your thing does is really great”

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

“I wanted something that offers strong guarantees across all agents”

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

“The macOS sandbox approach is smart because it leverages the OS-level enforcement rather than relying on application-layer restrictions”

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

“Your agent can do this in a loop by itself - just feed it the repo as there are many integrations that are not enabled by default that will help it.”

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

“A wrapper CLI that allows any command to be sandboxed is pretty appealing”

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

“I think this is the right approach to building sandbox for agents”

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

“Fantastic! I had been using dockers but this might be better!”

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

“This is a very nice and clean implementation.”

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

“That online builder is very cool, well done!”

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

“You don’t actually need to install anything and can just generate a text file with the security profile for sandbox-exec.”

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

“I for one am grateful for efforts like these”

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

“timely as I am playing whackamole with sandboxing right now”

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

“Also like that it alerts on attempts to read restricted stuff.”

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

“can use the Policy Builder to generate a static policy file with minimal permissions”

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

“I implemented this in Bash to avoid having an opaque binary in the way.”

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

“This looks like a competent wrapper around sandbox-exec.”

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

“we've been impressed enough with how efficient it is that I decided it deserved a post”

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

“Safehouse makes that 0%, which is categorically different.”

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

“I'd still recommend using something like this.”

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

“But this is much closer to what I actually need.”

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

“more reliable (and restrictive), as Claude Code has ways to escape its sandbox”

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

“IMO, that's the best part about the project - no dependencies, no fancy tech, no virtualization.”

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

“I made a local sandbox to jail all TUI clunkers to $CWD and run all of them in —-yolo mode”

RecommendsComment from 25 Feb 2026 in “Pi – a minimal terminal coding harness”

“in the repo have a collection of minimal profiles for sandbox-exec to use”

RecommendsComment from 21 Feb 2026 in “macOS's Little-Known Command-Line Sandboxing Tool”

“use built-in sandboxing to jail Claude (and every other agent) to $CWD so it doesn't read/write anything it shouldn't”

RecommendsComment from 18 Feb 2026 in “Claude Sonnet 4.6 System Card”

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