Claude Code · Cursor · Free
Stop your AI coding agent from leaking secrets or breaking things
Claude Code and Cursor run commands on your computer. The same agent that runs your tests can read your .env file, force-push over your team's work, or install a package nobody checked. Agent Verify checks every command, file read, file edit and MCP tool call before it runs.
npx agentverify@latest protect
Then fully restart Claude Code or Cursor. That's it.
Blocked
- ✕ Reading .env files, SSH keys and cloud credentials
- ✕ Sending secrets or keys to a web address
- ✕ Deleting whole folders or wiping a disk
- ✕ Piping a download straight into a shell (curl … | sh)
- ✕ Force-pushing to main or master
- ✕ Running hidden, encoded commands
- ✕ The agent changing the guard’s own settings
Asks you first
- ? Installing packages
- ? Deploys (Terraform, kubectl, Vercel and others)
- ? Pushing straight to main
- ? Editing CI workflows
- ? MCP tools that delete, pay or send
Untouched
Normal work runs as before: running tests, building, editing your code, reading project files. No extra prompts for everyday commands.
It catches the sneaky versions too
Wildcards
cat .en* is caught, not just cat .env.
Encoded commands
base64-decoded text piped into a shell is blocked.
Scripts that read your keys
If the agent writes code that opens a secret file, you are asked first.
Shell, not just tools
It checks what a shell command actually does, not only the name of the tool.
How it works
- 1. One command adds a check to each app.
protectwrites the hook settings Claude Code and Cursor already support (.claude/settings.jsonand.cursor/hooks.json) plus a rules file,.agentverify/policy.json. Commit them and everyone on the project gets the same protection. - 2. Before each action, the app asks Agent Verify. The check runs on your computer and answers allow, block or ask. A block comes with a reason, so the agent tells you why instead of trying another way.
- 3. Every decision is saved. See what was blocked with
npx agentverify@latest log, or live on your dashboard with a free account.
For teams
- • Company rules: set them once on the dashboard and every developer's coding agent follows them within five minutes.
- • Approvals from your phone: when nobody is at the computer, the agent pauses until someone taps Approve or Deny.
- • Live activity: see what every developer's AI agent did, with secrets masked.
Questions
Is it free?
Yes. The guard for Claude Code and Cursor is free, including the local log. Company-wide rules for every teammate are part of the Team plan.
Does it slow my agent down?
Each check runs on your own computer. Installed with npm install -g agentverify, a check takes about a tenth of a second. Through npx it takes about a second and a half, because npx starts up each time.
Does my code leave my computer?
No. The checks run locally. Only if you set AGENTVERIFY_API_KEY are decisions sent to your dashboard, and commands are masked first so keys and tokens are not sent.
Which tools does it work with?
Claude Code and Cursor. It checks shell commands, file reads, file edits and MCP tool calls before they run.
Can the agent turn it off?
No. Changing the guard’s settings files is one of the blocked actions, so the agent cannot remove or loosen it on its own.
How is this different from Claude Code’s permission settings?
Permission lists match tool names and file patterns you write by hand. The guard also looks inside shell commands and the code the agent writes, catches wildcards and encoded commands, and works the same way in Cursor.
How do I see what was blocked?
Run npx agentverify@latest log on that computer, or set AGENTVERIFY_API_KEY to see every decision live on your dashboard.
How do I remove it?
Delete the Agent Verify lines from .claude/settings.json and .cursor/hooks.json in your project (and the .agentverify folder if you want). The agent cannot do this for you, by design.
Full setup options are in the docs. Building your own agent instead? See Agent Guard for your own agents.