From 917d200c2a4b746bee3c027b6fc4167d2f354f24 Mon Sep 17 00:00:00 2001 From: Drewry Pope Date: Thu, 29 Oct 2026 05:39:20 -0500 Subject: [PATCH] feat(openclaw): add opencode-acp ACP-runtime agent (#2229) Mechanism 1 of #2229: an agents.entries entry whose runtime is the OpenCode harness over acpx (runtime.type=acp, runtime.acp.agent= opencode, backend acpx, mode oneshot, cwd home). Per the pinned OpenClaw 2026.10.7 schema and docs (tools/acp-agents/runbook), an entry configured this way is a valid sessions_spawn runtime=acp target: OpenClaw resolves runtime.acp.agent as the underlying harness id, so dispatchers can spawn agentId=opencode-acp and land in the fleet OpenCode, whose default model is the workhorse route. Heartbeat cadence disabled for this agent: dispatch is explicit. --- home/openclaw/default.nix | 21 +++++++++++++++++++++ 1 file changed, 21 insertions(+) diff --git a/home/openclaw/default.nix b/home/openclaw/default.nix index afb8175a90..bbdbaef42a 100644 --- a/home/openclaw/default.nix +++ b/home/openclaw/default.nix @@ -279,6 +279,27 @@ in main = { name = "OpenClaw (laptop node)"; }; + # ACP-runtime agent (#2229 mechanism 1): this agent's turns run + # in the OpenCode harness over acpx, so OpenClaw can dispatch + # work to OpenCode as a standing capability, not only from + # chat-channel sessions. OpenCode's own default model is the + # workhorse route (opencode-route/workhorse); a run can set the + # route explicitly. Mode "oneshot" = one fresh ACP session per + # task. Heartbeat cadence off: dispatch is explicit, this agent + # must never wake itself into OpenCode hourly. + opencode-acp = { + name = "OpenCode (ACP harness)"; + heartbeat.every = "0m"; + runtime = { + type = "acp"; + acp = { + agent = "opencode"; + backend = "acpx"; + mode = "oneshot"; + cwd = homeDir; + }; + }; + }; }; };