TryBrake for Cursor
Let Cursor work. Check what it runs.
TryBrake hooks into Cursor and checks each terminal command and each MCP tool call before it runs. Dangerous ones are blocked, sensitive ones wait for you, and everything is logged.
The same install works for Claude Code, Codex CLI and Gemini CLI.
How it works
Set up in three steps.
- 1
Copy the install text
In TryBrake, create an agent for Cursor. You get a short text to paste.
- 2
Paste it into Cursor
Cursor runs a one-time installer that adds TryBrake's hook to your project's .cursor/hooks.json, keeping a backup of the old file.
- 3
Code as usual
Each command and MCP call is checked against your rules in a fraction of a second. You see everything in the dashboard.
What it stops
The mistakes you can't undo.
Folder and disk wipes
rm -rf and its variants are recognised however they're written.
Database wipes
DROP TABLE, DROP DATABASE and TRUNCATE can be blocked.
Risky git
Force pushes and history rewrites can wait for your approval.
MCP tool calls
Each MCP tool can have its own rule: block a delete tool, or hold one that sends messages.
Questions
Good to know.
Does it slow Cursor down?
Barely. Each check is a single quick request.
What if TryBrake is unreachable?
The command is blocked and the agent is told why. Nothing runs without a check.
Can I remove it?
Yes. It's a few lines in .cursor/hooks.json, and the installer keeps a backup of your settings.
Works with more than Cursor.
One TryBrake account protects every agent you run, wherever it's built.
- n8nProtect workflows and AI Agent tools
- MakeGuard modules in your scenarios
- Claude CodeBlock risky commands and edits
- ChatGPT & OpenAICodex CLI and agents built on OpenAI
- ZapierOne webhook step before the action
- Gemini CLICommands and file edits
- PythonLangChain, CrewAI, OpenAI Agents SDK…
- JavaScript / TypeScriptVercel AI SDK, LangChain.js, Node
- Anything elseOne HTTP call before each action

