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; + }; + }; + }; }; };