[PR #3809] feat: Add agent color config #10769

Closed
opened 2026-02-16 18:15:31 -05:00 by yindo · 0 comments
Owner

Original Pull Request: https://github.com/anomalyco/opencode/pull/3809

State: closed
Merged: Yes


closes: #1973

This PR adds the ability to customize agent colors in the opencode configuration.

You can specify custom colors for agents in your opencode.json:

{
  $schema: https://opencode.ai/config.json,
  agent: {
    glm-4.6: {
      model: openrouter/zhipuai/glm-4-plus,
      color: #3B82F6,
      ...
    },
    chkn: { 
      model: openrouter/gpt-5-high,
      color: #DC2626,
      ...
    },
    plan: { 
      model: openrouter/gpt-5-high,
      mode: primary,
      color: #A855F7,
      ...
    },
    claude: { 
      model: anthropic/claude-sonnet-4-5-20250929,
      color: #D97706,
      ...
    }
  }
}

The colors are specified as hex color codes and will be applied to agent indicators in the CLI/TUI output, making it easier to distinguish between different agent types at a glance.

image image image image
**Original Pull Request:** https://github.com/anomalyco/opencode/pull/3809 **State:** closed **Merged:** Yes --- closes: #1973 This PR adds the ability to customize agent colors in the opencode configuration. You can specify custom colors for agents in your opencode.json: ``` { $schema: https://opencode.ai/config.json, agent: { glm-4.6: { model: openrouter/zhipuai/glm-4-plus, color: #3B82F6, ... }, chkn: { model: openrouter/gpt-5-high, color: #DC2626, ... }, plan: { model: openrouter/gpt-5-high, mode: primary, color: #A855F7, ... }, claude: { model: anthropic/claude-sonnet-4-5-20250929, color: #D97706, ... } } } ``` The colors are specified as hex color codes and will be applied to agent indicators in the CLI/TUI output, making it easier to distinguish between different agent types at a glance. <img width="204" height="62" alt="image" src="https://github.com/user-attachments/assets/9f46e89c-449e-4329-a7b4-99eaa73233a7" /> <img width="204" height="62" alt="image" src="https://github.com/user-attachments/assets/d8638ef4-bbf7-498c-b3ae-bb4ce7bdc7c2" /> <img width="204" height="62" alt="image" src="https://github.com/user-attachments/assets/e06f3700-44fa-4b88-bbc0-ef56472c9937" /> <img width="204" height="62" alt="image" src="https://github.com/user-attachments/assets/55481578-5715-4299-bc60-0f0e2ab20168" />
yindo added the pull-request label 2026-02-16 18:15:31 -05:00
yindo closed this issue 2026-02-16 18:15:31 -05:00
Sign in to join this conversation.
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: anomalyco/opencode#10769