{"id":47455398,"url":"https://github.com/eugene1g/agent-safehouse","last_synced_at":"2026-04-02T00:05:37.244Z","repository":{"id":337470042,"uuid":"1153806672","full_name":"eugene1g/agent-safehouse","owner":"eugene1g","description":"Sandbox your local AI agents so they can read/write only what they need","archived":false,"fork":false,"pushed_at":"2026-03-27T08:47:32.000Z","size":1136,"stargazers_count":1504,"open_issues_count":6,"forks_count":52,"subscribers_count":3,"default_branch":"main","last_synced_at":"2026-03-27T19:58:17.478Z","etag":null,"topics":["ai-agents","claude-code","llm","macos","sandbox","security"],"latest_commit_sha":null,"homepage":"https://agent-safehouse.dev","language":"Shell","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"apache-2.0","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/eugene1g.png","metadata":{"files":{"readme":"README.md","changelog":"CHANGELOG.md","contributing":"CONTRIBUTING.md","funding":null,"license":"LICENSE","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null,"zenodo":null,"notice":null,"maintainers":null,"copyright":null,"agents":"AGENTS.md","dco":null,"cla":null}},"created_at":"2026-02-09T17:33:52.000Z","updated_at":"2026-03-27T19:56:34.000Z","dependencies_parsed_at":"2026-02-09T21:02:03.077Z","dependency_job_id":null,"html_url":"https://github.com/eugene1g/agent-safehouse","commit_stats":null,"previous_names":["eugene1g/agent-safehouse"],"tags_count":11,"template":false,"template_full_name":null,"purl":"pkg:github/eugene1g/agent-safehouse","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/eugene1g%2Fagent-safehouse","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/eugene1g%2Fagent-safehouse/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/eugene1g%2Fagent-safehouse/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/eugene1g%2Fagent-safehouse/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/eugene1g","download_url":"https://codeload.github.com/eugene1g/agent-safehouse/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/eugene1g%2Fagent-safehouse/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":31293195,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-04-01T21:15:39.731Z","status":"ssl_error","status_checked_at":"2026-04-01T21:15:34.046Z","response_time":53,"last_error":"SSL_read: unexpected eof while reading","robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":false,"can_crawl_api":true,"host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":["ai-agents","claude-code","llm","macos","sandbox","security"],"created_at":"2026-03-23T21:00:47.125Z","updated_at":"2026-04-02T00:05:37.236Z","avatar_url":"https://github.com/eugene1g.png","language":"Shell","funding_links":[],"categories":["Quick Start: sandbox your agent in 5 minutes","ai-agents","Shell","Trending Repos — 19 March 2026","Host-level sandboxes and local workspace isolation"],"sub_categories":["If you want stronger isolation","macOS"],"readme":"# Agent Safehouse\n\n[![Tests (macOS)](https://github.com/eugene1g/agent-safehouse/actions/workflows/tests-macos.yml/badge.svg)](https://github.com/eugene1g/agent-safehouse/actions/workflows/tests-macos.yml)\n[![E2E TUI Tests (macOS)](https://github.com/eugene1g/agent-safehouse/actions/workflows/e2e-agent-tui-macos.yml/badge.svg)](https://github.com/eugene1g/agent-safehouse/actions/workflows/e2e-agent-tui-macos.yml)\n[![License: Apache 2.0](https://img.shields.io/badge/License-Apache_2.0-blue.svg)](LICENSE)\n\nSandbox your LLM coding agents on macOS so they can only access the files and integrations they actually need.\n\nAgent Safehouse uses `sandbox-exec` with composable policy profiles and a deny-first model. It includes profiles for major coding agents and app-hosted agent workflows while keeping normal development usage practical.\n\n## Install\n\nHomebrew:\n\n```bash\nbrew install eugene1g/safehouse/agent-safehouse\n```\n\nStandalone script:\n\n```bash\nmkdir -p ~/.local/bin\ncurl -fsSL https://github.com/eugene1g/agent-safehouse/releases/latest/download/safehouse.sh \\\n  -o ~/.local/bin/safehouse\nchmod +x ~/.local/bin/safehouse\n```\n\n## Philosophy\n\nAgent Safehouse is designed around practical least privilege:\n\n- Start from deny-all.\n- Allow only what the agent needs to do useful work.\n- Keep developer workflows productive.\n- Make risk reduction easy by default.\n\nIt is a hardening layer, not a perfect security boundary against a determined attacker.\n\n## HOME access by default\n\n`HOME_DIR` is used to render precise home-relative rules in the assembled policy. By itself, it does not grant recursive read access to your home directory.\n\nDefault Safehouse behavior is narrower:\n\n- metadata-only traversal on `/`, the path to `$HOME`, and `$HOME` itself so runtimes can probe explicitly allowed home-scoped paths\n- directory-root reads for `~/.config` and `~/.cache` so tools can discover XDG locations\n- a few explicit home-scoped files/directories from always-on profiles, such as git/ssh metadata and shared agent instruction folders\n\nIn practice, `stat \"$HOME\"` can succeed while `ls \"$HOME\"` and `cat ~/secret.txt` still fail unless a more specific rule grants that path.\n\nIf you want to remove even the default home exceptions, use `--append-profile`; appended profiles load last, so their deny rules can narrow earlier defaults.\n\n## Built-In System Path Resolution\n\nSafehouse's built-in `profiles/*` modules may include macOS compatibility paths such as `/etc`, `/private/etc/resolv.conf`, or `/private/etc/localtime`.\n\nAt policy render time, Safehouse resolves built-in absolute paths from `allow file-read*` rules and emits matching grants for the real target path when the authored path is a symlink. That keeps host-specific system files working without broadening the source profiles to recursive `/private/etc` access.\n\nCurrent scope is intentionally limited to built-in absolute `literal` and `subpath` read grants. User-provided path grants still normalize separately, and writable or metadata-only built-in rules are not auto-expanded by this mechanism today.\n\n## Documentation\n\n- Website: [agent-safehouse.dev](https://agent-safehouse.dev)\n- Docs: [agent-safehouse.dev/docs](https://agent-safehouse.dev/docs/)\n- Policy Builder: [agent-safehouse.dev/policy-builder](https://agent-safehouse.dev/policy-builder)\n\n## Machine-Specific Defaults\n\nIf you keep shared repos, caches, or team folders in machine-specific locations, keep those settings out of project config and put them in a shell wrapper plus a local appended profile.\n\nThis lets you define your own sane defaults once and reuse them from `claude`, `codex`, `amp`, or app launchers:\n\nPOSIX shells (`zsh` / `bash`):\n\n```bash\n# ~/.zshrc or ~/.bashrc\nexport SAFEHOUSE_APPEND_PROFILE=\"$HOME/.config/agent-safehouse/local-overrides.sb\"\n\nsafe() {\n  safehouse \\\n    --add-dirs-ro=\"$HOME/server\" \\\n    --append-profile=\"$SAFEHOUSE_APPEND_PROFILE\" \\\n    \"$@\"\n}\n\nsafe-claude() { safe claude --dangerously-skip-permissions \"$@\" }\n```\n\n`fish`:\n\n```fish\n# ~/.config/fish/config.fish\nset -gx SAFEHOUSE_APPEND_PROFILE \"$HOME/.config/agent-safehouse/local-overrides.sb\"\n\nfunction safe\n    safehouse \\\n      --add-dirs-ro=\"$HOME/server\" \\\n      --append-profile=\"$SAFEHOUSE_APPEND_PROFILE\" \\\n      $argv\nend\n\nfunction safe-claude\n    safe claude --dangerously-skip-permissions $argv\nend\n```\n\nExample machine-local policy file:\n\n```scheme\n;; ~/.config/agent-safehouse/local-overrides.sb\n;; Host-specific exceptions that should not live in shared repo config.\n(allow file-read*\n  (home-literal \"/.gitignore_global\")\n  (home-subpath \"/Library/Application Support/CleanShot/media\")\n  (subpath \"/Volumes/Shared/Engineering\")\n)\n```\n\nUse `--add-dirs-ro` or `--add-dirs` for normal shared-folder access, and keep `--append-profile` for machine-local policy exceptions or final deny/allow overrides. That pattern is useful when the repo is shared but each developer machine has different local mount points.\n\nGit worktrees are auto-detected at launch when the selected workdir itself is a Git worktree root: that worktree gets the shared Git metadata access it needs when its common dir lives outside the selected workdir, and the other existing linked worktrees for that repo become readable by default for cross-tree inspection. That snapshot does not update for already-running processes, so if you create worktrees under a stable parent such as `~/worktrees`, prefer adding that root explicitly with `--add-dirs-ro`.\n\nAll detailed documentation (setup, usage, options, architecture, testing, debugging, and investigations) lives in the VitePress docs site.\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Feugene1g%2Fagent-safehouse","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Feugene1g%2Fagent-safehouse","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Feugene1g%2Fagent-safehouse/lists"}