Agent Eval banner
vercel-labs vercel-labs

Agent Eval

Testing community

Description

Test AI coding agents on your framework. Measure what actually works.

Installation

This entry records only its repository, not the path inside it, so there is no exact command to give. Open the source below and copy the folder into ~/.claude/skills/, or the file into ~/.claude/agents/.

README

@vercel/agent-eval

Test AI coding agents on your framework. Measure what actually works.

Why?

You're building a frontend framework and want AI agents to work well with it. But how do you know if:

  • Your documentation helps agents write correct code?
  • Adding an MCP server improves agent success rates?
  • Sonnet performs as well as Opus for your use cases?
  • Your latest API changes broke agent compatibility?

**This framework gives you answers.** Run controlled experiments, measure pass rates, compare techniques.

Quick Start

# Create a new eval project
npx @vercel/agent-eval init my-agent-evals
cd my-agent-evals

# Install dependencies
npm install

# Add your API keys
cp .env.example .env
# Edit .env with your AI_GATEWAY_API_KEY and VERCEL_TOKEN

# Preview what will run (no API calls, no cost)
npx @vercel/agent-eval --dry

# Run all experiments
npx @vercel/agent-eval

CLI

Run all experiments

npx @vercel/agent-eval

With no arguments, the CLI discovers every `experiments/*.ts` file and runs them all. Each experiment runs in parallel. Results with matching fingerprints are reused automatically (see [Result Reuse](#result-reuse)).

Run a single experiment

npx @vercel/agent-eval cc

The argument is the experiment filename without `.ts`. This resolves to `experiments/cc.ts`.

Flags

Flag Description
--dry Preview what would run without executing. No API calls, no cost.
--smoke Quick setup verification. Picks the first eval alphabetically, runs once per model.
--force Ignore cached fingerprints and re-run everything. Only applies when running all.
--ack-failures Keep non-model failur