Zandy.Nix — AI skill for Claude Code
Sandbox for AI coding agents on macOS, declared in Nix, enforced by the kernel.
How to install Zandy.Nix
This entry records only its repository, not the path inside it, so there is no
exact command to give. Open tbsklg/zandy.nix and copy the folder into
~/.claude/skills/, or the file into ~/.claude/agents/.
What Zandy.Nix does
Sandbox for AI coding agents on macOS, declared in Nix, enforced by the kernel.
Alternatives in AI
- Agent Kernel — Minimal kernel to make any AI coding agent stateful 334 ★
- Cplt — Sandbox for AI coding agents 114 ★
- Enso OS — The first AI plugin that speaks first 88 ★
README
zandy.nix for macOS
**A sandbox for coding agents on macOS: declared in Nix, run by Zig, enforced by the macOS kernel.**
You declare in a flake what Claude Code or opencode may touch. zandy starts the agent so it can't touch anything else:
- your project, not the rest of
$HOME - your flake's tools, not your machine's
- port 443 and the model gateway, nothing else
- no credentials inside the sandbox
How it works
**Nix** declares the sandbox: tools, files, network, adapters and the model backend. **zandy**, written in Zig, turns that into a Seatbelt profile, then starts the agent with a broker and a gateway that use your credentials outside the sandbox. **Seatbelt**, the macOS kernel sandbox, enforces the profile, and the agent can't loosen it.
The same flake always gives the same sandbox, the built sandbox is read-only, and it holds no secrets.
Apple Silicon only.
Quickstart
With [Nix](https://nixos.org/download) and flakes enabled:
mkdir -p ~/.config/zandy && cd ~/.config/zandy
nix flake init -t github:tbsklg/zandy.nix
$EDITOR flake.nix
git init && git add -A
nix profile add ~/.config/zandy
Then start the agent in any project:
cd ~/code/widgets
zandy-claude
The template uses Bedrock and the GitLab and AWS adapters. To switch the model backend or set up secrets, see the [docs](docs/README.md).
Update
After editing your flake:
nix profile upgrade --all
To also pull the latest zandy, run in the flake's directory:
nix flake update zandy && nix profile upgrade --all
If your flake is in a git repo, `git add` new files first. Flakes only see tracked files.
Documentation
Everything else is in [docs](docs/README.md): configuration, model backends, secrets, writing adapters, security limits and troubleshooting.
Related Skills
Confine.Nix
Sandbox for AI coding agents on macOS, declared in Nix, enforced by the kernel
Skilljail
Manifest-declared, kernel-enforced least privilege for AI agent skills (Claude Code SKILL.md). Seatbelt/Landlo
Agentacl
Access control and sandboxing for AI coding agents on macOS. Stop Claude Code, Codex, Gemini CLI, Copilot CLI
BulkheadScope
Sandbox policy reality-check and least-privilege minimizer for AI coding agents. Merges every permission layer
Fable Director
Token governance for Claude Code: the top model directs, execution goes to the cheapest adequate means. Routin
Agentlanes
Run several AI coding agents on one machine without collisions: file leases, job slots, an event log, and kern
Related Agents
Reality Checker Tram
Tier-2 Harness Auditor for Team RAM. Cross-session, cross-project health audits. Verify invariants are enforce
Kernel Coding Style Critic
Specialist critic for linux-kernel-dev answers · scores ONLY coding style — kernel coding-style.rst adherence