agentcompass view starts a local result viewer so you can inspect a run’s metrics, summaries, task results, and step-by-step trajectories in a browser, and switch between runs. It only reads result files and never modifies the run directory.
Quick start
Pass an AgentCompass run directory:http://127.0.0.1:8765 by default) and opens the run in your default browser. Press Ctrl+C in the terminal to stop the viewer.
Result viewer
RUN-DIR, the viewer opens its home page, where you can enter a path in the top bar or pick a recently opened directory. Paths are resolved on the machine that runs the viewer. Use the switch on the right of the top bar to change the interface language between Chinese and English.
Inspect task details and trajectories
Click a task card to open its detail page:- Left: a summary with the primary metric, status, attempts, retries, and duration, plus analyzer findings and retry diagnostics.
- Right: if the task has several attempts, switch between them at the top. Issues and the traceback come first when present, followed by the final answer and the trajectory.
- Trajectory: each step is collapsed to a one-line preview with its tool-call count and duration. Expand a step to see the reasoning, response, tool-call arguments, and observations.
Task detail
Switch between runs
After you load a run directory, the left sidebar shows the results root that contains it as a directory tree. Click a directory to expand or collapse it, and click a run directory to switch to that run. Click the refresh button in the sidebar to show newly created runs. Use the button at the left of the top bar to hide or show the sidebar. You can also open a results root directly and pick a run in the sidebar:Watch an evaluation in progress
You can open the viewer while an evaluation is still running. Unfinished tasks appear as running cards with their current phase and are not counted in the task total. The viewer turns on periodic auto-refresh for a run in progress; you can switch it off in the task list toolbar or refresh manually at any time. If the evaluation exited abnormally, the unfinished tasks it left behind are shown as interrupted.View results on a remote machine
When the results live on a remote machine, start the viewer there with--no-open, then forward the port from your local machine:
Build the frontend for source installs
Released packages include the viewer frontend. If you installed AgentCompass from a repository clone in editable mode (pip install -e .), the first agentcompass view run automatically runs npm ci and npm run build in tools/result-browser and writes the build to src/agentcompass/viewer/static/. The first build needs network access to download npm packages.
The automatic build requires Node.js 20.19+ or 22.12+. If Node.js is missing or too old, the command exits with an error that asks you to install it.
An existing build is not rebuilt. After you update the code, rebuild the frontend with --rebuild:
