Agent Seatbelt — AI skill for Claude Code
Defense-in-depth for AI coding agents: macOS sandbox via Apple Seatbelt, plus content-level PII hooks for Claude Code and Codex.
How to install Agent Seatbelt
This entry records only its repository, not the path inside it, so there is no
exact command to give. Open CJHwong/agent-seatbelt and copy the folder into
~/.claude/skills/, or the file into ~/.claude/agents/.
What Agent Seatbelt does
Defense-in-depth for AI coding agents: macOS sandbox via Apple Seatbelt, plus content-level PII hooks for Claude Code and Codex.
Alternatives in AI
- CodeIsland — Real-time AI coding agent status panel in your MacBook notch — live status, approvals & replies for 13 AI tool 2.3k ★
- Coding Agent Template — Multi-agent AI coding platform powered by Vercel Sandbox and AI Gateway 1.8k ★
- Agentpet — A desktop pet for macOS & Windows that monitors your AI coding agents (Claude Code, Codex, Cursor, Gemini 334 ★
README
agent-seatbelt
Defense-in-depth for AI coding agents on macOS.
- Sandbox (
sb) — Apple Seatbelt wrapper that blocks reads of your secrets and writes outside your project, even with--dangerously-skip-permissions. Two files, no dependencies. - OPF hooks (
hooks-opf/) — Userland PII detector powered by `openai/privacy-filter`. Catches secrets and personal data flowing into prompts or out of tool responses before the LLM sees them.
The sandbox is a file-level gate. The hooks are a content-level filter. Each closes a hole the other can't.
Background
I ran Claude Code in unrestricted mode for months. One day it couldn't read an env var, failed a few times, then decided to read `~/.zshrc` to debug. My `.zshrc` had hardcoded API keys. They got sent to Anthropic's servers and logged in local conversation history.
Claude apologized, told me to revoke everything, and suggested better practices. That's nice. But "the AI felt bad about it" isn't a security boundary.
Built-in sandboxes (Claude's `/sandbox`, Codex's approval policies) only gate their own tools. An agent that shells out via Bash or Python bypasses all of it. OS-level enforcement can't be bypassed. The kernel doesn't care what the agent thinks it's allowed to do.
Sandbox (`sb`)
Wraps `sandbox-exec` (Apple's Seatbelt) around your agent so it can't read your secrets or write outside your project, even if you run it with `--dangerously-skip-permissions`.
Install
ln -sf /path/to/agent-seatbelt/sb ~/.local/bin/sb
ln -sf /path/to/agent-seatbelt/my.sb ~/my.sb
Symlinks so edits to the repo are immediately live. No re-copying after updates.
Usage
cd ~/my-project
sb claude --dangerously-skip-permissions
sb npm install
sb bash
# strip secrets from environment variables too
sb -c claude --dangerously-skip-permissions
`-c` / `--clean-env` wipes the environment and passes through only `HOME`, `PATH`, `SHELL`, `TERM`,
Related Skills
Cplt
Sandbox for AI coding agents. Runs Copilot CLI, Claude Code, OpenCode, Gemini CLI, Antigravity, Pi, goose or a
Repo Intel
Unified static analysis - git history, AST symbols, project metadata, doc-code sync, plus LLM-augmented file d
Decklet
AI slide generator for coding agents: a Claude Code and Codex skill plus CLI that turns any content into one s
Midway
Run commands and get notified while they run and when they finish. Desktop and chat notifications, plus hooks
Nopdocs
The heredoc replacement for LLM agents and coding harnesses: NOPDOC frames (an inert envelope with a mandatory
Agentic Engineering Course
Course files for Agentic Engineering, a free YouTube course on building real software with AI coding agents (C
Related Agents
Apple UI Designer
Visual and theme redesigns in current Apple design language (macOS 27 / iOS 26+ Liquid Glass, vibrancy, system
Security Architecture
Boucle implements a defense-in-depth security model to protect against prompt injection attacks and maintain t
Writing Critic
Reviews a proposal or content draft against the proposal-engine voice rules. Use BEFORE presenting any draft t