Available in
Marketplaces, most starred first
Tags
Add to README
Shows its components, always-on context cost and install status, kept current. Add ?tokens=0 to hide the cost.
Marketplaces, most starred first
Shows its components, always-on context cost and install status, kept current. Add ?tokens=0 to hide the cost.
Marketplaces, most starred first
Shows its components, always-on context cost and install status, kept current. Add ?tokens=0 to hide the cost.
By anthonybaldwinv1.3.4MITIn 1 marketplace
Tints the terminal background by Claude Code session status — amber while working, red when Claude needs you, green when done, blue once a finished session has sat idle — per pane via OSC 11 (tmux-native on Linux). macOS, Linux, Windows.
Claude loads one when your task matches it, or you run it by name.
1 critical · 2 cautions to review before installing
A hook runs before every tool call and can block or approve it
A hook runs when Claude uses the Bash tool
A hook runs when Claude writes or edits files
Static checks of hooks, mods, MCP servers and commands. Not a security audit.
1 marketplace, most starred first
Shows its components, always-on context cost and install status, kept current. Add ?tokens=0 to hide the cost.
Tint the terminal background by Claude Code session status, so you can tell at a glance — across a wall of panes — which session is working, which needs you, and which is done.
| State | Color | Fires on |
|---|---|---|
| 🟡 working | amber | UserPromptSubmit, PostToolUse, PostToolUseFailure, ElicitationResult |
| 🔴 needs you | red | PermissionRequest, Elicitation |
| 🟢 done | green | Stop |
| 🟠 failed | orange | StopFailure — the turn ended on an API error (rate limit, overload, auth) instead of finishing |
| 🔵 idle | blue | Notification (idle_prompt only) — done, gone cold |
| ⬛ reset | default | SessionStart, SessionEnd |
It flips back to amber after a red prompt (via PostToolUse), so a session that asked for permission mid-task doesn't get stuck looking like it still needs you.
A finished session doesn't stay green forever: Claude Code's idle_prompt notification (about 60s after a turn ends with no input) cools it to blue — done, but cold. Green therefore means just finished. Orange stays orange: a turn that died is not "done", so it never cools to blue and waits for you to retry. Blue only ever follows green: the dispatcher ignores an idle_prompt that arrives in any other state, and the next prompt turns the pane amber as usual.
On macOS, green and blue also clear once you're at the pane: it has been the focused pane of the frontmost window for a second or two (passing through it doesn't count) and you're at the keyboard (input in the last ten seconds). The pane returns to the default background, never sooner than about five seconds after the turn finished (SEEN_AFTER in macos/session-color.sh, set so the tint and the notification leave together). A pane left focused while you're away keeps its tint and cools to blue as usual, until you're back. The notifications plugin clears its notification by the same test, so the two go together. A pane cleared this way and then left unanswered still cools to blue when the idle minute is up — unless you're at it right then.
Hooks can't see focus, so a finished pane gets a small detached watcher that lives only while the pane is green or blue. It needs the terminal to say which pane is the session's and which is focused:
| Terminal | Session's pane | Focused pane |
|---|---|---|
| Herdr | HC_TERMINAL_ID → its pane, from herdr-app ls | herdr-app status |
| iTerm2 | ITERM_SESSION_ID | AppleScript |
| Terminal.app | the tab's tty | AppleScript |
| WezTerm | WEZTERM_PANE | wezterm cli list-clients |
| Ghostty | none in the environment, so the pane names itself once per session: a title carrying a nonce is written to its tty, and the terminal showing it is ours (a brief title flicker; a title pinned in Ghostty's config defeats it) | AppleScript |
Nothing is asked unless that terminal is the frontmost app, and the answer is shared between watchers — one query per second however many panes are waiting. Inside tmux (the pane is tmux's; the outer terminal can't say which one is showing), in other terminals, and on Linux and Windows, the tint stays until the next prompt. The AppleScript queries may prompt once for permission to control the terminal.
Red is reserved for actual blocking decisions (PermissionRequest, Elicitation). Of the Notification event's types only idle_prompt is wired: permission_prompt, elicitation_* and auth_success are each already covered by a more specific event above, so coloring on them adds nothing but conflicts.
/plugin marketplace add anthonybaldwin/cc-plugins
/plugin install session-color@cc-plugins
The hooks are registered by the plugin itself. On macOS and Linux that's it — restart Claude Code. On Windows run /session-color:setup once to build the native exe (see below).
The tint is a single OSC 11 escape (ESC ] 11 ; #rrggbb BEL) written to the terminal. The catch, on every platform, is getting the escape to the right pane: hooks run with their stdout captured by Claude Code and without a controlling terminal, so a naive printf ... > /dev/tty fails (Device not configured) and the color silently never lands.
hooks/session-color.sh is a tiny POSIX dispatcher (one hooks.json serves every OS) that hands the state word to the platform implementation:
Built from public signals: copy clicks on this site, GitHub stars and activity, the README and the manifest. Not a security audit or an endorsement.
npx claudepluginhub anthonybaldwin/cc-plugins --plugin session-colorPlugins from other owners that cover similar ground