r/Cerebras • u/Comprehensive-Chard8 • 22h ago
Kimi K3.1 Pro Hackathon We built an AI agent that finds and fixes PCB design bugs in KiCad files (open source, hackathon project)
X post link: https://x.com/rewantrex/status/2124563125236384175
we(me and u/NoMood5464) built ClawBoard: an agent that reads a KiCad project, runs DFM and ERC checks, patches the schematic and board in place, and re-verifies. A dashboard shows the board changing while it works. The test board is an ESP32-S3 USB-C sensor and motor controller with six planted bugs: USB-C CC1 and CC2 tied together on one resistor no 100 nF decoupling cap at the MCU supply pin no pull-ups on I2C a 0.1 mm trace on the 5 V rail a GND via 0.05 mm from a signal track an unrouted net, plus a decoupling cap placed 19 mm from its IC In a live run the agent found all of them and fixed them in one patch of 9 operations: 8 errors down to 0. KiCad's own DRC and ERC then reported 0 errors and 0 unconnected items on the result. How it works: The model (Kimi K3.1 Pro on Cerebras, run through the OpenClaw agent harness) only states intent, like "100 nF from +3V3 to GND near U1.2". A Python tool server does the geometry: it places parts on a grid, routes with an A* router on both layers, and checks clearance on every new piece of copper before writing it. The tools are dependency-free Python and read and write KiCad 8/9/10 files directly, so it runs headless. Honest limits: the footprints are simplified, it handles single-sheet schematics only, and it's a design-review aid, not something that produces fab-ready boards. Generation ran at about 500 tokens/sec, but the trial endpoint was congested, so we're not quoting end-to-end times. Code, sample board and a 50-second demo: https://github.com/thegoodengineer/cerebrass-pcb Feedback from people who do PCB layout for a living would be very welcome, especially on which checks you'd want next.
