A modern terminal with a built-in multiplexer: close it and your sessions keep running. Run shells and tons of AI agents across your machines, then pick them up from desktop, browser, TUI and more. Written in Rust with no UI framework: interface drawn straight on the GPU. No Electron, GPUI or webview.
Rust agentagent-orchestrationaiai-agentsclaude-codecodexcoding-agentlinuxmacosmultiplayermultiplexerrustterminalterminal-emulatorterminal-multiplexertmuxtuiweztermwindows
feat(agent-status): detect CodeBuddy Code CLI
Mirro Choucd55915462ad
diff --git a/NOTICE b/NOTICEindex 2dcbbcda..5adca50c 100644--- a/NOTICE+++ b/NOTICE@@ -26,6 +26,11 @@ included at mux/src/agent_status/manifests/LICENSE. Each bundled filecarries an attribution header naming the upstream commit it was takenfrom.+One manifest, mux/src/agent_status/manifests/codebuddy.toml, is not from+herdr: it was authored by ThinkTerm's contributors and is distributed+under this repository's own license. Its header records that, and where+each of its detection signals came from.+---This product embeds user-interface icons from Lucide@@ -147,6 +152,11 @@ logo is included at third_party/herdr/logo.svg, and the full license atthird_party/herdr/LICENSE. See third_party/herdr/README for the upstreamcommit.+The CodeBuddy mark at third_party/codebuddy/codebuddy.svg is the glyph from+the app icon published in Tencent's @tencent-ai/codebuddy-code package,+included to identify that agent running in a pane. It remains Tencent's+trademark; see third_party/codebuddy/README for its provenance.+Brand marks and logos appearing in this product are trademarks of theirrespective owners. They are used solely to identify the correspondingproduct or service (nominative use) and imply no affiliation with ordiff --git a/docs/agent-status.md b/docs/agent-status.mdindex abc6fe97..ff12a803 100644--- a/docs/agent-status.md+++ b/docs/agent-status.md@@ -1,10 +1,10 @@# Agent Status Protocol-ThinkTerm can track the state of coding agents (Claude Code, Codex, Pi,-OpenCode, …) running in its panes: **working**, **blocked** (waiting for a-user decision), or **idle**. The state feeds the thread status indicators-in the left sidebar and the Agents panel in the right sidebar-(Settings → Agents → *Agent Panel*, off by default).+ThinkTerm can track the state of coding agents (Claude Code, CodeBuddy+Code, Codex, Pi, OpenCode, …) running in its panes: **working**,+**blocked** (waiting for a user decision), or **idle**. The state feeds+the thread status indicators in the left sidebar and the Agents panel in+the right sidebar (Settings → Agents → *Agent Panel*, off by default).Detection arbitrates three signal layers, strongest contract first:@@ -117,13 +117,44 @@ reports back over `thinkterm cli` — herdr's current approach — not aterminal sequence. (No such subcommand exists yet; `thinkterm cli agent`is query-only today.)+## CodeBuddy Code integration++Screen rules only — there is nothing to install. CodeBuddy Code reports+its run state through its OSC 0 title, which it rewrites whenever the+state changes: while a turn runs the title starts with one of ten Braille+spinner frames it advances every 200 ms, and when the turn ends the same+prefix becomes a static idle marker. Its npm shims (`codebuddy`,+`codebuddy-code`, `cbc`) are `#!/usr/bin/env node` scripts, so the pane's+foreground leader is the runtime and the agent is identified from the+shim path in `node`'s argv. Both directions of the title marker are used:+the spinner frames read as **working** and the static marker as **idle**,+so on the common path nothing has to be inferred from redrawn content at+all. Screen rules cover what the title does not speak for — the thinking+heading and MCP startup, both of which run before the title moves — and+both of its dialogs read as **blocked**: the permission prompt, which+always numbers its choices and offers "1. Yes", and the+`AskUserQuestion` panel, whose footer offers "Enter to select" beside+"Esc to cancel" for as long as it is open (its free-text row cannot be+used for this, because it turns into the user's own text as they type).+The turn's spinner stays on the title while either dialog waits, so both+blocker rules outrank the title's working rule.++Identity needs process visibility. A pane whose foreground program is+`ssh` only sees `ssh`; CodeBuddy runs on the remote host, so a bare SSH+pane gets no row (the same holds for any agent identified by its+process). Run it in a mux-domain pane — detection then happens on the+host that owns the pane and the state is mirrored to the client — or+have the agent report `THINKTERM_AGENT` itself, as OpenCode does.+## Screen-rule manifestsBundled manifests live in the ThinkTerm source under`mux/src/agent_status/manifests/` and are sourced from the-[herdr](https://github.com/herdrdev/herdr) project (Apache-2.0). The-format is herdr's agent-detection manifest format; a user override for an-agent replaces the bundled file of the same id wholesale.+[herdr](https://github.com/herdrdev/herdr) project (Apache-2.0), except+`codebuddy.toml`, which is authored here because herdr has no manifest+for that agent. The format is herdr's agent-detection manifest format; a+user override for an agent replaces the bundled file of the same id+wholesale.The `osc_title` and `osc_progress` regions see only what the applicationactually emitted: both are empty until an OSC title / OSC 9;4 progressdiff --git a/licenses/README.md b/licenses/README.mdindex bfdda03a..e166fb73 100644--- a/licenses/README.md+++ b/licenses/README.md@@ -50,13 +50,16 @@ The agent manifests under `mux/src/agent_status/manifests/` are sourced from2.0, reproduced verbatim in[`mux/src/agent_status/manifests/LICENSE`](../mux/src/agent_status/manifests/LICENSE).Each bundled manifest carries an attribution header naming the upstream commit-it was taken from and any local changes.+it was taken from and any local changes. One file, `codebuddy.toml`, is not+from herdr: it is authored by ThinkTerm's contributors and carries this+repository's own license.## IconsIcons come from [Lucide](https://github.com/lucide-icons/lucide),[Simple Icons](https://github.com/simple-icons/simple-icons),-[Lobe Icons](https://github.com/lobehub/lobe-icons), and material-icon-theme.+[Lobe Icons](https://github.com/lobehub/lobe-icons), material-icon-theme, and+the CodeBuddy Code app icon under `third_party/codebuddy`.Their provenance and license texts are recorded in [NOTICE](../NOTICE).## Bundled Windows runtime componentsdiff --git a/mux/src/agent_status/engine.rs b/mux/src/agent_status/engine.rsindex c2a3c435..f36428f5 100644--- a/mux/src/agent_status/engine.rs+++ b/mux/src/agent_status/engine.rs@@ -165,6 +165,10 @@ const BUNDLED_MANIFESTS: &[&str] = &[include_str!("manifests/pi.toml"),include_str!("manifests/opencode.toml"),include_str!("manifests/kimi.toml"),+ // Hand-authored here rather than sourced from herdr, which carries no+ // manifest for it; the file's header records where its signals came+ // from.+ include_str!("manifests/codebuddy.toml"),];static MANIFESTS: RwLock<Option<HashMap<String, CompiledManifest>>> = RwLock::new(None);@@ -1113,6 +1117,199 @@ ctrl+o to toggleassert!(matches!(verdict, ScreenVerdict::State(AgentState::Blocked)));}+ fn eval_codebuddy(screen: &str, title: &str) -> ScreenVerdict {+ evaluate(+ "codebuddy",+ &DetectionInput {+ screen,+ osc_title: title,+ osc_progress: "",+ },+ )+ }++ /// CodeBuddy installs as a `#!/usr/bin/env node` shim, so a pane's+ /// foreground leader is the runtime and the shim only appears in argv.+ #[test]+ fn codebuddy_identifies_through_its_node_shim() {+ let mut argv = || {+ Some(vec![+ "node".to_string(),+ "/home/u/.npm-global/bin/codebuddy".to_string(),+ ])+ };+ assert_eq!(+ crate::agent_status::proc_match::identify(+ "/usr/bin/node",+ &mut argv,+ &manifest_id_for_alias+ )+ .as_deref(),+ Some("codebuddy")+ );+ assert_eq!(manifest_id_for_alias("cbc").as_deref(), Some("codebuddy"));+ assert_eq!(+ manifest_id_for_alias("codebuddy-code").as_deref(),+ Some("codebuddy")+ );+ }++ /// While a turn runs CodeBuddy rewrites the OSC 0 title on every run+ /// state change, advancing these ten frames every 200 ms+ /// (`TerminalTitleUpdater.SPINNER_FRAMES`). The title is therefore a+ /// report, not a TUI redraw to be sampled.+ #[test]+ fn codebuddy_title_spinner_is_working() {+ for frame in [+ "\u{280B}", "\u{2819}", "\u{2839}", "\u{2838}", "\u{283C}", "\u{2834}", "\u{2826}",+ "\u{2827}", "\u{2807}", "\u{280F}",+ ] {+ let title = format!("{frame} add the CodeBuddy manifest");+ assert!(+ matches!(+ eval_codebuddy("", &title),+ ScreenVerdict::State(AgentState::Working)+ ),+ "frame {frame} should read as working"+ );+ }+ }++ /// The idle title carries U+2733, and the transcript above the prompt+ /// box keeps the finished turn's own status line and its "∴ Thought"+ /// heading. Neither may keep the pane reading as working once the turn+ /// is over, which is why no rule matches that line.+ #[test]+ fn codebuddy_finished_turn_is_idle_not_working() {+ let screen = "\+∴ Thought++● I'll start by cloning the repository.++✺ Add the CodeBuddy manifest… (719s · running REPL · ctrl+t to show todos · Task running for a while)+ └ Next: evaluate the integration+────────────────────────────────────────+>+────────────────────────────────────────+? for shortcuts 1 shell · press ↓ to view tasks ← for agents 3.3M tokens+";+ // The marker the updater leaves behind is the rest state, and it+ // outranks the finished turn's own line left above the box.+ let idle = eval_codebuddy(screen, "\u{2733} add the CodeBuddy manifest");+ assert!(+ matches!(idle, ScreenVerdict::State(AgentState::Idle)),+ "the idle marker should read as idle, got {idle:?}"+ );+ // With no marker on the title at all, nothing here may read as+ // working; that case is left to the known-agent Idle fallback.+ let unmarked = eval_codebuddy(screen, "add the CodeBuddy manifest");+ assert!(+ matches!(unmarked, ScreenVerdict::NoMatch),+ "a finished turn without a marker is left to the fallback, got {unmarked:?}"+ );+ }++ /// Its reasoning models print "∴ Thinking..." while the thought runs+ /// and settle the same heading to "∴ Thought" afterwards.+ #[test]+ fn codebuddy_thinking_heading_is_working() {+ let screen = "● earlier output\n\n∴ Thinking...\n";+ assert!(matches!(+ eval_codebuddy(screen, ""),+ ScreenVerdict::State(AgentState::Working)+ ));+ assert!(matches!(+ eval_codebuddy("● earlier output\n\n∴ Thought\n", ""),+ ScreenVerdict::NoMatch+ ));+ }++ /// Every permission dialog numbers its choices and always offers+ /// "1. Yes"; only the confirm line differs from tool to tool.+ #[test]+ fn codebuddy_permission_dialog_is_blocked() {+ let screen = "\+● Read(src/main.rs)++╭────────────────────────────────────────╮+│ Bash command │+│ │+│ cargo test -p mux │+│ Run the mux tests │+│ │+│ Do you want to proceed? │+│ ❯ 1. Yes │+│ 2. Yes, and don't ask again for session+│ 3. No, and tell CodeBuddy what to do differently (esc)+╰────────────────────────────────────────╯+";+ assert!(matches!(+ eval_codebuddy(screen, ""),+ ScreenVerdict::State(AgentState::Blocked)+ ));+ // The file tools ask their own question, with the same options.+ let screen = "\+│ Edit file │+│ Do you want to make this edit to main.rs? │+│ ❯ 1. Yes │+│ 2. Yes, and don't ask again for session+";+ assert!(matches!(+ eval_codebuddy(screen, ""),+ ScreenVerdict::State(AgentState::Blocked)+ ));+ // The REPL tool asks "Are you sure you want to do this?" instead,+ // with a "Confirm" heading of its own. Copied from a live session.+ let screen = "\+∴ Thought++● REPL · Run echo hello-from-test+╭──────────────────────────────────────────────────────╮+│ Confirm │+│ │+│ REPL │+│ code: \"return await Bash({ command: \"echo hello-from-test\" })\", description: \"Run echo hello-from-test\"+│ │+│ Are you sure you want to do this? │+│ │+│ > 1. Yes │+│ 2. Yes, and don't ask again this session (shift + tab)+│ 3. No, and tell CodeBuddy what to do differently (escape)+│ │+╰──────────────────────────────────────────────────────╯+";+ // The turn keeps its spinner on the title while the dialog waits,+ // so the blocker has to outrank the title's working rule.+ assert!(matches!(+ eval_codebuddy(screen, "\u{280B} Reply with hello"),+ ScreenVerdict::State(AgentState::Blocked)+ ));+ }++ /// AskUserQuestion always ends its option list with the free-text+ /// "Type something" row, above the panel's own key hints.+ #[test]+ fn codebuddy_question_panel_is_blocked() {+ let screen = "\+Which dataset should I use?++❯ 1. personal_photos+ 2. screenshots+ 3. Type something+ Submit+Enter to select · ↑/↓ to navigate · Esc to cancel+";+ assert!(matches!(+ eval_codebuddy(screen, ""),+ ScreenVerdict::State(AgentState::Blocked)+ ));+ // As with the permission dialog, the spinner stays on the title.+ assert!(matches!(+ eval_codebuddy(screen, "\u{2839} Reply with hello"),+ ScreenVerdict::State(AgentState::Blocked)+ ));+ }+#[test]fn regions_slice_as_documented() {let content = "a\n\nb\nc\n";diff --git a/mux/src/agent_status/manifests/codebuddy.toml b/mux/src/agent_status/manifests/codebuddy.tomlnew file mode 100644index 00000000..9c4b9987--- /dev/null+++ b/mux/src/agent_status/manifests/codebuddy.toml@@ -0,0 +1,97 @@+# Hand-authored for ThinkTerm: Tencent's CodeBuddy Code CLI+# (npm `@tencent-ai/codebuddy-code`, installed as `codebuddy`,+# `codebuddy-code` or `cbc`). Not part of herdr's set, which has no+# manifest for this agent. It is authored here and carries this+# repository's own license, unlike the files around it, which are+# Apache-2.0 from herdr; see NOTICE at the repository root.+#+# The signals below were read off a live session (2.171.0):+#+# - The OSC 0 title. CodeBuddy's TerminalTitleUpdater writes+# `<marker> <topic>` on every run-state change: while a turn runs it+# advances a ten-frame Braille spinner every 200 ms (SPINNER_FRAMES),+# and when the turn ends the marker becomes a static idle one. That+# prefix is an explicit report, not a guess at the TUI, which is why+# both directions are read from it.+# - The permission dialog numbers its choices and always offers "1. Yes".+# - The question panel's footer reads "Enter to select · ↑/↓ to navigate ·+# Esc to cancel" for as long as it is up.++id = "codebuddy"+version = "2026.10.21.1"+min_engine_version = 3+updated_at = "2026-10-21T00:00:00Z"+aliases = ["codebuddy-code", "cbc", "code-buddy"]++[[rules]]+id = "permission_dialog"+state = "blocked"+# Above osc_title_working: CodeBuddy keeps the turn's spinner frame on+# the OSC 0 title while the dialog waits, so a blocker below it would+# never be seen. Read off a live session: dialog up, title `⠴ topic`.+priority = 1200+region = "whole_recent"+visible_blocker = true+# A numbered "1. Yes" plus one of the dialog's own questions. The shell+# tool's title ("Bash command") and the confirm line differ per tool, so+# the alternatives are its wording, not one tool's.+contains = ["1. yes"]+any = [+ { contains = ["do you want to proceed"] },+ { contains = ["do you want to create "] },+ { contains = ["do you want to make this edit"] },+ { contains = ["do you want to multi edit"] },+ { contains = ["do you want to allow"] },+ # The REPL tool confirms with its own sentence rather than "Do you+ # want to proceed?"; read off a live 2.171.0 session.+ { contains = ["are you sure you want to do this"] },+]++[[rules]]+id = "question_panel"+state = "blocked"+# Same reason as permission_dialog: the spinner keeps running behind it.+priority = 1190+region = "whole_recent"+visible_blocker = true+# The footer, not the "Type something" placeholder: that row turns into+# the user's own text as soon as they start typing, and the panel must+# keep reading as blocked while they do.+contains = ["enter to select", "esc to cancel"]++[[rules]]+id = "osc_title_working"+state = "working"+priority = 1100+region = "osc_title"+visible_working = true+# One of CodeBuddy's ten spinner frames, then a space and the topic.+regex = ['^[\x{2800}-\x{28FF}] ']++[[rules]]+id = "osc_title_idle"+state = "idle"+priority = 1000+region = "osc_title"+visible_idle = true+# U+2733, the marker the same updater leaves behind when the turn ends.+regex = ['^\x{2733} ']++[[rules]]+id = "thinking_working"+state = "working"+priority = 900+region = "bottom_non_empty_lines(12)"+visible_working = true+# "∴ Thinking..." while a reasoning model is thinking; the same heading+# settles to "∴ Thought" once the thought is done, so only the -ing form+# counts. Both share the U+2234 prefix.+line_regex = ['^\s*\x{2234} Thinking']++[[rules]]+id = "mcp_boot_working"+state = "working"+priority = 800+region = "bottom_non_empty_lines(6)"+visible_working = true+line_regex = ['^\s*[\x{2022}\x{25E6}]\s*(?:Booting MCP server:|Starting MCP servers).*esc to interrupt\)']diff --git a/thinkterm-web/src/agents.rs b/thinkterm-web/src/agents.rsindex 614f1e15..cbc04e69 100644--- a/thinkterm-web/src/agents.rs+++ b/thinkterm-web/src/agents.rs@@ -194,6 +194,7 @@ mod panel_tests {pub fn display_name(agent_id: &str) -> String {match agent_id {"claude" => "Claude Code".into(),+ "codebuddy" => "CodeBuddy Code".into(),"codex" => "Codex".into(),"copilot" => "Copilot CLI".into(),"cursor" => "Cursor Agent".into(),@@ -217,6 +218,7 @@ pub fn display_name(agent_id: &str) -> String {pub fn icon(agent_id: &str) -> &'static str {match agent_id {"claude" => "brand-claude",+ "codebuddy" => "brand-codebuddy","copilot" => "brand-copilot","kimi" => "brand-kimi","codex" => "brand-codex",@@ -369,8 +371,10 @@ mod tests {#[test]fn names_and_icons_follow_the_desktop() {assert_eq!(display_name("claude"), "Claude Code");+ assert_eq!(display_name("codebuddy"), "CodeBuddy Code");assert_eq!(display_name("gemini"), "Gemini");assert_eq!(icon("claude"), "brand-claude");+ assert_eq!(icon("codebuddy"), "brand-codebuddy");assert_eq!(icon("codex"), "brand-codex");assert_eq!(icon("kimi"), "brand-kimi");assert_eq!(icon("gemini"), "bot");diff --git a/thinkterm-web/ui/src/icons.ts b/thinkterm-web/ui/src/icons.tsindex 4143e24b..e2a8a43d 100644--- a/thinkterm-web/ui/src/icons.ts+++ b/thinkterm-web/ui/src/icons.ts@@ -90,6 +90,7 @@ import puzzle from '../../../third_party/lucide/icons/puzzle.svg?raw';// own colours, the others single-colour (`fill="currentColor"`), as their// makers publish them.import brandClaude from '../../../third_party/lobe-icons/claude-color.svg?raw';+import brandCodeBuddy from '../../../third_party/codebuddy/codebuddy.svg?raw';import brandCopilot from '../../../third_party/lobe-icons/copilot-color.svg?raw';import brandKimi from '../../../third_party/lobe-icons/kimi-color.svg?raw';import brandKimiMono from '../../../third_party/lobe-icons/kimi.svg?raw';@@ -255,6 +256,7 @@ const PANEL_ICONS: Record<string, string> = {// one and the theme shows one of the two (tokens.css), as on the desktop.const AGENT_ICONS: Record<string, string> = {'brand-claude': brandClaude,+ 'brand-codebuddy': brandCodeBuddy,'brand-copilot': brandCopilot,'brand-kimi': `<span class="dark-only">${brandKimi}</span><span class="light-only">${brandKimiMono}</span>`,'brand-codex': brandCodex,diff --git a/third_party/codebuddy/README b/third_party/codebuddy/READMEnew file mode 100644index 00000000..3ad50e85--- /dev/null+++ b/third_party/codebuddy/README@@ -0,0 +1,25 @@+CodeBuddy Code+=============++This directory contains the CodeBuddy Code mark, taken from the app icon+shipped in the CLI's own npm package.++Package: @tencent-ai/codebuddy-code+Version: 2.171.0+Path: dist/web-ui/pwa-icon.svg+License: the mark is Tencent's; see the note below++ codebuddy.svg CodeBuddy Code monochrome++`pwa-icon.svg` draws the mark in white on a dark rounded square. Only the+glyph was taken: its path is copied unchanged into a 12x12 viewBox with+`fill="currentColor"`, which `SvgIcon::rasterize` turns white so the+shader can tint it with the surrounding UI color, exactly as the other+monochrome agent marks in `third_party/lobe-icons` work.++To update the mark, copy the path from a newer package and record the+version here.++The logo is the trademark of its owner. It appears here to identify which+agent is running in a pane; that is nominative use and implies no+affiliation with or endorsement by the owner.diff --git a/third_party/codebuddy/codebuddy.svg b/third_party/codebuddy/codebuddy.svgnew file mode 100644index 00000000..e4cffa50--- /dev/null+++ b/third_party/codebuddy/codebuddy.svg@@ -0,0 +1,3 @@+<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 12 12" width="12" height="12">+<path fill="currentColor" fill-rule="evenodd" d="M0.0001 5.9182L0.0001 6.0001L0.0001 6.0821C0 8.8444 0 10.2426 0.8788 11.1214C1.0848 11.3274 1.3193 11.4851 1.5932 11.6058C1.5625 11.2148 1.6512 10.8775 1.855 10.6444C1.9344 10.5539 1.9369 10.5501 1.9196 10.398C1.8909 10.149 1.878 9.7805 1.891 9.5427L1.9014 9.3205L1.5679 8.7305C1.0513 7.8115 0.7233 7.0398 0.5967 6.4501C0.5299 6.1268 0.534 5.9834 0.6161 5.8773C0.6661 5.8132 0.8298 5.7469 1.0273 5.7104C1.5245 5.6231 2.6087 5.7021 3.815 5.9151L3.9403 5.9367L4.2156 5.6931C4.6728 5.2883 4.9764 5.0612 5.5363 4.7122C6.1198 4.3471 6.7783 4.0468 7.5198 3.809L7.7578 3.7327L7.8885 3.3893C8.3568 2.1531 8.8364 1.2418 9.1784 0.9386C9.296 0.8331 9.3031 0.829 9.3894 0.8238C9.5292 0.8136 9.6572 0.8807 9.8752 1.0791C10.3844 1.5418 11.0934 2.4931 11.5342 3.3054L11.7045 3.6207L11.9451 3.7403C11.955 3.7453 11.9652 3.7505 11.9756 3.756C11.9193 2.3548 11.7335 1.4908 11.1214 0.8788C10.2426 0 8.8444 0 6.0821 0.0001L6.0001 0.0001L5.9182 0.0001C3.1558 0 1.7576 0 0.8788 0.8788C0 1.7576 0 3.1558 0.0001 5.9182ZM12.0001 5.5869C11.3059 4.9017 10.2729 4.6581 9.3399 4.9737C9.0955 5.0564 8.8304 5.2094 8.3004 5.5154L5.2558 7.2732C4.7258 7.5792 4.4608 7.7322 4.2669 7.9026C3.481 8.5933 3.1852 9.6974 3.5204 10.6886C3.6031 10.9331 3.7561 11.1981 4.0621 11.7281C4.1171 11.8234 4.1672 11.9101 4.2133 11.9894C4.7159 12.0002 5.2807 12.0001 5.9182 12.0001L6.0001 12.0001L6.0821 12.0001C8.8444 12.0002 10.2426 12.0003 11.1214 11.1214C12.0003 10.2426 12.0002 8.8444 12.0001 6.0821L12.0001 6.0001L12.0001 5.9182C12.0001 5.8055 12.0001 5.6951 12.0001 5.5869ZM9.3152 7.2263Q9.5309 7.1018 9.7715 7.1662Q10.0122 7.2307 10.1367 7.4464L10.7843 8.5681Q10.9089 8.7838 10.8444 9.0245Q10.7799 9.2651 10.5642 9.3896Q10.4606 9.4494 10.342 9.465Q10.2234 9.4806 10.1079 9.4497Q9.9923 9.4187 9.8974 9.3459Q9.8025 9.2731 9.7427 9.1695L9.0951 8.0478Q9.0353 7.9442 9.0197 7.8256Q9.0041 7.707 9.035 7.5915Q9.066 7.4759 9.1388 7.381Q9.2116 7.2861 9.3152 7.2263ZM6.5262 9.0398Q6.4107 9.0088 6.2921 9.0244Q6.1735 9.0401 6.0699 9.0999Q5.9663 9.1597 5.8935 9.2546Q5.8207 9.3495 5.7897 9.465Q5.7588 9.5806 5.7744 9.6992Q5.79 9.8177 5.8498 9.9213L6.4974 11.043Q6.6219 11.2588 6.8625 11.3232Q7.1031 11.3877 7.3189 11.2632Q7.4225 11.2033 7.4953 11.1084Q7.5681 11.0135 7.5991 10.898Q7.63 10.7825 7.6144 10.6639Q7.5988 10.5453 7.539 10.4417L6.8914 9.32Q6.8316 9.2164 6.7367 9.1436Q6.6418 9.0708 6.5262 9.0398Z"/>+</svg>diff --git a/wezterm-gui/src/agent_status/mod.rs b/wezterm-gui/src/agent_status/mod.rsindex e4d83313..a1b82652 100644--- a/wezterm-gui/src/agent_status/mod.rs+++ b/wezterm-gui/src/agent_status/mod.rs@@ -437,6 +437,7 @@ pub(crate) fn display_order(a: &AgentPaneStatus, b: &AgentPaneStatus) -> std::cmpub(crate) fn display_name(agent_id: &str) -> String {match agent_id {"claude" => "Claude Code",+ "codebuddy" => "CodeBuddy Code","codex" => "Codex","copilot" => "Copilot CLI","cursor" => "Cursor Agent",@@ -490,6 +491,7 @@ pub(crate) fn brand_icon(agent_id: &str, appearance: Appearance) -> Option<Agent"copilot" => AgentIcon::Color(BrandIcon::AgentCopilot),"kimi" if dark => AgentIcon::Color(BrandIcon::AgentKimi),"kimi" => AgentIcon::Mono(SvgIcon::AgentKimi),+ "codebuddy" => AgentIcon::Mono(SvgIcon::AgentCodeBuddy),"codex" => AgentIcon::Mono(SvgIcon::AgentCodex),"cursor" => AgentIcon::Mono(SvgIcon::AgentCursor),"opencode" => AgentIcon::Mono(SvgIcon::AgentOpenCode),@@ -513,6 +515,11 @@ pub(crate) enum IntegrationKind {/// display order: (agent id, PATH probe names, coverage).pub(crate) const SUPPORTED_AGENTS: &[(&str, &[&str], IntegrationKind)] = &[("claude", &["claude"], IntegrationKind::ScreenRules),+ (+ "codebuddy",+ &["codebuddy", "codebuddy-code", "cbc"],+ IntegrationKind::ScreenRules,+ ),("codex", &["codex"], IntegrationKind::ScreenRules),("copilot", &["copilot"], IntegrationKind::ScreenRules),("cursor", &["cursor-agent", "cursor"], IntegrationKind::ScreenRules),@@ -864,7 +871,9 @@ mod tests {fn brand_icon_covers_the_logos_we_vendor() {use super::{brand_icon, AgentIcon, Appearance};for appearance in [Appearance::Dark, Appearance::Light] {- for id in ["claude", "codex", "copilot", "cursor", "kimi", "opencode", "pi"] {+ for id in [+ "claude", "codebuddy", "codex", "copilot", "cursor", "kimi", "opencode", "pi",+ ] {assert!(brand_icon(id, appearance).is_some(),"{id} should have a brand mark in {appearance:?}"@@ -902,6 +911,7 @@ mod tests {#[test]fn display_name_falls_back_to_the_raw_id() {assert_eq!(display_name("claude"), "Claude Code");+ assert_eq!(display_name("codebuddy"), "CodeBuddy Code");assert_eq!(display_name("myagent"), "Myagent");assert_eq!(display_name(""), "Agent");}diff --git a/wezterm-gui/src/termwindow/ui/icons.rs b/wezterm-gui/src/termwindow/ui/icons.rsindex e062c3db..dfa36255 100644--- a/wezterm-gui/src/termwindow/ui/icons.rs+++ b/wezterm-gui/src/termwindow/ui/icons.rs@@ -141,6 +141,7 @@ pub enum SvgIcon {// the theme for free. Agents whose logo is genuinely colored live in// `BrandIcon` instead; Kimi is in both, because its colored mark is// white and vanishes on a light background.+ AgentCodeBuddy,AgentCodex,AgentCursor,AgentKimi,@@ -419,6 +420,9 @@ impl SvgIcon {Self::Upload => include_bytes!("../../../../third_party/lucide/icons/upload.svg"),Self::Wifi => include_bytes!("../../../../third_party/lucide/icons/wifi.svg"),Self::X => include_bytes!("../../../../third_party/lucide/icons/x.svg"),+ Self::AgentCodeBuddy => {+ include_bytes!("../../../../third_party/codebuddy/codebuddy.svg")+ }Self::AgentCodex => include_bytes!("../../../../third_party/lobe-icons/openai.svg"),Self::AgentCursor => {include_bytes!("../../../../third_party/lobe-icons/cursor.svg")@@ -946,6 +950,7 @@ mod tests {// The agent marks come from a different upstream than the// rest, sized in `em` rather than pixels: keep them covered so// a re-vendored file that usvg cannot size fails here.+ SvgIcon::AgentCodeBuddy,SvgIcon::AgentCodex,SvgIcon::AgentCursor,SvgIcon::AgentKimi,