Skip to content
← All AI workflows

Inspect AI: evaluate tool-using agents in isolated sandboxes

Inspect's tutorial combines labeled tasks, an agent, tools, scoring and a Docker sandbox into a repeatable evaluation. Its capture-the-flag example is a teaching exercise. Use permitted test tasks and review both scores and transcripts before comparing agents.

From the source

Public documentation page from UK AI Security Institute / Inspect AI
UK AI Security Institute / Inspect AI · Captured 2026-10-14Read the original

How it works

  • The tutorial uses react(), bash and Python tools, includes() scoring, a Docker sandbox and message limits.
  • includes() checks expected answer text. Task-specific checks and transcript review are needed to detect false passes and unwanted effects.
  • The linked full evaluation source is teaching and benchmark material, not authority to access real network targets.
  • Public code does not provision or prove safe isolation. Verify sandbox configuration and runtime limits before any run.
  • Framework availability is not a business outcome. Model, grader and compute costs remain separate and were not incurred here.

Workflow guide

  1. Choose a fixed set of authorized labeled tasks with expected outputs and isolated fixture files. Exclude production credentials, real personal data and untrusted network targets.

  2. With setup authorization, install Inspect AI and configure an approved model or local inference endpoint. Record the configuration.

  3. Plan the tutorial's react() tool-using agent with only necessary tools, a supported sandbox and a task-specific scorer. Obtain approval before implementation.

  4. Have a person review sandbox settings and message, token and time limits. Obtain approval before evaluation runs.

  5. Run inspect eval on the approved fixtures. Open results with inspect view. Review transcripts for failures and hidden effects that answer-inclusion scoring can miss.

  6. Have an evaluation owner review conclusions. Compare valid resolved tasks, false passes, time and cost with a baseline on the same task set. Retain human approval for any later code merge.

Sources and downloads

Discuss this workflow →

Book a call

A free 30 minute call. Tell us where you are with AI, what your IT allows, and what management needs to see. We'll tell you honestly what we would do first.