Add color property to agent definitions

This commit is contained in:
Chris Scott committed 2026-02-24 23:16:14 -05:00
1 parent 8567e9bb2b
commit bc649d91ee
4 files changed
+6 -1

No files matched your search

+1
View File
@@ -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: {
+1
View File
@@ -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'],
},
+2
View File
@@ -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<string, unknown>
}
+2 -1
View File
@@ -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<string, { tools: Record<string, boolean> }> = {
plan: {
@@ -68,6 +68,7 @@ function createAgentConfigs(agents: Record<AgentRole, AgentDefinition>): 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 } : {}),
}
}