Traffic Light
An ambient status tool for Claude Code. It answers one question without you reading a terminal: does any of my sessions need me right now?
Colour, bell, and phone push are three renderings of the same answer. The point is to leave the desk and be pulled back only when a session genuinely needs a human.
Clicking a row activates Claude.app; jumping to a specific session is not possible — see below.
Release notes — what changed in each version.
Quick start
npx agent-traffic-light install
It shows you exactly what it will write and waits for you to say yes. Nothing
is touched before that — --dry-run prints the same plan and stops, and
--yes skips the question for CI and reinstalls.
Saying yes builds Traffic Light.app into ~/Applications, starts it, keeps
it running at login, and installs the hooks as a Claude Code plugin. The hooks
themselves are never merged into your settings.json: two lines are added to
it naming the plugin, and removing those two lines is most of the uninstall.
Needs the Swift toolchain, which ships with Xcode Command Line Tools
(xcode-select --install), not full Xcode.
The app is compiled on your machine, so it carries no quarantine attribute and
Gatekeeper never inspects it — which is how it can be a real app with an icon
and still need no signing certificate, no notarization and no $99/yr.
Hooks go in for every project, since one light for every session is the
point. Add --local to limit them to the current directory.
From a clone instead:
git clone https://github.com/supunTE/traffic-light.git
cd traffic-light && sh install.sh
And the way out, which is worth reading before the way in:
npx agent-traffic-light uninstall
It lists what it will remove and what it will leave — with the size of each
file it is leaving — and waits for a yes, the same as installing. Your settings
and state stay unless you add --purge. Two directories belong to Claude Code
rather than to Traffic Light, so it names them and leaves them alone.
Or add the hooks the way you add any other plugin, from inside Claude Code:
/plugin marketplace add supunTE/traffic-light
/plugin install traffic-light@traffic-light
That is the hooks and nothing else. The daemon is a compiled binary, so run
npx agent-traffic-light install afterwards or the hooks report into an inbox
nothing is reading. Doing it in that order is fine: the installer re-registers
the marketplace from a local copy, so the hooks keep working with no network
and no clone.
Hooks load when a session starts. Open a new session — or restart Claude — then check:
traffic-light doctor
✓ daemon state 2s old
✓ claude sessions 2 live
✓ hooks all 2 sessions reporting
! push disabled
…
doctor prints seven rows — eight once push is on and reaching a server, nine if the ingest filter has refused anything; four are shown here. It knows every way this can be half-installed and prints the command that fixes each one. docs/SETUP.md has the full walkthrough, phone push, configuration, and troubleshooting.
traffic-light status # every live session and its Signal
traffic-light broken "<reason>" # Distress Call — Claude runs this when stuck
broken is the one signal Claude has to volunteer: every other state is read
from hooks, but a session going round in circles looks exactly like one making
progress. Claude will not use it unless you tell it the command exists —
the installer offers to add that instruction to ~/.claude/CLAUDE.md, or you
can write your own.
Everything else is in Settings…, from the menu bar. Quit from there too — it stays
quit until you next log in, rather than being relaunched a second later.
The five Signals
A Signal is the state of exactly one Session (one Claude Code conversation in one working directory — several run at once across worktrees).
| Signal | Looks like | Meaning | Not to be confused with |
|---|
| Working | turning purple arc | Claude is making progress on its own. Leave it alone. | running, busy, active |
| Asking | amber ? | Blocked on you — permission prompt, AskUserQuestion, idle-needing-input, or a turn that ended on a question. Nothing advances until you answer. | waiting, blocked |
| Done | green ✓ | The turn ended, nothing was asked of you, and the work is ready to read. | finished, ready, idle |
| Broken | red ⚠ | Crashed, stalled for half an hour, or made a Distress Call. Go rescue it. | error, failed |
| Idle | thin white ring | Nothing is claiming your attention — just opened, gone quiet, or not reporting. | off, empty, done |