v52

OpenAPI 3.1.0raw.githubusercontent.com2026-08-033240556.8 KB
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