# robocurve/inspect-robots architecture

> Architecture diagram of the GitHub repository robocurve/inspect-robots, generated by GitDiagram from its file tree, README and a sample of source files (last updated 2026-11-18). It is an AI-made overview: check details against the source.

- Interactive diagram: https://gitdiagram.com/robocurve/inspect-robots
- Repository: https://github.com/robocurve/inspect-robots

## Overview

Inspect Robots is a robotics evaluation framework: users define a task and scenes, select a policy and real or simulated embodiment, then run trials whose actions pass through safety checks and whose results are scored and logged. The CLI also supports run setup, log inspection, HTML reports, summaries, live Rerun visualization, agent and CaP-X policies, and voice feedback. Plugin internals not sampled are represented by their exact package directories; relationships are included only where the README or source index supports them.

Main entry points: [`src/inspect_robots/cli.py`](https://github.com/robocurve/inspect-robots/blob/main/src/inspect_robots/cli.py) (CLI), [`src/inspect_robots/rollout.py`](https://github.com/robocurve/inspect-robots/blob/main/src/inspect_robots/rollout.py) (Rollout loop), [`src/inspect_robots/eval.py`](https://github.com/robocurve/inspect-robots/blob/main/src/inspect_robots/eval.py) (Evaluation), [`src/inspect_robots/action_manager.py`](https://github.com/robocurve/inspect-robots/blob/main/src/inspect_robots/action_manager.py) (Action manager)

## Diagram (Mermaid)

```mermaid
flowchart TD

subgraph group_authoring["Benchmark and configuration"]
  node_cli["CLI<br/>[cli.py]"]
  node_task["Task<br/>[task.py]"]
  node_scene["Scene dataset<br/>[scene.py]"]
  node_spaces["Action spaces<br/>[spaces.py]"]
end

subgraph group_execution["Evaluation runtime"]
  node_eval["Evaluation<br/>[eval.py]"]
  node_rollout["Rollout loop<br/>[rollout.py]"]
  node_policy["Policy interface<br/>[policy.py]"]
  node_adapter["Policy adapters<br/>[policy_adapter.py]"]
  node_guard["Safety guard<br/>[guard.py]"]
  node_actionmgr["Action manager<br/>[action_manager.py]"]
end

subgraph group_plugins["Policies and integrations"]
  node_agent["LLM agent<br/>[policy.py]"]
  node_agentwire["Agent providers<br/>[_llm.py]"]
  node_capx["CaP-X policy<br/>[policy.py]"]
  node_capxmotion["Motion helpers<br/>[_motion.py]"]
  node_voice["Voice feedback<br/>[_input.py]"]
  node_xpolicy["Remote policy<br/>[policy.py]"]
end

subgraph group_records["Results and visualization"]
  node_grader["Graders and scorers<br/>[grader.py]"]
  node_rubric["Rubrics<br/>[rubric.py]"]
  node_log["Evaluation log<br/>[log.py]"]
  node_jsonlog["JSON log sink<br/>[json_log.py]"]
  node_rerun["Rerun viewer<br/>[rerun_sink.py]"]
end

subgraph group_embodiments["Robot and simulator bodies"]
  node_ros["ROS embodiment<br/>[embodiment.py]"]
  node_rosclient["ROS client<br/>[_client.py]"]
  node_isaac["Isaac Sim embodiment<br/>[embodiment.py]"]
end

node_operator(("Operator"))

node_operator -->|"runs command"| node_cli
node_cli -->|"selects task"| node_task
node_cli -->|"starts evaluation"| node_eval
node_task -->|"provides scenes"| node_scene
node_eval -->|"runs trials"| node_rollout
node_rollout -->|"requests actions"| node_policy
node_rollout -->|"executes chunks"| node_actionmgr
node_rollout -->|"checks actions"| node_guard
node_rollout -->|"uses trial scene"| node_scene
node_rollout -->|"checks dimensions"| node_spaces
node_policy -->|"declares compatibility"| node_spaces
node_eval -.->|"scores trials"| node_grader
node_grader -->|"uses criteria"| node_rubric
node_eval -.->|"builds results"| node_log
node_log -->|"serializes records"| node_jsonlog
node_rollout -->|"streams telemetry"| node_rerun
node_cli -->|"configures viewer"| node_rerun
node_cli -->|"selects policy"| node_agent
node_agent -->|"uses provider client"| node_agentwire
node_cli -->|"selects policy"| node_capx
node_capx -->|"uses motion helpers"| node_capxmotion
node_cli -->|"enables feedback"| node_voice
node_cli -.->|"selects policy"| node_xpolicy
node_actionmgr -.->|"dispatches actions"| node_ros
node_ros -->|"uses client"| node_rosclient
node_actionmgr -.->|"dispatches actions"| node_isaac
node_cli -->|"selects simulator"| node_isaac

click node_cli "https://github.com/robocurve/inspect-robots/blob/main/src/inspect_robots/cli.py"
click node_task "https://github.com/robocurve/inspect-robots/blob/main/src/inspect_robots/task.py"
click node_scene "https://github.com/robocurve/inspect-robots/blob/main/src/inspect_robots/scene.py"
click node_spaces "https://github.com/robocurve/inspect-robots/blob/main/src/inspect_robots/spaces.py"
click node_eval "https://github.com/robocurve/inspect-robots/blob/main/src/inspect_robots/eval.py"
click node_rollout "https://github.com/robocurve/inspect-robots/blob/main/src/inspect_robots/rollout.py"
click node_policy "https://github.com/robocurve/inspect-robots/blob/main/src/inspect_robots/policy.py"
click node_adapter "https://github.com/robocurve/inspect-robots/blob/main/src/inspect_robots/policy_adapter.py"
click node_guard "https://github.com/robocurve/inspect-robots/blob/main/src/inspect_robots/guard.py"
click node_actionmgr "https://github.com/robocurve/inspect-robots/blob/main/src/inspect_robots/action_manager.py"
click node_agent "https://github.com/robocurve/inspect-robots/blob/main/plugins/inspect-robots-agent/src/inspect_robots_agent/policy.py"
click node_agentwire "https://github.com/robocurve/inspect-robots/blob/main/plugins/inspect-robots-agent/src/inspect_robots_agent/_llm.py"
click node_capx "https://github.com/robocurve/inspect-robots/blob/main/plugins/inspect-robots-capx/src/inspect_robots_capx/policy.py"
click node_capxmotion "https://github.com/robocurve/inspect-robots/blob/main/plugins/inspect-robots-capx/src/inspect_robots_capx/_motion.py"
click node_voice "https://github.com/robocurve/inspect-robots/blob/main/plugins/inspect-robots-voice/src/inspect_robots_voice/_input.py"
click node_xpolicy "https://github.com/robocurve/inspect-robots/blob/main/plugins/inspect-robots-xpolicylab/src/inspect_robots_xpolicylab/policy.py"
click node_grader "https://github.com/robocurve/inspect-robots/blob/main/src/inspect_robots/grader.py"
click node_rubric "https://github.com/robocurve/inspect-robots/blob/main/src/inspect_robots/rubric.py"
click node_log "https://github.com/robocurve/inspect-robots/blob/main/src/inspect_robots/log.py"
click node_jsonlog "https://github.com/robocurve/inspect-robots/blob/main/src/inspect_robots/logging/json_log.py"
click node_rerun "https://github.com/robocurve/inspect-robots/blob/main/src/inspect_robots/logging/rerun_sink.py"
click node_ros "https://github.com/robocurve/inspect-robots/blob/main/plugins/inspect-robots-ros/src/inspect_robots_ros/embodiment.py"
click node_rosclient "https://github.com/robocurve/inspect-robots/blob/main/plugins/inspect-robots-ros/src/inspect_robots_ros/_client.py"
click node_isaac "https://github.com/robocurve/inspect-robots/blob/main/plugins/inspect-robots-isaacsim/src/inspect_robots_isaacsim/embodiment.py"

classDef toneNeutral fill:#f8fafc,stroke:#334155,stroke-width:1.5px,color:#0f172a
classDef toneBlue fill:#dbeafe,stroke:#2563eb,stroke-width:1.5px,color:#172554
classDef toneAmber fill:#fef3c7,stroke:#d97706,stroke-width:1.5px,color:#78350f
classDef toneMint fill:#dcfce7,stroke:#16a34a,stroke-width:1.5px,color:#14532d
classDef toneRose fill:#ffe4e6,stroke:#e11d48,stroke-width:1.5px,color:#881337
classDef toneIndigo fill:#e0e7ff,stroke:#4f46e5,stroke-width:1.5px,color:#312e81
classDef toneTeal fill:#ccfbf1,stroke:#0f766e,stroke-width:1.5px,color:#134e4a
class node_cli,node_task,node_scene,node_spaces toneBlue
class node_eval,node_rollout,node_policy,node_adapter,node_guard,node_actionmgr toneAmber
class node_agent,node_agentwire,node_capx,node_capxmotion,node_voice,node_xpolicy toneMint
class node_grader,node_rubric,node_log,node_jsonlog,node_rerun toneRose
class node_ros,node_rosclient,node_isaac,node_operator toneIndigo
```

## Components

### Benchmark and configuration

- [CLI](https://github.com/robocurve/inspect-robots/blob/main/src/inspect_robots/cli.py): `src/inspect_robots/cli.py`
- [Task](https://github.com/robocurve/inspect-robots/blob/main/src/inspect_robots/task.py): `src/inspect_robots/task.py`
- [Scene dataset](https://github.com/robocurve/inspect-robots/blob/main/src/inspect_robots/scene.py): `src/inspect_robots/scene.py`
- [Action spaces](https://github.com/robocurve/inspect-robots/blob/main/src/inspect_robots/spaces.py): `src/inspect_robots/spaces.py`

### Evaluation runtime

- [Evaluation](https://github.com/robocurve/inspect-robots/blob/main/src/inspect_robots/eval.py): `src/inspect_robots/eval.py`
- [Rollout loop](https://github.com/robocurve/inspect-robots/blob/main/src/inspect_robots/rollout.py): `src/inspect_robots/rollout.py`
- [Policy interface](https://github.com/robocurve/inspect-robots/blob/main/src/inspect_robots/policy.py): `src/inspect_robots/policy.py`
- [Policy adapters](https://github.com/robocurve/inspect-robots/blob/main/src/inspect_robots/policy_adapter.py): `src/inspect_robots/policy_adapter.py`
- [Safety guard](https://github.com/robocurve/inspect-robots/blob/main/src/inspect_robots/guard.py): `src/inspect_robots/guard.py`
- [Action manager](https://github.com/robocurve/inspect-robots/blob/main/src/inspect_robots/action_manager.py): `src/inspect_robots/action_manager.py`

### Policies and integrations

- [LLM agent](https://github.com/robocurve/inspect-robots/blob/main/plugins/inspect-robots-agent/src/inspect_robots_agent/policy.py): `plugins/inspect-robots-agent/src/inspect_robots_agent/policy.py`
- [Agent providers](https://github.com/robocurve/inspect-robots/blob/main/plugins/inspect-robots-agent/src/inspect_robots_agent/_llm.py): `plugins/inspect-robots-agent/src/inspect_robots_agent/_llm.py`
- [CaP-X policy](https://github.com/robocurve/inspect-robots/blob/main/plugins/inspect-robots-capx/src/inspect_robots_capx/policy.py): `plugins/inspect-robots-capx/src/inspect_robots_capx/policy.py`
- [Motion helpers](https://github.com/robocurve/inspect-robots/blob/main/plugins/inspect-robots-capx/src/inspect_robots_capx/_motion.py): `plugins/inspect-robots-capx/src/inspect_robots_capx/_motion.py`
- [Voice feedback](https://github.com/robocurve/inspect-robots/blob/main/plugins/inspect-robots-voice/src/inspect_robots_voice/_input.py): `plugins/inspect-robots-voice/src/inspect_robots_voice/_input.py`
- [Remote policy](https://github.com/robocurve/inspect-robots/blob/main/plugins/inspect-robots-xpolicylab/src/inspect_robots_xpolicylab/policy.py): `plugins/inspect-robots-xpolicylab/src/inspect_robots_xpolicylab/policy.py`

### Results and visualization

- [Graders and scorers](https://github.com/robocurve/inspect-robots/blob/main/src/inspect_robots/grader.py): `src/inspect_robots/grader.py`
- [Rubrics](https://github.com/robocurve/inspect-robots/blob/main/src/inspect_robots/rubric.py): `src/inspect_robots/rubric.py`
- [Evaluation log](https://github.com/robocurve/inspect-robots/blob/main/src/inspect_robots/log.py): `src/inspect_robots/log.py`
- [JSON log sink](https://github.com/robocurve/inspect-robots/blob/main/src/inspect_robots/logging/json_log.py): `src/inspect_robots/logging/json_log.py`
- [Rerun viewer](https://github.com/robocurve/inspect-robots/blob/main/src/inspect_robots/logging/rerun_sink.py): `src/inspect_robots/logging/rerun_sink.py`

### Robot and simulator bodies

- [ROS embodiment](https://github.com/robocurve/inspect-robots/blob/main/plugins/inspect-robots-ros/src/inspect_robots_ros/embodiment.py): `plugins/inspect-robots-ros/src/inspect_robots_ros/embodiment.py`
- [ROS client](https://github.com/robocurve/inspect-robots/blob/main/plugins/inspect-robots-ros/src/inspect_robots_ros/_client.py): `plugins/inspect-robots-ros/src/inspect_robots_ros/_client.py`
- [Isaac Sim embodiment](https://github.com/robocurve/inspect-robots/blob/main/plugins/inspect-robots-isaacsim/src/inspect_robots_isaacsim/embodiment.py): `plugins/inspect-robots-isaacsim/src/inspect_robots_isaacsim/embodiment.py`

### Other components

- **Operator**

## Connections

- Operator → CLI: runs command
- CLI → Task: selects task (evidence: `src/inspect_robots/cli.py`)
- CLI → Evaluation: starts evaluation (evidence: `src/inspect_robots/cli.py`)
- Task → Scene dataset: provides scenes
- Evaluation → Rollout loop: runs trials (evidence: `src/inspect_robots/rollout.py`)
- Rollout loop → Policy interface: requests actions (evidence: `src/inspect_robots/rollout.py`)
- Rollout loop → Action manager: executes chunks (evidence: `src/inspect_robots/rollout.py`)
- Rollout loop → Safety guard: checks actions (evidence: `src/inspect_robots/rollout.py`)
- Rollout loop → Scene dataset: uses trial scene (evidence: `src/inspect_robots/rollout.py`)
- Rollout loop → Action spaces: checks dimensions (evidence: `src/inspect_robots/rollout.py`)
- Policy interface → Action spaces: declares compatibility (evidence: `src/inspect_robots/policy.py`)
- Evaluation → Graders and scorers: scores trials
- Graders and scorers → Rubrics: uses criteria
- Evaluation → Evaluation log: builds results
- Evaluation log → JSON log sink: serializes records (evidence: `src/inspect_robots/logging/json_log.py`)
- Rollout loop → Rerun viewer: streams telemetry (evidence: `src/inspect_robots/rollout.py`)
- CLI → Rerun viewer: configures viewer (evidence: `src/inspect_robots/cli.py`)
- CLI → LLM agent: selects policy
- LLM agent → Agent providers: uses provider client (evidence: `plugins/inspect-robots-agent/src/inspect_robots_agent/policy.py`)
- CLI → CaP-X policy: selects policy
- CaP-X policy → Motion helpers: uses motion helpers (evidence: `plugins/inspect-robots-capx/src/inspect_robots_capx/policy.py`)
- CLI → Voice feedback: enables feedback
- CLI → Remote policy: selects policy
- Action manager → ROS embodiment: dispatches actions
- ROS embodiment → ROS client: uses client (evidence: `plugins/inspect-robots-ros/src/inspect_robots_ros/embodiment.py`)
- Action manager → Isaac Sim embodiment: dispatches actions
- CLI → Isaac Sim embodiment: selects simulator
