onyourmarks-agency

Oym AI Jail — AI skill for Claude Code

AI community

An AI coding agent should never see more of your machine than you explicitly allow.

How to install Oym AI Jail

This entry records only its repository, not the path inside it, so there is no exact command to give. Open onyourmarks-agency/oym-ai-jail and copy the folder into ~/.claude/skills/, or the file into ~/.claude/agents/.

What Oym AI Jail does

An AI coding agent should never see more of your machine than you explicitly allow. `oym-ai-jail` enforces that. Not by trusting the agent's own guardrails, but by running agents like Claude Code, Mistral Vibe and OpenAI Codex inside a macOS Seatbelt sandbox.

Alternatives in AI

  • GPT 5.5 Prompt Enhancement — Use when a prompt explicitly requests GPT-5.5 style — pointer stub 176 ★
  • Dsh Auto Review — Second-model AI auto-review for DeepSeek Harness approval requests: a read-only reviewer subagent returns stru 155 ★
  • Krusch Context MCP — Persistent working memory and invariant steering MCP server for AI coding agents (Claude Code, Cursor, Windsur 82 ★

README

oym-ai-jail

An AI coding agent should never see more of your machine than you explicitly allow. `oym-ai-jail` enforces that. Not by trusting the agent's own guardrails, but by running agents like Claude Code, Mistral Vibe and OpenAI Codex inside a macOS Seatbelt sandbox. The OS draws the boundary: the agent writes only where you say, and everything else is invisible or read-only.

One binary. One command to install, configure and keep updated. No manual `.sb` files, no `sudo`, no hand-edited `~/.zshrc`.

What it does

Running `claude` (or `vibe`, `codex`, …) wraps the process in `/usr/bin/sandbox-exec` with a generated Seatbelt profile:

  • The agent can write only where you allow it — by default the directory you started it in, plus your extra write_paths.
  • Siblings stay safe — other projects in your workspace are invisible (strict), readable (read) or writable (write), your choice.
  • Your home dir is off-limits — /Users and /Volumes are read+write denied except for the config dirs the agents need (~/.claude, ~/.codex, …), writable toolchain caches (go-build, npm/pnpm stores, Docker state, …) and your read_paths (e.g. ~/ai-allowed).
  • Nothing the jail depends on can be rewritten — anything on PATH or sourced by your shell (~/.local/bin, version-manager dirs like fnm/nvm/rvm/volta/sdkman/mise, ~/go/bin, ~/.orbstack/{bin,shell}, ~/.docker/cli-plugins, .zshrc, .zcompdump, .zsh_history, ~/.zsh_sessions, ~/.config, ~/.gnupg) is read-only inside the jail, and writable dirs that hold executables (~/.ddev/bin, ~/.local/share/claude, …) get an explicit write-deny — including their parents, so they can't be renamed out from under the rules. An agent can't plant code your next unjailed shell or command would run.
  • The jail protects itself — ~/.config/oym-ai-jail (or wherever OYM_AI_JAIL_CONFIG points), the oym-ai-jail binary and the directory it lives i