v54

latestOpenAPI 3.1.0raw.githubusercontent.com2026-08-03522891921.1 KB
Sessions

Append Turn

post/sessions/turns/

Request body

session_idstring required
turn_idstring uuid nullable
stream_idstring uuid required
turn_indexinteger required
harness_kind'pi_core' | 'claude' | 'pi_agenta' | 'codex' required

The coding agent program a run drives. A backend declares which it supports.

pi_core is plain Pi; pi_agenta is Pi with Agenta's forced skills, prompt, and policy. Both drive the same pi ACP agent in the runner; claude drives Claude Code.

agent_session_idstring nullable
sandbox_idstring nullable
trace_idstring uuid nullable
span_idstring nullable
start_timestring date-time nullable
end_timestring date-time nullable

Response

Successful Response

countinteger