Hazmat — AI skill for Claude Code
Containment for AI agents - user isolation, sandboxed execution, network controls, backup/rollback.
How to install Hazmat
This entry records only its repository, not the path inside it, so there is no
exact command to give. Open dredozubov/hazmat and copy the folder into
~/.claude/skills/, or the file into ~/.claude/agents/.
What Hazmat does
Containment for AI agents - user isolation, sandboxed execution, network controls, backup/rollback. TLA+ verified.
Alternatives in AI
- Openclaw Backup — One-click backup & restore for OpenClaw instances — workspace, credentials, skills, agent history 660 ★
- Rampart — Open-source firewall for AI agents 83 ★
- Orb — Self-evolving AI agent framework — wraps Claude Code CLI with persistent memory, multi-profile isolation, and 65 ★
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
Config Guard
Stop AI agents from crashing OpenClaw by validating config changes. Auto-backup, schema validation, and auto-r
Puiux Pilot
Auto-configures Claude Code hooks, MCPs, and skills for any project. Scans 95+ project types, selects from 28+
Unterm
The terminal AI agents can drive — and the cockpit to run them from. 99 MCP methods / 21 namespaces, agent Inb
Counterfactual Premortem Oracle
Pre-execution AI agent skill for counterfactual failure simulation, epistemic provenance auditing, rollback sy
Agent Rbac
Role-based access control and memory isolation framework for multi-user AI agents
Blade Agent Runtime
Blade Agent Runtime (BAR) - A safe execution runtime for AI coding agents with Git worktree isolation, step le
Related Agents
Platform Implementer
Use to implement one approved WP- covering CI/CD, containers, deployment manifests, configuration and secret r
Runtime Analyst
aireviewer Runtime Analysis Agent. Interprets sandboxed base-vs-head execution results (per-test and per-comma
Task Reviewer
Strict quality reviewer for implementation task files. Validates completeness, self-containment, and clarity f