Documentation
¶
Overview ¶
pzrunner is a non-interactive harness that drives the promptzero Agent end-to-end over a real Flipper. It runs one prompt per command line arg (or one prompt from stdin when --stdin is passed), executes it against the connected hardware, and emits a JSON record of every tool call plus the final assistant response on stdout. Progress goes to stderr.
This binary exists so documentation examples and integration checks are reproducible: the same agent the REPL uses, without the terminal raw-mode UI. It is a development tool — task build does not ship it; build explicitly with `go build ./cmd/pzrunner` or `task build:runner`.
Exit codes:
0 every prompt returned a response 1 config load or Flipper connect failed 2 flag / usage error 3 one or more prompts returned an error from ai.Run
Click to show internal directories.
Click to hide internal directories.