npm package discovery and stats viewer.

Discover Tips

  • General search

    [free text search, go nuts!]

  • Package details

    pkg:[package-name]

  • User packages

    @[username]

Sponsor

Optimize Toolset

I’ve always been into building performant and accessible sites, but lately I’ve been taking it extremely seriously. So much so that I’ve been building a tool to help me optimize and monitor the sites that I build to make sure that I’m making an attempt to offer the best experience to those who visit them. If you’re into performant, accessible and SEO friendly sites, you might like it too! You can check it out at Optimize Toolset.

About

Hi, 👋, I’m Ryan Hefner  and I built this site for me, and you! The goal of this site was to provide an easy way for me to check the stats on my npm packages, both for prioritizing issues and updates, and to give me a little kick in the pants to keep up on stuff.

As I was building it, I realized that I was actually using the tool to build the tool, and figured I might as well put this out there and hopefully others will find it to be a fast and useful way to search and browse npm packages as I have.

If you’re interested in other things I’m working on, follow me on Twitter or check out the open source projects I’ve been publishing on GitHub.

I am also working on a Twitter bot for this site to tweet the most popular, newest, random packages from npm. Please follow that account now and it will start sending out packages soon–ish.

Open Software & Tools

This site wouldn’t be possible without the immense generosity and tireless efforts from the people who make contributions to the world and share their work via open source initiatives. Thank you 🙏

© 2026 – Pkg Stats / Ryan Hefner

agent-validator

v1.13.1

Published

A CLI tool for validating AI coding agents

Readme

Agent Validator logo

CI npm TypeScript License OpenSpec

Don't just review the agent's code — put it through the gauntlet.

Agent Validator (formerly Agent Gauntlet) is a configurable “feedback loop” runner for AI-assisted development workflows.

You configure which paths in your repo should trigger which validations — shell commands like tests and linters, plus AI-powered local code reviews. When files change, Agent Validator automatically runs the relevant validations and reports results.

For AI reviews, it uses the CLI tool of your choice: Gemini, Codex, Claude Code, GitHub Copilot, or Cursor.

Features

  • Agent validation loop: Keep your coding agent on track with automated feedback loops. Detect problems — deterministically and/or non-deterministically — and let your agent fix and Agent Validator verify.
  • Local cross-agent code reviews: Enable one AI agent to automatically request code reviews from another. For example, if Claude made changes, Agent Validator can request a review from Codex — spreading token usage across your subscriptions instead of burning through one.
    • Multiple AI review adapters have been evaluated for quality and efficiency. Claude and Codex deliver optimal review quality with superior token efficiency. For detailed metrics, see Eval Results.
  • Leverage existing subscriptions: Agent Validator is free and tool-agnostic, leveraging the AI CLI tools you already have installed.

Example Workflow

  1. Claude implements a feature
  2. Agent Validator reports linter failures and bugs detected by Codex reviewer agent
  3. Claude fixes issues
  4. Agent Validator reports linter issue remaining
  5. Claude fixes issue
  6. Agent Validator confirms all issues fixed

Agent Validator Demo

Comparison vs Other Tools

Agent Validator is not a replacement for AI pull request review tools. It provides real-time feedback loops for autonomous coding agents, combining deterministic static checks (build, lint, test) with multi-agent AI reviews in a single pipeline. This enables agents to iterate and self-correct until all checks and reviews pass, without human intervention.

Full comparison →

It is recommended to use Agent Validator in conjunction with spec-driven development tools. We believe it is the ideal implementation of the validation step in any Spec → Implement → Validate workflow.

Quick Start

Requirements

  • Node.js (v18.0.0+), git
  • For reviews: one or more supported AI CLIs (gemini, codex, claude, github-copilot, cursor). See CLI Invocation Details.

Installation & Setup

npm install -g agent-validator
agent-validator init

init detects your installed AI CLIs, creates .validator/config.yml with a generated root entry point and recommended local AI reviews, and installs agent plugins and skills through agent-plugin. Use --agents claude codex to preselect development agents, or --yes to skip prompts and use defaults, including global/user install scope.

After init, run the validator-setup skill in your AI agent session to auto-discover your project's tooling and populate the config. See the Skills Guide for details.

Configuration Concepts

Agent Validator uses three core concepts:

  • Entry points: Paths in your repository (e.g., src/) that Agent Validator monitors for changes.
  • Checks: Shell commands that run when an entry point changes — things like tests, linters, and type-checkers.
  • Reviews: AI-powered code reviews requested via CLI tools like Codex, Claude, or Gemini.

When you run Agent Validator, it detects which entry points have changed files and runs the associated checks and reviews.

Example Configuration

Checks and reviews are defined inline in config.yml. Here's a simplified real-world example:

base_branch: main
log_dir: validator_logs
allow_parallel: true

cli:
  adapters:
    github-copilot:
      allow_tool_use: false
      thinking_budget: low

entry_points:
  - path: "."
    exclude:
      - .validator
      - openspec
    checks:
      - build:
          command: bun run build
      - lint:
          command: bunx biome check src
      - typecheck:
          command: bun run typecheck
      - test:
          command: bun test
      - security-code:
          command: semgrep scan --config auto --error src
    reviews:
      - code-quality:
          builtin: code-quality
          cli_preference:
            - github-copilot
          model: claude-sonnet-4.6
      - security-and-errors:
          builtin: security-and-errors
          cli_preference:
            - github-copilot
          model: gpt-5.3-codex
  • Checks are inline shell commands — pass/fail based on exit code
  • Reviews reference a builtin prompt or a custom .validator/reviews/*.md file
  • Entry points can share gate names — define a gate inline once, reference it by name elsewhere

For check/review file definitions, per-review settings, and the full configuration schema, see the Configuration Reference and User Guide.

Agent Skills

Agent Validator installs as a plugin for Claude Code, GitHub Copilot, and Cursor (and copies skill files for Codex), giving you slash-command workflows directly in your AI agent session. See the Skills Guide for the full list.

Recommended Reviewer Configuration

Based on April eval benchmarks across code-quality, security, and error-handling prompts, plus the May follow-up eval comparing Haiku, GPT-5.4 Mini, and GPT-5.5.

Built-in review prompts available:

| Builtin | Covers | Best with | |---------|--------|-----------| | code-quality | Bugs, logic errors, style | Sonnet (separate) | | security | Auth, injection, data exposure | Sonnet (separate) | | error-handling | Missing error handling, silent failures | Sonnet (separate) | | security-and-errors | Security + error-handling combined | GPT (combined) | | all-reviewers | All of the above in one pass | GPT (combined) |

At a glance:

| Scenario | Recommended config | Why | |----------|--------------------|-----| | Best default value | codex GPT-5.3-Codex with all-reviewers | Best validated single-pass value config: 0.69 recall, 0.96 precision across all 56 issues. | | Higher-recall Copilot option | github-copilot Sonnet for code-quality + github-copilot GPT-5.3-Codex for security-and-errors | Better coverage than Codex alone, but costs more because it runs two reviewers and Copilot pricing is moving toward API-style token pricing. | | Fast Copilot smoke pass | github-copilot Claude Haiku 4.5 with all-reviewers | Very fast and cheap, but recall is too low to use as the primary reviewer. |

GPT-5.4 Mini is not recommended for review gates. In May evals, it did not beat Haiku on value and did not beat GPT-5.3-Codex or Sonnet on recall.

Primary recommendation: Codex single-pass combined review. Best default value: one reviewer, one prompt, strong precision, and good recall.

# .validator/config.yml
cli:
  default_preference:
    - codex
  adapters:
    codex:
      allow_tool_use: false
      thinking_budget: medium

reviews:
  all-reviewers:
    builtin: all-reviewers
    model: gpt-5.3-codex         # 0.69 recall, 0.96 precision across all 56 issues (~82s)

Secondary recommendation (higher recall, higher cost): GitHub Copilot two-pass hybrid — Sonnet for code quality, GPT for security + error-handling combined.

# .validator/config.yml
cli:
  default_preference:
    - github-copilot
    - codex
  adapters:
    github-copilot:
      allow_tool_use: false
      thinking_budget: low        # optimal for Sonnet; keeps runtime ~105s
    codex:
      allow_tool_use: false
      thinking_budget: medium     # helps GPT on security/error-handling tasks

reviews:
  code-quality:
    builtin: code-quality
    cli_preference: [github-copilot]
    model: claude-sonnet-4.6     # 0.71 recall, 0.87 precision
  security-and-errors:
    builtin: security-and-errors
    cli_preference: [github-copilot]
    model: gpt-5.3-codex         # 0.79 recall in single combined pass (~73s)

Note: Do not use the claude (Claude Code CLI) adapter for reviews — it has significantly higher overhead than github-copilot and will timeout on most review prompts. Use github-copilot with model: claude-sonnet-4.6 to run Sonnet reviews.

Logs

Each job writes a log file under log_dir (default: validator_logs/). Filenames are derived from the job id (sanitized).

CI Setup (Optional)

To run your checks in GitHub Actions:

agent-validator ci init

This creates:

  • .validator/ci.yml — CI-specific configuration (services, runtimes, setup steps)
  • .github/workflows/Agent Validator.yml — GitHub Actions workflow file

Your local check definitions (.validator/checks/) are automatically used in CI. The ci.yml file lets you configure additional CI-specific settings like database services or runtime versions.

Updating

To update Agent Validator after upgrading the npm package:

agent-validator update

This updates the Claude Code plugin (via marketplace), the GitHub Copilot plugin (via gh copilot -- plugin install), refreshes the Cursor plugin (via file copy) if installed, and refreshes Codex skills if installed. The command auto-detects where each plugin is installed.

Execution State & Skipping

Agent Validator tracks an execution state baseline — the branch, commit, and working tree snapshot at which the last run completed. On subsequent runs, only changes since that baseline are reviewed, avoiding redundant and expensive re-reviews of code that already passed. When a run fails, the baseline stays put so the next run can verify fixes in a narrowed scope. If you want to advance the baseline without running reviews — for example, after manually reviewing changes, accepting flagged issues, or integrating upstream code — run agent-validator skip to record the current state as the new starting point. See Execution State Tracking for full details on how state is managed, when it resets, and edge cases.

For multi-worktree workflows, Agent Validator also records trusted snapshots in a shared git-common-dir ledger. A passing run, passing check, or explicit skip in one worktree can be recognized after committing or merging in another worktree. When reconciliation finds the current clean HEAD is already trusted, the validator exits with status trusted and advances the local baseline without rerunning gates. See Trusted Snapshots for the full workflow and merge behavior.

Documentation