Agents

Update an agent's runtime harness and default model

Updates agents.harness_provider and upserts agent-scoped swarm_config rows for HARNESS_PROVIDER, MODEL_OVERRIDE, and REASONING_EFFORT_OVERRIDE. The settings apply to future provider sessions. For model and reasoning_effort: omit the field to leave it unchanged, send null to clear the corresponding override, or send a value to set it.

patch/api/agents/{id}/runtime

Path parameters

idstring required

Request body

harness_provider'claude' | 'codex' | 'pi' | 'opencode' required
modelstring nullable
allow_custom_modelboolean
reasoning_effort'off' | 'low' | 'medium' | 'high' | 'xhigh' | 'max' | 'null' nullable

Response

Updated agent row

idstring required
namestring required
isLeadboolean
status'idle' | 'busy' | 'offline' | 'waiting_for_credentials' required
descriptionstring
rolestring
capabilitiesstring[]
claudeMdstring
soulMdstring
identityMdstring
setupScriptstring
toolsMdstring
heartbeatMdstring
maxTasksinteger
emptyPollCountinteger
lastActivityAtstring date-time
provider'claude' | 'codex' | 'pi' | 'devin' | 'claude-managed' | 'opencode' | 'acp'
harnessProvider'claude' | 'codex' | 'pi' | 'devin' | 'claude-managed' | 'opencode' | 'acp' | 'null' nullable
credentialMissingstring[] nullable
createdAtstring date-time required
lastUpdatedAtstring date-time required

Changes

Changed in 4 of the 104 revisions of this API.134

    • added the new acp enum value to the ////////// response property for the response status

      response-property-enum-value-added

    • added the new acp enum value to the //// response property for the response status

      response-property-enum-value-added

    • added the new acp enum value to the //// response property for the response status

      response-property-enum-value-added

    • added the media type application/json for the response with the status

      response-media-type-added

    • added the media type application/json for the response with the status

      response-media-type-added

    • added the media type application/json for the response with the status

      response-media-type-added

    • added the new max enum value to the request property

      request-property-enum-value-added

    • removed the enum value max of the request property

      request-property-enum-value-removed