From 08b900fb95c1318ec0db560facdab8a941bcf12a Mon Sep 17 00:00:00 2001 From: Drewry Pope Date: Wed, 28 Oct 2026 11:28:23 -0500 Subject: [PATCH 1/2] openclaw: enable claude, codex, agy as ACP agents alongside opencode All four acpx harnesses get per-agent command overrides pointing at local binaries (opencode fork, the ~/.openclaw/acpx wrappers for claude/codex, the system agy_acp_server) so the acpx startup check never falls back to npx-fetched adapters. allowedAgents grows from [opencode] to all four; the standalone ~/.acpx/config.json gets the matching agent commands. Gemini is deliberately excluded: its CLI can no longer authenticate (Google retired the Code Assist for individuals client; the Antigravity route is the agy agent). Requested by Drew 2026-10-28. --- home/openclaw/default.nix | 40 +++++++++++++++++++++++++++++---------- 1 file changed, 30 insertions(+), 10 deletions(-) diff --git a/home/openclaw/default.nix b/home/openclaw/default.nix index 6b1103e821..6079eaaab5 100644 --- a/home/openclaw/default.nix +++ b/home/openclaw/default.nix @@ -43,11 +43,18 @@ in { imports = [ inputs.nix-openclaw.homeManagerModules.openclaw ]; - # Point acpx's `opencode` harness at this laptop's pinned OpenCode fork - # (the build OpenChamber uses) instead of acpx's default - # `npx -y opencode-ai acp` upstream download. + # Point acpx's harnesses at this laptop's pinned binaries instead of + # acpx's default `npx -y ...` upstream downloads: opencode is the pinned + # OpenCode fork (the build OpenChamber uses); claude/codex run the local + # wrappers in ~/.openclaw/acpx (bundled adapters, no npx fetch); agy is + # the system antigravity-acp server. home.file.".acpx/config.json".text = builtins.toJSON { - agents.opencode.command = "/etc/profiles/per-user/user/bin/opencode acp"; + agents = { + opencode.command = "/etc/profiles/per-user/user/bin/opencode acp"; + claude.command = "/home/user/.openclaw/acpx/claude-agent-acp-wrapper.mjs"; + codex.command = "/home/user/.openclaw/acpx/codex-acp-wrapper.mjs"; + agy.command = "/run/current-system/sw/bin/agy_acp_server"; + }; }; # Start after the provider proxies + mcpx it depends on. @@ -281,12 +288,16 @@ in enabled = true; backend = "acpx"; defaultAgent = "opencode"; - # Only opencode is wired as an ACP harness for now: the acpx - # startup check initializes every allowed agent, and the other - # harnesses resolve to npx-fetched adapters, which hang on this - # laptop's flaky npmjs route (120s check timeout, 2026-10-26). - # Claude/Codex still work via their native runtime plugins. - allowedAgents = [ "opencode" ]; + # Every allowed agent gets a per-agent command override below, + # so the acpx startup check never resolves a harness to an + # npx-fetched adapter (that fetch hangs on this laptop's flaky + # npmjs route; 120s check timeout, 2026-10-26). claude/codex run + # the local wrappers in ~/.openclaw/acpx (adapters bundled with + # the acpx plugin; the store repoint is code#1711); agy runs the + # system antigravity-acp binary. Drew enabled all four + # 2026-10-28. Claude/Codex ALSO work via their native runtime + # plugins for chat bindings — ACP is the background-spawn path. + allowedAgents = [ "opencode" "claude" "codex" "agy" ]; dispatch.enabled = true; }; @@ -309,6 +320,15 @@ in command = "/etc/profiles/per-user/user/bin/opencode"; args = [ "acp" ]; }; + agents.claude = { + command = "/home/user/.openclaw/acpx/claude-agent-acp-wrapper.mjs"; + }; + agents.codex = { + command = "/home/user/.openclaw/acpx/codex-acp-wrapper.mjs"; + }; + agents.agy = { + command = "/run/current-system/sw/bin/agy_acp_server"; + }; }; }; slack.enabled = true; From 573dee8659e4034e0d9f148043027dbbe1e65c0e Mon Sep 17 00:00:00 2001 From: Drewry Pope Date: Wed, 28 Oct 2026 13:00:04 -0500 Subject: [PATCH 2/2] style(openclaw): nixfmt home/openclaw/default.nix (treefmt) --- home/openclaw/default.nix | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/home/openclaw/default.nix b/home/openclaw/default.nix index 6079eaaab5..afb8175a90 100644 --- a/home/openclaw/default.nix +++ b/home/openclaw/default.nix @@ -297,7 +297,12 @@ in # system antigravity-acp binary. Drew enabled all four # 2026-10-28. Claude/Codex ALSO work via their native runtime # plugins for chat bindings — ACP is the background-spawn path. - allowedAgents = [ "opencode" "claude" "codex" "agy" ]; + allowedAgents = [ + "opencode" + "claude" + "codex" + "agy" + ]; dispatch.enabled = true; };