Skip to content

[FEATURE]: support named agent colors for CC compatibility (red, blue...) #24797

@sentisso

Description

@sentisso

Feature hasn't been suggested before.

  • I have verified this feature I'm about to request hasn't been suggested before.

Describe the enhancement you want to request

The color option for Claude Code subagents supports only named colors like: red, blue, green, yellow, purple, orange, pink, or cyan (see Claude Code docs).

This causes incompatiblity between Claude Code subagents and OpenCode subagents, for example this agent:

---
name: judge
description: Use this agent when evaluating implementation artifacts against an evaluation specification produced by the meta judge. Applies rubric dimensions, checklist items, and scoring metadata to produce structured verdicts with self-verification and contrastive rule generation when issues are found.
model: opus
color: red
---

causes opencode not to start:

$ opencode
Configuration is invalid at ~/.opencode/agents/judge.md
↳ Invalid string: must match pattern /^#[0-9a-fA-F]{6}$/ color

OpenCode should also support this color config.

Metadata

Metadata

Assignees

Labels

coreAnything pertaining to core functionality of the application (opencode server stuff)discussionUsed for feature requests, proposals, ideas, etc. Open discussion

Type

No type
No fields configured for issues without a type.

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions