[Feature Request] Support ANSI color codes in model response

Status Closed — not planned
Reported on v2.0.76
Maintainer reply None cached
Activity 7 comments · opened Jan 7, 2026 · closed Feb 27, 2026

Feature Request

Allow Claude's responses to include ANSI escape codes that render as colored text in the terminal, or provide a pattern-based coloring mechanism for custom status tags.

Use Case

I use status tags at the end of responses to indicate task state (and trigger notifications):

  • [✅ CLAUDE - DONE - SUCCESS] - should be green
  • [❌ CLAUDE - DONE - FAILED] - should be red
  • [⏳ CLAUDE - INPUT NEEDED] - should be yellow

Currently, all text renders in the same color regardless of semantic meaning. Gemini CLI demonstrates this is technically feasible in terminal-based AI tools.

Proposed Solutions (any of these would work):

  1. Pass through ANSI escape codes from model output instead of sanitizing them
  2. Support a markdown color extension (e.g., {green}text{/green})
  3. Allow users to configure pattern-based coloring in settings (regex → color mapping)

Current Workaround

Using emojis + backticks for inline code styling, but all tags get the same cyan color.

Environment Info

  • Platform: darwin
  • Terminal: iTerm.app
  • Version: 2.0.76

View original on GitHub ↗

7 Comments

github-actions[bot] · 9 months ago

Found 3 possible duplicate issues:

  1. https://github.com/anthropics/claude-code/issues/10122
  2. https://github.com/anthropics/claude-code/issues/2584
  3. https://github.com/anthropics/claude-code/issues/7269

This issue will be automatically closed as a duplicate in 3 days.

  • If your issue is a duplicate, please close it and 👍 the existing issue instead
  • To prevent auto-closure, add a comment or 👎 this comment

🤖 Generated with Claude Code

Olshansk · 9 months ago

#2584 is pretty similar.

My goal is to be able to tell Claude to customize the output color via skills, prompts or AGENTS.md/CLAUDE.md.

cowwoc · 9 months ago

ANSI escape codes is the way to go. Ideally we should be able to render 24-bit colors to improve the developer experience with nice-looking gradients.

github-actions[bot] · 7 months ago

Closing for now — inactive for too long. Please open a new issue if this is still relevant.

cowwoc · 7 months ago

Still relevant

chris-l-waters · 7 months ago

+1 - would use this for semantic highlighting in agent output

github-actions[bot] · 7 months ago

This issue has been automatically locked since it was closed and has not had any activity for 7 days. If you're experiencing a similar issue, please file a new issue and reference this one if it's relevant.