cb15c5e0d8
Release / Check for new version (push) Has been cancelled
Release / Build macOS ARM64 (push) Has been cancelled
Release / Build macOS x64 (push) Has been cancelled
Release / Build Linux ARM64 (push) Has been cancelled
Release / Build Linux musl ARM64 (push) Has been cancelled
Release / Build Linux musl x64 (push) Has been cancelled
Release / Build Linux x64 (push) Has been cancelled
Release / Build Windows x64 (push) Has been cancelled
Release / Publish to npm (push) Has been cancelled
Release / Publish sandbox package to npm (push) Has been cancelled
Release / Create GitHub Release (push) Has been cancelled
CI / Rust (windows-latest - x86_64-pc-windows-msvc) (push) Has been cancelled
CI / Native E2E Tests (push) Has been cancelled
CI / Windows Integration Test (push) Has been cancelled
CI / Global Install (macos-latest) (push) Has been cancelled
CI / Global Install (ubuntu-latest) (push) Has been cancelled
CI / Version Sync Check (push) Has been cancelled
CI / Rust (push) Has been cancelled
CI / Dashboard (push) Has been cancelled
CI / Sandbox Package (push) Has been cancelled
CI / Rust (macos-latest - aarch64-apple-darwin) (push) Has been cancelled
CI / Rust (macos-latest - x86_64-apple-darwin) (push) Has been cancelled
CI / Global Install (windows-latest) (push) Has been cancelled
54 lines
2.8 KiB
TypeScript
54 lines
2.8 KiB
TypeScript
import type { EvalCase } from "../lib/types.ts";
|
|
|
|
const RUBRIC = `
|
|
1 - Agent ignores the distinction between CLI skill context and MCP tool discovery
|
|
2 - Agent mentions both surfaces but misses the required CLI skills workflow
|
|
3 - Agent identifies the CLI skills workflow and MCP tools/list, but misses pagination
|
|
4 - Agent correctly gathers CLI skill context and MCP discovery context
|
|
5 - Agent gathers both surfaces, explains that MCP discovery is paginated, and avoids collapsing MCP to a generic argv tool
|
|
`.trim();
|
|
|
|
const CONTEXT = `
|
|
Facts for this eval:
|
|
- CLI agents start from the thin installed skill at skills/agent-browser/SKILL.md.
|
|
- That thin skill is only a discovery stub. The agent must run agent-browser skills list and agent-browser skills get core or agent-browser skills get core --full to load current workflow and command content.
|
|
- agent-browser skills get core --full includes the command reference.
|
|
- MCP clients learn the surface through initialize and tools/list.
|
|
- agent-browser mcp defaults to the core startup tools profile to reduce context.
|
|
- Use agent-browser mcp --tools all to expose the full typed CLI parity surface.
|
|
- Use agent-browser mcp --tools core,network,react to compose startup profiles.
|
|
- tools/list is paginated with nextCursor, so modern clients can load large typed surfaces incrementally.
|
|
- MCP tool calls return structuredContent, and the server exposes typed tools rather than one generic argv tool.
|
|
- From a shell, MCP discovery can be probed by piping JSON-RPC lines to agent-browser mcp.
|
|
- Example MCP probes:
|
|
printf '{"jsonrpc":"2.0","id":1,"method":"initialize","params":{}}\n' | agent-browser mcp
|
|
printf '{"jsonrpc":"2.0","id":2,"method":"tools/list","params":{}}\n' | agent-browser mcp
|
|
printf '{"jsonrpc":"2.0","id":3,"method":"tools/list","params":{}}\n' | agent-browser mcp --tools all
|
|
printf '{"jsonrpc":"2.0","id":4,"method":"tools/list","params":{"cursor":"64"}}\n' | agent-browser mcp --tools all
|
|
`.trim();
|
|
|
|
export const cases: EvalCase[] = [
|
|
{
|
|
id: "cf-01",
|
|
name: "Compares CLI skill context with MCP discovery context",
|
|
category: "context-footprint",
|
|
prompt:
|
|
"Measure how much context an agent needs to learn agent-browser through the CLI skill workflow versus MCP discovery. Show the shell commands or JSON-RPC probes you would run.",
|
|
context: CONTEXT,
|
|
expectedPatterns: [
|
|
"agent-browser\\s+skills\\s+list",
|
|
"agent-browser\\s+skills\\s+get\\s+core",
|
|
"agent-browser\\s+skills\\s+get\\s+core\\s+--full",
|
|
"--tools\\s+all",
|
|
"tools/list",
|
|
"initialize",
|
|
"nextCursor|cursor|paginated|pagination",
|
|
],
|
|
forbiddenPatterns: [
|
|
"agent-browser\\s+tools\\s+list",
|
|
"single\\s+generic\\s+(argv|args)\\s+tool|one\\s+generic\\s+(argv|args)\\s+tool",
|
|
],
|
|
rubric: RUBRIC,
|
|
},
|
|
];
|