Commit Graph

160 Commits

Author SHA1 Message Date
github-actions[bot] 2eef698793 Version Packages (#45)
Co-authored-by: github-actions[bot] <41898282+github-actions[bot]@users.noreply.github.com>
@vercel/agent-eval@0.3.0
2026-02-08 00:31:38 -05:00
Jude Gao 9f7af6276c Add changeset for run-all and related features (#44) 2026-02-08 00:30:21 -05:00
Jude Gao 0bbd6b29d5 Make run-all the default when invoked with no arguments (#43)
`npx agent-eval` with no args now discovers and runs all experiments
(same as `agent-eval run-all`). Running a single experiment still
works: `npx agent-eval my-experiment`.
2026-02-08 00:24:17 -05:00
Jude Gao 3e57444699 Add run-all command with housekeeping (#41)
New run-all command auto-discovers experiments/*.ts and orchestrates
the full pipeline: fingerprint reuse, failure classification,
auto-retry of infra failures, and housekeeping.

Housekeeping runs after each experiment: keeps only the latest valid
result per (experiment, eval) pair, removes duplicates and incomplete
results, cleans up empty timestamp directories.

Supports --dry (preview), --force (ignore fingerprints), --smoke
(1 eval per experiment), and optional experiment name/glob arguments.
2026-02-08 00:21:05 -05:00
Jude Gao b841c01306 Add failure classification and auto-retry support (#40)
New classifier.ts module classifies failed evals as model, infra, or
timeout. Rule-based fast path catches ~80% of cases (timeout errors,
missing transcripts, rate limits, tiny transcripts with API errors).
Falls back to AI classification via gateway(anthropic/claude-sonnet-4-5)
with sandboxed read-only tools. Gracefully degrades to rule-based only
when AI_GATEWAY_API_KEY is not set.

shouldRetry() returns true when all failures are non-model, enabling
auto-retry of infra-failed evals.

summary.json now supports classification and valid fields. Results
marked valid: false are excluded from fingerprint reuse.
2026-02-08 00:17:03 -05:00
Jude Gao 8f08f07cd8 Add content fingerprinting and result reuse (#42)
Computes a SHA-256 fingerprint from all eval directory files plus the
config fields that affect results (agent, model, scripts, timeout,
earlyExit, runs). The fingerprint is stored in summary.json.

scanReusableResults() scans existing results and returns matches where
the fingerprint is identical, the result is valid, and passedRuns > 0.

Functions like setup and editPrompt can't be hashed — use --force to
re-run when these change.
2026-02-07 23:57:05 -05:00
Jude Gao 08eb8eedda Add --smoke flag for quick setup verification (#38)
Picks the first eval alphabetically and runs it once per model.
Useful for verifying API keys, model IDs, and sandbox connectivity
before committing to a full suite, especially with model arrays.
2026-02-07 23:41:19 -05:00
Jude Gao a5af95bfb3 Move script outputs to outputs/scripts/ to fix naming collision (#37)
When `scripts: ['eval']` is configured, the script output was written
to `outputs/eval.txt` which collided with the EVAL.ts test output at
the same path. Script outputs now go to `outputs/scripts/{name}.txt`.
2026-02-07 23:34:56 -05:00
Allen Zhou 38930cfad3 show playground runs 2026-02-07 15:01:58 -08:00
Allen Zhou 030a1a2af7 Merge pull request #35 from vercel-labs/changeset-release/main
Version Packages
@vercel/agent-eval-playground@0.1.2 @vercel/agent-eval@0.2.0
2026-02-07 14:43:16 -08:00
github-actions[bot] 3885f2ba08 Version Packages 2026-02-07 22:41:12 +00:00
Allen Zhou 59ceacaf77 Merge pull request #36 from vercel-labs/allen/recursive-directory-playground-support
fix: support recursive playground directory discovery
2026-02-07 14:40:38 -08:00
Allen Zhou 621e9893e5 support recursive playground directory discovery 2026-02-07 14:40:01 -08:00
Paolo Ricciuti 6839841576 Merge pull request #34 from vercel-labs/always-add-model-name-in-result
fix: always add model name to experiment run
2026-02-07 23:07:01 +01:00
paoloricciuti e9a4d7b821 fix: run build before running test 2026-02-07 23:04:04 +01:00
paoloricciuti 8d712a6350 chore: changesets for playground 2026-02-07 22:27:03 +01:00
paoloricciuti d3501c8b37 fix: playground parsing 2026-02-07 22:25:06 +01:00
Paolo Ricciuti 19f9ec73a0 chore: change to minor 2026-02-07 22:04:03 +01:00
paoloricciuti 186aa6d846 fix: add model to results 2026-02-07 21:12:27 +01:00
paoloricciuti 01cff7846c fix: always add model name to experiment run 2026-02-07 18:38:13 +01:00
Allen Zhou 5d681bdc4f Merge pull request #32 from vercel-labs/changeset-release/main
Version Packages
@vercel/agent-eval-playground@0.1.1
2026-02-06 17:54:08 -08:00
github-actions[bot] a7561caf63 Version Packages 2026-02-07 01:53:07 +00:00
Allen Zhou 08499abc1b fix playground ts error 2026-02-06 17:52:30 -08:00
Allen Zhou 2c816dd987 fix ci 2026-02-06 17:24:10 -08:00
Allen Zhou f7c165c6af Merge pull request #31 from vercel-labs/changeset-release/main
Version Packages
@vercel/agent-eval-playground@0.1.0 @vercel/agent-eval@0.1.0
2026-02-06 17:21:52 -08:00
github-actions[bot] dadcc4a421 Version Packages 2026-02-07 01:20:32 +00:00
Allen Zhou bfb3fbb92b Merge pull request #30 from vercel-labs/allen/nested-evals
feat: nested eval directories
2026-02-06 17:19:51 -08:00
Allen Zhou 93c6fa8d62 use minimatch 2026-02-06 15:55:30 -08:00
Allen Zhou a61c89e371 nested eval directories 2026-02-06 15:44:30 -08:00
Allen Zhou 8999b85d21 Merge pull request #29 from vercel-labs/changeset-release/main
Version Packages
@vercel/agent-eval-playground@0.0.5
2026-02-06 14:38:24 -08:00
github-actions[bot] d71af512b7 Version Packages 2026-02-06 22:37:51 +00:00
Allen Zhou 6159d01b6e Run playground in production mode 2026-02-06 14:37:05 -08:00
Allen Zhou c1afafa764 Merge branch 'main' of https://github.com/vercel-labs/agent-eval @vercel/agent-eval-playground@0.0.4 2026-02-06 14:31:09 -08:00
Allen Zhou 5d39504ea3 fix tests and build 2026-02-06 14:30:17 -08:00
Allen Zhou 4c625472ec Merge pull request #28 from vercel-labs/changeset-release/main
Version Packages
2026-02-06 14:23:52 -08:00
Allen Zhou 86453d9310 fix ci 2026-02-06 14:23:27 -08:00
github-actions[bot] 332f1e0902 Version Packages 2026-02-06 22:20:55 +00:00
Allen Zhou bb45245462 fix ci 2026-02-06 14:20:09 -08:00
Allen Zhou 23e2d439e6 add ci + fix release 2026-02-06 14:17:49 -08:00
Allen Zhou 3f440e3bba Merge pull request #27 from vercel-labs/changeset-release/main
Version Packages
2026-02-06 14:13:46 -08:00
github-actions[bot] 46ad08b943 Version Packages 2026-02-06 22:11:52 +00:00
Allen Zhou 2024a3f99c Merge pull request #26 from vercel-labs/allen/init-with-readme
update: add readme to init command
2026-02-06 14:11:07 -08:00
Allen Zhou 6425d0acb4 fix playground build 2026-02-06 14:10:47 -08:00
Allen Zhou 1de4188c92 Merge branch 'main' into allen/init-with-readme 2026-02-06 14:06:48 -08:00
Allen Zhou e788120790 add readme to init command 2026-02-06 14:06:26 -08:00
Allen Zhou df6558a071 Merge pull request #24 from vercel-labs/changeset-release/main
Version Packages
2026-02-06 14:03:22 -08:00
Allen Zhou af3df35ecc Merge pull request #20 from vercel-labs/copilot/update-readme-experimentconfig
Document ExperimentConfig model arrays and editPrompt usage
2026-02-06 14:03:09 -08:00
github-actions[bot] 07e9c686a9 Version Packages 2026-02-06 22:01:30 +00:00
Allen Zhou 17aa80958a Merge pull request #25 from vercel-labs/allen/playground-fix
fix: react version conflicts when running playground via npx
2026-02-06 14:00:49 -08:00
Allen Zhou ba7e82528f Merge branch 'main' into allen/playground-fix 2026-02-06 14:00:20 -08:00