🛍️ 更多精选好物 ›
📊 公开数据一览
| 📦 榜单安装量 | 1.1K |
| ⭐ GitHub Stars | 231(fork 24) |
| 🗓️ 最近推送 | 2026-07-22 |
| 🌱 项目创建 | 2026-01-29 |
| 💻 语言 / License | TypeScript · 未标注 |
| 🐛 开放Issue | 19 |
📝 工具简介
公开的Agent Skills仓库,提供前端设计相关的技能包。
📖 怎么用
先初始化项目,跑 `npx @vercel/agent-eval init my-agent-evals` 然后 `cd my-agent-evals` 和 `npm install`。接着复制环境变量 `cp .env.example .env`,填上 `AI_GATEWAY_API_KEY` 和 `VERCEL_TOKEN`。跑实验用 `npx @vercel/agent-eval`,加 `--dry` 预览、`--smoke` 冒烟测试、`cc` 指定某个实验。想看结果用 `npx @vercel/agent-eval playground`,加 `--watch` 实时监控。
📋 迷你测评
公开的Agent Skills仓库,提供前端设计技能包。亮点是直接获取现成技能,省去从零搭建。适合快速集成到工作流。
📄 README 要点
这是Vercel出的一个测试框架,专门用来评估AI编码代理在你前端框架上的表现。它能跑受控实验,测出文档是否让代理写对代码、加MCP服务器有没有提升成功率、不同模型(比如Sonnet和Opus)谁更靠谱,以及API改动有没有破坏兼容性。用法很简单,CLI跑一下就能自动发现并并行执行experiments目录下所有测试,结果会按指纹复用,不用重复跑。适合前端框架作者想系统性地优化AI代理的适配效果。
查看英文原文
@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 [安装/使用命令见下方] CLI Run all experiments [安装/使用命令见下方] 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). Run a single experiment [安装/使用命令见下方] 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 failures as final results instead of deleting them. Flags work with both modes: [安装/使用命令见下方] Other commands [安装/使用命令见下方] Creating Evals Each eval tests one specific task an agent should be able to do with your framework. Directory structure [安装/使用命令见下方] PROMPT.md what you want the agent to do: [安装/使用命令见下方] EVAL.ts how you verify it worked: [安装/使用命令见下方] Use EVAL.tsx when your tests require JSX syntax (React Testing Library, component rendering). You only need one eval file per fixture choose .tsx if any test needs JSX. Asserting on agent behavior EVAL.ts tests can assert not just on the files the agent produced, but on how it worked — which shell commands it ran, which files it read, how many tool calls it made, etc. The framework automatically parses the agent's transcript and writes the results to a
💬 评论(0)
交流使用体验、避坑建议;违规内容将被删除