Evaluate whether AI agents can create efficient, reproducible, and safe clinical trial design
pip install trialdesignbench==1.1.0 Copy PIP instructions
TrialDesignBench is a community-driven benchmark for evaluating AI agents in clinical trial design.
The benchmark currently focuses on two core tasks:
This Python package is a thin evaluation framework. It owns the task schema, task materialization, the grader, scoring rules, aggregation, and provenance. Harbor is the execution backend that runs first-party agent harnesses in Docker. The two meet only through files: Harbor task directories, a generated job.yaml, and the job directory Harbor writes.
Supported agents are claude-code (Claude Code), codex (Codex CLI), grok-build (Grok Build), and opencode (OpenCode). Other Harbor agents are refused because they cannot run closed book.
uv add trialdesignbench # dataset, build, grade, report uv add "trialdesignbench[judge]" # + Anthropic SDK for the rubric judge uv add "trialdesignbench[harbor]" # + Harbor to run agents (Python 3.12+) For development:
git clone https://github.com/BBSW-org/TrialDesignBench.git cd TrialDesignBench uv sync --dev Quick start # Canonical dataset from curated submissions and protocol/SAP Markdown uv run tdb dataset import data/json/*.json --out tmp/dataset --documents docs/ uv run tdb dataset check tmp/dataset # Shared environment image, then Harbor tasks uv run tdb env build uv run tdb build tmp/dataset --out tmp/tasks # Run an agent with the network canary, then aggregate. The agent reads its # provider's API key (here ANTHROPIC_API_KEY); the rubric judge always needs # ANTHROPIC_API_KEY. export ANTHROPIC_API_KEY=... uv run tdb run --tasks tmp/tasks --agent claude-code \ --model anthropic/claude-opus-5 --n-attempts 3 --canary uv run tdb report jobs/ --format md # Grade any directory with output.json and output.R, no Harbor needed uv run tdb grade path/to/submission --rubrics tmp/dataset/ /rubrics.json \ --out graded/ --trajectory path/to/trajectory.json See the documentation for the dataset format, supported agents and their credentials, the judge, environment and network policy, grading rules, and reproducibility guarantees.
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.




