Skip to content

feat: Add agent color config - #3809

Merged
rekram1-node merged 41 commits into
anomalyco:devfrom
chknlittle:feature/configurable-agent-colors
Nov 11, 2025
Merged

rekram1-node merged 41 commits into
anomalyco:devfrom
chknlittle:feature/configurable-agent-colors

Conversation

@chknlittle

@chknlittle chknlittle commented Nov 3, 2025 •

Copy link
Copy Markdown
Contributor

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

@chknlittle

chknlittle commented Nov 3, 2025 •

Copy link
Copy Markdown
Contributor Author

Relates to issue #1973

@chknlittle
chknlittle marked this pull request as draft November 3, 2025 11:08
@chknlittle chknlittle changed the title Add agent color config feat: Add agent color config Nov 3, 2025
@chknlittle
chknlittle marked this pull request as ready for review November 3, 2025 11:10
@chknlittle
chknlittle force-pushed the feature/configurable-agent-colors branch from 7c7b2c0 to 1b4021a Compare November 3, 2025 11:38
@chknlittle chknlittle closed this Nov 3, 2025
@chknlittle chknlittle reopened this Nov 3, 2025
@chknlittle
chknlittle marked this pull request as draft November 3, 2025 11:41
@chknlittle
chknlittle marked this pull request as ready for review November 3, 2025 11:42
@rekram1-node

Copy link
Copy Markdown
Collaborator

@0xrin1 can u resolve the conflicts?

Comment thread packages/opencode/src/cli/cmd/github.ts Resolved
@rekram1-node

Copy link
Copy Markdown
Collaborator

@0xrin1 I was about to merge but then I realized, how are people gonna define colors in an agent.md definition?

@chknlittle

Copy link
Copy Markdown
Contributor Author

@0xrin1 I was about to merge but then I realized, how are people gonna define colors in an agent.md definition?

Not exactly sure what you mean.

Do you mean that we should be supporting a way to specify agent color in agent.md?

I'm not sure what that would look like tbh is that something ppl would do?

@rekram1-node

Copy link
Copy Markdown
Collaborator

i mean u can define agents in your opencode.json right

but u can also define them in .opencode/agent/.md

Using the frontmatter

oh I guess it works if you wrap it in quotes so this is fine

@rekram1-node

Copy link
Copy Markdown
Collaborator

Thanks for having patience with me on this one! A lot of people wanted this

@rekram1-node
rekram1-node merged this pull request into anomalyco:dev Nov 11, 2025
@chknlittle

Copy link
Copy Markdown
Contributor Author

@rekram1-node thank you too 🫡

@jknlsn

jknlsn commented Nov 12, 2025

Copy link
Copy Markdown
Contributor

I'm not seeing this in the dev branch, not sure what's happened. d0ead04 also shows me this label:

This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.

Any ideas?

Very keen to use this feature, nice work folks :)

@rekram1-node

Copy link
Copy Markdown
Collaborator

there is a chance that it was merged right when a deploy script went off and it killed the commit ill recover it and merge it in again thansk for pointing it out

@rekram1-node

Copy link
Copy Markdown
Collaborator

it's backkkk: 0b86adb

@ConsoleTVs

Copy link
Copy Markdown

Why isn't this documented?

@rekram1-node

Copy link
Copy Markdown
Collaborator

/oc document this

@opencode-agent

Copy link
Copy Markdown
Contributor

$ bun turbo typecheck

Attention:
Turborepo now collects completely anonymous telemetry regarding usage.
This information is used to shape the Turborepo roadmap and prioritize features.
You can learn more, including how to opt-out if you'd not like to participate in this anonymous program, by visiting the following URL:
https://turborepo.com/docs/telemetry

WARNING Unable to calculate transitive closures: No lockfile entry found for '@emnapi/wasi-threads'
::error::@opencode-ai/ui#typecheck: command (/home/runner/_work/opencode/opencode/packages/ui) /home/runner/.bun/bin/bun run typecheck exited (2)
ERROR run failed: command exited (2)
error: "turbo" exited with code 2
error: failed to push some refs to 'https://github.com/0xrin1/opencode.git'

opencode session  |  github run

@ConsoleTVs

ConsoleTVs commented Jan 27, 2026 •

Copy link
Copy Markdown

@rekram1-node Looks like it failed

@opencode-agent

Copy link
Copy Markdown
Contributor

User ConsoleTVs does not have write permissions

github run

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.

Feature Request: specify agent color in config

5 participants