apex-verify

mcp
Security Audit
Warn
Health Warn
  • License — License: Apache-2.0
  • Description — Repository has a description
  • Active repo — Last push 0 days ago
  • Low visibility — Only 5 GitHub stars
Code Pass
  • Code scan — Scanned 12 files during light audit, no dangerous patterns found
Permissions Pass
  • Permissions — No dangerous permissions requested

No AI report is available for this listing yet.

SUMMARY

Catch AI code changes that pass your tests but are wrong. A different model writes the missing checks, proves they can fail, and answers ready / not ready with evidence. CLI, Claude Code and Gemini CLI hooks, GitHub Action.

README.md

Apex logo

Apex verify

Your tests passed. The AI's change was still wrong.

1 in 5 wrong AI changes pass the project's own tests.
Apex verify caught every one. No API key needed.

CI Release GitHub Marketplace License: Apache-2.0 Stars apex-verify MCP server on Glama

A real AI change to the cookie library: npm test passes 37 of 37; apex verify, with no API key, says NOT READY because double-quoted cookie values the task allows now throw

A real AI change to a real library: all 37 tests pass, and Apex verify finds the bug in 6 seconds.

Try it in 5 seconds (no key, no project):

npx --yes https://github.com/apex-engine-dev/apex-verify/releases/download/v0.3.7/apex-verify-0.3.7.tgz verify --demo

The proof

1 in 5 wrong AI changes pass the project's own tests (22 of 107). Apex verify caught 107 of 107. 66 of 66 ready verdicts were right.

On 200 AI-written changes to 23 real libraries The project's tests Apex verify
Wrong changes caught 85 of 107 107 of 107
"Ready" verdicts that were right (never says ready) 66 of 66
Good changes blocked 10 of 93 17 of 93 (12 were real bugs the hidden tests missed)

Right and wrong were decided by hidden tests Apex verify never sees. How we measured, and every miss.

Run it on your project

cd your-project
npx --yes https://github.com/apex-engine-dev/apex-verify/releases/download/v0.3.7/apex-verify-0.3.7.tgz verify "what you asked the AI to do"
  • No key: uses your signed-in Claude Code or Gemini CLI. Or any API key.
  • Languages: JS/TS, Python, Go, Rust, C/C++, C#, plus docs and config.
  • Safe: runs on a copy, in a sandbox. Exits 0 ready, 1 not ready, 3 unknown.
  • Everywhere: Claude Code plugin, GitHub Action, Gemini CLI hook, MCP (setup).

How it works

🧪 A different AI writes the checks from your task text, never from the agent's code or tests. A model grading its own work shares its blind spots.
🔍 Every check must fail on the old code a check that cannot tell old from new proves nothing and is thrown away.
🧱 Nothing else may break your tests run before and after; a test that passed before and fails now is a regression.
🕵️ No gaming deleted, skipped or .only tests, weakened assertions, a test script that cannot fail, special-cased examples.
🛡️ Your project is never touched everything runs on a copy, in a sandbox (macOS Seatbelt, Linux bubblewrap, Windows AppContainer).
🤷 It says "unknown" when it cannot know never a silent pass. Every unknown says why.

Where it is wrong

  • False alarms: stops 17 of 93 changes labelled right; 12 were real defects, so 3 to 5 in 93 are its own mistakes.
  • "Unknown" on about 4 in 10 real pull requests, always with the reason (docs gaps, unsupported languages, projects that will not install).
  • Verdicts can change between runs: checks are written fresh each time.

Found a wrong verdict? Send the case: we add the good ones to the benchmark.

Put it where the change happens

Where How Tested
Claude Code /plugin marketplace add apex-engine-dev/apex-verify then /plugin install apex-verify@apex: a Stop hook blocks "done" until the change is ready (at most 3 times) in a real session
GitHub pull requests the Action: one verdict comment, kept up to date, and a check you can make required on real pull requests
Gemini CLI an AfterAgent hook in real sessions
Any MCP client the verify_change tool with real MCP input
Codex CLI, Cursor stop hooks in their documented formats synthetic input only, not yet in the apps

Copy-paste configs: docs/INTEGRATIONS.md. What is tested, per use case: docs/USE-CASES.md.

The GitHub Action, and what its comment looks like
# .github/workflows/apex-verify.yml
name: Apex verify
on: pull_request
permissions: { contents: read, pull-requests: write }
jobs:
  apex-verify:
    runs-on: ubuntu-latest
    steps:
      - uses: actions/checkout@v4
        with: { fetch-depth: 0 }
      - uses: apex-engine-dev/apex-verify@v1
        with:
          api-key: ${{ secrets.GEMINI_API_KEY }}

The task is the pull request's title and description. It fails the job on not ready (or when it could not run). Real output on the demo change:

❌ Apex verify: NOT READY

  • 2 checks written from the task fail on the new code
    check: slugify('Hello, World!') is 'hello-world'
      expected: hello-world
      actual:   hello-world!
    
    • fix: Make the change satisfy the behaviour in the task; the failing check output shows what is expected.

tests: 2 passed, 0 failed · checks: 5 passed, 2 failed; written from the task by gemini-3.1-pro-preview; they fail on the old code

Options: checkers, shared settings, signing
  • Checker: with no provider and no key, Gemini CLI (if signed in with a Google account) or Claude Code writes the checks: --provider claude-cli / gemini-cli to choose, --model optional. The CLI gets only the prompt, in a new empty folder, with its tools, settings and MCP servers off (Claude Code) or its agent prompt replaced and no extensions (Gemini CLI). With a key: GEMINI_API_KEY (default), or --provider openai|anthropic|openrouter --model <id>, or --base-url for any OpenAI-compatible endpoint. Pick a checker from a different company than the agent that made the change. --no-model runs only your tests and the cheating scan (the verdict is then at most unknown).
  • What gets checked: the working tree an agent just edited, a branch (--base), or a diff from any tool or person (--diff).
  • Languages: checks are written for node:test, pytest, Jest, Vitest, Rust (cargo test), Go (go test), C and C++ (a small check program compiled against your headers), and C# (dotnet test, when the .NET SDK is installed). A change with no code in it (docs, config, CI) gets file checks that read the changed files; they can confirm a change, never block it. Other stacks still get your tests and the scan.
  • Dependencies: Go and Rust modules are fetched and .NET packages restored before the network-free sandbox runs. --install installs missing JavaScript dependencies from the lockfile with install scripts off (on by default in the GitHub Action); Python dependencies only with an explicit --install, since pip runs the project's build code outside the sandbox.
  • Team settings: a committed .apex-verify.json (provider, model, testCommand, timeout, lockTests), read from the commit being compared with, so a change cannot rewrite its own rules. Flags win.
  • Evidence: --sign-key signs the report, --badge-out writes a README badge, --lock-tests restores the original tests before they run.

What it will not do

  • Prove correctness. It raises the bar; a check can be wrong in both directions.
  • Replace review or CI. It runs next to them (and in CI with the Action).
  • Send your code anywhere but the checker you choose: your task and the relevant source files (about 24 KB at most) go to that model. No telemetry.

Where to find it

Questions

Isn't this just CI? CI runs the tests that exist. The pain is the change nobody wrote a test for, or the test the agent deleted or skipped. Apex verify writes the missing checks, proves they can fail, and flags tampering.

What does it cost? One model call per task to write the checks (reused while an agent retries), plus a short second look when a check fails: seconds, and cents or a little of your subscription. Your tests run locally.

What if the checker is wrong? "Where it is wrong" above says how often, and docs/RESULTS.md has every case. A suspect check is turned into unknown by a second look, the hook never blocks more than 3 times, and APEX_MODE=warn never blocks.

Contribute

If it catches something for you, a ⭐ helps others find it. If it gets something wrong, open an issue: we add your case to the benchmark and credit you.

You can Where
Send a change Apex verify wrongly blocked (real examples are what would help most) what was tried, then an issue
Try the OpenAI or Anthropic API checker once and record what happened issue #30
Run the Codex or Cursor hook inside the real app a pull request or issue
Add a language or test runner issues labelled good first issue
Be a second maintainer GOVERNANCE.md

There is currently one maintainer; expect replies in days, not hours.

What is in this repository

Contributing · Roadmap · Security · Status · Changelog · Releases and versions

Licence

Apache-2.0: use it, modify it, ship it, at work or in your own products. The Apex verify name and logo are trademarks, not part of that grant (TRADEMARKS.md). Contributions use a DCO sign-off (git commit -s) and you keep your copyright.

Reviews (0)

No results found