Destructive commands
rm -rf, git reset --hard, force pushes, DROP TABLE, sudo. The command waits for your approval. If nobody answers, the card blocks it by itself, so a background agent never hangs and never slips through.
AgentGate for Mac
AgentGate is a Mac app that sits between AI coding agents like Claude Code and your Mac. Tests, builds and file reads run without interruption. Deleting a folder, reading your keys or force-pushing stops for a card you approve with Touch ID. Restore a file or project from its pre-edit snapshot.
One-time purchase · One Mac · macOS 14+ on Apple silicon and Intel · 30-day refund

npm test && echo … | base64 -d | sh. AgentGate shows what it would actually run.
Known read, build and test commands pass silently, so it stays out of your way. These are the moments it steps in.
rm -rf, git reset --hard, force pushes, DROP TABLE, sudo. The command waits for your approval. If nobody answers, the card blocks it by itself, so a background agent never hangs and never slips through.
For Claude Code and proxied MCP responses, Secret Shield replaces detected secrets with placeholders. For Codex and Gemini built-in tools, it records detections. Returning a vaulted value to an MCP server requires approval.
Prompt injections rarely say what they mean. AgentGate decodes Base64, hex and URL-encoded payloads, up to three layers deep, and shows you the real command in red on the card.
With Workspace Jail on, an agent started in one client's repo cannot wander into another's, or into ~/Documents or ~/.ssh. For Claude Code shell commands and MCP servers, macOS itself refuses the file.
Editing its own hooks, killing AgentGate or touching AgentGate's data always needs your approval. A timed “Allow 15 min” never covers it.
Panic Freeze (⌃⌥⌘K, or the Freeze button on the pill) blocks tool calls that reach AgentGate until you lift it.
Before a supported file-edit tool runs, AgentGate snapshots the project. It is a copy-on-write clone, so it takes no extra disk space until files change.

AgentGate works through each agent's own hook and MCP settings. No kernel extension, no special permissions, nothing to write by hand.
/hooks. In Gemini, trust the project before using its MCP servers.Codex was tested on a Mac with a signed-in ChatGPT account. Gemini’s tools were tested with local replay. Google sign-in succeeded, but Gemini Code Assist for individuals rejected the model request from this CLI version.
| Agent | Approval cards and snapshots | Secret Shield | Project jail enforced by macOS |
|---|---|---|---|
| Claude Code | Yes, every tool call | Secrets replaced before the model sees them | Shell commands and MCP servers |
| Gemini CLI 0.72.0 (local replay) | Unanswered deletion blocked. Snapshot before write_file. | Example AWS key detected and logged | Verified with a local MCP server |
| Codex CLI 0.173.0 | Unanswered deletion blocked. Snapshot before apply_patch. | Example AWS key detected and logged | Verified with a local MCP server |
| Claude Desktop, Cursor, Windsurf | MCP tool calls | Secrets replaced in MCP responses | MCP servers started inside a project |
Every decision is written to a SHA-256 hash-chained log with tamper detection. Export it as CSV or PDF.
Send critical blocks and caught secrets to Slack, a JSON webhook, Datadog Logs or Splunk. Events carry a masked command, never the secret.
Lock Strict Mode, block named MCP servers or commands, and require agents to stop when AgentGate is not running, from Jamf, Kandji or Intune.
You should know the limits before you rely on it.
One-time license
One Mac. Approval cards, Secret Shield, snapshots and timeline, Workspace Jail, audit log, and updates. Try it free for 3 days first.
AgentGate is a Mac menu-bar app that sits between AI coding agents and your Mac. Ordinary commands such as running tests or reading files pass without interruption. Risky actions, like deleting a folder, reading SSH keys or a .env file, force-pushing, or touching a production database, stop for an approval card that you answer with Touch ID, Apple Watch or your Mac password. It also takes a snapshot before an agent changes files, so you can undo the change.
Claude Code supports approval cards, snapshots, secret replacement and a macOS jail for shell commands. With a signed-in Codex CLI 0.173.0, AgentGate blocked an unanswered deletion, took a pre-edit snapshot and logged an example AWS key. The model reported the block and the denial of an outside file through the MCP proxy. Gemini CLI 0.72.0 showed the same tool behavior with local replay. Gemini Code Assist for individuals rejected the signed-in request from that version. Claude Desktop, Cursor and Windsurf use the MCP proxy for local servers.
Install AgentGate and click Protect for Claude Code. From then on a destructive command such as rm -rf, git reset --hard, a force push or DROP TABLE does not run until you approve it on a card. If nobody answers, the card blocks the command by itself after a countdown (60 seconds by default). AgentGate also snapshots the project before the agent writes, so a mistake that gets through can be rewound.
AgentGate can ask for approval before sensitive reads. In Claude Code and in responses from proxied MCP servers, Secret Shield can replace detected secrets with placeholders. In Codex and Gemini built-in tools, AgentGate records detections and the original output can still reach the model.
Yes. Before a supported file-edit tool runs, AgentGate makes a copy-on-write snapshot of the project, which uses no extra disk space until files change. The timeline shows one restore point per agent turn. Pick a point, see what was edited, deleted or added since, and restore one file, bring back a deleted one, or rewind the whole project. The folder a rewind replaces is kept for 7 days.
No. AgentGate makes its decisions on your Mac with fixed rules, not with a cloud model. The only thing the app sends over the internet by itself is its license check: the activation receipt, a code for the Mac and the app version. If you set up team alerts to Slack, a webhook, Datadog or Splunk, those carry a masked command and never the secret.
Click Unprotect and AgentGate takes its hooks and proxy entries back out. If you have not edited the file since, your settings file comes back byte for byte, with your own formatting. If you did edit it, your edits stay and only AgentGate's entries are removed. Every file is also backed up before AgentGate changes it. After that, drag the app to the Trash.
No. Approvals use Touch ID or Apple Watch when your Mac has them, and your Mac password when it does not. The card and the setup guide name the method your Mac will actually use.
AgentGate runs as the same user as the agents it watches, so it is a guardrail and not a full sandbox. It raises the bar in several layers: an agent that tries to touch AgentGate's own data, switch it off or rewrite its own hooks needs your approval, hidden Base64 or hex payloads are decoded and judged as if typed in the open, and with Workspace Jail on, macOS itself refuses Claude Code shell commands and MCP servers a file outside the project. If the app is not running, agents run unguarded unless your company's policy says to block.
Yes. Download AgentGate and it runs fully for 3 days with no payment details. After that it needs a license. When AgentGate is not licensed it stops enforcing and says so clearly; it never blocks your agents over a billing problem. Every purchase also has a 30-day refund for any reason.
One $79 USD payment licenses one Mac and includes updates. Enter the emailed purchase key and your Mac code on the activation page, then paste the signed receipt into AgentGate. After activation the app checks the license online when it opens and keeps working for up to 3 days without internet.
Yes. AgentGate reads managed preferences from MDM tools such as Jamf, Kandji and Intune, so a company can lock Strict Mode, block named MCP servers or commands, and require that agents stop when AgentGate is not running. It keeps a hash-chained audit log with tamper detection and exports CSV and PDF. Each Mac needs its own license.
macOS 14 or later, on Apple silicon and Intel Macs. It needs no special Apple entitlement and no kernel extension: it works through each agent's own hook and MCP settings.