Skip to main content

pogo-pin

Give AI coding agents eyes and hands on real hardware. Flash, monitor, and probe ESP32 boards from a CLI or MCP server, with commands that always terminate, return JSON, and use meaningful exit codes.

An agent-friendly hardware workbench CLI (pogo). Flash, reset, monitor, probe, and measure ESP32 boards from the terminal, with deterministic, machine-readable output built for AI coding agents (like Claude Code) and humans alike.

Status: v0.1.2. Flashing, reset, serial capture, panic symbolization, and the MCP server are tested on real ESP32 boards; the probe commands (gpio, i2c, power, probe) are built and tested against a simulated probe, waiting for probe hardware. This README and the files in docs/ are the specification. The project is pogo-pin; the binary is pogo and crates are pogo-*.

Last updated: 2026-11-26


1. Overview

1.1 The problem

AI coding agents can write embedded firmware, compile it, and fix compiler errors on their own. But once the firmware is running on a real board, the agent is blind. Did it boot? Did it panic? Did the sensor respond? Today a human has to open a serial monitor, watch the output, and paste logs back into the conversation.

Existing tools don't help because they were designed for a human at a keyboard. screen, minicom, idf.py monitor, and espflash monitor stream forever, need a keypress to exit, and emit unstructured text full of ANSI color codes. An agent that runs them either hangs until its tool call times out or floods its context window with noise.

1.2 The solution

pogo turns the bench into commands that always terminate, return structured JSON, and use meaningful exit codes. With it, an agent can close the loop by itself:

edit code → build → pogo run → read JSON result → fix → repeat

1.3 Example

$ cargo build --release
$ pogo run target/riscv32imc-unknown-none-elf/release/test-target \
    --until "READY" --timeout 20s --format json
$ echo $?
7
{
  "schema_version": 1,
  "pogo_version": "0.1.0",
  "command": "run",
  "ok": false,
  "duration_ms": 6412,
  "data": {
    "device": { "alias": "target", "port": "/dev/ttyACM0", "usb_serial": "F4:12:FA:9C:3A:10" },
    "flash": { "chip": "esp32c3", "flash_size_bytes": 4194304, "regions": [{ "address": "0x10000", "bytes": 214016, "kind": "app" }], "verified": true, "reset_after": true, "duration_ms": 4870 },
    "capture": {
      "outcome": "fault",
      "matched": null,
      "boot_count": 1,
      "line_count": 3,
      "omitted_lines": 0,
      "lines": [
        { "t_ms": 1210, "level": "info", "tag": null, "text": "INFO - wifi connected" },
        { "t_ms": 1388, "level": "info", "tag": null, "text": "INFO - reading sensor at 0x76" },
        { "t_ms": 1402, "level": null, "tag": null, "text": "====================== PANIC ======================" }
      ],
      "panic": {
        "kind": "panic",
        "message": "called `Option::unwrap()` on a `None` value",
        "location": { "file": "src/sensors.rs", "line": 42, "column": 18 },
        "backtrace": [
          { "addr": "0x42001a3c", "function": "test_target::sensors::read_temp", "file": "src/sensors.rs", "line": 42 },
          { "addr": "0x42000f10", "function": "test_target::main", "file": "src/main.rs", "line": 77 }
        ]
      }
    }
  },
  "error": {
    "code": "TARGET_FAULT",
    "message": "Target panicked 1.4s after boot",
    "hint": "See data.capture.panic.location (src/sensors.rs:42)."
  },
  "warnings": []
}

Exit code 7 means the target faulted. The agent opens src/sensors.rs:42, fixes the bug, reruns the same command, and gets exit code 0.

1.4 Interfaces

pogo exposes the same capabilities through two thin frontends over one core library:

  • CLI (pogo <command>): for humans, shell scripts, CI, and any agent that can run shell commands.
  • MCP server (pogo mcp): the same operations exposed as MCP tools over stdio.

2. Goals and non-goals

Goals (v1)

  • G1. Deterministic agent contract. Every command terminates, writes results only to stdout, offers JSON output, and returns documented exit codes (§6).
  • G2. ESP32 family support. Flash, reset, serial capture, serial send, and panic symbolization for ESP32, ESP32-S3, ESP32-C3, and ESP32-C6.
  • G3. Probe board. A Raspberry Pi Pico running companion firmware for GPIO control, I2C access, and current measurement with an INA226.
  • G4. MCP parity. Every safe CLI operation is also available as an MCP tool with identical results.
  • G5. Cross-platform. Linux (x86_64 and aarch64, so it runs on a Raspberry Pi), macOS, and Windows. Single binary install.
  • G6. Safe by default. Irreversible operations are impossible, destructive ones need explicit flags (§11).
  • G7. Pleasant for humans too. Readable default output, colors, and error messages with actionable hints.

Non-goals (v1)

  • eFuse burning, secure boot, flash encryption. Never implemented. See §11.
  • Interactive TUI monitor. Possible stretch goal; v1 is command-oriented. Bare pogo in a terminal opens a launcher menu, but it only runs ordinary commands.
  • Non-Espressif targets. The design leaves room for them (a Target trait), but STM32 and nRF support via probe-rs comes later.
  • High-speed logic analysis. Out of scope for v1.
  • Wireless/OTA flashing and multi-board bench farms. Out of scope for v1. pogo serve exposes one machine's boards over HTTP; it does not schedule or share them.

Install

With pip (Linux, macOS, Windows; no Rust needed):

$ pip install pogo-pin
$ pogo-pin

Run with no arguments in a terminal, pogo-pin (or pogo) opens a menu: connected boards, then numbered options for the common tasks. Every option runs an ordinary pogo command, which it prints first. Both names take the same commands: pogo-pin devices is pogo devices. Use pipx install pogo-pin or a virtualenv if your system Python refuses global installs.

Or prebuilt binaries for Linux (x86_64, aarch64), macOS (Apple Silicon, Intel), and Windows are on GitHub Releases. The installer puts pogo and pogo-pin in ~/.cargo/bin:

$ curl --proto '=https' --tlsv1.2 -LsSf https://github.com/Majorwhiskey/pogo-pin/releases/latest/download/pogo-cli-installer.sh | sh

On Windows: powershell -ExecutionPolicy Bypass -c "irm https://github.com/Majorwhiskey/pogo-pin/releases/latest/download/pogo-cli-installer.ps1 | iex".

pogo is not on crates.io or Homebrew yet. To build from source instead, use Rust 1.99 or newer (rustup update); on Linux, first run sudo apt install libudev-dev pkg-config.

$ cargo install --git https://github.com/Majorwhiskey/pogo-pin pogo-cli

Or clone and build, which is also how to work on pogo:

$ git clone https://github.com/Majorwhiskey/pogo-pin
$ cd pogo-pin
$ cargo install --path crates/pogo-cli

Any of these gives you the pogo binary; check it with pogo doctor.

Hardware tests in CI: pogo test runs a pogo-test.toml suite on the board and can write a JUnit report (§7.14). A remote bench: pogo serve lets agents on other machines use this machine's boards over HTTP with a token (§7.16).

With Claude Code: run pogo setup claude to register pogo's MCP tools, or install the pogo plugin, which adds skills that teach Claude the hardware workflow:

$ claude plugin install pogo --marketplace Majorwhiskey/pogo-pin

Documentation

The full specification lives in docs/. Section numbers (§) are stable across files.

§ Document
3 Hardware setup
4 Architecture
5 Tech stack
6 The agent-friendly CLI contract
7 Command reference
8 Probe firmware and wire protocol
9 MCP server
10 Configuration
11 Safety guardrails
12 Testing strategy
13 Roadmap
14 Instructions for Claude Code
15 CI, release, and distribution
16 Launch and showcase checklist
– Demo: an agent fixes a firmware bug
– Measured numbers

What changed in each release is in CHANGELOG.md.


License

Licensed under either of Apache License 2.0 or MIT license, at your option.

Metadata

Release files for pogo-pin 0.1.2

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Source distribution (sdist)

Source distribution for pogo-pin 0.1.2
File Size Uploaded Provenance Actions
pogo_pin-0.1.2.tar.gz 228.1 kB Without provenance Details for pogo_pin-0.1.2.tar.gz

Built distributions (wheels)

Table of built distributions (wheels) for pogo-pin 0.1.2
File Actions
pogo_pin-0.1.2-py3-none-win_amd64.whl Python 3 none Windows x86-64 Details for pogo_pin-0.1.2-py3-none-win_amd64.whl
pogo_pin-0.1.2-py3-none-manylinux_2_28_x86_64.whl Python 3 none Linux glibc 2.28+ x86-64 Details for pogo_pin-0.1.2-py3-none-manylinux_2_28_x86_64.whl
pogo_pin-0.1.2-py3-none-manylinux_2_28_aarch64.whl Python 3 none Linux glibc 2.28+ ARM64 Details for pogo_pin-0.1.2-py3-none-manylinux_2_28_aarch64.whl
pogo_pin-0.1.2-py3-none-macosx_11_0_arm64.whl Python 3 none macOS 11.0+ ARM64 Details for pogo_pin-0.1.2-py3-none-macosx_11_0_arm64.whl
pogo_pin-0.1.2-py3-none-macosx_10_12_x86_64.whl Python 3 none macOS 10.12+ x86-64 Details for pogo_pin-0.1.2-py3-none-macosx_10_12_x86_64.whl

Total release size: 29.6 MB

Release files / pogo_pin-0.1.2.tar.gz

Download URL pogo_pin-0.1.2.tar.gz
Size 228.1 kB
Tags Source
SHA-256 checksum
How to use checksums
3caf7e19ebc278f7ba31254df4abb08663a3fe73b4889cf1a3eb1db8baedf6a8
BLAKE2b-256 checksum
How to use checksums
1e031cabf788b92708fa269a0240adc696a431a3c87da5d4c8e23c06d572f24f
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/7.0.0 CPython/3.11.17

Release files / pogo_pin-0.1.2-py3-none-win_amd64.whl

Download URL pogo_pin-0.1.2-py3-none-win_amd64.whl
Size 5.2 MB
Tags Python 3 Windows x86-64
SHA-256 checksum
How to use checksums
c63122811ab4dffef45cfd4a1463d1ec8bd41c3cd598fbd11639d6f5c1a5e809
BLAKE2b-256 checksum
How to use checksums
84e91d909f591fa5e58c595122704a815cb597c2ac0687be953945f0a7ac8726
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/7.0.0 CPython/3.11.17

Release files / pogo_pin-0.1.2-py3-none-manylinux_2_28_x86_64.whl

Download URL pogo_pin-0.1.2-py3-none-manylinux_2_28_x86_64.whl
Size 6.7 MB
Tags Linux glibc 2.28+ x86-64 Python 3
SHA-256 checksum
How to use checksums
47bd902b10b7616832229f5d4cad3d14621de5537836a9b901b42624056b665a
BLAKE2b-256 checksum
How to use checksums
f9b1999cd4a955d797e831e29dc0302fee437461da8f846f61a2be5348f8cca6
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/7.0.0 CPython/3.11.17

Release files / pogo_pin-0.1.2-py3-none-manylinux_2_28_aarch64.whl

Download URL pogo_pin-0.1.2-py3-none-manylinux_2_28_aarch64.whl
Size 6.8 MB
Tags Linux glibc 2.28+ ARM64 Python 3
SHA-256 checksum
How to use checksums
02b080fda8db548a50b65d8049eb50443e75fb0bc5eaa2856603d51f0fa7ffd7
BLAKE2b-256 checksum
How to use checksums
fae5d941d3f047858895637594ed4040c7a9781ea6649e557dbb5002a3007beb
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/7.0.0 CPython/3.11.17

Release files / pogo_pin-0.1.2-py3-none-macosx_11_0_arm64.whl

Download URL pogo_pin-0.1.2-py3-none-macosx_11_0_arm64.whl
Size 5.3 MB
Tags Python 3 macOS 11.0+ ARM64
SHA-256 checksum
How to use checksums
06ed26a3b000146fb84bfc4682a4523f649bcc83af678f28a87780515c74f54e
BLAKE2b-256 checksum
How to use checksums
2e501e67fb1be093ea8bbe61f87c8772c4dbd32293b9993da490edce84bcc04a
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/7.0.0 CPython/3.11.17

Release files / pogo_pin-0.1.2-py3-none-macosx_10_12_x86_64.whl

Download URL pogo_pin-0.1.2-py3-none-macosx_10_12_x86_64.whl
Size 5.4 MB
Tags Python 3 macOS 10.12+ x86-64
SHA-256 checksum
How to use checksums
07c053433fac4d3b456bae4683f7ad6fb35ded018a21faff5c24f10754ced02c
BLAKE2b-256 checksum
How to use checksums
c844d0e36f4098dc52e0409fbcaf5cc486160367672f801c5edbee2fd4f0ccb8
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/7.0.0 CPython/3.11.17

Security for pogo-pin 0.1.2

Provenance

Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.

No provenance found

None of the files in this release were uploaded with provenance metadata.

A note on package security

PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.

To learn more about protecting yourself from malicious actors, visit our package security documentation.

Release history Release notifications | RSS feed

This release

0.1.2 This release

6 release files No provenance

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page