ui: Browse and edit evaluation files in the browser
strands-evals ui serves a local page over the evaluation files in a directory. It scans for experiments, reports, sessions, diagnoses, and optimizer runs, pairs each report with the experiment it was made from, and gives each one a view in the browser.
Start the server
Section titled “Start the server”# Serve the current directory and open a browserstrands-evals ui
# Serve a specific directorystrands-evals ui experiments/
# Print what the scan found and exit, without servingstrands-evals ui experiments/ --listThe server binds loopback (127.0.0.1) on a free port and prints a link carrying a token generated for that run. Every request needs the token, so another process or browser tab on the same machine cannot read or write through the server. Opening the link trades the token for a cookie and lands on a clean address, so the token is not left in the address bar or the browser history.
| Flag | Purpose |
|---|---|
--port | Bind a fixed port instead of one chosen by the OS. |
--token (or STRANDS_EVALS_UI_TOKEN) | Supply a stable token so the printed link survives restarts and can be bookmarked. |
--read-only | Browse without the save path. The editor loads cases but refuses writes. |
--host | Bind beyond loopback, for example 0.0.0.0 inside a container. Anyone who can reach that address with the link can read the files, and write them unless --read-only is set. |
--depth | How many directories deep to scan (default: 3). |
--no-browser | Print the URL without opening a browser. |
What the page shows
Section titled “What the page shows”- Reports: summary figures, every row with its verdict and the evaluator’s reason, a score distribution per evaluator, cost per case read from recorded sessions, a group-by lens over case metadata, and side-by-side comparison of two or more reports.
- Experiments: a case editor that writes back to the file it loaded. A save checks the file’s modified time first, so a concurrent
runor another editor is never silently overwritten. - Sessions and diagnoses: a session saved by
fetch, trace by trace, with any diagnosis written bydiagnoseshown alongside it. - Optimizer runs: each run’s result, setup, iteration progress, candidate diffs against the baseline, and trade-off front.
- Live refresh: the page polls the folder while open, so a run in progress fills in without a reload. Unsaved edits are never replaced.
- Addresses: every view has a URL of its own, so Back and Forward work and a view can be bookmarked or shared with someone serving the same folder.
The page is also written to be handed to a coding agent. Reports, experiments, sessions, and their rows have Copy as Markdown actions, the same Markdown is served at a file’s address with .md added, and /llms.txt describes every route. A request made outside the browser sends the token as the X-Evals-Token header. These machine-readable forms are experimental and may change before a release.
Next steps
Section titled “Next steps”run: produce the reports the page shows.diagnoseandfetch: produce the sessions and diagnoses the page lists.report: render a single report in the terminal instead.