Inspect: the UK AI Security Institute's framework for LLM and agent evals
An MIT-licensed Python framework for evaluations: tasks built from datasets, solvers and scorers, agents with tools in Docker or Kubernetes sandboxes, limits and approvals, 200+ ready-made benchmarks and a log viewer.
- Vendor
- UK AI Security Institute and Meridian Labs
- Licence
- MIT
- Category
- Evals
- Latest release
- 0.3.279 · 12 Oct 2026 · Release notes (opens in a new tab)
Best for
Rigorous evals of models and agents, especially agent tasks that need sandboxed tools, many epochs and inspectable transcripts
Avoid when
You want a YAML-only CI gate, a hosted team dashboard, or production tracing; Inspect is a Python framework for offline evals
On this page
Inspect is the evaluation framework built by the UK AI Security Institute, the government body that tests frontier models. It is free, MIT licensed, and written in Python. An eval is a task: a dataset of samples, a solver that produces answers (one model call or a whole agent with tools), and a scorer that grades them. Agents run their tools inside Docker or Kubernetes sandboxes, every step lands in a log you can replay in a browser, and more than 200 published benchmarks are ready to run against any model.
What it is and where it sits#
Inspect started at the UK AI Safety Institute, which the government renamed the UK AI Security Institute on 14 February 2025. Its documentation now credits the institute and Meridian Labs as developers, and Meridian Labs maintains companion packages such as inspect_swe. The repository lives at UKGovernmentBEIS/inspect_ai; releases are frequent (inspect-ai 0.3.279 shipped on 13 October 2026), and it needs Python 3.10 or newer. There is nothing to buy.
The building blocks:
- Tasks tie everything together and carry limits, epochs, sandboxes and model roles.
- Datasets are lists of
Sampleobjects (input, target, optional choices, metadata, files to copy into a sandbox), loaded from code, CSV, JSON or Hugging Face. - Solvers produce the answer:
system_message(),generate(),chain_of_thought(),multiple_choice(), or an agent such as the built-inreact(). - Scorers grade it:
match(),includes(),pattern(),exact(),f1(),choice(), model-gradedmodel_graded_qa()andmodel_graded_fact(), or your own@scorerwith metrics likeaccuracy()andstderr(). - Tools and agents.
bash(),python(), text editing, web search, web browsing and computer use; MCP tools;react()and a deep agent with subagents; an agent bridge that runs agents written for the OpenAI, Anthropic or Google APIs, including external CLIs such as Claude Code and Codex CLI. - Sandboxes.
dockerandlocalare built in; Kubernetes, Modal, Daytona, EC2, Proxmox and others come as extension packages. - Logs and the viewer. Every run writes a log with every message, tool call, score and timing;
inspect viewopens them in a browser and a VS Code extension adds authoring and debugging.
In the stack, Inspect is an offline evals tool, like promptfoo and Braintrust's experiments, with a heavier lean toward research-grade agent evaluation. It runs on your machine or cluster and talks to models through their APIs or through local engines such as vLLM.
When to pick it#
Pick Inspect when:
- You evaluate agents, not just prompts. Tool-using agents need a safe place to run commands. Inspect gives every sample its own sandbox, with no network by default, and records each step.
- You need statistics you can defend. Epochs with reducers, standard errors, multiple scorers and model-graded panels with majority voting are built in.
- You compare models on public benchmarks.
inspect_evalspackages over 200 evaluations (GPQA, SWE-bench, ARC and many more) that run with one command against any provider. - You want logs you can audit. Reviewers can open a transcript and see exactly what the model saw, called and answered, then re-score the same logs with a different scorer.
- You test a third-party agent. The agent bridge and
inspect_swerun Claude Code or Codex CLI inside sandboxes and score the result like any other solver.
Pick something else when:
- The team wants config files, not Python. promptfoo's YAML is easier for people who will not write code.
- You need hosted dashboards, review queues and production scoring. Braintrust or Langfuse cover that; Inspect's logs are files.
- You want prompts optimized, not measured. DSPy searches for better prompts; Inspect tells you whether they are better.
How it works#
A run takes a task, a model and options, and works through every sample:
- Set up. For agent tasks, Inspect starts a fresh sandbox per sample and copies in the sample's
files. With noDockerfileorcompose.yamlin the task directory, the Docker sandbox uses the standardaisiuk/inspect-tool-supportimage withnetwork_mode: none. - Solve. Solvers run in order and share a
TaskState. An agent such asreact()loops: the model reasons, calls tools in the sandbox, reads results, and callssubmit()when it has an answer. - Limit. Per-sample limits stop runaway work:
message_limit,token_limit,turn_limit,time_limit,working_limit(time minus rate-limit and queue waits) andcost_limit. - Score. Each scorer grades the final state against the target. Model-graded scorers call the model bound to the
graderrole, or the model under test if none is bound. - Aggregate and log. Metrics are computed across samples and epochs, and everything goes to a log file in
./logs(orINSPECT_LOG_DIR), in the compact.evalformat by default.
Models are addressed as provider/model: openai/..., anthropic/..., google/..., hf/... for local Hugging Face models, vllm/... and more than 20 providers in all. mockllm/model returns canned output, which is how you test an eval's plumbing without spending tokens.
Set it up
Members only below this line
Get the full Inspect: the UK AI Security Institute's framework for LLM and agent evals deep dive free
What you get on this page:
- 6 members sections
Also in the members part
- Production configuration
- Wiring it into the stack
- Operating it
- Alternatives compared
- Learn it hands-on
Sources
Checked against these on 13 Oct 2026.
- Inspect documentation (opens in a new tab)inspect.aisi.org.uk
- Inspect repository and licence (opens in a new tab)github.com
- Inspect: tasks (opens in a new tab)inspect.aisi.org.uk
- Inspect: ReAct agent (opens in a new tab)inspect.aisi.org.uk
- Inspect: sandboxing (opens in a new tab)inspect.aisi.org.uk
- Inspect: setting limits (opens in a new tab)inspect.aisi.org.uk
- Inspect: model grading (opens in a new tab)inspect.aisi.org.uk
- Inspect: tool approval (opens in a new tab)inspect.aisi.org.uk
- Inspect: log viewer (opens in a new tab)inspect.aisi.org.uk
- Inspect: agent bridge (opens in a new tab)inspect.aisi.org.uk
- inspect_evals: pre-built evaluations (opens in a new tab)github.com
- UK AI Safety Institute becomes UK AI Security Institute (14 February 2025) (opens in a new tab)gov.uk