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 ★
- Agent Teams AI — You're the boss, agents are your team 2k ★
- Coding Agent Template — Multi-agent AI coding platform powered by Vercel Sandbox and AI Gateway 1.8k ★
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
Decklet
AI slide generator for coding agents: a Claude Code and Codex skill plus CLI that turns any content into one s
Agentpet
A desktop pet for macOS & Windows that monitors your AI coding agents (Claude Code, Codex, Cursor, Gemini...)
Pwe AI Bar
Menu-bar quota meter for AI coding tools on macOS. Claude Code and Codex from the real endpoints, plus five mo
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
AuRO Whisky macOS Setup
AI-executed skill that installs uaRO (Ragnarok Online private server) on Apple Silicon Macs via Whisky/Wine —
Related Agents
Security Architecture
Boucle implements a defense-in-depth security model to protect against prompt injection attacks and maintain t
iOS Developer.Agent
Expert iOS/macOS developer specializing in Swift, SwiftUI, and the Apple toolchain. Use when: (1) Building Swi
Writing Critic
Reviews a proposal or content draft against the proposal-engine voice rules. Use BEFORE presenting any draft t