[Feature Request] Support ANSI color codes in model response
Status Closed — not planned
Reported on v2.0.76
Maintainer reply None cached
Workaround ✓ Mentioned in description ↑
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):
- Pass through ANSI escape codes from model output instead of sanitizing them
- Support a markdown color extension (e.g.,
{green}text{/green}) - 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
7 Comments
Found 3 possible duplicate issues:
This issue will be automatically closed as a duplicate in 3 days.
🤖 Generated with Claude Code
#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.
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.
Closing for now — inactive for too long. Please open a new issue if this is still relevant.
Still relevant
+1 - would use this for semantic highlighting in agent output
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.