Why teams reach for Inspect AI when their evaluation work shades toward agents and safety
Inspect AI ships sandboxed shell and browser environments, multi-turn solvers, and safety-scorer idioms out of the box, which general runners like Promptfoo and DeepEval lack and have to be hand-rolled into.
Imagine two kinds of tests for a robot chef. The first is a taste test, where someone scores a finished plate. Any rating sheet works for that. The second is a real-kitchen test, where the robot picks up a knife, lights the stove, and you watch what it does without burning the house down. That needs a real kitchen with safety walls around it and a careful score sheet for the moves the robot makes. Inspect AI is that walled-off kitchen. The UK AI Safety Institute built it to test whether models can run real-tool tasks (shell, browser, multi-step plans) and whether they refuse the dangerous orders. General eval tools grade plates. Inspect grades the whole kitchen visit.
Concept explanation~2 min read
Everything you need to truly understand this topic: intuition, mechanics, step by step explanation, code, formulas, and worked example. Click to expand.
Concept explanation~2 min read
Everything you need to truly understand this topic: intuition, mechanics, step by step explanation, code, formulas, and worked example. Click to expand.
Most LLMOps teams pick an eval framework once and stick with it. The choice tends to follow the shape of the team's first hard eval: a product team writing prompt regressions picks Promptfoo or DeepEval; a RAG team picks Ragas; a research-leaning team picks LangSmith or Braintrust. The teams that pick Inspect AI almost always have one specific shape of problem: they are evaluating agentic systems, doing safety-research work, or both.
This walkthrough explains who built Inspect and why, the core architectural primitives that make agent evals tractable (sandboxes, solvers, replayable logs), the safety-eval idioms that ship with the framework, and the working dividing line between problems where Inspect is the right tool and problems where a lighter runner is faster to live with.
Origin: built by AISI for the evals AISI actually runs
Inspect AI was open-sourced by the UK AI Safety Institute (AISI) in 2024 and has been actively developed since. AISI's job is to evaluate frontier models from OpenAI, Anthropic, Google DeepMind, and others on capability and safety dimensions before and after deployment. That job determines the framework's priorities.
The evals AISI runs are not 'does this prompt produce a faithful answer'. They are 'can this model, given a shell and access to a sandbox, autonomously complete a cyber-offense task within a token budget' or 'does this model refuse correctly when prompted to help synthesize controlled substances'. Those evals demand sandboxes, multi-turn scaffolds, careful logging, and rubrics that evolve over time as new failure modes are discovered.
General-purpose runners can be coerced into the same shape; you can hand-roll a sandbox in Promptfoo with a custom provider. The cost is weeks of plumbing for something that comes for free in Inspect. AISI built the framework so its own engineers would not have to keep rebuilding that plumbing per eval; the open-source release means everyone else can benefit too.
The downstream effect is that Inspect is the framework agent-eval and safety-eval researchers reach for first. METR uses it. Anthropic's pre-deployment evaluation work has used Inspect-based tasks. Academic agent benchmarks increasingly publish as Inspect tasks because the audience already has Inspect set up.
Situations where this technique stops working.
2–4 min · Everything important, quickly.
Real products, models, and research that use this idea.
- The UK AI Safety Institute uses Inspect AI internally to evaluate frontier models from OpenAI, Anthropic, and Google for capability and safety.
- METR (Model Evaluation and Threat Research) publishes agent-task evals on Inspect for autonomous-task benchmarks.
What an interviewer would ask next. Try answering before peeking at the approach.
QHow would you build a cyber-offense capability eval in Inspect that gives the agent a shell but keeps the host safe?
Use SandboxEnvironment(type='docker') with a constrained container image, no network egress (or a sniffer-only proxy), a per-sample time and message budget, and a teardown hook that snapshots logs before destroying the container. The agent acts only inside the sandbox; the host process never executes attacker-controlled code.
Red flags & common mistakes
The phrases that signal junior thinking. Click to expand.
Red flags & common mistakes
The phrases that signal junior thinking. Click to expand.
Treating Inspect AI as a general-purpose replacement for Promptfoo. Inspect's value is concentrated in agent and safety evals; for vanilla prompt-comparison work, lighter runners are faster to set up.
60 second bullets to scan on the way to the call.
Who built Inspect AI and what they use it for
The Task = dataset + solver + scorer framing
Primary sources. Browse if you want the original framing.
Same topic, related formats. Practice these next.