原始内容
pi-worker
Headless worker helpers for pi -p.
Flags
--last-message-file <path>writes the final assistant text onagent_end.--result-schema <path>enables thereport_resulttool and validates tool args against the JSON Schema file. Gotcha: a-tallowlist applies to extension tools too — includereport_resultin it (e.g.-t read,write,bash,report_result) or the model cannot call the tool and no result file is written.--result-file <path>overrides the structured result output path. Without it,result.jsonis written next to--last-message-file.--worker-heartbeat-file <path>writes a JSON liveness record onagent_start,tool_execution_end, andagent_end.--worker-trustanswers project trust with{ "trusted": "yes" }for this process.