Agents

Re-assign an agent's harness_provider (live)

Changed on

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

Request

  • Base URL
    http://localhost:3013
  • URL
    http://localhost:3013/api/agents/{id}/harness-provider
  • Auth
    HTTP bearer

Path parameters

idstring required

Request body

harness_provider'claude' | 'codex' | 'pi' | 'devin' | 'claude-managed' | 'opencode' | 'acp' | 'dsh' | 'amp' | 'cursor' | 'grok' | 'fx' required

Response

Updated agent row

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

Changes

    • warning

      added the new fx enum value to the ////////// response property for the response status

    • warning

      added the new fx enum value to the //// response property for the response status

    • warning

      added the new fx enum value to the //// response property for the response status

    • info

      added the new fx enum value to the request property

    • info

      added the optional property //// to the response with the status