Commit Graph

218 Commits

Author SHA1 Message Date
Allen Zhou 45ed0f2e6d Merge pull request #87 from vercel-labs/changeset-release/main
Version Packages
@vercel/agent-eval@0.9.1
2026-02-25 11:51:19 -08:00
github-actions[bot] 49548ba3a0 Version Packages 2026-02-25 19:50:13 +00:00
Allen Zhou eb0eea919a Vercel Sandbox config 2026-02-25 13:49:38 -06:00
Allen Zhou 8507f17559 Merge pull request #86 from vercel-labs/changeset-release/main
Version Packages
@vercel/agent-eval@0.9.0
2026-02-20 14:47:44 -08:00
github-actions[bot] 512f29972e Version Packages 2026-02-20 22:47:26 +00:00
Allen Zhou 3a4544ff03 Merge pull request #85 from vercel-labs/allen/inject-o11y
[o11y] asserting agent behavior
2026-02-20 14:46:06 -08:00
Allen Zhou 097490384c asserting agent behavior 2026-02-20 13:59:49 -08:00
github-actions[bot] e514739637 Version Packages (#78)
Co-authored-by: github-actions[bot] <41898282+github-actions[bot]@users.noreply.github.com>
@vercel/agent-eval@0.8.0
2026-02-17 22:57:42 -08:00
Jude Gao 065afc909f Revert "[Classifier] Add "eval" failure type for flawed eval tests (#79)" (#82)
This reverts commit 683e681b7d.
2026-02-17 17:10:37 -08:00
Jude Gao 330ec5e8b7 [Classifier] Switch to Haiku 4.5 and parallelize classification (#81)
* [Classifier] Upgrade classification model to Claude Sonnet 4.6

* [Classifier] Parallelize classification with p-limit and add dashboard progress

Run up to 4 classifications concurrently using p-limit instead of a
sequential for-loop. The dashboard now shows "classifying N/M…" so
users can track per-eval progress during the classification phase.

* [Classifier] Switch to Haiku 4.5 for classification

Haiku is faster and cheaper while still capable enough for the
classification task, especially with 4 concurrent classifications.
2026-02-17 17:06:55 -08:00
Jude Gao 620fb473ad [CLI] run-all subcommand options like --dry are intercepted by the parent program (#80)
* [CLI] run-all subcommand options like --dry are intercepted by the parent program

* Add changeset
2026-02-17 16:46:04 -08:00
Jude Gao 683e681b7d [Classifier] Add "eval" failure type for flawed eval tests (#79) 2026-02-17 16:28:03 -08:00
Jude Gao c8bcde36d1 [Runner] Retry eval attempts on 429 rate limiting with exponential backoff (#77)
* [Runner] Retry eval attempts on 429 rate limiting with exponential backoff

* Add changeset

* Add StartRateLimiter and switch to anomaly-based retry detection

- Add StartRateLimiter class to throttle sandbox starts across experiments
  (20 starts per 2s window) to prevent 429s at the source
- Replace 429 string matching with anomaly detection: retry any failure
  that completes in <5s, since real evals take minutes
- Move progress events (eval:start, eval:complete, earlyExit) outside
  runAttempt so they fire correctly after retries

* Fix runner tests: exclude timeouts from retry, bump mock durations above anomaly threshold
2026-02-17 12:06:10 -08:00
Paolo Ricciuti aca7f85003 Merge pull request #76 from vercel-labs/changeset-release/main
Version Packages
@vercel/agent-eval@0.7.1
2026-02-16 20:19:53 +01:00
github-actions[bot] 28b64c8bee Version Packages 2026-02-13 16:08:45 +00:00
Jude Gao 9558ee90b9 Remove debug console.log from saveResults (#75)
Removes a debug console.log statement that was left in the saveResults function. The statement was logging internal state (copyFiles, hasGeneratedFiles, hasDeletedFiles, options, and runData) during result persistence, which is unnecessary noise in production output.

Co-authored-by: Claude Haiku 4.5 <noreply@anthropic.com>
2026-02-13 11:08:00 -05:00
github-actions[bot] a784dcf962 Version Packages (#72)
Co-authored-by: github-actions[bot] <41898282+github-actions[bot]@users.noreply.github.com>
@vercel/agent-eval@0.7.0
2026-02-12 16:56:35 -05:00
Jude Gao 087415c73d [O11y] Add transcript parsers for Gemini and Cursor agents (#74)
* [O11y] Add transcript parsers for Gemini and Cursor agents

* Handle Gemini direct-API transcript format

The Gemini agent has two output formats: the CLI format (via OpenCode
framework with part.tool/part.state) and the direct-API format (with
tool_name/parameters and separate tool_result events). The initial
parser only handled the CLI format, leaving direct-API transcripts
with all-zero metrics. This adds handling for both.

* Aggregate Gemini direct-API delta messages into single turns

Contiguous assistant delta messages are now merged into one message
event so totalTurns reflects actual conversation turns instead of 0.

* Add changeset
2026-02-12 16:50:18 -05:00
Jude Gao be7ca1560e [Agents] Add Cursor CLI agent with direct API support (#73)
* [Agents] Add Cursor CLI agent with direct API support

Add Cursor CLI as a new agent to the eval framework, enabling testing against Cursor models using direct API access via `CURSOR_API_KEY`. The implementation follows the established pattern from existing agents (Claude Code, Codex, Gemini) and integrates seamlessly with the sandbox infrastructure.

Cursor CLI uses a different interaction model than other agents. Unlike the `agent chat` subcommand syntax, the correct invocation is to pass the prompt as the first positional argument, then use the `--print` flag to enable non-interactive mode (required for scripts and headless execution). The `--force` flag is added to automatically approve all CLI operations without waiting for user confirmation. This combination ensures the agent completes successfully in sandboxed environments without hanging on interactive prompts.

The agent installation uses Cursor's official shell-based installation method (`curl https://cursor.com/install -fsSL | bash`), which handles proper setup of the CLI environment. Once installed, prompts are executed as `agent "<prompt>" --print --force`, capturing both stdout and stderr as output. The implementation includes transcript extraction that filters for JSON-formatted events when available, falling back to raw text output if no structured format is detected. This matches the approach used by other agents but adapts to Cursor's plain-text output characteristics.

The agent uses `composer-1.5` as the default model and integrates with all eval framework features including file capture, script validation, and test execution. Integration tests verify both basic eval execution and result output structure matching. The agent is fully typed in the framework's type system and added to the configuration schema alongside other direct-API agents.

Co-Authored-By: Claude Haiku 4.5 <noreply@anthropic.com>

* Fix missing --model and --output-format flags, update env var docs

- Pass --model to Cursor CLI so user-configured model is actually used
- Add --output-format stream-json for structured JSONL transcripts
- Update changeset to reflect correct default model (composer-1.5)
- Add GEMINI_API_KEY and CURSOR_API_KEY to README env var table

---------

Co-authored-by: Claude Haiku 4.5 <noreply@anthropic.com>
2026-02-12 15:08:22 -05:00
Jude Gao 8f198d4d18 [Agents] Add Gemini CLI agent with direct API and stream-json transcript support (#71) 2026-02-12 14:15:34 -05:00
Paolo Ricciuti 0b7bb881ca Merge pull request #70 from vercel-labs/changeset-release/main
Version Packages
@vercel/agent-eval@0.6.2
2026-02-12 16:50:44 +01:00
github-actions[bot] b58bc3d8d7 Version Packages 2026-02-12 14:56:51 +00:00
Paolo Ricciuti 1f83ac4097 Merge pull request #69 from vercel-labs/track-newly-created-files
fix: add all the files to track newly created files
2026-02-12 15:56:04 +01:00
paoloricciuti 93c1a6390a fix: add all the files to track newly created files 2026-02-12 15:24:14 +01:00
Paolo Ricciuti d37b219fb4 Merge pull request #68 from vercel-labs/changeset-release/main
Version Packages
@vercel/agent-eval@0.6.1
2026-02-12 09:43:51 +01:00
github-actions[bot] 37dbeaf29c Version Packages 2026-02-11 20:56:57 +00:00
Paolo Ricciuti fc91cfb7e2 Merge pull request #64 from vercel-labs/save-changed-files
fix: use git to get changes files
2026-02-11 21:56:10 +01:00
Paolo Ricciuti 326c87126c Merge pull request #67 from vercel-labs/copilot/sub-pr-64
docs: document copyFiles configuration option
2026-02-11 21:55:45 +01:00
copilot-swe-agent[bot] 1b07100d3c docs: remove "When to use" section from copyFiles docs
Co-authored-by: paoloricciuti <26281609+paoloricciuti@users.noreply.github.com>
2026-02-11 20:54:53 +00:00
copilot-swe-agent[bot] 08505b5cc1 docs: document copyFiles configuration option
Co-authored-by: paoloricciuti <26281609+paoloricciuti@users.noreply.github.com>
2026-02-11 20:49:57 +00:00
copilot-swe-agent[bot] aeee9aaa32 Initial plan 2026-02-11 20:48:21 +00:00
github-actions[bot] 68adf6525d Version Packages (#66)
Co-authored-by: github-actions[bot] <41898282+github-actions[bot]@users.noreply.github.com>
@vercel/agent-eval@0.6.0
2026-02-11 15:28:24 -05:00
Jude Gao cf50218fe2 Make failure classifier optional (#65) 2026-02-11 15:22:13 -05:00
paoloricciuti 83be77b5b7 Merge remote-tracking branch 'origin/main' into save-changed-files 2026-02-11 16:42:34 +01:00
paoloricciuti f7b663a4ed chore: changesets 2026-02-11 16:39:28 +01:00
paoloricciuti f3e4f69612 feat: add option to copy files in results 2026-02-11 16:38:58 +01:00
github-actions[bot] 4f9d492e8d Version Packages (#62)
Co-authored-by: github-actions[bot] <41898282+github-actions[bot]@users.noreply.github.com>
@vercel/agent-eval@0.5.0
2026-02-10 18:06:50 -05:00
Jude Gao bc5114cea6 [CLI] Live terminal dashboard for parallel experiment runs (#63)
* [CLI] Live terminal dashboard for parallel experiment runs

* Fix lint errors: remove unused renderDetailLine and verbose
2026-02-10 17:55:04 -05:00
paoloricciuti 24c4345b26 fix: use git to get changes files 2026-02-10 20:28:39 +01:00
Paolo Ricciuti c59ef08b0b Merge pull request #61 from vercel-labs/better-test-path
fix: allow user defined tests  `verifyNoTestFiles`
2026-02-10 17:40:46 +01:00
paoloricciuti b846fc7ec7 fix: allow user defined tests verifyNoTestFiles 2026-02-10 15:18:55 +01:00
Allen Zhou a0cc76e0b9 Merge pull request #59 from vercel-labs/changeset-release/main
Version Packages
@vercel/agent-eval-playground@0.1.3 @vercel/agent-eval@0.4.1
2026-02-09 14:11:20 -08:00
github-actions[bot] 2455c8be48 Version Packages 2026-02-09 22:09:59 +00:00
Allen Zhou 13875fb239 Merge pull request #58 from vercel-labs/allen/codex-parsing
fix: codex parsing
2026-02-09 14:09:18 -08:00
Allen Zhou e42dbf7d4c playground changeset 2026-02-09 14:07:03 -08:00
Allen Zhou f426890713 update playground 2026-02-09 14:03:59 -08:00
Allen Zhou 6cd92aa8f6 changeset 2026-02-09 13:52:00 -08:00
Allen Zhou bcb69cd046 fix opencode parsing 2026-02-09 13:50:35 -08:00
Allen Zhou 2f0be0862a codex parsing 2026-02-09 13:41:42 -08:00
github-actions[bot] bf99e421b3 Version Packages (#57)
Co-authored-by: github-actions[bot] <41898282+github-actions[bot]@users.noreply.github.com>
@vercel/agent-eval@0.4.0
2026-02-09 14:28:15 -05:00