Skip to main content

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. 1

    Copy the install text

    In TryBrake, create an agent for Gemini CLI. You get a short text to paste.

  2. 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. 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.

See all integrations

Protect your Gemini CLI agents today.

Connect your first agent in five minutes. 14 days free, no credit card.