Sign In Sign Up

Centralize agent mode colors in constant

remove all hardcoded colors for agent modes in the cli and web dirs and centralize them in the AGENT_MODES const

I'll help you remove hardcoded colors for agent modes and centralize them. Let me start by exploring the codebase.

AGENT_MODES 13 matches
hardcoded colors for agent modes, mode color definitions
(rush|smart|thorough|extended).*color|color.*(rush|smart|thorough|extended) 25 matches
(rush|smart|thorough|extended).*color|color.*(rush|smart|thorough|extended) 1 match

Let me look at the current agent-modes.ts and the CLI color functions:

Now let me search for the getAgentModeColor function:

getAgentModeColor 4 matches
cli/**/*orb* 2 files found

Let me look at the getAgentModeColor function and the animated-orb files:

Now I see the issue clearly. The getAgentModeColor function in cli/src/tui/app.ts has hardcoded colors that don't match the centralized colors in agent-modes.ts. Let me check if there are other places:

rgb.*0x|#[0-9A-Fa-f]{6} (**/*.svelte) 29 matches
rush|smart|free|plan (**/*.svelte) 100 + 10 truncated

Let me search for agent mode color references in the web:

0x03.*0xc5|0xe4.*0xb4|E4B402|03C561 0 matches
colorMode|getAgentModeColor|modeColor 13 matches

Now let me look at voice-orb to see if there are hardcoded colors there: