Purpose Apex verify targets code changes produced by AI coding agents: these changes may pass the project's own tests while still behaving incorrectly. The material's stated measurement is that "1 in every 5 wrong AI changes passes the project's own tests," and Apex verify catches all of them. Its role is not to replace CI or code review, but to cover "the part of the change nobody wrote tests for" and cases such as "the agent deletes or skips tests": CI only runs the tests that already exist, whereas Apex verify writes the missing checks, proves that those checks can fail, and flags tampering with tests.
Key capabilities
- Another model writes the missing checks based on the task (i.e., the PR title and description), and first verifies on the old code that these checks fail, thereby avoiding writing checks that always pass and cannot demonstrate anything.
- It runs these checks plus your own tests against the new code and outputs a ready / not ready / unknown conclusion with evidence, for example: a certain check slugify('Hello, World!') expected hello-world but actually got hello-world!.
- It also works without a model: with --no-model it only runs your own tests and the cheating scan, in which case the conclusion is at most unknown.
- It runs in a sandbox on a copy of the project; --lock-tests restores the original tests before running; --sign-key signs the report, and --badge-out generates a README badge.
- It can be placed where the change happens: Claude Code plugin, Gemini CLI hook, GitHub Action (fails the job when not ready or unable to run), MCP server (verify_change tool).
Usage
- No API key needed: use a logged-in Claude Code or Gemini CLI to write checks, selectable with --provider claude-cli / gemini-cli, with --model optional. The CLI only receives the prompt, runs in a newly created empty folder, and has its tools, settings, and MCP servers disabled (Claude Code), or has the agent prompt replaced and extensions disabled (Gemini CLI).
- Using a key: the default GEMINI_API_KEY; or --provider openai|anthropic|openrouter --model <id>; or point to any OpenAI-compatible endpoint via --base-url. It is recommended to choose a checker from a different company than the agent that made the changes.
- What is checked: the working tree the agent just edited, a branch (--base), or a diff from any tool or person (--diff).
- Languages and check frameworks: JS/TS (node:test, Jest, Vitest), Python (pytest), Rust (cargo test), Go (go test), C/C++ (a small check program compiled against your headers), C# (dotnet test, requires the .NET SDK to be installed); documentation and configuration changes are also supported—changes containing no code only generate file checks that read the changed files; such checks can confirm the changes but will not block. Other tech stacks will still run your tests and scans.
- Dependency handling: Go and Rust modules are fetched first, .NET packages are restored first, and then everything runs in a network-free sandbox. --install installs missing JavaScript dependencies based on the lockfile and disables install scripts (enabled by default in the GitHub Action); Python dependencies are installed only when --install is explicitly specified, because pip would execute the project's own build code outside the sandbox.
- Team settings: commit .apex-verify.json to the repository (provider, model, testCommand, timeout, lockTests); it is read from the commit being compared, so a change cannot rewrite its own rules; command-line arguments take precedence.
- Configuration and use-case documentation: docs/INTEGRATIONS.md, docs/USE-CASES.md; the repository also contains packages/cli, packages/engine, benchmark/, action.yml, integrations/, .claude-plugin/, docker/ and docs/. The installation command and specific invocation examples are not given in the materials; see the repository README.
Use cases
- An extra layer of verification after an AI agent commits changes and before merging, especially for changes lacking test coverage.
- In CI, run it as a GitHub Action and fail directly on PRs that are not ready or cannot run.
- In Claude Code / Gemini CLI workflows, intercept in place as a hook; the hook can block at most 3 times; setting APEX_MODE=warn means it never blocks.
- Scenarios requiring retained evidence: signed reports, README badges, reproducible benchmark cases.
Limitations and known issues
- It does not prove correctness: it raises the bar, but the checks themselves can be wrong in both directions.
- False positives: among 93 changes labeled as correct, it blocks 17, of which 12 are real defects, so about 3 to 5 (out of 93) are its own misjudgments.
- It returns unknown on about 40% of real PRs, always with a reason attached (documentation gaps, unsupported languages, projects that cannot be installed).
- Conclusions may vary between runs, because the checks are rewritten each time.
- It does not replace review or CI, but runs alongside them.
- Data flow: the task and related source files (up to about 24 KB) are sent to the checking model you choose, and nothing else is sent externally; no telemetry.
- Cost: one model call per task to write the check (reused during agent retries), plus a brief review if the check fails; it takes seconds and costs a few cents or consumes a small amount of subscription quota; your tests run locally.
- There is currently only one maintainer, and responses take days rather than hours.
License Apache-2.0, usable for work or your own products; the Apex verify name and logo are trademarks and are not included in that grant; contributions must be signed off with the DCO (git commit -s), and copyright remains with the contributors.