pydo.harness.create_session_fork()
Generated on 13 Nov 2026
from pydo version
v0.46.0
Usage
client.harness.create_session_fork(
session_id="a1b2c3d4-e5f6-7890-abcd-ef1234567890",
body={
"from_checkpoint_id": "your_from_checkpoint_id",
"count": 1,
},
)Description
Each child boots a fresh sandbox from the checkpoint’s machine-state capture and is drivable exactly like any other session (input, HITL), with parent_session_id and fork_id set for lineage. When from_checkpoint_id is omitted, an implicit checkpoint of the session “now” is captured first and the children fork from that. All-or-nothing: on failure nothing is left running.
Parameters
session_idstring requiredExample:
a1b2c3d4-e5f6-7890-abcd-ef1234567890The session UUID.
from_checkpoint_idstring optionalCheckpoint to fork from; must be READY. Omitted/empty means capture an implicit checkpoint of the session "now" first and fork from that.
countinteger optionalNumber of child sessions to create, 1-4. Defaults to 1 when omitted; a value outside 1-4 is rejected with 400.
Request Sample
Response Example
More Information
See /v2/agents/sessions/{session_id}/fork in the API reference for additional detail on responses, headers, parameters, and more.