inspect_agents

Inspect View — Visualize Evaluation Logs

The inspect view command launches the Inspect log viewer, a web‑based interface for visualizing and exploring evaluation logs.

Core Functionality

Key Features

Usage

Run the viewer once at the beginning of a session; it automatically updates as new evaluations are written.

# Default: uses ./logs and port 7575
uv run inspect view

# Specify a different log directory and port
uv run inspect view --log-dir ./experiment-logs --port 6565

Common options:

Open your browser to http://127.0.0.1:7575 (or your chosen host/port).

Export and Share Logs

Use these CLI commands to export exactly what you’re viewing:

# 1) Locate the log you saw in the History panel
#    (or list programmatically)
uv run inspect log list --json --absolute

# 2) Export one log to JSON (works for .eval or .json sources)
uv run inspect log dump /abs/path/to/log.eval > eval.json

# Optional: convert many logs to JSON into a new directory
uv run inspect log convert ./logs --to json --output-dir ./logs-json --overwrite

# 3) Bundle a shareable static viewer + logs (zip or host anywhere)
uv run inspect view bundle --output-dir ./logs-www

Notes

Implementation Notes (for contributors)