Secure Cursor agents with a local execution gate

Cursor’s agent mode executes multi-step plans with write access to your repo and shell. It does not know your infrastructure boundaries, your compliance windows, or which database is production, and rules files are advisory, not enforced.

Mergen sits between Cursor and your systems as a local execution gate. Policy is evaluated deterministically on your machine in milliseconds: no LLM in the critical path and no cloud round-trip.

What is covered, precisely

Set up in two minutes

Install the server
npm install -g mergen-server
Configure Cursor (installs the shell and edit hooks)
mergen-server setup --ide=cursor
Start the gate
mergen-server start

What gets stopped

rm -rf / (and obfuscated variants)
Hard safety policy; the benchmark corpus tracks obfuscation and encoding evasions.
kubectl delete namespace production
Blast-radius rules distinguish a namespace delete from a pod restart.
aws iam create-access-key
Credential-surface changes escalate to HOLD for human review.

Human-in-the-loop approvals

A held shell command stops with the approval instructions. A human approves it from the CLI (`mergen approvals`), the local dashboard, or Slack on paid plans, and the same command goes through when Cursor runs it again. Holds fail closed: an unanswered hold auto-denies after 15 minutes, and every decision lands in the audit ledger.

Install Mergen →Quick start guide →See the benchmark →
Also available for: Claude Code · Codex CLI · Windsurf · VS Code