Prompt Injection Defense
Scans inbound and outbound tool traffic before the model ever sees it. Heuristic scorer flags injection signals in under 100µs.
Protect Claude Code, Cursor, Codex, Gemini CLI, and every AI agent from prompt injection, tool poisoning, runaway loops, and unsafe tool calls.
MIT licensed · Local first · One binary · No account required
Real-time visibility into every MCP and A2A tool call with live blocking, cost tracking, and policy enforcement.
Like htop for AI agents.
Six layers of inspection on every tool call — so a poisoned response, a runaway loop, or a leaked secret never reaches your agent.
Scans inbound and outbound tool traffic before the model ever sees it. Heuristic scorer flags injection signals in under 100µs.
Stops infinite loops and enforces spend caps per session with a sliding-window circuit breaker.
Know which MCP servers are abandoned, unsafe, or vulnerable — before you connect them.
Replay agent sessions locally and test new rule packs without paying for LLM tokens again.
Write YAML rules once — allow, block, flag, redact — and enforce them everywhere.
One command install. Auto-detects Claude Code, Cursor, Codex, Gemini CLI, and Windsurf — backs up every config byte-for-byte before touching it.
Transparent proxy. Sub-5ms overhead. Nothing leaves your machine.
Setting up AgentGuard is exactly the kind of thing your agent is good at — run a command, check a config, start a dashboard. Pick your agent, copy the prompt, paste it into the chat. It does the rest.
100% client-side — the prompt is assembled in your browser, nothing is sent
anywhere. The agent backs up your config before changing it, and
agentguard uninstall restores everything byte-for-byte.
“Every AI agent should ship with this.”— Staff Engineer, Series-B fintech
“This catches things MCP servers completely miss.”— Platform lead, enterprise SaaS
“The missing firewall layer for AI tooling.”— Solo founder, AI startup
“Caught a base64-encoded prompt injection on day one.”— Security engineer
“Byte-identical uninstall got us through security review.”— Platform lead
Built in Nepal by Nikhil Bhagat.