Skip to content

Conversation

@0xrin1
Copy link

@0xrin1 0xrin1 commented Nov 3, 2025

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

@0xrin1
Copy link
Author

0xrin1 commented Nov 3, 2025

Relates to issue #1973

@0xrin1 0xrin1 marked this pull request as draft November 3, 2025 11:08
@0xrin1 0xrin1 changed the title Add agent color config feat: Add agent color config Nov 3, 2025
@0xrin1 0xrin1 marked this pull request as ready for review November 3, 2025 11:10
@0xrin1 0xrin1 force-pushed the feature/configurable-agent-colors branch from 7c7b2c0 to 1b4021a Compare November 3, 2025 11:38
@0xrin1 0xrin1 closed this Nov 3, 2025
@0xrin1 0xrin1 reopened this Nov 3, 2025
@0xrin1 0xrin1 marked this pull request as draft November 3, 2025 11:41
@0xrin1 0xrin1 marked this pull request as ready for review November 3, 2025 11:42
0xrin1 added 15 commits November 3, 2025 18:07
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant