Skip to content

Node-based terminal manager for AI coding agents — tmux-backed terminals and parallel agent sessions as draggable nodes on an infinite pan/zoom canvas. macOS, Linux, and a browser Server Edition.

feat(agents): brand logos in Add menus via AgentIcon

enesb23708e13d45
diff --git a/src/renderer/assets/codex-color.svg b/src/renderer/assets/codex-color.svg
new file mode 100644
index 000000000..c77ccfdd9
--- /dev/null
+++ b/src/renderer/assets/codex-color.svg
@@ -0,0 +1 @@
+<svg height="1em" style="flex:none;line-height:1" viewBox="0 0 24 24" width="1em" xmlns="http://www.w3.org/2000/svg"><title>Codex</title><path d="M19.503 0H4.496A4.496 4.496 0 000 4.496v15.007A4.496 4.496 0 004.496 24h15.007A4.496 4.496 0 0024 19.503V4.496A4.496 4.496 0 0019.503 0z" fill="#fff"></path><path d="M9.064 3.344a4.578 4.578 0 012.285-.312c1 .115 1.891.54 2.673 1.275.01.01.024.017.037.021a.09.09 0 00.043 0 4.55 4.55 0 013.046.275l.047.022.116.057a4.581 4.581 0 012.188 2.399c.209.51.313 1.041.315 1.595a4.24 4.24 0 01-.134 1.223.123.123 0 00.03.115c.594.607.988 1.33 1.183 2.17.289 1.425-.007 2.71-.887 3.854l-.136.166a4.548 4.548 0 01-2.201 1.388.123.123 0 00-.081.076c-.191.551-.383 1.023-.74 1.494-.9 1.187-2.222 1.846-3.711 1.838-1.187-.006-2.239-.44-3.157-1.302a.107.107 0 00-.105-.024c-.388.125-.78.143-1.204.138a4.441 4.441 0 01-1.945-.466 4.544 4.544 0 01-1.61-1.335c-.152-.202-.303-.392-.414-.617a5.81 5.81 0 01-.37-.961 4.582 4.582 0 01-.014-2.298.124.124 0 00.006-.056.085.085 0 00-.027-.048 4.467 4.467 0 01-1.034-1.651 3.896 3.896 0 01-.251-1.192 5.189 5.189 0 01.141-1.6c.337-1.112.982-1.985 1.933-2.618.212-.141.413-.251.601-.33.215-.089.43-.164.646-.227a.098.098 0 00.065-.066 4.51 4.51 0 01.829-1.615 4.535 4.535 0 011.837-1.388zm3.482 10.565a.637.637 0 000 1.272h3.636a.637.637 0 100-1.272h-3.636zM8.462 9.23a.637.637 0 00-1.106.631l1.272 2.224-1.266 2.136a.636.636 0 101.095.649l1.454-2.455a.636.636 0 00.005-.64L8.462 9.23z" fill="url(#lobe-icons-codex-_R_0_)"></path><defs><linearGradient gradientUnits="userSpaceOnUse" id="lobe-icons-codex-_R_0_" x1="12" x2="12" y1="3" y2="21"><stop stop-color="#B1A7FF"></stop><stop offset=".5" stop-color="#7A9DFF"></stop><stop offset="1" stop-color="#3941FF"></stop></linearGradient></defs></svg>
\ No newline at end of file
diff --git a/src/renderer/assets/gemini-color.svg b/src/renderer/assets/gemini-color.svg
new file mode 100644
index 000000000..410d083f6
--- /dev/null
+++ b/src/renderer/assets/gemini-color.svg
@@ -0,0 +1 @@
+<svg xmlns="http://www.w3.org/2000/svg" width="1em" height="1em" viewBox="0 0 24 24"><title>Gemini</title><defs><linearGradient id="gemini-spark" x1="2" y1="4" x2="22" y2="20" gradientUnits="userSpaceOnUse"><stop offset="0" stop-color="#4285F4"/><stop offset="0.52" stop-color="#9B72CB"/><stop offset="1" stop-color="#D96570"/></linearGradient></defs><path fill="url(#gemini-spark)" d="M12 0c.62 6.46 5.54 11.38 12 12-6.46.62-11.38 5.54-12 12-.62-6.46-5.54-11.38-12-12C6.46 11.38 11.38 6.46 12 0Z"/></svg>
diff --git a/src/renderer/canvas/Canvas.tsx b/src/renderer/canvas/Canvas.tsx
index d25402778..66267b745 100644
--- a/src/renderer/canvas/Canvas.tsx
+++ b/src/renderer/canvas/Canvas.tsx
@@ -26,7 +26,6 @@ import { TabBar } from '../components/TabBar'
import { ContextMenu, type MenuItem } from '../components/ContextMenu'
import { CommandPalette, type Command } from '../components/CommandPalette'
import {
- IconClaude,
IconCollapse,
IconBranch,
IconDuplicate,
@@ -71,6 +70,7 @@ import {
BUILTIN_AGENT_IDS,
type AgentId
} from '@shared/agents/config'
+import { AgentIcon } from '../lib/agentIcons'
import { branchClaudeSession } from '../lib/claudeBranch'
import { useSettings } from '../state/settings'
import { useContextWindow } from '../state/contextWindow'
@@ -1090,14 +1090,14 @@ export function Canvas() {
...BUILTIN_AGENT_IDS.map(
(aid): MenuItem => ({
label: `New ${AGENT_CONFIG[aid].label}`,
- icon: aid === 'claude' ? <IconClaude /> : <IconTerminal />,
+ icon: <AgentIcon agentId={aid} />,
onClick: () => addAgentNode(aid, at)
})
),
...useSettings.getState().settings.customAgents.map(
(c): MenuItem => ({
label: `New ${c.label}`,
- icon: <IconTerminal />,
+ icon: <AgentIcon agentId={c.id} />,
onClick: () => addAgentNode(c.id, at)
})
),
@@ -1407,7 +1407,7 @@ export function Canvas() {
(aid): Command => ({
id: `new-${aid}`,
label: `New ${AGENT_CONFIG[aid].label}`,
- icon: aid === 'claude' ? <IconClaude /> : <IconTerminal />,
+ icon: <AgentIcon agentId={aid} />,
run: () => addAgentNode(aid)
})
),
@@ -1415,7 +1415,7 @@ export function Canvas() {
(c): Command => ({
id: `new-${c.id}`,
label: `New ${c.label}`,
- icon: <IconTerminal />,
+ icon: <AgentIcon agentId={c.id} />,
run: () => addAgentNode(c.id)
})
),
diff --git a/src/renderer/components/Dock.tsx b/src/renderer/components/Dock.tsx
index f290fcc6f..ba2b9bf3c 100644
--- a/src/renderer/components/Dock.tsx
+++ b/src/renderer/components/Dock.tsx
@@ -1,6 +1,6 @@
import { useState } from 'react'
-import claudeIcon from '../assets/claude.svg'
import { AGENT_CONFIG, BUILTIN_AGENT_IDS, type AgentId } from '@shared/agents/config'
+import { AgentIcon } from '../lib/agentIcons'
import { useSettings } from '../state/settings'
interface DockProps {
@@ -61,13 +61,13 @@ export function Dock({
</button>
{BUILTIN_AGENT_IDS.map((aid) => (
<button key={aid} onClick={pick(() => onAddAgent(aid))}>
- {aid === 'claude' ? <ClaudeIcon /> : <TerminalIcon />}
+ <AgentIcon agentId={aid} size={18} />
<span>{AGENT_CONFIG[aid].label}</span>
</button>
))}
{customAgents.map((c) => (
<button key={c.id} onClick={pick(() => onAddAgent(c.id))}>
- <TerminalIcon />
+ <AgentIcon agentId={c.id} size={18} />
<span>{c.label}</span>
</button>
))}
@@ -199,6 +199,3 @@ function EditorIcon() {
</svg>
)
}
-function ClaudeIcon() {
- return <img src={claudeIcon} width={18} height={18} alt="Claude Code" style={{ display: 'block' }} />
-}
diff --git a/src/renderer/lib/agentIcons.tsx b/src/renderer/lib/agentIcons.tsx
new file mode 100644
index 000000000..8a95f30da
--- /dev/null
+++ b/src/renderer/lib/agentIcons.tsx
@@ -0,0 +1,20 @@
+import type { AgentId } from '@shared/agents/config'
+import claudeIcon from '../assets/claude.svg'
+import codexIcon from '../assets/codex-color.svg'
+import geminiIcon from '../assets/gemini-color.svg'
+import { IconTerminal } from '../components/icons'
+
+// Brand logo per builtin agent; custom/unknown agents fall back to the terminal glyph.
+const AGENT_LOGO: Partial<Record<string, string>> = {
+ claude: claudeIcon,
+ codex: codexIcon,
+ gemini: geminiIcon
+}
+
+export function AgentIcon({ agentId, size = 16 }: { agentId: AgentId; size?: number }): React.JSX.Element {
+ const src = AGENT_LOGO[agentId]
+ if (src) {
+ return <img src={src} width={size} height={size} alt="" style={{ display: 'block' }} />
+ }
+ return <IconTerminal />
+}