Inspect AI
$ inspect Official Med RiskInspect AI (inspect, from inspect-ai) runs reproducible capability, safety, and agentic tool-use evaluations against frontier models. inspect eval supports --json (emitting JSON lines with --display none), --log-format json, --sandbox docker, and --max-connections concurrency controls, while inspect view serves the local log viewer.
pip install inspect-ai inspect orchestrates local Python eval tasks, Docker tool-use sandboxes, and structured JSON log files directly from the project repository.
Agent-Readiness Checklist
Static evaluation (not yet probed on this host). Run npm run data:probe locally to capture live verification.
FCRS-1.0 6-Dimension Breakdown
inspect eval --json automatically sets --display none and streams machine-readable launch/done JSON lines alongside --log-format json.
--jsonemits structured JSON lines and suppresses rich terminal UI--log-format jsonwrites machine-readable evaluation artifacts
First-class --sandbox docker isolation for agentic tasks, --limit cost caps, and --no-score separation of inference from grading.
- Built-in
--sandbox dockertask isolation - Env-var provider auth with
--limitsample caps
Clean pip install inspect-ai package across macOS, Linux, and Windows; Docker is only needed for sandboxed coding tasks.
- Standard PyPI package
inspect-ai
Covers eval execution, detached runs (--detach), post-hoc scoring (inspect score), log inspection, and a built-in web viewer.
- Full workflow coverage:
eval,score,list logs,view
Developed and maintained by the UK AI Safety Institute (UKGovernmentBEIS/inspect_ai) under MIT license.
- Official UK AISI repository under MIT license
Comprehensive official documentation at inspect.aisi.org.uk with clear CLI flags and workflow guides.
- Detailed docs at inspect.aisi.org.uk
Security, Auth & Guardrails
Reads standard model provider env vars (OPENAI_API_KEY, ANTHROPIC_API_KEY, GOOGLE_API_KEY, etc.) and writes eval logs to INSPECT_LOG_DIR (default ./logs).
MIT open-source CLI; evaluating remote models incurs LLM provider API token charges.
# Inspect AI (inspect) Agent Rules - Always pass `--limit <n>` during test runs to avoid large model API bills. - Use `--json` (which sets `--display none`) and `--log-format json` for parseable headless output. - Enable `--sandbox docker` for any eval task that lets models execute shell or code tools.
Agent-Ready Command Recipes
Safe Read-Only Queries
inspect list logs --json
Lists completed evaluation log paths and metadata from INSPECT_LOG_DIR.
Controlled Writes & Previews
inspect eval task.py --model openai/gpt-4o-mini --limit 5 --log-format json --json
Runs 5 samples with --display none implied by --json and writes JSON eval logs.
Strengths for Agents
- +
--jsononinspect evaldisables rich TUI animations and emits structured JSON status lines. - + Native
--sandbox dockersupport safely isolates agentic tool-use evaluations.
Caveats & Pitfalls
- !
inspect viewstarts a blocking local web server and should not be invoked inside non-interactive agent steps. - ! Running
inspect evalwithout--limitcan trigger high LLM API costs across large datasets.