{"slug": "i-let-an-ai-agent-design-my-raspberry-pi-cm4-board-486-checks-later-here-s-the", "title": "I Let an AI Agent Design My Raspberry Pi CM4 Board — 486 Checks Later, Here's the Scoreboard", "summary": "A developer has spent two days running an AI coding agent (Codex) through an inspect-and-fix loop to design a Mini-ITX I/O carrier board for the Raspberry Pi CM4, driving KiCad entirely from the command line via kicad-cli and custom scripts. The agent runs ERC and DRC, compares schematic and PCB nets, and performs DC analysis on the power rails; the electrical rule check is now clean and the 5V rail passed 486 analysis conditions, though routing has only begun and the power design remains problematic. The current layout is still marked \"UNROUTED ENGINEERING DRAFT / DO NOT FABRICATE.", "body_md": "**TL;DR:** For two days, an AI coding agent (Codex) has been designing a Mini-ITX I/O board for the Raspberry Pi CM4 by driving KiCad from the command line in an inspect → fix loop. ERC is clean, the 5V rail passed 486 analysis conditions, routing has started — and the power design is fighting back. This is build log #1.\n\nI'm building a carrier board for the Raspberry Pi Compute Module 4. Or, more accurately: I'm *watching* one get built.\n\nThe designer is an AI agent working through `kicad-cli` and scripted checks — running ERC/DRC, comparing schematic and PCB nets, doing DC analysis on the power rails, fixing what the checks flag, and re-running. My job is reading its inspection reports and looking at renders. It feels less like prompting a chatbot and more like supervising a very fast, very literal junior engineer who never sleeps and documents everything.\n\nIf you know the CM4, you see the problem immediately: the module exposes **one** PCIe Gen2 x1 lane, and DisplayPort isn't native to it. Cramming this into Mini-ITX, with ATX soft-power handling on top, is exactly the kind of dense, constraint-heavy problem I wanted to throw at the loop.\n\nEverything goes through the CLI and scripts, roughly like this:\n\n```\nkicad-cli sch erc board.kicad_sch            # electrical rule check\nkicad-cli pcb drc board.kicad_pcb            # design rule check\n# + custom scripts: net consistency, power DC analysis across tolerances\n```\n\nNo GUI, no mouse. Just checks, fixes, and re-checks — hundreds of iterations.\n\nThe moment that made me start this log is a clearance check in the power section. On the front copper, a signal trace (D4 TX N) has to pass the *projection* of the back-side MOSFET's drain pad — Q901, sitting next to the R900 current shunt. The drain is a high-current power net, so the loop projects the back-side pad onto the front view and routes the signal around it, checking clearance point by point.\n\nUnglamorous, invisible work. Also the work that decides whether a board works at all.\n\nThe silkscreen on the current layout literally reads \"UNROUTED ENGINEERING DRAFT / DO NOT FABRICATE\". Accurate.\n\nIf you've designed CM4 carrier boards:\n\nGenuinely collecting answers — the loop and I are still deciding, and I'd rather learn from your scars than earn my own.\n\nPart 2 when routing finishes (or when the startup analysis finally completes instead of timing out — whichever comes first).", "url": "https://wpnews.pro/news/i-let-an-ai-agent-design-my-raspberry-pi-cm4-board-486-checks-later-here-s-the", "canonical_source": "https://dev.to/tomoyacreater/i-let-an-ai-agent-design-my-raspberry-pi-cm4-board-486-checks-later-heres-the-scoreboard-3094", "published_at": "2026-10-24 16:07:46+00:00", "updated_at": "2026-10-24 16:13:41.806069+00:00", "lang": "en", "topics": ["ai-agents", "ai-tools", "developer-tools", "artificial-intelligence"], "entities": ["Codex", "Raspberry Pi", "KiCad", "Raspberry Pi Compute Module 4"], "also_reported_by": [], "alternates": {"html": "https://wpnews.pro/news/i-let-an-ai-agent-design-my-raspberry-pi-cm4-board-486-checks-later-here-s-the", "markdown": "https://wpnews.pro/news/i-let-an-ai-agent-design-my-raspberry-pi-cm4-board-486-checks-later-here-s-the.md", "text": "https://wpnews.pro/news/i-let-an-ai-agent-design-my-raspberry-pi-cm4-board-486-checks-later-here-s-the.txt", "jsonld": "https://wpnews.pro/news/i-let-an-ai-agent-design-my-raspberry-pi-cm4-board-486-checks-later-here-s-the.jsonld"}}