Claude Code Traffic Light
A tray traffic light for Claude Code on Windows. One small .exe, no installer.
Beta (0.9). Everything described here works and was tested, but not yet on many different computers (display scaling, screen readers, several monitors). Changes are listed in CHANGELOG.md; problems and ideas are welcome in Issues (the report of --selfcheck, see below, helps a lot with anything about the look).
| Colour | Meaning |
|---|
| π‘ yellow | Claude Code is working |
| π‘ yellow with clock hands | Claude only waits for a background task it started (a build, tests) and goes on by itself when it ends |
| π΅ blue | Claude Code is compacting the conversation (can take a few minutes); you get a pop-up when it starts and when it ends |
| π΄ red | Claude Code is waiting for you (for example a permission prompt), or an API error stopped it (a usage limit, overloaded servers, a lost sign-in) |
| π’ green | the task is finished, ready for the next one |
| βͺ grey | no active sessions |
It works with Claude Code in the console and in the VS Code extension, and shows every running session at once. The icon shows the most urgent state. The menu also shows Claude's usage limits (5 hours and the week), the tokens used and what they would cost at API prices, and how full each session's context is.
![The five lamps; two sessions at work with the usage limits and the use at API prices on top of the menu; one asks a question in a panel near the tray, is answered, goes on and finishes; one waits for its own build with the clock lamp; the statistics window with the share of the weekly limit and what it went on, and the limits week by week; the same question on a phone and on a smartwatch with its answer buttons; seven languages]()
Quick start
- Download
ClaudeCodeTrafficLight.exe from the releases page and run it. No administrator rights are needed.
Or install it with winget: winget install BelalovBM.ClaudeCodeTrafficLight, then start ClaudeCodeTrafficLight (a new terminal finds it). winget upgrade BelalovBM.ClaudeCodeTrafficLight updates it, with the program closed; a new version reaches winget a few days after the releases page.
- Answer Yes to "Connect to Claude Code". The app adds hooks to
~/.claude/settings.json (the original is backed up once as settings.json.trafficlight.bak). If you moved Claude Code's folder with the CLAUDE_CONFIG_DIR variable, the app follows it there, and the settings page shows the real path.
- Start Claude Code as usual. Sessions started before connecting need a restart.
Claude Code started inside WSL is not supported yet: it keeps its settings in the Linux home folder, out of reach of the hooks. If the program finds such an installation in a running WSL distribution, the Claude Code page of the settings says so.
Windows SmartScreen may warn about an unsigned file: choose More info β Run anyway. Installed with winget, the program starts without that warning: winget checks the file against the checksum in its catalog first. The source code is here, and the build is a single script.
Features
- Several sessions at once: tray menu lists them with state and time, named after the chat title.
- Show window: brings the terminal or VS Code window of the chosen session to the front.
- Sound and pop-up when Claude waits for you or finishes; each can be switched off, globally or per session. The tray menu pauses everything on this computer for an hour, until the end of the day or until you resume it; the phone is not affected: it has its own switch.
- When an API error ends a turn (a usage limit reached, Anthropic's servers overloaded, the sign-in lost), the session turns red with "stopped by an error" instead of looking finished, and the notice says what happened, with Claude's own words.
- How full each session's context is, in its tray menu entry ("Context: 412k tokens Β· 43% full"), and one warning on this computer at 90%: finishing the step, or a
/compact of your own, keeps details an automatic compaction may lose. The compaction point of each model is learnt from Claude Code's own automatic compactions (not from the summaries it prepares in the background, which start earlier), so the percentage appears after the first one.
- The "done" notice says what Claude did: the first line of its last message (on the phone only when chat details may be sent).
- A keyboard shortcut (Win+Alt+C by default, changed or switched off on the General page) opens the waiting request with the keyboard focus in it, or the tray menu when nothing waits.
- When Claude ends its turn only to wait for a background task it started (a build, tests), the lamp shows clock hands ("waiting for its background task") and nothing reports it as finished, however long the task runs: the app sees whether the task's process is still running. If the wait goes on for 30 minutes (changed or switched off on the Notifications page), you get one notice here and on the phone: a stuck task or a server left running would otherwise look like work for ever. The session counts as finished only when no task process is left and Claude does not go on within 30 minutes.
- Push to your phone through ntfy, only when you are probably away (a notification on the computer that you did not react to, a panel left untouched for a minute, or a locked screen): after a permission prompt stays unanswered for N minutes, or when a task that ran at least N minutes finishes. A quick on/off switch is in the tray menu.
- Claude's usage limits (the 5-hour window and the week) with their reset times: at the top of the tray menu, on the second line of the icon tooltip and at the end of every push; optionally a notice (here and on the phone) every N percent, when a limit runs out, when it is back and when a used window ends; optionally exact all along, with Claude Code's own
/usage run in the background when the estimate may be more than 1% off. Nothing of it for a sign-in without a subscription (an API key). See Usage limits.
- The tokens Claude Code used today and in 30 days, and what they would cost at API prices: for a subscription, to compare; for a sign-in by API key, close to the bill. See Use at API prices.
- A statistics window: what the use came to, what it went on, what made it dearer (a large context, breaks longer than the cache lasts), by session and by day. See Statistics.
- Optionally, a look for a new version once a day (off by default): a newer one gets an entry at the top of the tray menu and one notice; nothing is downloaded or installed by itself.
- 7 languages (English, Russian, Spanish, German, French, Portuguese, Chinese), light/dark/system theme, autostart.
What the notices look like
A request shows up in a panel near the tray; the state changes come as ordinary Windows notifications. A click on a notification only closes it; the button on it goes back to the session window or does what the notice is about. Each kind can be switched off on the Notifications page.
![The panel near the tray: a Bash command with Allow, Deny and Allow and don't ask again, the rule that would be added, and links to open the session window or answer later]()
![Windows notification: Claude stopped because of an error, in Claude's own words, with an Open the session window button]()
Phone notifications (ntfy)
- Install the free ntfy app (Android / iOS).
- In the tray app open Settings β Phone, enable ntfy, scan the QR code or subscribe to the shown topic manually.
- Press Send test.
On a smartwatch or fitness band: the pushes are ordinary notifications of the ntfy app, so a watch or band paired with the phone shows them once ntfy is allowed in its notification settings (in the watch's companion app on the phone). A fitness band shows the text; a smartwatch that shows the buttons of a notification lets you answer a question or a permission prompt from your wrist, as below.
The topic name works like a password: anyone who knows it can read and send messages to it. A long random one is generated for you; keep it private. By default a push contains only the project folder name; the chat title and Claude's message text are sent only if you enable "Include Claude's message text". You can use your own ntfy server.
Your own ntfy server (optional)
In Settings β Phone β ntfy server choose My own ntfy server and enter its address, for example https://ntfy.example.org. For a server with access control enter a user name and password, or an access token (it starts with tk_; leave the user empty). The secrets are stored encrypted, and they stay remembered when you switch back to the public ntfy.sh (which never receives them). The phone listens on one server only, so after a switch subscribe to the topic again in the ntfy app.
A minimal Docker setup with access control:
docker run -d --name ntfy -p 8080:80 -v ntfy-data:/var/cache/ntfy \
-e NTFY_BASE_URL=http://localhost:8080 -e NTFY_CACHE_FILE=/var/cache/ntfy/cache.db \
-e NTFY_AUTH_FILE=/var/cache/ntfy/user.db -e NTFY_AUTH_DEFAULT_ACCESS=deny-all \
binwiederhier/ntfy serve
docker exec -it ntfy ntfy user add alice
docker exec ntfy ntfy access alice "ccl-*" read-write
docker exec ntfy ntfy access alice "ccr-*" read-write
docker exec ntfy ntfy access everyone "ccr-*" write-only
Topics created by this app start with ccl- (notifications) and ccr- (answers to permission prompts). The last rule lets the Allow/Deny buttons on the phone post an answer without signing in; only your own account can read those topics. Use https for a server that is reachable from the internet.
This was tested against the official ntfy image with a normal user, an access token and exactly these access rules (password and token modes, sending, and answering).
Answer permission prompts and questions without the window (off by default)
When Claude Code asks permission to run a command or change a file, you can answer without going back to its window, in two ways. Both are off by default and are switched on in Settings β Permission prompts:
- On this computer: a small panel near the tray shows the request in full (a command, or a question with its answers) with Allow / Deny or one button per answer. When Claude Code offers a rule so it does not ask again, there is also Allow and don't ask again, with that rule shown under it (on the phone: Always). The panel does not take the keyboard focus. Open the session window brings the session forward, to see what led to the request; Later closes the panel; the tray menu entry of that session opens it again. A typed answer ("Other") is not possible there: the panel offers to open the session window.
- From the phone (experimental, needs ntfy): the phone gets a push with the same buttons.
A question with answer options (a single question, one choice) works the same way: the options become the buttons or menu items (the phone shows at most three), and the chosen answer goes back to Claude Code. Questions of other shapes stay on the screen.
Think before enabling it:
- Whoever can tap Allow lets Claude Code act on your computer. Security rests on secret topic names on the ntfy server (they work like passwords), and the push contains the tool name and the command or file path. The ntfy server sees each request and your answer. Your own ntfy server with a password is safer than the public one.
- A fresh secret reply topic and a one-time token per request are used, so an old or guessed token does nothing. Allow and Deny apply once; only Always adds a permanent rule, and only the one Claude Code itself offered for that request, shown in the push.
- Nothing is ever approved without a valid answer: on timeout, if you answer on the computer first, if the session is muted (for the phone) or the app is not running, Claude Code simply shows its normal prompt.
- The feature adds a
PermissionRequest hook to Claude Code's settings only while it is switched on.
How it was checked: the whole cycle (request, push with buttons, tap, decision, wrong and replayed tokens, timeout, answer on the computer first) was tested against a local ntfy-compatible server. How the action buttons behave on your phone depends on the ntfy app, so use Send test request first.
How it differs from Remote Control
Claude Code's own Remote Control lets you continue a session from claude.ai or the Claude app: you see the whole conversation and can type into it. This program does something smaller:
- It shows at a glance, in the tray, which of all your sessions works, waits or is done, without opening any of them.
- It tells you only when something needs you: a pop-up on the computer, and a push to the phone only when you did not react there.
- A permission prompt or a question with answer options can be answered with one tap, on the computer or on the phone, without the conversation.
- It needs no account features: the notifications go through ntfy, which can be your own server.
The two do not get in each other's way: use the traffic light to know when to look, and Remote Control when you need the whole session.
Usage limits
The menu shows how much of Claude's 5-hour and weekly limits is used, as /usage does. Claude Code gives these figures to no hook, and its status line, which gets them, does not run in VS Code. So the app takes them from where Claude Code itself keeps them: whenever you run /usage (or reach a limit), Claude Code saves the exact figures in ~/.claude.json.
Between two /usage runs the app estimates what was used since from the session transcripts on this computer and adds it to the last exact figure; such a figure is marked with β. How much a token counts is learnt from your own /usage figures, separately for each model, newer figures counting more, so the estimate follows a change of model by itself. Nothing about the size of the limits is built in: each plan (Pro, Max) is learnt from its own figures. After a change of plan, the figures of the old one no longer count, and nothing is estimated until the next /usage. A new model with no figures yet counts like its family (a new Opus like the previous Opus) until it has figures of its own. Every new /usage puts the figures right again; the more often you run it, the closer the estimate. Use of Claude on other devices (claude.ai, the phone, another computer) is not in the transcripts here, so it shows up only at the next /usage. So far the estimate has stayed within one or two percentage points of the next /usage; Anthropic shows whole percentages, so about one point is the closest it can be.
Refine the limits by itself (off by default) runs that /usage for you whenever the estimate may be more than 1% off (one percentage point of the whole limit: β60% shown, 59β61% in fact): after a rise of 10 percentage points since the last exact figure (2 from 90% on, where every one matters), when a model without figures of its own is used, or when the exact figure is an hour old (a quarter of an hour from 90% on), and only while a session works. The threshold follows how well the estimate did: at each exact figure the app sees how far its estimate was off, and if it starts to miss (a model, an effort or a size of context its weights were not learnt on), the threshold comes down so that the expected error stays within 1%, down to 2 percentage points; as the estimate gets right again, it goes back to 10. Whatever the reason, a brake keeps it rare: never sooner than 5 minutes after the last run, twice as long after each failure up to an hour, and a restart of the program does not reset it; a last limit of 300 runs a day, above what the brake lets through, stops it only if the brake itself fails, with a notice. The app starts Claude Code's own command hidden, claude -p "/usage" --no-session-persistence with hooks off: it asks no model, so it uses no limit, and it is not saved as a session. Claude Code asks Anthropic with its own sign-in; the app only starts the command. It finds Claude Code by itself (its installer's folder, the PATH, the VS Code extension); one elsewhere can be chosen on the same page. Claude Code has to reach Anthropic by itself here: a proxy set only in a .bat file or in VS Code's settings does not apply, so put it into the env block of ~/.claude/settings.json. If three runs in a row fail, one notice says why. For a sign-in without a subscription (an API key, for example) there are no such limits, and the app shows none.
The app itself never contacts Anthropic and never reads or uses your Claude sign-in: Anthropic does not allow other programs to use it. The exact figures it has seen are kept in usage-limits.json next to the program. The Notifications page switches each part on or off.
Use at API prices
Below the limits the menu also shows, under its own title with the date of the prices ("Use at API prices (prices of 10/29/2026)"), how many tokens Claude Code used today and in the last 30 days, and what that would cost at Anthropic's API prices: Today β $4.29 Β· 10M tokens and 30 days β $1,098 Β· 3.3B tokens. On a subscription it shows what the same work would cost by the token; with a sign-in by API key, which has no such limits, the block stands alone and comes close to the bill. Every kind of token counts at its own price: input, writing to the prompt cache (for 5 minutes or for an hour), reading from it, and the reply, thinking included; web searches and fast mode too. Most of the tokens are usually reads of the cache: Claude Code sends the whole context with every step. Like the limits, it counts only what the transcripts on this computer show. Settings β Claude Code β Use at API prices switches it off and holds the prices.
The prices. Those of the current models are built in, taken from Anthropic's price list when the version was made. The same card lists the models of your transcripts with their input, output and cache-read prices in dollars per million tokens, and where each price came from: the program, LiteLLM (with the date) or you. Update prices from LiteLLM loads the open price file of LiteLLM, a community project on GitHub (not Anthropic), and takes the prices of its Claude models; Update the prices from LiteLLM once a day (off by default) does it by itself, so they stay current without anyone looking after them. The card says when they were last loaded, and the menu and the statistics say how current the prices are ("prices of 29.10.2026": the day of the last load, or the day the built-in ones were checked). LiteLLM goes first: a price you type stays only for a model LiteLLM does not have. The file is not taken on trust: a price missing from it keeps the one known, and one more than five times off the known one is left out. Default prices drops what was typed or loaded. They can be checked against Anthropic's price list. A model with no price counts in the tokens only, and a line names it.
Statistics
Statistics⦠in the tray menu (and a link on both cards of the limits and of the prices) opens a window with the use of today (as it opens), of 7 or of 30 days, and the history of the limits:
- Total: on a subscription the share of the weekly limit (β 14% of the week, β 2.4 weeks of the limit), with the dollars at API prices next to it; with an API key the dollars; the tokens, the steps and the cost of a step.
- What it went on: reading the context from the cache, writing it there, the replies with their thinking. The bar, with its figure at its end, is the share of the limit (with an API key, of the dollars); then the share in dollars and the dollars, which differ, as the limit weighs reading the cache less than the price list does.
- What made it dearer, when it is a noticeable share: steps with a context over 600k tokens (each one reads all of it again) and breaks longer than the cache lasts (after them the whole context is written to the cache again), each with what helps (
/compact, /clear); and the number of compactions.
- By day: a bar per day on a scale, with its figure over it for 7 days; pointing at a bar shows that day's share of the limit, dollars and tokens.
- Sessions: name, model, steps, the largest context, the share of the week and the dollars; six at a time, the list scrolls under its headings; a double click brings a running session's window to the front.
Tokens are exact: they are the counters of Anthropic's servers that Claude Code writes into its transcripts. Dollars are tokens Γ prices. The share of the limit is an estimate (β), by the same weights as the limits. Not in the transcripts, so not in the statistics: other computers and claude.ai, the summaries Claude Code makes when it compacts, and its small service requests.
The Limits tab shows how the limits themselves were used, on a subscription:
- Weekly limit: where the current week stands, its reset, and where the pace so far leads by the reset (or when it would run out); a bar per week with its peak, red where it ran out; a click on a bar (or the arrow keys) shows how that week filled up, with when it ran out and when Anthropic reset it early, and for the current week its pace to the reset, dashed.
- 5-hour windows on a line of time, twenty days at a time (days without a window are left out, a double line marks where), each as high as its peak, red where it ran out; pointing at one shows its hours, its peak, and when it ran out with the wait until the reset. Under them, for the days in sight, the number of windows, how many ran out and the downtime because of the limit in all, the average peak, and the five hours of the day with the most use.
Both charts scroll sideways (the wheel, or the bar under them) when there is more than fits. The points are the exact figures of /usage that the program keeps; between them, and in windows without any, the use is estimated from the transcripts (β). An estimate never stands above the exact figure that followed it. Claude Code deletes its transcripts after a month and the program keeps the exact figures for 90 days, so each finished window and week is also kept in limit-history.json next to the program, for good: the history stays when what it was made from is gone.
How it works
Claude Code runs a hook on every event. The hook is this same .exe started with --hook; it reads the event and passes it to the running tray app through a local named pipe. If the tray app is not running, the hook exits silently and never disturbs Claude Code. Nothing leaves your computer except the optional ntfy push. No telemetry.
As a fallback, the app also reads the small per-process files Claude Code keeps in ~/.claude/sessions (session id, folder, busy/idle). This lets it find sessions that were already running when it started, and notice that a task was interrupted (which fires no hook). That file format is not a documented interface and may change between Claude Code versions; if it does, only this fallback stops working, the hooks are unaffected.
Uninstall
- Settings β Claude Code β Remove everythingβ¦ disconnects Claude Code (only this app's hooks are removed, other hooks stay), turns off autostart, removes the notification registration (the program shows its notifications under its own application id, a single key under
HKCU\Software\Classes\AppUserModelId), deletes its settings, log, requests journal and the saved figures of the limits and contexts (they sit next to the .exe) and exits. The original settings.json.trafficlight.bak backup is kept.
- Delete the
.exe (its folder opens automatically). Installed with winget: winget uninstall BelalovBM.ClaudeCodeTrafficLight instead.
To only disconnect from Claude Code and keep the program, use Disconnect on the same page.
Privacy
The program collects nothing and sends nothing about you or how you use it: no telemetry, and no update checks unless you switch them on (General β Look for new versions: once a day, one anonymous request to GitHub for the latest release; About β Check for new versions does it once). Otherwise it uses the network only when you ask for the prices of the models (below) or set up the phone: then it sends notifications to the ntfy server you chose (ntfy.sh or your own) and listens there for your answers. What the notifications contain (the name of a session, the text of a request) is described on the Phone and Permission prompts pages. If Refine the limits by itself is on, it starts Claude Code's own /usage every few minutes while a session works (Claude Code then asks Anthropic, as when you type it). For the prices of the models it makes one anonymous request to GitHub for LiteLLM's price file when you press Update prices from LiteLLM, and once a day if you switch that on in Settings β Claude Code. For the usage limits and the context of each session it reads, on this computer only, the session transcripts and the figures Claude Code keeps in ~/.claude.json; nothing of it is sent anywhere, except the line with the percentages at the end of a push when that is switched on. Everything else stays on the computer: the settings, the log, the requests journal and the figures of the limits and contexts sit next to the program and are removed by Remove everything.
Verifying the download
The release files are not code-signed, so Windows SmartScreen may warn on the first start (More info β Run anyway). What makes them checkable instead:
- Every release is built by GitHub Actions from the tagged source code (
.github/workflows/build.yml), and the build is deterministic: building the same commit gives a byte-identical file.
SHA256SUMS.txt in each release lists the checksum of the exe. Compare it with Get-FileHash ClaudeCodeTrafficLight.exe in PowerShell.
- winget checks the file against the same checksum, written in its catalog, before it installs it.
The program sends nothing anywhere unless you set up the phone notifications; see Privacy.
Self-check
ClaudeCodeTrafficLight.exe --selfcheck shows the program with made-up sessions, takes a picture of every window (settings pages in both themes, the tray menu, the request panel, a notification, the statistics) and writes report.txt with the Windows version, the scale of each monitor and the theme, all into a selfcheck- folder next to the program. It needs no Claude Code and changes nothing on the computer. It takes about 40 seconds; leave the mouse and keyboard alone meanwhile. Pictures of the menu and the notification are taken from the screen, so a bit of the desktop around them may be in them.
Build from source
Requires the .NET SDK only for building (the result runs on the .NET Framework 4.8 that ships with Windows):
powershell -File build.ps1 # -> bin\ClaudeCodeTrafficLight.exe
powershell -File tools\make-icon.ps1 # regenerates src\app.ico
To add a language, copy lang\en.txt to lang\.txt and translate it. A lang folder next to the .exe overrides the built-in texts.
License
Copyright Β© 2026 BelalovBM. Licensed under the GNU General Public License v3.0.
Support the project
If you like the program and want to support the development of similar projects, you can donate. See DONATE.md.
TRON network (TRX, TRC-20 tokens such as USDT): TUKeo9zL3YwwmBdh2pr2HfetANm32UtD4x