Skip to main content
rpc calls one @rpc method on the instance with its arguments and prints the result as JSON. An argument that parses as JSON is passed as JSON, anything else as a string. The methods below are the managed loop’s; a code-based class answers only what it decorates with @rpc. approve, deny, inspectApproval and pendingApproval work under dev (through --local) and on the deployed agent (without --local): a tool marked ask pauses the run, approve resumes it, and deny tells the model, which may re-request (a new pending approval — the run is not closed). Approvals expire 15 minutes after the pause; the TTL is enforced lazily, so a mutating approve past expiry fails with HARNESS_APPROVAL_EXPIRED and the expired approval can be neither approved nor denied (Limitations). The RPC Methods is where each lands in the managed harness.