> ## Documentation Index
> Fetch the complete documentation index at: https://circuitcheck.mintlify.site/llms.txt
> Use this file to discover all available pages before exploring further.

# 5-minute quickstart

> Run all three tools offline: a toy model, 48 real attribution graphs, and cached label replies.

`pip install circuitcheck` gives you every command. The example data lives in the repo, so run these from the root
of a clone (`git clone https://github.com/albertlieyingadrian/circuitcheck`). Nothing here needs a GPU or an API key.

<video controls preload="metadata" src="https://mintcdn.com/circuitcheck/8B_KsgGdd3MlDck5/videos/walkthrough.mp4?fit=max&auto=format&n=8B_KsgGdd3MlDck5&q=85&s=3dfb530adb1812828bd3c7db3154fbc9" title="circuitcheck walkthrough">
  <track kind="captions" src="https://circuitcheck.mintlify.site/videos/walkthrough.vtt" srcLang="en" label="English" default />
</video>

The walkthrough above (2.5 minutes) runs each step below and opens its report. To follow along:

**1. Validate a toy circuit**

The toy model has one feature that causes the answer, two that only light up, and two that back each other up.

```python theme={null}
from circuitcheck.validate import logit_diff, validate
from circuitcheck.validate.toy import demo, demo_nodes

backend = demo()
metric = logit_diff(backend.token_id(" Austin"), backend.token_id(" Sacramento"))
report = validate(backend, "dallas", demo_nodes(backend), metric=metric, counterfactual="oakland")
for group in report.groups:
    print(group.name, group.verdict.value)
```

The validator recovers the ground truth: `L5/100@5 switch`, the two readouts as `readout`, the pair as `backup`.

**2. Diff graphs before and after RL**

48 graphs of Qwen3-1.7B from the RL-hack study ship with the examples.

```bash theme={null}
circuitcheck diff examples/data/rl_hack_graphs.json.gz \
  --before installed/before --after installed/after \
  --control-before control/before --control-after control/after \
  --html diff.html
```

The ten features at the top are the study's ten, in the same order. The validity line reads `ok`: RL did not
make the base-model transcoders reconstruct the model worse.

**3. Label a feature from cache**

The replies from Claude Haiku 5.5 for 50 Gemma-2-2B features are cached, so this costs nothing and needs no key.

```python theme={null}
import gzip
import json

from circuitcheck.labels import AnthropicLLM, CachedLLM, FeatureData, label_feature

payload = json.loads(gzip.decompress(open("examples/data/labels_gemma_features.json.gz", "rb").read()))
feature = FeatureData.model_validate(payload["features"][0])
llm = CachedLLM(AnthropicLLM("claude-haiku-5-5"), "examples/data/labels_llm_cache.jsonl")
label = label_feature(llm, feature, score="both")
print(label.label, label.detection.auroc)
```

**4. Open the reports**

Every tool writes a self-contained HTML page (`--html` on the command line, `circuitcheck.report.render_*` in
Python) and a JSON record (`--json`, or `report.model_dump_json()`).

> [card] [Next: the graph diff guide](https://circuitcheck.mintlify.site/guides/diff.md)
>
> Run it on your own graphs, and read its null and validity checks.


This documentation is built and hosted on [Mintlify](https://mintlify.com), a developer documentation platform.