Directory Compare FCRS-1.0 /llms.txt
← Back to Directory

Inspect AI

$ inspect Official Med Risk
UK AISI · AI & Media · MIT · macos / linux / windows

Inspect 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.

FCRS-1.0 Score
89 /100
Good
Medium Confidence
Zero-Friction Install
pip install inspect-ai
CLI vs MCP Decision CLI Preferred vs MCP

inspect orchestrates local Python eval tasks, Docker tool-use sandboxes, and structured JSON log files directly from the project repository.

Agent-Readiness Checklist

✓ JSON Output
— Field Filtering
✓ Non-Interactive
— Dry-Run
— Read-Only Mode
— NO_COLOR Clean
✓ Self-Describing
— Official SKILL.md

Static evaluation (not yet probed on this host). Run npm run data:probe locally to capture live verification.

FCRS-1.0 6-Dimension Breakdown

Agent-Readiness 23 / 25

inspect eval --json automatically sets --display none and streams machine-readable launch/done JSON lines alongside --log-format json.

  • --json emits structured JSON lines and suppresses rich terminal UI
  • --log-format json writes machine-readable evaluation artifacts
Trust & Safety 22 / 25

First-class --sandbox docker isolation for agentic tasks, --limit cost caps, and --no-score separation of inference from grading.

  • Built-in --sandbox docker task isolation
  • Env-var provider auth with --limit sample caps
Setup & Portability 12 / 15

Clean pip install inspect-ai package across macOS, Linux, and Windows; Docker is only needed for sandboxed coding tasks.

  • Standard PyPI package inspect-ai
Utility & Efficiency 14 / 15

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
Maintenance & Lineage 9 / 10

Developed and maintained by the UK AI Safety Institute (UKGovernmentBEIS/inspect_ai) under MIT license.

  • Official UK AISI repository under MIT license
Docs & Verifiability 9 / 10

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

Auth Modes
Env API Key No Auth
Credential Storage

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).

Side Effects
Read-Only Local Write Remote Write Billing Impact
Cost & Quotas

MIT open-source CLI; evaluating remote models incurs LLM provider API token charges.

Copyable Guardrail for CLAUDE.md / AGENTS.md
# 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

List available evaluation log files
inspect list logs --json

Lists completed evaluation log paths and metadata from INSPECT_LOG_DIR.

Controlled Writes & Previews

Run a bounded safety eval with JSON output
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

  • + --json on inspect eval disables rich TUI animations and emits structured JSON status lines.
  • + Native --sandbox docker support safely isolates agentic tool-use evaluations.

Caveats & Pitfalls

  • ! inspect view starts a blocking local web server and should not be invoked inside non-interactive agent steps.
  • ! Running inspect eval without --limit can trigger high LLM API costs across large datasets.

Tested Agent Hosts

Claude Code Codex CLI Gemini CLI