Matt Starfield, the Senior Electrical Engineer at Solid Product Design, gave this guest lecture to a university embedded-systems class about a month after an earlier version built around a live demo. This time the class worked real troubleshooting cases in small groups, and Starfield showed a film of an agent's power investigation, made the Friday before. He opened with a song lyric he wrote twenty years ago:

My body is weak, but my mind continues to think of a way to create a machine to proceed with my work while my body's asleep.

That machine, he said, now runs on a Raspberry Pi 5 on his desk at home.

From one agent to many

Hapimatic is the meta-harness Starfield has built since January, first so he could reach Claude Code from his phone and get away from the terminal. Twenty-seven students had asked why he built it. Give a model a computer and tools to run commands and edit files, and that setup is a harness; the model working in it is an agent, as in Claude Code or Codex. A meta-harness sits one level higher and coordinates many agents, scaling the work from one session to ten or a hundred. Because it runs on machines rather than in a laptop session, it can act on a schedule and decide what each agent knows when it starts, so agents do not wake up with amnesia. Starfield's runs on three cloud machines and three local machines, and this talk was built inside it. What sets Hapimatic apart, he said, is that it was built for hardware: it drives his oscilloscope, power supplies, and power profiler.

Matt Starfield under two screens showing the slide on Hapimatic as the meta-harness built for engineering
Hapimatic runs many coding agents as one system, with the lab bench in the loop

Closing the loop

An agent closes the loop when it can observe the result of its own change and iterate on it. In an earlier exercise, the class's AI tools wrote the code while the students flashed the board and read the serial output back to it, acting as the agent's hands. An agent that can flash, reset, and read the board itself iterates at the speed of automation.

Twelve students had asked how to tell whether AI-written firmware works. It works, he said, when it meets the requirements and passes the tests, so the loop needs a measurable definition of done. Asked whether he still looks at the firmware or only checks the tests, he said:

I haven't looked at firmware. I haven't written a single semicolon in probably ten, eleven, twelve months or so, about a year or so.

Five things an agent needs at the bench

To operate an oscilloscope, a language model needs five things, Starfield said: an interface that lets code send commands and read results; knowledge of the instrument, from its manual or its driver's source code; an inventory of the bench, loaded when each agent starts, so it reaches for the right tool unprompted; guardrails; and an improvement loop.

His guardrails are hooks, small programs that watch the conversation and run fixed checks when certain words appear. Before an agent turns on a power supply, for instance, a hook can require checks first, such as confirming on the bench camera that Starfield is clear of the device. He has about 140 hooks, each written after a real problem. The improvement loop counts how often each fires; a hook that fires too often points to a cause upstream worth fixing.

A troubleshooting procedure in eight steps

His procedure starts with the basics: can the fault be reproduced on demand, and does it affect one unit or all of them? Then check for physical damage, then power, then communication. If all of that passes, list the facts and the assumptions, think of causes that fit, rank them, and rule them out from the likeliest down.

I mean, it's not magic. Something is causing whatever bug it is you're experiencing, and it's your job to find it.

The class tried it in small groups on two of his projects. A battery-powered audio device ran flat in about 5 days and drew the same current asleep as idle. The groups suspected something that never shut down: the device was never really sleeping. With real sleep, its projected life went from about 5 days to about 138.

Matt Starfield on stage in front of the first case, a battery audio device that runs flat in days
The first case: the device drew the same current asleep as idle

A cellular wearable for livestock should have run about ten days on a charge but reported an empty battery after one. The class's host worked out how long the battery should last and asked where the readings came from, the right question. Its battery gauge had never been configured, and one setting threw its readings off by a factor of about 8.8, so the processor shut down on false data. After the fix it ran 17 days in a field test, which put its battery life at about 20 days, double the target.

A third story, an instrument that would not charge, hid a chain of causes: an unplugged temperature sensor, a bad solder joint, a charge current, set at 7.5 A for a battery rated for 8 A, that spiked to about 13 A, and heat trapped in the enclosure. That problem was analog, so Starfield was back in the loop.

An agent's power investigation

For the film, Starfield took an older version of a board on the class's syllabus, an Adafruit Feather built around an Espressif Wi-Fi chip, and Espressif's own Wi-Fi example, which sends a value to the ThingSpeak data logger, reads it back, and repeats. The requirement: lower the average current without changing what the device does.

Matt Starfield introducing the power investigation, with the board and its power profiler on the screens
The investigation: a stock Wi-Fi example on a board from the class's syllabus

The agent drove a Nordic PPK2 power profiler in a closed loop and proposed four changes, starting with a slower clock. When it kept asking him to press the reset button, he told it to handle the reset itself, and it did. Then Starfield noticed what the agent had not: only every other report reached the server, even with the stock firmware. The agent had accepted that because it matched the baseline. The example sent reports faster than ThingSpeak's free service accepts them. With that fixed, the first stage cut the average current from 55.6 mA to 32.8 mA.

He then asked for half again, 16 mA. The class suggested slowing the clock further or reporting less often; the agent instead rebuilt the firmware around lower-level radio control, so the chip sleeps between radio beacons while staying connected. It reached 13.5 mA, 76% less than the stock example. The agent then checked that the two bugs it had found were unreported, drafted an issue for each and one pull request fixing both, and waited for Starfield's approval. Espressif merged the fix on the morning of the talk. A six-minute film shows the investigation.

From writing firmware to managing agents

Starfield once spent about eight weeks on one firmware project; managing agents, he now runs closer to eight projects in a week. As a rough measure he offered merged pull requests: VS Code's developers averaged about 14 a week each in 2026, up from 2.2 in 2019, while he averaged 161 a week over the last 13 weeks, with a best week of 206. He is not a software developer, and he credits working through Hapimatic rather than single terminal sessions.

His work sits at three points: the start of each loop, its finish, and building the loop itself. Going in, he owns the intent, the definition of done, and the context; he has the agent repeat his intent back and reviews its plan, because he may know a constraint it does not. Coming out, he chooses the trade-offs and checks the results:

I need to stand by the results of what my agents do.

Asked what keeps an agent from damaging hardware, he said none has, and described failures that each became a rule. One agent judged a device off because its screen was black, though the device was on, so agents must now confirm with a second source. Another's driver passed its tests only in a simulated environment it had built. On whether AI replaces his thinking, he described the reverse:

I view it less about agents replacing me and more about me being able to duplicate myself into the agents.

Tools around the firmware

The class has students write their own firmware, but agents can help around it. A colleague who scored an airflow test by hand asked a Hapimatic session to speed it up; the agent wrote a browser tool, and he went from three or four test runs a day to 73. Starfield also had an agent design a bed-of-nails fixture for one of the class's development boards, with a spring pin on every test point wired back to the agent; it is generated and checked, not yet built. The slides and links are on the talk's links page.

The class's questions

Before the talk, 52 students sent in 156 questions, and an agent grouped them into nine themes. Starfield answered many as he went, from why he built Hapimatic to how his role has changed. The lecture used its full time, so it ended on the slide of the nine themes, with no time left for an open question period.

Matt Starfield on stage under two screens listing the students' questions in nine groups
The students' questions, grouped by an agent into nine themes