# How my agent lab is wired together

> How one person runs a hardware lab with coding agents: the sessions, the memory files, the agent harness, the machines and the bench.

Canonical: https://jasonphillip.com/writings/how-my-agent-lab-is-wired-together/

I run a small hardware lab on my own, with AI agents doing nearly all of the engineering. These are my notes on how it's wired as of November 2026. I built it by trial and error over the year.

![Diagram of the lab in four columns: engineer in terminal, agent harness, hardware lab, lab automation](https://jasonphillip.com/assets/agentic-hardware-rd-2026-10-29.webp)
The same system drawn as four columns, from the engineer in the terminal on the left to the lab automation on the right.

## Engineer in terminal

Everything runs as coding-agent sessions in terminal tabs on my Mac, and each tab is an SSH connection into one of my NVIDIA DGX Sparks. One session runs the AI orchestrator, which plans the work and reports back in the chat. Two things always wait for my sign-off, anything that goes out to another person and every flash of the FPGA board, while tests, replays and evaluation runs go ahead without me. The agents also have research libraries to search, with NV-diamond physics papers and the PolarFire toolchain docs.

## Memory is files

Agents start every session knowing nothing about the last one, so their memory lives in files. Each project has a short map file and a folder of memory files, one fact per file, with a date on anything that can change. A wiki sits on top with high-level pages, a session log and a page that says where every thread of work stopped, and each wiki folder has exactly one writer. When an agent gets something wrong I say so, and the fix goes into a rule file that same day with the date and my words, which every new session loads when it starts.

## Agent harness

The orchestrator runs on the strongest model I have and splits the work into jobs, each one handed to the model that fits its data and task. Code changes go to a separate coding agent, and bulk reading goes to smaller models. A job that's one file and under about fifty changed lines gets done right in the session, because briefing another agent would cost more than the job. Claim audits and sensitive company documents stay on local models on the Sparks, and the serving setup for those is public as dgx-spark-llm-serving.
Every part of the project gets its own worker session, which I call a lane, and the orchestrator is the only session allowed to hand work to one. It writes each job up as a brief in a file, with the steps, an acceptance check and the report it expects, then sends the lane a one-line pointer to the file. Evidence files come back on their own, and lanes never pass jobs on to each other.
Search runs locally, as hybrid keyword and vector search on the Sparks' GPUs over the research libraries and every past session, and the search code is public as corpus-pipeline. Repeated work gets packaged as skills that have to work on every machine and in every project. The paid web and data APIs sit in one registry, ranked for each kind of job, and every skill and every model takes its provider from it. The FPGA skills are public as polarfire-agent-skills.
Work is audited by a different model than the one that did it. Claims go to a verification workbench, where two local critic models, Qwen3-32B and Nemotron Nano 9B, check each claim against its evidence. They come from different model families and run with no web access. Numbers in an agent's report get worked out again from the source, with the unit checked, before they're used anywhere.

## Hardware lab

The Sparks are NVIDIA GB10 machines with 128 GB each, and they run search, the critics, code and text models, a vision model, a long-context model split over two nodes, and simulation and training. The FPGA vendor's tools don't run on Arm, so a Beelink mini PC runs the Microchip toolchain, takes the trained model as an INT8 TFLite file, compiles it for the NPU and sends timing and power reports back. The board is a Microchip PolarFire SoC Icicle Kit, with Linux and the control loop on its RISC-V cores and a V250 NPU and the PID path in the FPGA fabric. The bitstream and the compiled model go onto it over JTAG, and agents reach it over Ethernet and a serial console.

## Lab automation

The bench is wired so agents can reach all of it, including a smart plug that lets an agent power-cycle the board or switch it off. A scheduler copies each night's sessions into the wiki with no one at the keyboard. Before a long job a lane runs a small slice and reports an estimated runtime, background waits always have a time limit, and a timer doesn't count as finished until it has run once under the service manager with real input.

## Results

In one replay test all 171,650 calls matched, an eight-hour soak ran the control loop at 3,319 Hz, and the watchdog tripped in 2 ms on the chip.

## Code

- agent-run-hardware-lab: https://github.com/jasonphillip/agent-run-hardware-lab
- polarfire-agent-skills: https://github.com/jasonphillip/polarfire-agent-skills
- corpus-pipeline: https://github.com/jasonphillip/corpus-pipeline
- dgx-spark-llm-serving: https://github.com/jasonphillip/dgx-spark-llm-serving

© 2026 Jason Phillip
