Terminal background colors that reflect Claude Code's state.
Black → Claude is working
Purple → Claude is done, waiting for your input
Orange → Claude is asking you a question (+ optional phone notification)
Green → You're typing a response
bash install-macos.shPrompts for:
- Bark key (optional) — iOS push notifications when Claude needs your input. Get the key from the Bark app.
- Typing detection (optional) — Changes background when you start typing. Requires iTerm2 Python API: iTerm2 → Scripts → Manage → enable Python API.
bash install-linux.shPrompts for:
- Bark key (optional) — same as above
- Typing detection (optional) — Uses zsh ZLE hooks or bash key rebinding
Requires dbus-send for live config reload.
The install script:
- Creates a small hook script (
~/.claude/hooks/iterm-bg.shorterm-bg.sh) that changes the terminal background color - Adds Claude Code hooks to
~/.claude/settings.jsonthat trigger on state changes - Optionally installs keystroke detection for the "typing" color
| Event | Color | Meaning |
|---|---|---|
UserPromptSubmit |
Black | You sent a message, Claude is working |
Stop |
Purple | Claude finished, your turn |
PreToolUse (AskUserQuestion) |
Orange | Claude is asking you a question |
PermissionRequest |
Orange | Claude needs permission to proceed |
PostToolUse (AskUserQuestion) |
Black | You answered, back to working |
SessionEnd |
Black | Reset on quit |
Edit the COLOR_ variables at the top of the install script before running, or edit ~/.claude/settings.json after install.
- Remove the hook entries containing
iterm-bg.sh(orterm-bg.sh) from~/.claude/settings.json - Delete
~/.claude/hooks/iterm-bg.sh(orterm-bg.sh) - macOS: Delete
~/Library/Application Support/iTerm2/Scripts/AutoLaunch/claude_typing_color.py - Linux: Remove the
_claude_typing_detectblock from~/.zshrcor~/.bashrc