Skip to content
RESEARCH PREVIEW 0.5.0rc2

Your first dataset

Generate a small puzzle, check it, and give an agent only the evidence it is allowed to see.

You need: Python 3.12 or newer on macOS or Linux. Installation downloads dependencies; every exercise below then runs offline. No model account or API key is required.

1. Install the preview

Clone the published candidate, then enter its directory:

git clone \
  --branch v0.5.0rc2 \
  --single-branch \
  https://github.com/TrustPrism/clue-benchmark.git
cd clue-benchmark

Create an isolated Python environment and install the package:

python3 -m venv .venv
source .venv/bin/activate
python -m pip install .
Already have a built candidate wheel?

Install that file instead:

python -m pip install \
  /path/to/trustprism_clue_benchmark-0.5.0rc2-py3-none-any.whl

The package is not published to PyPI. It is MIT licensed; retain the copyright and permission notice when redistributing it.

2. Generate a puzzle

clue-benchmark generate-dataset \
  --preset quickstart \
  --output runs/demo

The preset asks for one single-agent case with exactly four necessary reports. Look for complete: true in the JSON summary.

runs/demo is relative to your current directory. You can run the installed command from anywhere.

If generation stops early

Generation uses bounded search. An incomplete result means it did not find enough certified cases within that budget. It never substitutes an uncertified puzzle. See candidate exhaustion.

3. Validate it

clue-benchmark validate-dataset runs/demo

Expected: status: verified. This checks both the bundle and the puzzle's logical meaning.

4. Export the agent's evidence

clue-benchmark export-public runs/demo \
  --agent 0 \
  --output runs/agent.jsonl

Give your agent runs/agent.jsonl, not the whole runs/demo directory.

  • The exported file contains public case and report rows.
  • The original directory also contains evaluator answers and certificates.
  • The export leaves out solutions, checkpoints, provider receipts and other private fields.

Inspect the public view:

clue-benchmark inspect-case runs/demo --agent 0

5. Score a sample agent

This intentionally cautious agent always abstains:

from clue_benchmark import evaluate_agent

result = evaluate_agent(
    "runs/demo",
    lambda observation: {"kind": "abstain"},
    output="runs/sample-score.json",
    agent_id=0,
)

print(result["episodes"][0])

Its response is valid, but abstaining is unnecessary when the evidence identifies an answer. Valid format and successful reasoning are different scores.

See all score meanings.

6. Open a readable report

clue-benchmark report runs/sample-score.json \
  --output runs/sample-report

Open runs/sample-report/index.html in your browser. The report also links the exact saved JSON. It makes no model calls.

Try the measured example

Replay the completed irrelevant-evidence study from saved measurements:

clue-benchmark examples replay nuisance-followup \
  --output runs/followup

The output separates the initial study, final expansion and exploratory combined result. It includes all 144 scored assignments and the closed $10.00 study accounting.

Read what the study found →

Explore the settings

See the available presets:

clue-benchmark presets list

Inspect the quickstart's resolved settings:

clue-benchmark presets show quickstart
clue-benchmark explain-config --preset quickstart

Start with worked research recipes, then use the parameter reference for details.

Existing files, checkpoints and resuming
  • Generation can resume a matching checkpoint with the same source and configuration.
  • Exports, reports and replays need a new destination. They refuse to overwrite an existing one.
  • A changed source or configuration needs a new generation directory.
  • Do not edit frozen measured runs or ledgers to bypass an error.

The data dictionary describes the five bundle files.