diff --git a/packages/memory/src/agents/architect.ts b/packages/memory/src/agents/architect.ts index f2784e86..7eaf193b 100644 --- a/packages/memory/src/agents/architect.ts +++ b/packages/memory/src/agents/architect.ts @@ -6,6 +6,7 @@ export const architectAgent: AgentDefinition = { displayName: 'Architect', description: 'Memory-aware planning agent that researches, designs, and persists implementation plans', mode: 'primary', + color: '#ef4444', temperature: 0.0, permission: { edit: { diff --git a/packages/memory/src/agents/code.ts b/packages/memory/src/agents/code.ts index 063c916d..6d4b5eca 100644 --- a/packages/memory/src/agents/code.ts +++ b/packages/memory/src/agents/code.ts @@ -6,6 +6,7 @@ export const codeAgent: AgentDefinition = { displayName: 'Code', description: 'Primary coding agent with awareness of project memory and conventions', mode: 'primary', + color: '#3b82f6', tools: { exclude: ['memory-plan-execute'], }, diff --git a/packages/memory/src/agents/types.ts b/packages/memory/src/agents/types.ts index c73a8cf8..39114601 100644 --- a/packages/memory/src/agents/types.ts +++ b/packages/memory/src/agents/types.ts @@ -9,6 +9,7 @@ export interface AgentDefinition { systemPrompt: string mode?: 'primary' | 'subagent' | 'all' hidden?: boolean + color?: string tools?: { include?: string[] exclude?: string[] @@ -29,5 +30,6 @@ export interface AgentConfig { temperature?: number maxSteps?: number hidden?: boolean + color?: string permission?: Record } diff --git a/packages/memory/src/config.ts b/packages/memory/src/config.ts index 39e85af4..4acdf9fd 100644 --- a/packages/memory/src/config.ts +++ b/packages/memory/src/config.ts @@ -1,6 +1,6 @@ import type { AgentRole, AgentDefinition, AgentConfig } from './agents' -const REPLACED_BUILTIN_AGENTS = ['build'] +const REPLACED_BUILTIN_AGENTS = ['build', 'plan'] const ENHANCED_BUILTIN_AGENTS: Record }> = { plan: { @@ -68,6 +68,7 @@ function createAgentConfigs(agents: Record): Record< ...(agent.temperature !== undefined ? { temperature: agent.temperature } : {}), ...(agent.maxSteps !== undefined ? { maxSteps: agent.maxSteps } : {}), ...(agent.hidden ? { hidden: agent.hidden } : {}), + ...(agent.color ? { color: agent.color } : {}), ...(agent.permission ? { permission: agent.permission } : {}), } }