Hazmat
Description
Containment for AI agents - user isolation, sandboxed execution, network controls, backup/rollback. TLA+ verified.
Installation
This entry records only its repository, not the path inside it, so there is no
exact command to give. Open the source below and copy the folder into
~/.claude/skills/, or the file into ~/.claude/agents/.
README
Hazmat
Run AI coding agents inside OS-level containment.
Open-source containment for Claude, Codex, OpenCode, Antigravity, Hermes, Qwen, Cursor Agent, Pi, and shell loops
Hazmat lets an agent edit your repo without running as your real system user account.
It shows the session contract first, then launches the agent inside OS-level containment. Your project can be writable. Your real home directory, SSH keys, cloud credentials, and global dev state do not become the agent's default world.
Use it when you want the productive version of Claude Code, Codex, OpenCode, or a custom loop: fewer approval interruptions, more autonomy, and a smaller host blast radius.
The loop is simple: preview what the agent can reach, run it, then inspect what changed.
Try It
Fast path for Claude Code on macOS. The dry run previews setup; it does not launch an agent.
brew install dredozubov/tap/hazmat
hazmat init --dry-run
hazmat init --bootstrap-agent claude
cd your-project
hazmat explain -C .
hazmat claude
Replace the last command for another supported harness:
hazmat codex
hazmat opencode
hazmat antigravity
hazmat exec -- ./my-agent-loop.sh
After a session:
hazmat diff
hazmat snapshots
hazmat restore
Using Hermes, Qwen, Cursor Agent, Pi, or a custom script instead? Start with [docs/harnesses.md](docs/harnesses.md).
What You Get
On the first real run, Hazmat gives you:
- A separate user: the agent runs as
agent, not as your login account. - A readable session contract: project access, integrations, network mode, and service
Related Skills
Agency Agents
A complete AI agency at your fingertips - From frontend wizards to Reddit community ninjas, from whimsy inject
AI Awesome Llm Apps
100+ AI Agents, Agent Skills and RAG Apps - Free and Open Source.
AI Firecrawl
🔥 The API to search, scrape, and interact with the web for AI
AI Artifacts Builder
Suite of tools for creating elaborate, multi-component claude.ai HTML artifacts using modern frontend web tech
AI Headroom
Compress tool outputs, logs, files, and RAG chunks before they reach the LLM. 20% fewer tokens for coding agen
AI CrewAI
Framework for orchestrating role-playing, autonomous AI agents. By fostering collaborative intelligence, CrewA
AI