Least-privilege runtime security for AI coding agents.
Enforce information-flow control, per-repo capability profiles, kernel sandboxing, and signed repo config gates locally in milliseconds — across Claude Code, Cursor, VS Code Copilot, Antigravity, and OpenCode.
$curl -fsSL https://taintd.dev/install.sh | bash
$agent-taint install claude
Breaking the lethal trifecta at runtime
Instead of fragile regexes trying to detect prompt injection text, agent-taint
tracks information flow per session. Once untrusted external data enters context,
credential reads and network egress are blocked automatically.
Two layers of defense, zero cloud dependency
Run locally in milliseconds on every tool call. Pair agent-gate for repo config
integrity with agent-taint for runtime exfiltration prevention.
agent-gate
Stops malicious pull requests and cloned repos from sneaking rogue hooks, MCP servers, or prompt rules into your coding agent.
- Hashes & verifies
.claude/,.cursor/,.mcp.json,AGENTS.md,CLAUDE.md - Blocks untrusted or modified repo configs before the first tool executes
- Re-verifies mid-session if a git checkout or tool modifies agent configs
- Explicit human approval workflow per repo fingerprint
agent-taint
Tracks untrusted input and credential reads per session, enforcing fail-closed policies
and optional kernel-level OS sandboxing (Linux bwrap & macOS Seatbelt).
- Forward & reverse trifecta: untrusted input blocks secrets, secret reads block egress
- Self-protection in every session — agents cannot edit policies, hooks, or binaries
- Subagent laundering guard asks before spawning child agents from tainted sessions
- Guided
/taint-setup, audit learn mode, and interactive/taint-review
One policy across all five AI coding harnesses
Developers switch editors; your security boundary shouldn't disappear when they do.
Both agent-taint and agent-gate install natively into every major harness.
Claude Code
agent-taint install claude
Fail-closed Pre/PostToolUse hooks in ~/.claude/settings.json plus marketplace plugin.
Cursor
agent-taint install cursor
Merges into ~/.cursor/hooks.json with failClosed: true.
VS Code / Copilot
agent-taint install vscode
Installs global Copilot agent hooks into ~/.copilot/hooks/.
Google Antigravity
agent-taint install agy
Native plugin with interactive force_ask prompts and skills.
OpenCode
agent-taint install opencode
Fail-closed TypeScript plugin installed in ~/.config/opencode/plugins/.
Open-source core. Built for security teams.
Permissively licensed for individual developers forever. Paid pilots and fleet controls for engineering and security teams rolling out coding agents at scale.
agent-taint&agent-gateRust CLIs- All 5 harnesses (Claude, Cursor, VS Code, Antigravity, OpenCode)
- Local
policy.json& per-repo profiles - Kernel OS sandbox (Linux
bwrap& macOS Seatbelt) - Audit mode & interactive
/taint-review
- MDM rollout package (Jamf, Kandji, Intune)
- Shadow MCP & repo-hook audit across dev machines
- Custom repo capability profiles & allowlists
- Audit log pipeline to Datadog, Splunk, Elastic, or S3
- SOC2 / ISO 27001 AI-agent control summary
- Ed25519-signed fleet policies & drift tracking
- Shadow MCP inventory & approval workflow
- Privacy-first centralized audit ingest & SOC2 CSV export
- Real-time alerts, remote command approvals & taint lift
- Zero-trust E2EE audit storage (age / GPG)