TryBrake for Gemini CLI
Gemini CLI, with a check before every command.
TryBrake hooks into Gemini CLI and checks each shell command and each file write or edit before it happens. Dangerous ones are blocked, sensitive ones wait for you, and everything is logged.
The same install works for Claude Code, Codex CLI and Cursor.
How it works
Set up in three steps.
- 1
Copy the install text
In TryBrake, create an agent for Gemini CLI. You get a short text to paste.
- 2
Paste it into Gemini CLI
A one-time installer adds TryBrake's hook to your project's .gemini/settings.json, keeping a backup of the old file.
- 3
Work as usual
Each command and edit 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.
File edits
Writing or replacing a file is checked too, so a rule can hold the edits you care about.
Questions
Good to know.
Does it slow Gemini CLI 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 .gemini/settings.json, and the installer keeps a backup of your settings.
Works with more than Gemini CLI.
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
- CursorTerminal commands and MCP tool calls
- PythonLangChain, CrewAI, OpenAI Agents SDK…
- JavaScript / TypeScriptVercel AI SDK, LangChain.js, Node
- Anything elseOne HTTP call before each action

