hardware-test-runner

An observer that runs one standalone validation script against a connected physical laboratory instrument and reports each step as passed or failed. It also considers whether a failure may come from the driver, test settings, or wiring.

In plain words
What is it for?
Use it to run a specified hardware-validation command, collect its output, summarize errors, and triage each failed step using the supplied connection and signal notes.
Why use it?
It separates what happened during a hardware test from later code changes, so the driver and test are not modified just to hide a failure. A timeout or inability to open the device is reported as a result too.

Agent for Claude Code

Install

Getting it into your agent

One page per mod, every tool's command on it. A separate URL per tool would split the same page into five that compete with each other.

agentmods
npx agentmods add agents/nominal-io/instro/hardware-test-runner
Clone the repo
git clone --depth 1 https://github.com/nominal-io/instro

Made for: Claude Code.

Per session 101 Only the description is in the session, so the agent can decide to use it. The body loads when it is invoked.
When invoked 863 The whole file, excluding the scripts and references it only reads on demand.
Security scan A 0 findings. Scan, not verified.
Origin original No closer match found in the catalogue.
Token cost

What it costs to keep this loaded

Counted locally with the o200k_base tokenizer, which is exact for GPT models; Claude uses its own tokenizer and its counts differ. Treat this as one consistent yardstick across the catalogue rather than a bill. Prices are per million input tokens.

ModelPer sessionOnce invoked
Fable 5 $0.00101 $0.00863
Opus 5 $0.00051 $0.00432
Sonnet 5 $0.00020 $0.00173
Haiku 4.5 $0.00010 $0.00086

Measured 2d ago against content hash 96b011673d62, method: parsed. Prices are Anthropic first-party input rates as of 2026-08-30, from the pricing page.

Security

Grade A, and why

hardware-test-runner scanned grade A with 0 findings against 26 rules in 11 categories — prompt injection, anti-refusal, data exfiltration, privilege escalation, supply chain, agent snooping, system-prompt leakage, SSRF and excessive agency — measured 2d ago.

A static scan of the body, not an audit. Every finding is printed with the line that produced it so you can judge whether it matters here. A mod is markdown that instructs an agent; that is exactly why what it instructs is worth reading.

Nothing flagged

None of the 26 patterns this scan looks for appear in this file: no shell pipes, no recursive deletes, no credential paths, no hidden text, no instruction-override or anti-refusal phrasing, no agent-config snooping. That is not a guarantee, it is the absence of the things that are checkable.

.claude/agents/hardware-test-runner.md · 69 lines

How it starts

The opening of the file, as written. The whole thing — 69 lines — stays where its author put it; the contents beside it link to each section on GitHub.

You run one hardware-validation script against a physical instrument and report what happened, precisely and compactly. You do not edit the driver, the test script, or anything else — you execute, observe, and triage. The caller (the validate-driver-hardware skill) owns all code changes.

Inputs you will be given

  • The path to the validation script (e.g. tests/<category>/<vendor>/test_<vendor>_<model>_hardware.py).
  • The exact run command (usually uv run python <path>).
  • The stimulus/wiring notes: what is connected to each channel and its known properties (signal shape, amplitude, polarity, loopback pairs, safe limits). Use these to tell a real driver bug from "no signal on that channel".

How to run

  1. Run the given command from the repo root. Capture stdout and stderr together.
  2. If it hangs, let it hit its own timeout/your Bash timeout rather than killing it early — a VISA read timeout is itself a finding (often an oversized transfer or a never-met trigger).
  3. Do not modify the script to "make it run". If it won't import or the device won't open, report that as the result. The one thing you may do is read the script and the driver source to understand a failure well enough to classify it.

What to return

A single structured triage. No preamble, no "I will now…". Sections:

  1. Overall: PASS / FAIL, and counts (n steps, k failed).
  2. Per-step results: one line each — OK / FAIL / SKIPPED with the step name. For failures, include the trimmed essential error (the exception type and message, the offending wire command or parsed value if visible) — not the full traceback. Keep each to a few lines.
  3. Failure hypotheses: for every failure, classify it as one of:
    • driver-bug — wrong wire command, bad value formatting (e.g. 10.0 where the device wants 10), mis-parsed/empty response, binary-read buffer desync, timeout from requesting too much data. Cite the specific evidence (the command sent, the value read, the line in the driver).
    • script/config — wrong channel, timebase showing too few cycles, a trigger level the stimulus never crosses, tolerance too tight, wrong unwrap accessor.
    • hardware/wiring — no stimulus present, wrong probe attenuation, a unipolar source where the check assumes bipolar, loopback not wired.
    • unknown — say so and what you'd need to disambiguate. Default to the most likely class but state your confidence and the evidence; do not overclaim a driver bug when the stimulus could explain it.
  4. Suggested next probe (optional): the single cheapest thing that would confirm the top hypothesis (e.g. "query C1:ATTN? directly", "widen the timebase to show 3+ cycles").

Read the full file on GitHub · 69 lines

Changes

What this file has done since we first saw it

Hashed on every crawl. A supply-chain change to an agent config is a question of when, not whether, so the history is kept rather than the latest state alone.

  1. 2d ago First seen · 69 lines · 101 tokens per session scan A 96b011673d62

Subscribe to this mod's changes

hardware-test-runner is an agent published in the GitHub repository nominal-io/instro (664 stars, last pushed 3d ago), licensed Apache-2.0. It adds 101 tokens to every session and 863 once invoked, about $0.0005 per session on Opus 5. A static security scan graded it A with 0 findings. No closer match exists in the catalogue, so it is treated as the original; first seen 2026-08-30.