Agent Evals
Agent Evals in VS Code
The PromptFlowEngine extension adds an Agent Evals view to its sidebar and commands to the Command Palette. It uses the same evaluator as the CLI, so a result in the editor matches the result in CI.
Updated 2026-11-22. Examples use the synthetic editorial fixture in examples/agent-evals/editorial.
Availability
Commands
| Command | Does |
|---|---|
| Create a sample Agent Evals suite | Writes agent-evals/my-agent.suite.json and a runner config, or opens an untitled sample |
| Validate an Agent Evals suite | Marks configuration errors in the editor at the field that caused them |
| Run an Agent Evals suite (fresh execution) | Runs the suite through its runner, with progress and Cancel |
| Replay agent traces against a suite | Evaluates trace files you choose, offline |
| Compare the Agent Evals run with a baseline | Shows new, resolved and still-failing assertions |
| Export the redacted Agent Evals report | Saves Markdown or JSON |
| Run the Agent Evals demo | Evaluates the bundled example |
Click a failed assertion in the view to jump to its definition in the suite file. “Open the report and timelines” shows every case timeline.
Workspace Trust
A fresh run starts the program named in a workspace file, so it requires a trusted workspace and an explicit confirmation that shows the exact command. In Restricted Mode the run command is blocked, and demo, validation, replay, inspection, comparison and export keep working.
- The runner starts without a shell, with a minimal environment, a per-case timeout and a 5 MB output limit.
- Nothing found inside a trace or report is ever executed.
- In a multi-root workspace or monorepo, the suite picker lists suites with their folder, and the confirmation names the folder and runner in use.
Copilot, Claude Code and other assistants
Agent Evals does not read the private session data of IDE assistants. You can evaluate what you can export as a trace: an agent you instrument yourself, or a session log you convert to promptflow.agent-trace/v1. Tool calls, approvals and token usage that an assistant does not expose cannot be evaluated and are reported as unavailable.