> [!NOTE]
> **`pcb-inspector` v0.1.0 is now live!**
> The 3-layer verification engine, built-in MCP server, interactive HTML reporting, and GitHub Action are fully functional. Check out the [📖 User Manual & Configuration Guide (MANUAL.md)](MANUAL.md) for practical examples, rule catalog, and per-project override guides.
## 🎯 What is it?
`pcb-inspector` is a multi-layer hardware verification and design-review pipeline for KiCad projects.
Traditional DRC/ERC tools are essential, but they primarily verify explicit electrical and geometric rules. `pcb-inspector` adds higher-level **layout analysis, engineering heuristics, and multimodal visual review** to identify potential design issues that may pass standard CAD checks.
It can run standalone as a **CLI or GitHub Action** on manually designed boards, or integrate with agentic PCB workflows such as **Konnect** to create a closed-loop design → audit → fix → verify workflow.
> [!TIP]
> **Don't just generate a PCB. Independently inspect it before you manufacture it.**
> *Design. Inspect. Fix. Verify.*
---
## ⚡ Quickstart & Installation
### Installation
```bash
# Using uv (recommended)
uv pip install pcb-inspector
# Or install from source
uv pip install "git+https://github.com/takzen/pcb-inspector.git"
# Optional: Claude (Fable / Opus) as the vision model
uv pip install "pcb-inspector[claude]"
```
> [!IMPORTANT]
> Layer 1 (DRC/ERC) and hosted vision renders both need **KiCad 8+** with `kicad-cli` on `PATH`
> (or `kicad_cli_path` in the config). Without it, Layer 1 is reported as **not run** rather than
> silently skipped; pass `--require-kicad-cli` to make that a failure, as the bundled GitHub
> Action does.
### Essential CLI Commands
```bash
# 1. Full 3-layer audit (DRC + Heuristics + Vision) with interactive HTML report
pcb-inspector check path/to/board.kicad_pcb -o report.html -f html
# 2. Fast deterministic DRC/ERC only (native KiCad)
pcb-inspector drc path/to/board.kicad_pcb
# 3. Spatial & physical engineering heuristics only
pcb-inspector analyze path/to/board.kicad_pcb
# 4. Dedicated Multimodal AI Vision Review (Gemini Flash 3.8, Fable 5, GPT-6 Astra)
pcb-inspector vision path/to/board.kicad_pcb --model gemini-3.8-flash
# 5. Continuous Watch Mode (automatically re-checks on board save)
pcb-inspector check path/to/board.kicad_pcb --watch
# 6. Launch Model Context Protocol (MCP) server for AI agents
pcb-inspector mcp --transport stdio
```
---
## 🧠 Multi-Layer Verification Pipeline
`pcb-inspector` approaches design verification through three complementary layers of defense:
```mermaid
flowchart TD
subgraph Input ["📥 Design Input"]
SCH["📄 Schematic Files (.kicad_sch)"]
PCB["📐 PCB Layout (.kicad_pcb)"]
end
subgraph Pipeline ["🔍 pcb-inspector Verification Engine"]
direction TB
L1["1️⃣ Deterministic Ground Truth