trace-library

Upload one session [write]

Changed on

Stores the session's messages, redacted again on arrival and cut to 8 KiB each, replacing an earlier version. The same sha256 is a no-op (unchanged). A session another member uploaded answers 409 trace_owned. The body is at most 8 MiB. Workspace keys are refused: uploads and reads belong to a person. Returns 503 not_migrated before the tables exist.

put/trace-library/{harness}/{session_id}

Request

  • Base URL
    https://api.agentsky.dev/v1
  • URL
    https://api.agentsky.dev/v1/trace-library/{harness}/{session_id}
  • Auth
    HTTP bearer

Path parameters

harnessstring required

claude_code, codex, or another harness name

session_idstring required

The harness's own session id

Request body

sha256string required

The device's digest of the messages; repeats of it are not stored again

titlestring
cwdstring
projectstring
git_branchstring
git_commitstring
git_remotestring

The repository URL, without credentials

modelstring

The model that answered most

modelsstring[]

Every model that answered, most-used first

harness_versionstring
clientstring
model_providerstring
effortstring
devicestring
started_atstring date-time
ended_atstring date-time
user_turnsinteger
tool_callsinteger
partialboolean

The device left messages out to fit

Response

Updated or unchanged

status'updated' | 'unchanged'

Changes