2026-11-26 15:39 UTC

Local agents reverse-engineer and program a serial-connected 68000 trainer

state: seedheat: mediumuncertainty: mediumrelevance: highagent-research hardware local-modelsPiotr Podstawek

What is this?

Piotr Podstawek’s MIT-licensed GitHub project, `explorer-of-serial`, documents experiments in which local LLM agents use a Raspberry Pi’s serial connection to investigate an undocumented device. In the featured run, a Qwen3.8-Flash-Next agent, operating without internet or device documentation, identified the device as a Motorola 68000 trainer running TUTOR 1.3, mapped memory, decoded commands, and assembled and ran a program. A separate critic agent reviewed evidence and rejected unsupported claims before accepting the final result. The repository also describes two other runs, including a repeat examination that found no new findings. These are project-author-reported results, with logs and evidence linked in the repository; the supplied sources include no independent replication or evaluation.

Why it matters

A practical demonstration of local agents doing open-ended hardware investigation, not just answering questions or generating code: they can probe a real device, infer how it works, and act on that knowledge. If this approach generalizes, it could make legacy-hardware exploration and other lab or field tasks more accessible without sending data to cloud services. The experiment is promising but narrow and author-reported; it does not establish reliability across devices or autonomy without safeguards. The critic agent, evidence trail, and network jail are important parts of the setup, while the reported CPU hang illustrates the risks of giving agents access to hardware.

Current assessment

New: the project describes a successful run in which local models, with no internet access or device documentation, investigated a serial-connected device and ran a program on it. The author says the main run took about 5.5 hours and used Qwen3.8-Flash-Next on a DGX Spark; the solver worked through an SSH session into a Raspberry Pi, and a second agent on another model server checked evidence. The project says the verifier rejected the first final submission over citation gaps, and a later repeat review caught overclaims before signing off. Three runs, raw console logs, findings, results, and a replayable MIT-licensed harness are published. The author reports that deeper probing hung the device’s CPU after the objectives were met; this is a concrete reminder that tool-using agents can cause real-world side effects. Significance: suggests local models can combine iterative experimentation, protocol discovery, coding, and physical execution in a constrained setup, potentially useful where connectivity or data privacy matters. Uncertainty: evidence is a single project’s documented experiments, not independent validation; the supplied sources do not establish how often the method works on unfamiliar hardware, how much human setup or supervision is required, or whether other local models can reproduce it. Treat capability claims as the author’s report, not a general benchmark.

Measured heat

now 0 pts/hpeak 4 pts/hcomments 0/hpeers p10momentum: steady2 platformsage 122h
points/hour across evidence · reading as of 2026-11-27 02:23:58.509736+11:00 · deterministic, not a model opinion

How the heat travelled

11-21 13:00⭐ origin echo-reconstructedThe project documents local LLM agents investigating an undocumented device over a Raspberry Pi serial connection. In the featured run, the
Piotr Podstawek on github (echo) · attributed from hn.story.50600366
—
11-22 15:05first on hacker news · published · +26.1hLocal AI agents investigate an unknown machine attached to a serial port
bluepeter
—
11-22 15:05amplified on hacker news 👑hn.story.50600366
bluepeter
peak 2 · 0 comments · 103% of case engagement
11-22 15:20our radar first saw it · +26.4hdiscovery anchor: hn.story.50600366—
pace: p14 vs 2105 stories at the 96h mark (now 122h old) — behind adobe-max-ai-agents-creative-tools-mcp (0.5x)

Evidence (2) — ⭐ canonical anchor

sourceobjectauthorscorecomments
🟧 hnLocal AI agents investigate an unknown machine attached to a serial port
Retrieved article excerpt

Open article · Retrieved 2026-11-22T15:21:30.991141+00:00

# explorer-of-serial

**Local AI agents, with only local LLMs, investigate an unknown machine attached to a serial port.**
It doesn't have Internet access, does not have access to the device's documentation. There's no human to help.
Just two local LLMs, an SSH session into a Raspberry Pi, and that unknown device.

[Device under test.](https://github.com/podstawek/explorer-of-serial/blob/main/docs/media/illustration.jpeg)

## The experiment

I wired an anonymous device — “X” — to a Raspberry Pi's serial port, told an
LLM agent: *find out what X is, reverse-engineer its protocol, and run your own
program on it*, and walked away. The agent ran inside a network jail (no
way out except two model servers and the Pi), and every claim it made had to be
verified, based on evidence by a **second, independent LLM** with fresh context
on another box.

**It worked.** In ~5.5 hours, `Qwen3.8-Flash-Next` (on a DGX Spark) discovered
that X was a **Motorola 68000 single-board trainer running “TUTOR 1.3”**. It
first suspected the machine was KIM-1 with a similar ROM, but later corrected the course. It mapped X's memory by
*deliberately triggering bus errors*, decoded its monitor's command set
line-by-line, assembled and ran its own program on 68000 hardware, and wrote a
verdict the critic accepted — [`RESULT.md`](https://github.com/podstawek/explorer-of-serial/blob/main/runs/2026-11-19-68000-trainer/RESULT.md).
Then, probing one I/O corner too deep, it **hung X's CPU**. Which was not a problem at that point,
as all the goals had been by then achieved.

[The rig: Raspberry Pi talks to the mystery device, agents solve, criticize, observe.](https://github.com/podstawek/explorer-of-serial/blob/main/docs/media/diagram.jpeg)

## How it works

Both roles are [OpenCode](https://opencode.ai) agents, driven headlessly by
[`go.sh`](https://github.com/podstawek/explorer-of-serial/blob/main/go.sh) via `opencode run`; OpenCode's permission layer is also the
first jail layer.

- **Solver** — the [`explorer`](https://github.com/podstawek/explorer-of-serial/blob/main/.opencode/agents/explorer.md) agent: plans,
  SSHes into the Pi, pokes the serial line, keeps a durable notes file
  (`FINDINGS.md`) that survives context compactions over a 12-hour run.
- **Critic** — the [`verifier`](https://github.com/podstawek/explorer-of-serial/blob/main/.opencode/agents/verifier.md) subagent on a
  second model server: adversarial final gate, ≤3 rounds, grades file
  pointers + evidence chains, vetoes unsupported claims. It rejected and
  forced fixes along the way.
- **Jail** — systemd network sandbox (`IPAddressDeny=any` + allowlist) with a
  hard `netcheck` gate: if the jail leaks, the run refuses to start. The rules
  are also in the prompt — and the agent never tried to escape either. Details: [`docs/JAIL.md`](https://github.com/podstawek/explorer-of-serial/blob/main/docs/JAIL.md).
- **Ground rules** — [`AGENTS.md`](https://github.com/podstawek/explorer-of-serial/blob/main/AGENTS.md) (protocol) + [`task.md`](https://github.com/podstawek/explorer-of-serial/blob/main/task.md)
  (mission): read evidence or perish; “I don't know, and here's how to revive
  it” beats a confident fabrication.

## What's in the box

Three full runs are published under [`runs/`](https://github.com/podstawek/explorer-of-serial/blob/main/runs) — the headline run first.
Each one holds `RESULT.md` (the verdict), `FINDINGS.md` (the working notebook)
and the
**raw console logs** — full transcripts, nothing summarised, only home-network
details mechanically renamed:

- [`runs/2026-11-19-68000-trainer/`](https://github.com/podstawek/explorer-of-serial/blob/main/runs/2026-11-19-68000-trainer) — the run
  described above (`Qwen3.8-Flash-Next`, 87 turns): the task won, the 8-step
  `evidence/` chain included; the final gate rejected it once on citation gaps
  and approved at round 2.
- [`runs/2026-11-20-68000-deep-dive/`](https://github.com/podstawek/explorer-of-serial/blob/main/runs/2026-11-20-68000-deep-dive) — the
  same machine re-examined against every byte of a new raw transcript; the
  critic only signed off at round 3, having caught two rounds of over-claims,
  and recorded "no new findings" — verification, not rediscovery.
- [`runs/2026-11-17-first-contact/`](https://github.com/podstawek/explorer-of-serial/blob/main/runs/2026-11-17-first-contact) — the
  very first end-to-end completion: ~39 hours over 8 resumes,
  and the one that first pinned X as a 68000-family system running TUTOR.
- The harness: [`go.sh`](https://github.com/podstawek/explorer-of-serial/blob/main/go.sh) (run entry), [`scripts/`](https://github.com/podstawek/explorer-of-serial/blob/main/scripts) (jail,
  lifecycle, citation auditor, live console watcher), [`config/`](https://github.com/podstawek/explorer-of-serial/blob/main/config).

## Replay it

Requires the [OpenCode](https://opencode.ai) CLI, two OpenAI-compatible model
servers (e.g. llama.cpp's `llama-server`), and a Linux box with
systemd-networkd if you want the jail. Local weights only — bring your own
endpoints:

```
cp config/explorer.example.json config/explorer.$(id -un).json   # point at your model servers
cp .env.example .env                                              # point at your target
sudo scripts/install-jail.sh                                      # optional: enable the jail
TASK_FILE=task.md ./go.sh
scripts/commentate.py --web --db                                  # narrate it live on a page
```

Full lifecycle docs: [`HOW_TO_RUN.md`](https://github.com/podstawek/explorer-of-serial/blob/main/HOW_TO_RUN.md).

*No devices were permanently harmed. X just needs someone to pull its plug —
the one thing the agent wasn't allowed to do.*

MIT licensed. Write-ups and logs included.
bluepeter20
🟧 echo.github ⭐The project documents local LLM agents investigating an undocumented device over a Raspberry Pi serial connection. In the featured run, the Piotr Podstawek——

Interpretation history

Decision trace