NEWBravos is available: point it at a repo and see which threats an attacker can reach.Create your account

Bravos · Pre-PR gate · Team plan

Your agent can't open a PR that hides a new risk.

With the pre-PR gate on, Bravos checks the branch each time your coding agent runs gh pr create or gh pr ready. A new risk the pull request does not name, a threat model that no longer checks out, or a confirmed exploit on changed code stops the command, with the reason, so the agent can fix it or say it.

npm install -g @bugb-technologies/bravos
bravos setup --pre-pr-hook

What holds a pull request.

  • A new risk nobody named

    Each new exposure on the branch with no control against it must be named in the PR body by its threat and asset id, in the Security gate section that bravos-ship writes. Until then the command stops.

  • A threat model that no longer checks out

    guardlink validate runs first, then guardlink lint on the claims since the merge base. A broken reference or a lint error on the branch holds the pull request.

  • A confirmed exploit on changed code

    A claim confirmed exploitable in a file the branch changed holds it, unless that file carries a @ticket for it. Changing the code does not clear a confirmation.

  • A broken rule your team set

    A change that breaks an approved security decision record's enforced rule, or an enforced company principle, is held until the code is fixed or a person approves a dated exception. Naming it in the PR body is not enough.

  • A new serious SAST finding

    Where SAST has run, a reached critical or high finding that the branch introduces holds it until a test settles it. Older findings are listed as a note.

  • Nothing else

    Every other command goes straight through. Without guardlink, or with no merge base, it lets the pull request through and says so. BRAVOS_PRE_PR=off turns it off for one shell.

Turn it on

Fix it, and the PR goes through.

One flag registers the gate before the shell tool of every agent you set up: Claude Code, Codex, Cursor, Antigravity, opencode and omp. It judges the branch as committed, so commit the fix first. Run it by hand to see what it would say before any pull request exists.

  • bravos setup --pre-pr-hookregister the gate before each set-up agent's shell tool
  • bravos setup --autopilotautopilot turns the gate on too
  • node .bravos/hooks/pre-pr.mjs --checkcheck the current branch by hand
  • BRAVOS_PRE_PR=offturn the gate off for one shell

Questions

Is it a git pre-commit hook?

No. Bravos has no git pre-commit hook. It has the pre-PR gate, which runs before gh pr create and gh pr ready, and a pre-push check for design documents. Your commits are not checked.

Which coding agents run it?

Claude Code, Codex, Cursor, Antigravity, opencode and omp. bravos setup --pre-pr-hook registers it before each set-up agent's shell tool, and it acts only on a command that runs gh pr create or gh pr ready. In omp it has 20 seconds. If it needs longer, the command goes ahead unchecked.

What goes in the PR body?

A Security gate section, which the bravos-ship skill writes: the validate and lint results, each new exposure listed as open by its threat and asset id, and what was not tested. Naming a new exposure's threat and asset id there lets the gate pass for it. A fix with a control removes it from the list.

Does naming a risk clear everything?

No. Naming clears an undisclosed new exposure. A confirmed exploit on a changed file needs a @ticket for it in that file, and a break of an approved decision record's rule or an enforced principle needs a code fix or a person's dated exception.

What if a check can't run?

Without guardlink on the PATH, or with no merge base against the default branch, the gate lets the command through and says what it did not check. If one of its checks fails or returns something it cannot read, it holds the pull request as unknown and names the check.

Is the pre-PR gate free?

It is on the Team plan. bravos account activate starts a 30-day Team trial with no card when your account has no plan. Without a licence the hook stands down with one line and never blocks, so a teammate without a seat still opens their pull request.

Does it run in CI too?

bravos setup --ci adds a PR gate workflow on GitHub: validate, lint since the merge base, undisclosed new exposure and confirmed exploits on changed paths, checked on the pull request itself.

Let no pull request hide a new risk.

Install the CLI, then run bravos setup --pre-pr-hook in your repository.

npm install -g @bugb-technologies/bravos

Open your project in your coding agent, then paste this.

Bring any model
  • Claude
  • OpenAI Codex
  • Mistral
  • GLM (Zhipu)
  • DeepSeek
  • Meta Llama
  • NVIDIA
  • Groq
and more

Everything Bravos does