From 63179f91327be230a656dac81d0a322732358237 Mon Sep 17 00:00:00 2001 From: jpalmae <39507014+jpalmae@users.noreply.github.com> Date: Mon, 27 Jul 2026 11:17:12 -0400 Subject: [PATCH] feat(buzz-acp): register zcode-acp as a known ACP agent Add `zcode` / `zcode-acp` to the `default_agent_args` match so buzz-acp spawns the agent without requiring `--agent-args` to be passed explicitly. `zcode-acp` is an external ACP adapter (mirroring zed-industries/codex-acp for Codex) that drives the ZCode CLI through its stdio `app-server`. It speaks ACP v1 directly, so no other buzz-acp change is needed: - initialize / authenticate / logout (Z.AI OAuth init/poll + credential store compatible with `zcode login`) - session new / load / resume / list / close - session/prompt with streaming text, reasoning, tool calls, usage - session/requestPermission bridged bidirectionally Repo: https://github.com/jpalmae/zcode-acp Signed-off-by: jpalmae <39507014+jpalmae@users.noreply.github.com> --- crates/buzz-acp/src/config.rs | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/crates/buzz-acp/src/config.rs b/crates/buzz-acp/src/config.rs index a38d6faa14..4c389c5a2c 100644 --- a/crates/buzz-acp/src/config.rs +++ b/crates/buzz-acp/src/config.rs @@ -618,7 +618,8 @@ fn default_agent_args(command: &str) -> Option> { match normalize_agent_command_identity(command).as_str() { "goose" => Some(vec!["acp".to_string()]), "codex" | "codex-acp" | "claude-agent-acp" | "claude-code-acp" | "claude-code" - | "claudecode" | "buzz-agent" => Some(Vec::new()), + | "claudecode" | "buzz-agent" + | "zcode" | "zcode-acp" => Some(Vec::new()), _ => None, } }