These are source-tree examples for acpx flow run.
They range from small primitives to one larger end-to-end example.
echo.flow.ts: one ACP step that returns a JSON replybranch.flow.ts: ACP classification followed by a deterministic branch into eithercontinueorcheckpointpr-triage/pr-triage.flow.ts: a larger single-PR workflow example with a colocated written spec inpr-triage/README.mdreplay-viewer/: a browser app that visualizes saved flow run bundles with React Flow, a recent-runs picker, ACP session inspection, and a dedicated viewer spec indocs/2026-03-27-flow-replay-viewer.mdshell.flow.ts: one native runtime-owned shell action that returns structured JSONworkdir.flow.ts: native workspace prep followed by an ACP step that runs inside that isolated cwdtwo-turn.flow.ts: two ACP prompts in the same implicit main session
Run them from the repo root:
acpx flow run examples/flows/echo.flow.ts \
--input-json '{"request":"Summarize this repository in one sentence."}'
acpx flow run examples/flows/branch.flow.ts \
--input-json '{"task":"FIX: add a regression test for the reconnect bug"}'
acpx flow run examples/flows/pr-triage/pr-triage.flow.ts \
--input-json '{"repo":"openclaw/acpx","prNumber":150}'
acpx flow run examples/flows/shell.flow.ts \
--input-json '{"text":"hello from shell"}'
acpx flow run examples/flows/workdir.flow.ts
acpx flow run examples/flows/two-turn.flow.ts \
--input-json '{"topic":"How should we validate a new ACP adapter?"}'Run the replay viewer from the repo root:
pnpm run viewer:previewThese examples are examples only. They do not define acpx core product
behavior.
The PR-triage example can comment on or close real GitHub PRs if you run it against a live repository.