Choose the test
Record each test command and its expected result in EMBEDDER.md. Embedder reuses them in later requests.
Add a regression test
In Act mode, name the failure the test covers, the suite it belongs to, and what to run afterward:Add a board smoke test
Name the board, the port or probe, the power setup, and the pass condition:Save a hardware script
A hardware script is a Python file under.embedder/hardware/ that you can rerun without starting a chat. Ask for setup, a bounded measurement, pass criteria, and cleanup:
embedder script takes a path relative to .embedder/hardware/. These options help in a test workflow:
The command exits with
0 when the script passes, 1 when it fails, and 2 for a usage error. A script that exits normally without printing a result line also exits with 0, so print the result line in every test script.
See Hardware scripts for profiles, instrument helpers, and hardware cases.
Add instrument evidence
Give the channel assignments, sample rate, duration, trigger, and tolerance:Run checks in the background or from scripts
- From your own scripts: run
embedder script <name>.py --jsonon the computer connected to the hardware. Check the exit code and parse the JSON result. - From GitHub or Slack: ask for builds, tests, and hardware checks through automation. The machine that runs the daemon needs the project’s toolchain, and any board the check uses must be connected to that machine.
- Soak tests and long captures: ask Embedder to run the script in the background. The chat stays available while it runs. See Run longer checks.
/loop can’t run shell commands, builds, flashing, live captures, or GDB. With the Observe hardware workload, it can only read hardware status and serial output that is already buffered or saved. Use a hardware script for a repeated hardware sequence.