rea-ci-tests-audit
MOmorluto/rea485k7,690 new stars in the last 7 days
Author, validate, run, and participate in Prowl Agent Workflows — the `prowl.workflow/v1` bundles that orchestrate several live coding agents (launch, message, loop on verdicts, collect outputs, run built-in or local script actions) inside the running Prowl app. Use it to create, test, or debug a workflow action. Reach for this whenever the user wants a workflow created or edited ("write me a Prowl workflow that has two agents review each other", "add an input to the guessing-game workflow"), wants one executed ("use Prowl's adversarial-review workflow on this branch", "run the count-files workflow", "跑一下 xxx workflow"), asks about a run's progress or its result files, or when a `[Prowl] …` line with a `prowl workflow deliver` command appears in this pane — that means this agent is a participant in a run and must deliver through the workflow protocol. Not for driving individual panes directly (use prowl-cli) and not for Prowl settings/UI questions.
A workflow is a .pwlworkflow directory with workflow.yaml (schema: prowl.workflow/v1)
and optional local script actions, helpers, schemas, and assets. It declares roles and
sequential steps, typed state, nested conditions and loops. Prowl executes it; agent roles
use real terminal panes. Sources, later shadowing earlier by ID: app bundle (prowl.*
reserved), user (~/.prowl/workflows/*.pwlworkflow), repo
(<repo root>/.prowl/workflows/*.pwlworkflow). Pass bundle directories, not loose YAML files.
Pick the section for the task; load a reference file only when that task is at hand:
| Task | Where |
|---|---|
| Write or edit a workflow | read references/authoring.md first — full DSL, validator rules, patterns, worked example |
| Create or test a script action | references/actions.md — package layout, JSON protocol, approval, result records |
| Start a workflow, inspect or debug a run, decode an error | Running below; details in references/runbook.md |
A [Prowl] … line appeared in this pane | Participating below |
Read references/authoring.md, draft the requested workflow, validate it with
prowl workflow validate <bundle.pwlworkflow>, and fix errors while assessing warnings. validate and
prowl workflow schema work with Prowl closed. Passing static validation does not guarantee
start-time admission or successful execution: profiles, panes, inputs, CLI connectivity,
and the agents' work still matter. If validation cannot run, disclose that limitation.
Creating a definition does not itself require starting it; run it when that is part of
the user's request.
For launch roles, omit agents unless the user explicitly requires particular runtimes
or the task has a concrete runtime-specific requirement. Omission allows any qualifying
Agent Profile. Do not invent an allow-list from your own runtime, installed profiles,
example tokens, or assumptions about which model is best. Leave suggest unset too unless
it expresses a user-provided preference or a concrete task requirement; let Prowl's profile
picker and saved preferences choose the agent by default.
Examples demonstrate individual capabilities, not a mandatory architecture. Use the roles, steps, and output contracts the task needs; add loops, deadlines, and automatic pane closure only when their behavior serves the requested outcome. The authoring reference explains data dependencies, loop exits, and typed state and result scopes.
Use prowl workflow run prowl.handoff --role receiver=<Profile> --json to prepare and save
this conversation's task context, then start and focus a receiver in a new tab. Both modes
require a source pane with a detected agent. Use --input next=save instead to
save without a receiver. Follow the returned self_initiated.line and deliver the briefing
with its exact command; do not wait for Prowl to message you again. The receiver reads the
saved packet and continues the task. A completed run confirms save/launch, not task completion.
Use prowl workflow run prowl.review-loop --role reviewer=<Profile> --json from the
implementing agent. When present, follow the returned self_initiated.line to deliver the scope,
plan, and verification brief. The reviewer opens in a right split in the same tab.
Optional inputs: min_rounds=2, max_rounds=4 (each 1–30, minimum must not exceed
maximum), and focus=<one-line instruction>. Any qualifying Profile can review.
Prowl handles every round and handoff. Reviewer reports findings; main verifies and
fixes or explains each disposition. Reviewer reports one finding per pattern with
all instances, marks pre-existing findings (they do not block clean), and reports a
design signal when a pattern comes back. Main fixes the whole pattern and lists
uncertain items under ### Needs User Decision with both views and a recommendation. Reviewer may run tests. Main owns commits,
pushes, and existing PR updates unless it explicitly delegates them, subject to task
restrictions. Do not dispatch the other role manually. Deliver each assigned step,
then wait for its next task. Do not change reviewed code after your delivery.
Clean exit needs the minimum rounds, a clean reviewer report, and no later changes
or pending follow-up from main. If only user decisions remain, main uses verdict
decision and the loop stops with needs user decision. At the maximum, main still addresses findings and
reports remaining issues and fixes not reviewed again. completed means the procedure ended; read the final
summary for clean, not clean, or needs user decision. The reviewer pane stays open.
prowl workflow list [--json] # what this worktree can see, with validation status
prowl workflow run <id|name> [source] \
[--role r=<profile|auto|pN>] [--input k=v] [--skip <step-id>] [--json]
prowl workflow status [run-id] [--json] # no args inside a run: who am I / what is awaited
prowl workflow cancel <run-id> [--json]
[source] is a pane/tab/worktree reference (pN, tN, UUID, or the worktree name that
prowl workflow list prints as Worktree: <name> — main, not the Repo:main label of
prowl list). Omitted inside a pane: that pane serves the current role and its worktree
is the run's; outside a pane the focused worktree is used, and a workflow with a current
role fails with SOURCE_REQUIRED. Required inputs without defaults must be passed via
--input k=v.current role's own pane, inspect the run response for
self_initiated (.data.self_initiated with --json). If present, follow its line or
prompt_path and completion command yourself; Prowl does not type that first task
back into the same pane. Waiting for another message would leave your own step unfinished.--pane <UUID> only for an independently
selected source (the user chose it, or a controller created and retained its ID). Do not
infer identity from PROWL_PANE_ID, focus, cwd, or prowl agents session matching.
Explicit source selection fixes where the current role receives messages; it does not
prove who issued run. Without a verified caller, self_initiated is absent and Prowl
waits for the selected pane to become idle. If that pane is yours, end your turn after
reporting the run ID; do not poll or wait in a tool. Process the next [Prowl] task
with its exact token-prefixed read and delivery commands. This fallback complements
caller resolution and does not enable caller-scoped signals or ordinary dispatch receipts.run returns the run id and frozen bindings; poll
prowl workflow status <run-id> --json (.data.status.state is running,
needs_attention, or a terminal state; .data.finished_at appears when it ended) or read
the run directory (~/.prowl/logs/workflow-runs/<root-name>-<root-hash>/YYYY-MM/<run-id>/ — log.md is the
timeline; field guide, layout, and error tables in references/runbook.md). Finishing never
closes launched panes; only a close: step does.WORKFLOW_DISABLED for run), and the remembered profile per launch role.An active task delivered by Prowl in this pane, a launched role's kickoff protocol, or a
self_initiated task in the run response makes this agent a participant. A message task
looks like this:
[Prowl] <prompt or scoped-read command…> — finish with: PROWL_WORKFLOW_TOKEN=<token> prowl workflow deliver [--verdict <v>] -
printf '…' | PROWL_WORKFLOW_TOKEN=… prowl workflow deliver -). When verdict variants are
offered, pick exactly one and run that variant.strict: true. Check
the receipt: Delivered means accepted; Provisional still needs resolution, even
when the command exits successfully. Do not report a step completed merely because its
output file exists. A provisional delivery waits for the user's decision; Ask again
reopens delivery so you can correct it. Do not blindly resubmit or invent a replacement
token; runbook explains the states.prowl workflow status (no arguments) answers "who am I":
this pane's run, role, awaited step, its requirements and completion command. Without
caller identity, use status <run-id> to inspect progress; it does not reveal task tokens.
Keep the token-prefixed commands from the assigned task. An observer can poll progress;
a source waiting for its first task must end its turn as described above.prowl agents dispatch-complete for a workflow activation — it is rejected
with WORKFLOW_DELIVERY_REQUIRED naming the correct command.PROWL_WORKFLOW_TOKEN.This skill ships inside the app: prowl skills install prowl-workflow links it into every
detected agent skill folder; prowl skills list shows per-target status. prowl-cli is
the companion skill for driving individual panes outside a workflow.
Use the scoped prowl workflow read command supplied with the task to retrieve
the prompt. Read returned resource IDs with the same run ID and invocation number;
workflow-resource: references are handles, not filesystem paths. Use --json
for byte-preserving reads, decode each chunk by its encoding, and continue with
--offset <next_offset> until next_offset is absent. Only the assigned pane can read this
content. Run the command exactly as supplied, including its PROWL_WORKFLOW_TOKEN= prefix:
the token lets the read succeed when Prowl cannot identify the calling pane.
Deliver ordinary text/JSON on stdin with prowl workflow deliver -; no project-local
temporary output file is needed. Explicit delivery is required.
Run artifacts expire with their run: 30 days for unpinned terminal runs, with a 5 GiB soft global budget and a 24-hour diagnostic window. Keep Run prevents automatic cleanup. Export a terminal run from Execution History for a durable complete ZIP.
MOmorluto/rea485k7,690 new stars in the last 7 days
MOmorluto/rea485k7,690 new stars in the last 7 days
MAmattpocock/skills336k4,217 new stars in the last 7 days
MAmattpocock/skills336k4,217 new stars in the last 7 days
MAmattpocock/skills336k4,217 new stars in the last 7 days
Block dangerous git commands like push and reset --hard before they execute.
MAmattpocock/skills336k4,217 new stars in the last 7 days