# RealPCB: A benchmark for AI agents laying out real production circuit boards

> Source: <https://www.esunalabs.com/realpcb/>
> Published: 2026-11-24 20:22:58+00:00

**Recommendation:** Grade agent PCB layouts deterministically with KiCad design-rule checks plus physical quality measures against the engineer's released layout, and report pass rates with confidence intervals, since the top model's 69.8% carries a ±12.4% margin.
More in the playbook "Evals and testing for LLM apps": <https://wpnews.pro/playbooks/evals-testing>

**RealPCB draws on a private collection of more than 2,000 production PCB layouts that have never been published. Models are scored on 53 of them, boards no model has seen before.** Each task hands an agent a board with its parts unplaced and nothing routed. Working alone in KiCad for 2 or 4 hours, it places every part and routes the copper. Every board comes with the layout its own engineer released for production. The agent's layout is checked with KiCad's design-rule check and measured against that one. Developed with PCB layout, manufacturing and EMC experts from industry and academia.

Pass rate on the 53 private test boards.[2](#fn2)

| Rank | Model | Pass rate <sup>[3](#fn3)</sup> | Tokens | Cost | 
|---|---|---|---|---|
| 1 | GPT-6.2 Astra (max, Codex) | **69.8%** ± 12.4% | 2.5B | $2.1k | 
| 2 | GPT-6.2 Sol (max, Codex) | **66.0%** ± 12.8% | 1.3B | $321 | 
| 3 | Fable 5.2 (max, CC) | **60.4%** ± 13.2% | 2.3B | $1.8k | 
| 4 | Sonnet 5.5 (max, CC) | **43.4%** ± 13.3% | 5.9B | $976 | 
| 5 | Haiku 5.5 (max, CC) | **13.2%** ± 9.1% | 5.6B | $352 | 

PCB layout (full build): place and route a real 4-layer production board in KiCad. Graded deterministically by design-rule checks and physical layout-quality measures, with the shipped production layout as the reference point.

/work holds a KiCad 10 project made from an open-hardware KiCad design (names in it are the original design's).

This container has no internet access and no autorouter is installed: you work with what is here (KiCad 10 with kicad-cli, and python3 with pcbnew, numpy and shapely) and with what you write yourself. You are working alone and nobody will answer questions: where something is unclear, decide for yourself and finish the job.

Lay the board out to production quality, as you would release it for a real product: electrically sound and easy to build, not only rule-clean.

The assembler's requirements:

`kicad-cli pcb drc --severity-all --refill-zones --format json -o drc.json design.kicad_pcb`. KiCad takes a board's rules from the .kicad_pro and .kicad_dru files of the same name beside it, so a copy checked under another name, or in a folder without those two files, is held to KiCad's default limits instead. Only errors count, not warnings, and not the errors already in start-drc.json. The check is passed with:
Do not change the outline, the layer count, the locked parts or any pad's net, do not edit footprints (moving, rotating and flipping them is the job; their pads, courtyards, attributes and everything else stay as they are, except their reference and value labels, which you may move, turn or hide), and do not add or remove footprints. Make the copper from tracks, vias and zones: zones are accepted only on ground nets, their copper obeys the minimum track width like a track (set no zone's minimum width (min_thickness), or hatch width (hatch_thickness) if it is hatched, below 0.15 mm), and graphic shapes on copper layers are not accepted. The layout is checked with the original design.kicad_pro and design.kicad_dru, so changes to those files have no effect. The board's own setup in design.kicad_pcb (solder mask, paste and the other fabrication settings) is part of the task and must stay as it is.

You have up to 2 hours. /work/design.kicad_pcb is graded as it stands when you stop or run out of time, so keep your best complete state saved there. It passes only if it keeps to everything required above and, on each of the layout-quality measures it is graded on, is no worse than the layout the original engineer released by more than a margin.

The target is the board's own production layout, so every task is known to be solvable. A layout passes if it meets every requirement and is within a margin of the engineer's layout on every quality measure that applies to the board.

Requirements:

Quality measures, each against the engineer's layout:

We calibrated the measures and margins against reviews of AI and engineer layouts by PCB layout, manufacturing and EMC experts.

When the three strongest models failed a board, the board was almost always finished: every connection made and KiCad's rule check passed, in 52 of 55 failures. What failed is what an engineer looks for in a design review, measured against the layout the board's own engineer released. About four in five of the failed checks concern how power reaches the chips.

Every chip needs a small capacitor right beside its power pin. Engineers judge that by the whole loop, from the pin to the capacitor and back to ground. We traced 36 misplaced capacitors from the three strongest models. In 29, the model's own check had passed, because it measured only the distance from pin to capacitor or checked only the chips it had assigned each capacitor to. So these boards were handed in as complete. When a board was unfinished, every model said so.

A power rail feeds many chips at once, so engineers give it wide copper, often a whole poured area. The models tend to route it like a signal, as a long thin track. On boards where the engineer poured copper for power, the three strongest models failed this check in 19 of 66 runs. Where the engineer used tracks, they failed it in 3 of 60. In the runs that failed, no model used a rail's resistance to decide anything.

GPT-6.2 Astra is the top model, passing 37 of the 53 boards. GPT-6.2 Sol passes 35. Sol costs about $6 a board against Astra's $39, roughly six times less. It is cheaper even than Haiku 5.5, the smallest model tested, because it finishes a board in about 40 minutes where the others take one and a half to two hours.

20 open-hardware boards to try the tasks on, in Harbor task format, with the grader and its tests.

```
git clone https://github.com/esunalabs/realpcb
harbor run -p realpcb/tasks -a claude-code -m <model>
```

The 53 leaderboard boards have never been published and their reference layouts stay with us. Tell us the model and the agent and we will be in touch.

For labs that want their models to get better at PCB layout. We have turned the rest of the collection into thousands of layout tasks, in the same format as the benchmark and with the same automatic grader, which gives a graded score to train against.

The training boards come from different design families than the 53 test boards.

```
@misc{realpcb2026,
  title        = {RealPCB: A Benchmark for AI Agents Laying Out Real Production Circuit Boards},
  author       = {{Esuna Labs}},
  year         = {2026},
  howpublished = {\url{https://www.esunalabs.com/realpcb/}}
}
```


