Related Sandbox Projects
Anthropic Sandbox Runtime
Official Anthropic sandbox reference implementation with TypeScript/Node and cross-platform network proxy support.
Claude Code Sandbox
Restrictive read policy experiments and ancestor literal grant insights.
trace.sh
Automated deny-to-allow profile iteration and rule minimization scripts.
Sandboxes for AI
Overview of sandboxing patterns for AI agents by Luis Cardoso.
macOS Sandbox Documentation
Apple’s
sandbox-exec and Sandbox Profile Language documentation is limited. The best learning resources are example profiles and experimentation.Built-in Profile Examples
Your macOS system includes reference profiles:Agent Safehouse Source
The project’s own profiles serve as practical examples:- Authored profiles:
profiles/directory (source of truth) - Assembled examples:
dist/profiles/safehouse.generated.sbanddist/profiles/safehouse-for-apps.generated.sb
Learning Resources
Policy Architecture
Understand how Agent Safehouse assembles modular policy profiles.
Debugging Guide
Learn to debug sandbox denials and build profiles from scratch.
Contributing Guide
Read the contributing guide for .sb authoring expectations and patterns.
Profile Language Reference
Common Matchers
literal - Exact path match
literal - Exact path match
Matches an exact file or directory path.Narrowest option, preferred when possible.
subpath - Recursive directory
subpath - Recursive directory
Matches a directory and all its contents recursively.Broader grant; use only when required.
prefix - Starts-with match
prefix - Starts-with match
Matches any path starting with the given prefix.Useful for dynamic path patterns.
regex - Pattern matching
regex - Pattern matching
Matches paths using regular expressions.Most flexible but hardest to audit.
Common Operations
File Operations
Network Operations
Mach Services
System Calls
Community
Agent Safehouse is an open-source project. Contributions, bug reports, and documentation improvements are welcome.
GitHub Repository
View source, report issues, and contribute.
Issue Tracker
Report bugs or request features.