Beacon is a Windows tray app that shows every running Claude Code session and lets you answer their permission prompts, questions and plan approvals from one panel. It works through Claude Code's own command hooks: a small helper forwards each hook event to a local core, and the panel answers the blocking ones. A session behaves exactly as without Beacon when Beacon is not running.
- Windows 11.
- Claude Code 2.1.3xx.
- Rust (1.100 or later) and Node with npm, only for building.
Build the helper and the CLI, then the app, all with the fast profile:
cargo build --profile fast -p beacon-hook -p beacon-cli
cd app
npm install
npx tauri build --no-bundle -- --profile fastThe binaries land in target\fast\: beacon-app.exe (tray, edge tab and panel), beacon.exe (the
CLI) and beacon-hook.exe (the helper the hooks run). Keep the three in one folder: installing the
hooks copies the helper from next to the running executable.
The app must be built through the Tauri CLI as above. A plain cargo build of beacon-app loads
the development server instead of the bundled front end.
Start beacon-app.exe. It hosts the core itself; if a beacon daemon is already running for the
same Beacon home, it connects to that one instead. --open-panel opens the panel at start and
--tray-only starts without the edge tab or pill. A second launch opens the running instance's
panel, unless it carries --background, which the hook passes when it starts Beacon.
Open the panel, choose the gear icon in the header and use Install under Claude Code hooks, or
run beacon install. Either way you see the plan with the diff first, and nothing is written until
you choose Apply (or run beacon install --yes).
Install copies beacon-hook.exe into <Beacon home>\bin, backs up the Claude Code settings file
into <Beacon home>\backups, and adds 23 Beacon handlers to %USERPROFILE%\.claude\settings.json
(or %CLAUDE_CONFIG_DIR%\settings.json): one for each of 22 hook events, plus a second Stop
handler (StopWaiter, run with asyncRewake) that lets Beacon wake an idle session. Everything
else in the file keeps its order. Installing again repairs a damaged registration; an installation
made before StopWaiter existed shows Needs repair until it is installed again.
Uninstall restores the original bytes of the settings file when it has not changed since install. If it has changed, only Beacon's handlers and the empty containers install created are removed. Running sessions pick up hook changes without a restart.
The edge tab is the default native form: a strip 4 px thick and 72 px long, flush against a screen edge and coloured by the overall state. Hovering the tab opens the panel against that edge and a click opens or closes it. A display's default edge is the first one that touches no other display.
The pill is the alternative style, chosen from Style in the tray menu or the settings view. It is
a small always-on-top strip with one mark per session, at most ten and then +N, followed by the
number of sessions that need you and a chevron. The chevron points down while the panel is closed
and up while it is open; pressing it opens or closes the panel without taking focus. Pressing
anywhere else on the pill only drags it. Each state has its own shape as well as colour:
| Mark | Meaning |
|---|---|
| Rotating arc | Working |
| Amber circle with a halo | Needs you: a permission request, a question, a plan or an MCP input form |
| Pause glyph | Stalled: working, but nothing has happened for the configured number of minutes |
| Green check | Done: the turn finished |
| Red triangle | Error: the turn ended with an API error |
| Hollow ring | Idle |
The pill hides while a fullscreen window is in front on its monitor, snaps to edges and corners, and remembers its position per monitor layout. An open panel moves with the pill or the tab while it is dragged, and while the tab glides back to its edge.
The edge tab and the pill are the overlay. Show it under Overlay in the settings view chooses
when it is on screen: Always, While Claude is active (working or needs you; the default), When Claude needs you or Never (tray icon only). It fades out 5 s after its condition stops holding.
While it is hidden, hovering its screen edge reveals it (Reveal on edge hover, on by default).
Open on hover decides whether resting the pointer on the overlay opens the panel; until it is
set, it is on for the edge tab and off for the pill. Size (Small, Medium or Large) and
Idle opacity (the overlay's opacity while nothing needs you, 20% to 100%, 60% by default) set how
it looks.
When a session starts needing you, the overlay pops, pulses once and slides out a short peek label
naming the session and what it needs. The label stays for Label stays for (2 to 10 s, 4 s by
default), never takes focus, and opens the panel when clicked. The session whose window is in front
gets no peek. Until the panel is opened, a reminder pulse repeats at the Remind me interval:
Off, 30 s, 1, 2 or 5 minutes (1 minute by default). Alerts that arrive while the panel is open
count as seen, so the tab does not pulse for them. Style under Attention picks the style:
Colour only, Pulse or Pulse and label (the default). Preview plays the current choice.
The panel has three modes:
- Hover: with
Open on hoveron, opens when the cursor rests on the tab or pill and closes 400 ms after it leaves both. - Sticky: opened with a click on the tab, the pill's chevron, the hotkey, the tray or a second launch.
- Pinned: with
Pin while Claude is activeon (off by default), the panel opens by itself without taking focus while a session is starting, working, stalled or needs you, and closes 5 s after that stops. A press outside does not close it. The pin button in its header hides it until Claude is next active. It does not open while a fullscreen window is in front.
Apart from the pinned mode, the panel never opens by itself and never stays open. It closes on a press outside it, when the cursor leaves it (hover), on Escape in the list, or when a sticky panel loses focus. A reopened panel starts on the session list.
The panel is compact: each session is a 36 px row, with a second row carrying Allow and Deny
when it is waiting. A row starts with the session's avatar, whose colour is fixed per session and
whose face follows its state, with the state mark as a badge. Next come the session's title and a
second line with task progress such as 3/7 and the current task, or else the current step, or
else the state. A session with tasks has a thin progress bar along the bottom of its row. Two icon
buttons jump to the session's window and cross it off. Sessions are grouped by state; ended
sessions are in a collapsed Ended (n) group, kept for 2 hours and at most 20.
The title is the first of: the session's custom title, the title Claude Code generated for it, its
last prompt, the name claude agents lists for it (unless that is only the project name with a
two-digit hex suffix), the project name, and the first 8 characters of the session id. Titles are
read from the hooks and the session's transcript, shown on one line of at most 80 characters, and
redacted like the request preview.
Opening a row, with a click or Enter, replaces the list with the session's detail view: avatar tabs
for the other sessions, the header, any pending request, a Terminal block with the command running
now, the Plan checklist, the Activity steps with their status and duration (the most recent 6,
with Show earlier (N) for the rest), the prompt box, and then the last message and usage under
More.
In the list, arrow keys select a session and Enter opens it; a acknowledges it, s snoozes it for
5 minutes, j jumps to its window, x crosses it off and / opens its prompt box. In the detail
view, Escape, Backspace or ArrowLeft go back to the list, [ and ] switch to the previous or next
session, / opens the prompt box, j jumps and x crosses the session off.
The panel grows with its content up to the display's work area, and nothing inside it scrolls. A
block over 40 lines is cut short with Show all (N lines). Scrollbars are never visible: when the
panel itself overflows, an overlay thumb and fades at its edges show the position.
Crossing a session off (x, the cross button or beacon dismiss) acknowledges it, moves it out of
the list and stops it alerting. It is refused while the session has a pending request. The session
comes back on its next prompt or request. Crossed-off sessions are counted in a collapsed
Crossed off (n) row at the end of the list.
Each pending request is a card with the tool, its input and the session's folder. Nothing is sent without a click or a key press on that card; there is no "allow all".
Allow(A),Deny(D) andDeny with message(M) answer the current request. Tab and Shift+Tab move between requests when several are waiting.MoreoffersDeny and stop Claude.- A request that looks destructive is flagged. Its
Allowneeds a second deliberate press within 4 seconds, andAlways allowis not offered for it. Always allow…opens the rule, prefilled from Claude Code's suggestion, with a scope:This session,This project, only me(.claude/settings.local.json),This project, shared(.claude/settings.json) orAll my projects(user settings). Claude Code saves it as an ordinary permission rule; Beacon keeps no rules of its own.- Secrets in a request are masked until you ask to see them.
- A question shows its options, with
Otherfor free text. A plan shows its text withApprove plan,Keep planningandReject with feedback. - If the request is answered in the session first, the card closes and says so.
Jump raises the window that runs the session: the terminal, the editor or the desktop app,
found through the process tree. For a VS Code session it then opens the session's tab through the
vscode://anthropic.claude-code link.
The prompt box in a session's detail view sends text by one of four paths, tried in this order:
| Session | Path |
|---|---|
| Turn running | Queued and handed to Claude when the turn ends, through the Stop hook |
| Idle, and it can be woken | Sent at once: the StopWaiter hook wakes the session and Claude starts a new turn |
| Idle in VS Code | The session opens in VS Code with the text in its prompt box; VS Code asks you to send it |
| Idle elsewhere | The text goes to the clipboard and the window is raised |
A session can be woken while it is idle, done or in error, attended (not claude -p), and Claude
Code is holding its StopWaiter hook, which it starts at each turn end and keeps for up to 24
hours or until a prompt is typed in the session. Claude sees a woken prompt as a follow-up from
Beacon, not as a message you typed. This path is confirmed on a desktop Code tab session; the
terminal and VS Code are not confirmed yet.
A queued prompt shows queued, delivered, acknowledged or failed, and survives a restart; a
woken prompt shows delivered at once. A prompt delivered at turn end also appears in the session
as a Beacon follow-up: ... line.
Snooze silences one session, or all of them from the bell in the header or the tray, for 5 or 15
minutes: no pulse or peek on the overlay, no count on the pill and no notification. Acknowledge
clears a done, error or stalled session. Bringing a finished session's window to the front
acknowledges it when that window holds exactly one session. A done session also acknowledges
itself once its turn has been over for Clear finished after under Behaviour: Never, 5, 10
(the default) or 30 minutes, or 1 hour, checked every 30 s. error and stalled sessions are not
cleared this way.
Windows notifications announce sessions that start needing you or finish. Sessions that change
within 2 seconds of each other share one notification, and the session whose window is in front
gets none. Notifications and Also when finished under Attention turn the two kinds off.
Sounds are off by default. Sounds in the bell menu in the panel header, or Sounds under
Attention in the settings view, turns them on; they are Windows' own notification sounds, played
when a session starts needing you or finishes.
The gear icon in the panel header opens the settings view; Escape returns to the sessions. Every setting is there, in six sections that start collapsed, each with a one-line summary of its current choices:
| Section | Settings |
|---|---|
| Overlay | Style, Display, Never show on, Position, Show it, Reveal on edge hover, Open on hover, Size, Idle opacity, Pin while Claude is active |
| Attention | Style, Remind me, Label stays for, Notifications, Also when finished, Sounds, Preview |
| Startup | Start Beacon, Close when unused for |
| Behaviour | Answer headless runs, Stalled after, Clear finished after, Shortcut |
| Claude Code hooks | Status, with install, repair and uninstall |
| About | Version, the Beacon home, Open logs folder, Quit Beacon |
Start Beacon is When Claude is used (the default), When I sign in to Windows or Only when I open it. When Claude is used, the hook starts Beacon in the background when an attended session
starts or sends a prompt and Beacon is not running; headless claude -p runs never start it. In
that mode Close when unused for quits Beacon after 5 minutes, 15 minutes (the default) or 1 hour
without Claude in use, or never.
Open panel, Snooze all for 5 minutes, Snooze all for 15 minutes, Clear snooze, the hide or
show item named after the current style (Hide edge tab, Show pill and so on), Style (Edge tab or Pill), Show on (the display the tab or pill and the panel use), Never show on
(displays to avoid), Position (one of the four edges in tab style, one of the four corners in pill
style) and Quit.
| Command | What it does |
|---|---|
beacon daemon |
Runs the core without the app |
beacon stop |
Stops the core |
beacon status [--watch] [--json] [--all] |
Lists live sessions, the five most recently ended ones and pending requests; --all includes crossed-off sessions |
beacon decide <id> allow |
Allows a pending request |
beacon decide <id> deny [--message <text>] [--stop] |
Denies it, optionally with a message or stopping Claude |
beacon decide <id> answer "<question>=<label>" ... |
Answers a question |
beacon decide <id> always "<Tool(specifier)>" [--scope session|local|project|user] |
Allows it and saves a rule |
beacon ack <session> |
Acknowledges a session |
beacon dismiss <session> |
Crosses a session off |
beacon jump <session> |
Raises the session's window |
beacon where <session> |
Prints the window the session runs in |
beacon prompt <session> "<text>" |
Queues a prompt for the end of the current turn, or sends it at once to an idle session that can be woken |
beacon snooze <session|all> <minutes> |
Snoozes one session or all |
beacon unsnooze <session|all> |
Clears a snooze |
beacon usage [--refresh] |
Shows token use per session and the account limits |
beacon install [--settings <path>] [--yes] |
Shows or applies the hook installation |
beacon uninstall [--settings <path>] [--yes] |
Shows or applies the removal |
beacon doctor [--settings <path>] |
Checks the installation, the core and a helper round trip |
<session> is a session id or a unique prefix of one.
| Terminal | VS Code extension | Desktop app Code tab | Headless (claude -p) |
|
|---|---|---|---|---|
| Session state | Built, not verified on this surface | Built, not verified on this surface | Verified | Verified |
| Answer permission requests | Built, not verified on this surface | Built, not verified on this surface | Built, not verified on this surface | Verified [1] |
| Answer questions and plans | Built, not verified on this surface | Built, not verified on this surface | Built, not verified on this surface | Verified [1] |
| Jump to window | Built, not verified on this surface | Built, not verified on this surface [2] | Built, not verified on this surface [2] | Not supported [3] |
| Send a prompt | Built, not verified on this surface | Built, not verified on this surface | Verified [5] | Verified [4] |
| Usage | Built, not verified on this surface | Built, not verified on this surface | Verified | Verified |
- Only with
Answer headless runson. Off (the default), a run with nobody attached is passed straight through so it never waits. - Finding the window was checked read-only for running VS Code and desktop sessions. The focus change and the VS Code link are not verified on any surface.
- A headless run has no window.
- The prompt at turn end. A headless run is never woken and has no window for the other paths.
- Waking an idle session. The prompt at turn end is not verified on this surface.
Headless claude -p sessions were checked end to end: state, allow, deny, always allow, a
question, a plan, a prompt at turn end and usage. On the desktop Code tab, live state, usage and
waking an idle session with a prompt were checked against a real session; answering requests,
questions and plans there was not. Nothing has been checked in the interactive terminal or the VS
Code extension, so those surfaces are built but unverified.
- The helper adds about 30 ms to each hook event, which is process creation on Windows. A session
waits for it only on the five blocking events:
PermissionRequest,Elicitation,Stop,SessionEndandStopFailure. - MCP input forms are not answered from Beacon. The card says what is asked and points to the session, because holding the hook would hide Claude Code's own form.
- Notifications have no action buttons.
- A session that the default-terminal setting handed to Windows Terminal has no Windows Terminal ancestor, so jump does not find its window.
- Per-session usage and the transcript titles are read from the transcript, whose format is
internal to Claude Code and may change. The account limits come from a cached value in
~/.claude.json, also internal. claude agents --jsonruns every 5 minutes while a session is live, and also at start, when a session's process exits, when a hook names an unknown session and when the panel opens, at most once every 15 s. Sessions Beacon knows only from that list, their listed names, and sessions that vanished without a watched process can therefore lag by up to 5 minutes.- Several sessions in one editor window cannot be told apart, so "no notification for the focused session" and "focus acknowledges a finished session" apply only when one session maps to the window in front.
- The panel is an owned popup of the overlay window, so it has no taskbar button. A program on the development machine re-centres new unowned windows on the primary display and moved the panel there; owned popups are left alone. That program was not identified.
- The helper talks to the core over a named pipe with a random name that rejects remote clients and
grants access to the current user only. Each connection must present a 256-bit token from the
endpointfile in the Beacon home. - Beacon opens no network connection.
Refreshon the usage figures runs oneclaude -pHaiku request through Claude Code, and only when you ask for it. - It fails open. The helper exits 0 on every path, prints only a complete decision, and gives up after short timeouts, so a stopped or hung core never blocks a session. Permission requests wait for you, up to the one-hour timeout the hook is registered with.
- The one-line request preview, the activity line and session titles are redacted in the core before any front end sees them. Everything from a session is shown as plain text.
- The helper forwards the hook payload and an allowlist of 18 environment variables; no other variable leaves the session.
What is stored where:
| Place | Contents |
|---|---|
%LOCALAPPDATA%\Beacon (or BEACON_HOME) |
endpoint (pipe name and token, removed on a clean stop), state.json (sessions, snoozes, queued prompts; written at most every 2 s), config.json (stall_minutes, answer_unattended, clear_finished_minutes, reconcile_seconds (300), log_level), ui.json (style, tab placement, pill positions, displays, shortcut, notification and sound choices, overlay visibility, reveal, open on hover, size and opacity, pin while active, attention style, reminder interval and label time, start mode and idle close time), autostart (the app's path, only while Start Beacon is When Claude is used), launching (written when the hook starts the app, so it starts it at most once every 20 s), install.json, bin\beacon-hook.exe, backups\ (copies of the settings file), logs\core.log (moved to core.log.1 before it passes 5 MB), icon.png |
Claude Code settings.json |
The Beacon hook handlers |
HKCU\Software\Microsoft\Windows\CurrentVersion\Run, value Beacon |
Only while Start Beacon is When I sign in to Windows |
HKCU\Software\Classes\AppUserModelId\com.project-graphite.beacon |
The name and icon Windows shows on Beacon's notifications |
- In the settings view choose
Uninstalland thenApply, or runbeacon uninstall --yes. - Set
Start BeacontoOnly when I open it, then chooseQuitin the tray menu. - Delete the Beacon home folder and the binaries.
- Optionally remove the notification identity:
reg delete HKCU\Software\Classes\AppUserModelId\com.project-graphite.beacon /f.
docs/DECISIONS.md records the design decisions and what was verified, and docs/SPIKES.md the experiments behind them.