Skip to main content
Some steps Patchwork cannot perform: something that happens in your UI, on a device, or by a person. Those are declared as proposed_action patches. The agent proposes; you act; you report. Needs an agent wiring a proposed_action patch. No connection or signing required — the whole point is that you do the work.

The loop

args is exactly what the agent proposed. Dispatch on patch_ref to whatever your product does:

Report failures honestly

failed is a first-class answer. The model is told, and can respond — offer an alternative, ask a clarifying question, or explain. Reporting occurred for something that did not happen teaches the agent a false fact and it will act on it later. Include a reason. It reaches the model and produces a better next turn.

Safe to retry

Posting an outcome for a tool call that already has one succeeds without changing anything. If your network call fails and you are unsure, just post again.

Not the same as a confirmation

See Approving a write for the other half.