v68

latestOpenAPI 3.1.0raw.githubusercontent.com2026-08-07344691.3 MB
Agents

Re-assign an agent's harness_provider (live)

Updates agents.harness_provider and upserts swarm_config (scope=agent, key=HARNESS_PROVIDER) so the worker's poll-loop reconciliation picks up the new provider within ~10s. No restart required. The swarm_config row is what actually drives the worker; the column mirrors the latest set value for dashboards.

patch/api/agents/{id}/harness-provider

Path parameters

idstring required

Request body

harness_provider'claude' | 'codex' | 'pi' | 'devin' | 'claude-managed' | 'opencode' required

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'
harnessProvider'claude' | 'codex' | 'pi' | 'devin' | 'claude-managed' | 'opencode' | 'null' nullable
credentialMissingstring[] nullable
createdAtstring date-time required
lastUpdatedAtstring date-time required