Skip to content

Commit bc649d9

Browse files
Add color property to agent definitions
1 parent 8567e9b commit bc649d9

4 files changed

Lines changed: 6 additions & 1 deletion

File tree

packages/memory/src/agents/architect.ts

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -6,6 +6,7 @@ export const architectAgent: AgentDefinition = {
66
displayName: 'Architect',
77
description: 'Memory-aware planning agent that researches, designs, and persists implementation plans',
88
mode: 'primary',
9+
color: '#ef4444',
910
temperature: 0.0,
1011
permission: {
1112
edit: {

packages/memory/src/agents/code.ts

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -6,6 +6,7 @@ export const codeAgent: AgentDefinition = {
66
displayName: 'Code',
77
description: 'Primary coding agent with awareness of project memory and conventions',
88
mode: 'primary',
9+
color: '#3b82f6',
910
tools: {
1011
exclude: ['memory-plan-execute'],
1112
},

packages/memory/src/agents/types.ts

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -9,6 +9,7 @@ export interface AgentDefinition {
99
systemPrompt: string
1010
mode?: 'primary' | 'subagent' | 'all'
1111
hidden?: boolean
12+
color?: string
1213
tools?: {
1314
include?: string[]
1415
exclude?: string[]
@@ -29,5 +30,6 @@ export interface AgentConfig {
2930
temperature?: number
3031
maxSteps?: number
3132
hidden?: boolean
33+
color?: string
3234
permission?: Record<string, unknown>
3335
}

packages/memory/src/config.ts

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
import type { AgentRole, AgentDefinition, AgentConfig } from './agents'
22

3-
const REPLACED_BUILTIN_AGENTS = ['build']
3+
const REPLACED_BUILTIN_AGENTS = ['build', 'plan']
44

55
const ENHANCED_BUILTIN_AGENTS: Record<string, { tools: Record<string, boolean> }> = {
66
plan: {
@@ -68,6 +68,7 @@ function createAgentConfigs(agents: Record<AgentRole, AgentDefinition>): Record<
6868
...(agent.temperature !== undefined ? { temperature: agent.temperature } : {}),
6969
...(agent.maxSteps !== undefined ? { maxSteps: agent.maxSteps } : {}),
7070
...(agent.hidden ? { hidden: agent.hidden } : {}),
71+
...(agent.color ? { color: agent.color } : {}),
7172
...(agent.permission ? { permission: agent.permission } : {}),
7273
}
7374
}

0 commit comments

Comments
 (0)