Release gate for LLM agents

Stop shipping worse AI agents.

AgentGate tests every pull request that changes your agent, old version against new, several times each, and blocks the merge when quality, safety, cost or speed get worse.

Free and open source. Runs in GitHub Actions, on your own model key.

AgentGate check
PR #7 · weaken the system prompt
BLOCKED
answer_correctness
−0.04
pass
retrieval_recall_at_5
−0.03
pass
security (critical)
20/20
pass
tool_selection_accuracy
−0.19
block
95% CI [−0.31, −0.09]: merge blocked

The 2-minute demo

2:09 · voiceoverEnglish captionsPlays only when you press play
Read the transcript

This is AgentGate. A safety check for AI agents, before they ship.

You changed a prompt. Or a model. Or a tool. Did your agent get better, or quietly worse? Trying a few questions by hand won't tell you, because AI answers change from run to run.

AgentGate checks every pull request that changes your agent. It tests the old version against the new one, and gives one verdict. Pass, warn, or block.

Here's how it works. Both versions answer the same test questions, plus a set of attack prompts, several times each. Every answer is scored, and compared question by question. Statistics filter out random luck, so noise doesn't cause false alarms. Then you get one clear verdict, on quality, safety, cost and speed.

Here's a real pull request. We weakened the agent's instructions on purpose. The check failed. Then the fix turned it green.

The verdict is one comment on the pull request, updated on every push. Each line shows before, after, the change, and how sure we are.

In another test, we let emails go out without human approval. AgentGate blocked it. Answers got worse, and five critical security tests failed.

A live dashboard shows every version of the agent, and every verdict. So every result can be traced back to exactly what ran.

You can try it in one minute. No API key, no setup. One command replays real recorded runs, and shows you a blocked change.

To use it in your own repository, install it from the GitHub Marketplace. Or get it from PyPI.

Setup takes three steps. Add one small workflow file. Add your own API key, as a secret. Then open a pull request, and AgentGate comments with its verdict.

And we tested the gate itself. Zero false alarms, in ten checks of an unchanged agent. Five out of five broken versions, caught. And about two dollars in API costs per check, on your own key. AgentGate itself is free.

AgentGate. Ship agent changes with proof, not hope.

01 · How it works

Three steps on every pull request that touches your agent.

  1. The same test for both versions

    Your current agent and the changed one answer the same questions and face the same attacks, several times each.

  2. A fair comparison

    Scores are paired case by case and a bootstrap gives a 95% interval, so run-to-run noise doesn't count as a regression.

  3. One clear verdict

    Pass, warn or block, as a GitHub check and one PR comment that updates itself, with the cases that got worse.

02 · A real pull request

It caught a broken prompt, then let the fix through.

PR #7 told the agent its tools were optional. The answers still looked fine. The way it used its tools didn't.

PR #7, commit bfb0a69 against 1120166: four quality metrics with their change and 95% confidence interval.
MetricBase → candΔ95% CIInterval plotVerdict
tool_selection_accuracy 1.00 → 0.81 −0.19 [−0.31, −0.09] block
answer_correctness 0.92 → 0.88 −0.04 [−0.10, +0.01] pass
retrieval_recall_at_5 0.97 → 0.94 −0.03 [−0.07, 0.00] pass
groundedness 0.97 → 0.99 +0.02 [−0.01, +0.08] pass
no change −0.05 threshold Blocks when the drop is past the threshold and the whole interval is below zero. Open PR #7 on GitHub

03 · Tested before trusting it

We measured the gate itself.

0 of 10

false alarms

An unchanged agent, checked against itself 10 times. Every trial passed.

5 of 5

broken versions caught

Bugs planted on purpose, each predicted before the run. All blocked.

≈ $2

API cost per check

Paid to your model provider, on your own key. AgentGate itself is free.

Small samples, shown with their 95% bounds in RESULTS.md, because "0 of 10" is not "0%".

04 · Try it in one minute

No key, no setup.

Replays five recorded gate runs on your machine, with no model calls.

uvx --from agentgate-ci agentgate demo

Recorded runs, replayed with no model calls.

1unchangedPASSED

2old-baselinePASSED WITH WARNINGS

3top-k-1BLOCKED

4cheaper-modelBLOCKED

5no-approval-stepBLOCKED

Condensed. The real output prints each run's full report.

05 · Set it up

One workflow file.

Add it to .github/workflows/ and open a pull request.

.github/workflows/agentgate.yml
on: pull_request
permissions:
  contents: read
  pull-requests: write   # the PR comment
  checks: write          # the check
jobs:
  gate:
    runs-on: ubuntu-latest
    env:
      OPENAI_API_KEY: ${{ secrets.OPENAI_API_KEY }}
    steps:
      - uses: romit-23/agentgate-action@v0
        with:
          paths: my_agent/ prompts/

Shortened. The full file adds a Postgres service that caches baselines. Setup guide

06 · What we store

Your numbers come to us. Your prompts never do.

Accounts open soon. When they do, the action will upload only what's on the left.

Uploaded after each gate run

  • Scores per test case
  • Latency and cost per run
  • The verdict, commit SHAs and version ids

Never leaves your CI

  • Your prompts and test questions
  • Your agent's answers and retrieved documents
  • Your model API key

You don't need an account at all: the PR comment and check work without one. The website adds history across pull requests.

Questions

Is it free?

Yes. AgentGate is MIT-licensed and the website is free. The only cost is your model provider's bill for the test runs, about $2 per check with our reference agent.

Which providers does it work with?

Any model LiteLLM supports, including OpenAI, Anthropic and Gemini. Switching is a config change.

Does it work with private repositories?

Yes. The gate runs inside your own GitHub Actions. The website's GitHub App will only read repository metadata, and only people with access to a repository on GitHub will see its dashboard.

Do I need an account?

No. The PR comment and the check work without one. An account adds a history of every verdict across pull requests.

Gate your next pull request.

Add one workflow file today. Sign in with GitHub when accounts open, and see every verdict in one place.