dao-cc-enhance
v1.1.0
Published
Enhance Claude Code with custom user message colors (dark-ansi theme) and conversation timecodes
Maintainers
Readme
dao-cc-enhance
Enhance Claude Code with custom user message colors and conversation timecodes.
Features
Custom Colors
Makes user messages visually distinct from Claude's responses by patching the dark-ansi theme's text color with a custom RGB value. Claude's responses keep the terminal's default foreground color.
Timecodes
Adds speaker labels and timestamps to every message via Claude Code hooks:
Frank · 15:22:30
Claude · 15:22:32
Claude · 15:22:35 · BashInstall
npx dao-cc-enhance installRestart Claude Code after installation.
Usage
# Install both features with defaults
npx dao-cc-enhance install
# Colors only
npx dao-cc-enhance install --colors-only
# Timecodes only
npx dao-cc-enhance install --timecodes-only
# Custom color
npx dao-cc-enhance install --color "230,180,120"
# Use a preset
npx dao-cc-enhance install --preset warm
# Set timecode options
npx dao-cc-enhance install --username "Frank" --format 12h
# Re-apply colors after Claude Code update
npx dao-cc-enhance reapply
# Check status
npx dao-cc-enhance status
# Uninstall
npx dao-cc-enhance uninstallColor Presets
| Name | RGB | Description |
|------|-----|-------------|
| warm (default) | 230,180,120 | Warm orange |
| sand | 220,200,160 | Sandy gold |
| peach | 240,170,140 | Peach |
| mint | 160,220,200 | Mint green |
How It Works
Colors: Patches @anthropic-ai/claude-code/cli.js to change the dark-ansi theme's text token from ansi:whiteBright to a custom rgb(R,G,B) value. User messages render with color:"text" while Claude's markdown-rendered responses use the terminal's default foreground — making them visually distinct.
Timecodes: Installs a Node.js hook script at ~/.claude/hooks/dao-timecode.js and registers it for UserPromptSubmit and Stop events in ~/.claude/settings.json.
Configuration
Stored at ~/.claude/dao-enhance.json:
{
"colors": {
"enabled": true,
"user_color": "230,180,120",
"preset": "warm"
},
"timecodes": {
"enabled": true,
"username": "Frank",
"timezone": "Asia/Shanghai",
"format": "24h"
}
}After Claude Code Updates
Claude Code updates overwrite cli.js. Re-apply colors with:
npx dao-cc-enhance reapplyRequirements
- Node.js >= 18
- Claude Code installed globally via npm
License
MIT
