Skip to content

ShowcasedPath oneTechnical specs & compatibility

Will It Stack?

Tells Raspberry Pi makers whether two add-on boards can share one header, and what to change if not.

by Anurag Sharma

Named-board questions where the verdict shown matched the checker
8/8
Questions where the model's own verdict matched, before the guard stepped in
7/8
Citations to Knowledge Base entries the agent had not read
0

What it does

A maker picks two HATs and a Pi. The agent returns a verdict.

A maker names the boards they want to stack and the Pi model. The agent looks the boards up, runs a pin and address check, and replies with conflicts, stacks, or stacks with changes.

Each answer shows its working: the GROQ query, the Knowledge Base entries it read, and a 40-pin header diagram. Fixes such as moving an I2C address or adding a dtoverlay line come from the Knowledge Base.

The problem

Two boards can look compatible and still fight over one pin.

Deciding whether HATs stack means joining several facts: which pins each board uses and how, which I2C addresses its chips take and can move to, whether it has an ID EEPROM, and what each pin can do on a given Pi's chip. A Pi 5 differs from a Pi 4. Product pages and keyword search return a page, not a collision on a specific GPIO.

What they built

Boards, pins and Pi models, with use kept apart from capability.

231 add-on boards and 40 header pins imported from pinout.xyz and the Raspberry Pi docs, plus 48 guides.

  • board

    One add-on board: the header pins it uses with their role, I2C devices and alternate addresses.

  • pin

    One header pin and the functions it supports on each Raspberry Pi chip generation.

  • piModel

    One Raspberry Pi model, including which SoC it uses.

  • guide

    One documentation guide used to build the Knowledge Base, such as bus or config notes.

The stack

Two Context endpoints and a deterministic checker.

  • Sanity Context MCP
  • Knowledge Base
  • Content Lake
  • GROQ
  • Vercel AI SDK
  • Vercel AI Gateway
  • Gemini 2.5 Flash
  • TypeScript
  • Vercel
  • pinout.xyz

The hard part

Code computes the verdict, and a guard discards any answer that disagrees.

A plain TypeScript check_stack tool decides compatibility from the structured records. The answer text is held until the run ends, and only the latest successful check counts. Without one, the user gets a fixed Not verified reply.

If the model's verdict label differs from the check, or it misses a board, its text is replaced by an answer built from the check report. Each rule has a regression test, and the guard caught the one wrong label in the eval.

Raw eval results ↗

More from path one

See the full showcase