switchstation-rail-mac
Health Uyari
- License — License: Apache-2.0
- Description — Repository has a description
- Active repo — Last push 0 days ago
- Low visibility — Only 8 GitHub stars
Code Basarisiz
- rm -rf — Recursive force deletion command in scripts/bundle.sh
Permissions Gecti
- Permissions — No dangerous permissions requested
Bu listing icin henuz AI raporu yok.
See which Claude Code, Codex or Antigravity session is waiting for you, and jump to its window in one click. Free, open source macOS menu bar app (Apache-2.0, no network code). macOS 14+, Apple silicon.
SwitchStation Rail
See which AI agent sessions need you. Click one to jump back to its window.
A free, open source menu bar app for macOS, by SSS Flow.
Website · Install · Supported agents · How it works · FAQ · Privacy · Contributing
Keep your terminal. Keep your IDE. Stop babysitting your agents.
SwitchStation Rail is a free, open source menu bar app for macOS that shows which Claude Code or Codex session
is waiting for your input, which one is done and which one is still working. It puts a thin rail at the edge of
your screen and lists the agent sessions you run, in Terminal, iTerm2, Ghostty, Warp, VS Code, Cursor or
Antigravity. When a session needs you or finishes, you can get a banner or a spoken alert. Click the session and
the Rail brings its window to the front, in the app it runs in.
It works with Claude Code and the OpenAI Codex CLI (full support) and Antigravity (partial support: working and
done, no Waiting for you), and is built to support any agent that reports what it is doing. It runs on macOS 14
or later; official builds are for Apple silicon.
The Rail is not an IDE or a terminal. It watches your agents where you already run them.
Why
When you run more than one coding agent, most of the waiting is silent. An agent finishes its turn, or stops to
ask for permission, in a window you are not looking at. You find out later, when you check each terminal and
editor by hand.
The Rail tells you as soon as it happens, and takes you to the right window in one click.
- Free, with every feature and no session or project limit.
- No network code. The app, the hook bridge and the core contain no networking APIs, and the export that
produces this repository checks for them. Links in the app open in your browser only when you click them. - No prompts kept. Your prompts, the agents' replies and your transcripts are never stored or sent. See
PRIVACY.md. - Works with your tools. It finds the app that hosts each agent, so there is no plugin to install per editor.
Features
|
Know what needs youEvery session has one of four states, reported by the agent itself through its hooks:
The Rail does not guess and does not summarise. Click a session and the Rail raises that exact window, in the right app and project (this uses the macOS Accessibility permission, and only for this). |
Two ways to look: State mode and Project mode
Switch between them with the State / Project control at the top of the Rail. Both have a collapsed form, a
thin strip at the edge of your screen, and an expanded list.
State mode sorts every session by what it needs: waiting for you first, then done, then working. Use it when you run many sessions and only want to know which one to look at next. |
Project mode groups sessions by project (the git repository, or the working folder). Collapsed, it is a dock of project icons with a status dot each. Use it when you work across several projects and think in projects, not sessions. |
Small things that help
| Your own project icon and colour. Right-click a project > Change Icon… and pick an emoji, a symbol, up to two letters or an image, on the background colour you like. Reset Icon to Automatic goes back to the project's logo or monogram. | |
![]() |
New sessions appear by themselves. Start Claude Code or Codex in any terminal or editor and the session shows up on the Rail on its first hook event. There is nothing to add by hand. |
![]() |
Status details. Each row shows the project, the app and the agent, and a state line such as "Waiting for you" or "Done · Background running" when the agent finished its turn but left a background task running. Click a project in the dock to go to its window, or to see its sessions when it has more than one. |
- Pin to Rail. Pin the projects you use most so they stay on the Rail, even with no session running.
Unpin from Rail removes them. Drag projects in the dock, or sessions in the list, to put them in your order. - Mark Reviewed / Still Working. Right-click a Done session: Mark Reviewed sets it back to idle, Still Working
keeps it working until its next Stop. - Open in… / Reveal in Finder. Open a project folder in one of your editors, or show it in Finder, from the
project's menu. - Banners and spoken alerts. When a session is done or waiting for you, get a notification, a short phrase
read aloud by the system voice, both or neither. You choose in Settings, and you can edit the phrases. Click a
banner to go to that session's window. - Super Focus. Temporarily route your attention to one project for 15 to 60 minutes. Other projects keep
running and the Rail keeps tracking them, but their banners and spoken alerts wait. When the focused project
needs you, its window can come to the front by itself. At the end, a short recap shows what happened elsewhere. - Stays out of the way. The Rail can hide over videos and other full-screen apps.
- Light and dark. It follows your macOS appearance.
Works with
| Agent | Support | What the Rail sees |
|---|---|---|
| Claude Code (CLI) | Full | working, done, waiting for you, background tasks |
| OpenAI Codex CLI | Full | working, done, waiting for you |
| Antigravity | Partial | working, done (Antigravity has no hook for approval requests yet) |
Claude Code and Codex run where you already work: Terminal, iTerm2, Ghostty, Warp, VS Code, Cursor, Antigravity
or SwitchStation Workspace. Antigravity sessions run in the Antigravity app. For every agent, a click brings you
back to the session's window.
The Rail learns about sessions from the agents' lifecycle hooks, and finds the app that hosts each agent from
its parent processes. That is why it works without a plugin in each editor or terminal.
Coming next. Cursor is planned. Gemini CLI (for API-key users), OpenCode, GitHub Copilot CLI and Aider are on
the roadmap for later. None of them is supported yet. The full table, what each level means and how agents are
chosen: SUPPORT.md.
How it works
flowchart LR
A["Claude Code, Codex or Antigravity"] -- "lifecycle hook (JSON on stdin)" --> H["SwitchStationHook"]
H -- "small packet over a local socket" --> R["SwitchStation Rail"]
R -- "click a session" --> W["the window that runs it"]
- When you install the integration, the agent runs the hook bridge,
SwitchStationHook, on its lifecycle
events. Claude Code and Codex: SessionStart, UserPromptSubmit, Stop, SessionEnd, PermissionRequest and
PostToolUse. Antigravity: SessionStart, PreInvocation and Stop. - The hook keeps only the session id, the working folder, the event name and a few counts, and drops the rest
(prompt, reply, transcript, tool input and output). It sends one small packet to the Rail's socket on your Mac
and always exits with status 0, so it never blocks or changes an agent. It prints nothing, except the empty
JSON reply{}that Antigravity requires from every hook, which carries no decision. - The Rail updates the session's state, shows it, and raises the right window when you click.
Install
Requirements: macOS 14 (Sonoma) or later, and at least one supported agent: Claude Code, the Codex CLI or
Antigravity.
Download
Official builds: download SwitchStation-Rail.dmg from
GitHub Releases (Apple silicon, macOS 14 or
later). Official builds are signed by SSS Flow and notarized by Apple, and each release lists SHA-256 checksums.
If you also use SwitchStation Workspace, it can update the Rail for you; the Rail itself does not download
anything. Otherwise, download the new version from the same page.
Build from source
You need Swift 6.0 or later (Xcode, or the Command Line Tools: xcode-select --install). There are no
third-party package dependencies.
git clone https://github.com/sssflow/switchstation-rail-mac.git
cd switchstation-rail-mac
swift build
swift test
scripts/bundle.sh # makes dist/SwitchStation Rail.app (release build)
scripts/install.sh # copies it to /Applications and opens it
scripts/install.sh --dest ~/Applications installs into another folder, and --no-open skips opening the app.
An older copy at the destination is moved to the Trash, never deleted.
Signing. scripts/bundle.sh signs with the identity in RAIL_SIGN_IDENTITY if you set it (a self-signed
code-signing certificate in your keychain is enough). Without one, the app is ad-hoc signed and macOS asks for
Accessibility permission again after every rebuild.
Development builds. swift build and swift run make a development build. It keeps its own data folder
(~/Library/Application Support/SwitchStationDev), its own sockets, preferences and log, and its own hook
entries (marked --channel dev), so it never touches an installed Rail. Settings > About says
"Development build". scripts/bundle.sh makes the stable build that you install.
Try it without an agent. With a Rail running, scripts/send-test-event.sh claude UserPromptSubmit sends a
fake hook event through the real hook bridge.
Permissions
- Accessibility (System Settings > Privacy & Security > Accessibility): needed to bring the exact window of a
session to the front. Without it, clicking a session opens its app only. - Notifications (optional): for banners when a session needs you or finishes.
Hooks: install, repair, remove
Open the Rail's menu bar icon > Integrations…. There is one row per agent: Claude Code, Codex and
Antigravity. Each row shows its support level; "What Rail can see" lists the details.
- Install adds one entry per event to
~/.claude/settings.json(Claude Code),~/.codex/hooks.json
(Codex) or~/.gemini/config/hooks.json(Antigravity, one namedswitchstation-railentry per event), for
the events above. Each entry runs the hook bridge inside the app:'<app>/Contents/MacOS/SwitchStationHook' --provider claude. - Repair appears when the entries are incomplete or point at an app that moved. It replaces them.
- Uninstall Integration (in the row's "…" menu) removes them.
What these actions do and do not do:
- Before every change, a copy of the file is saved next to it as
<file>.switchstation.backup.<date-time>.
Reveal Last Backup shows it in Finder. - Only SwitchStation's own entries are added or removed. Your other settings and other hooks are kept. A
development build only touches its own--channel deventries, and an installed build only its own. - A file that is not valid JSON is never changed; the Rail tells you instead.
- The file is written atomically. If it is a symlink (for example into a dotfiles folder), the file it points
to is edited and the link stays. The file is saved as formatted JSON with sorted keys, so its layout can change. - Codex asks you to trust new hooks: run
codex, type/hooksand approve the SwitchStation hooks. The Rail
reads~/.codex/config.toml(read only) to tell you whether that is still needed. - Antigravity reads its hooks when a conversation starts: after you install, start a new conversation.
SwitchStation never installs Antigravity's PreToolUse hook, because its reply can allow a tool.
Privacy, in short
Everything stays on your Mac. The hook bridge keeps the session id, the working folder and the event name from
each hook event, plus a few counts and a one-way hash, and drops the rest without storing it. The Rail keeps a
project list, a list of agent sessions and a log in your user account. There is no telemetry, no analytics, no
crash reporting and no automatic update check.
Every detail, with the files involved: PRIVACY.md.
FAQ
I run several Claude Code sessions. How do I see which one is waiting for me?Look at the Rail. Each session reports its own state through its hooks, so the one that asks for permission
turns Waiting for you and moves to the top of the list, with its project and the app it runs in. The
collapsed Rail shows how many sessions are waiting, done and working. Click the session to bring its window to
the front. This works the same for Codex sessions, and for sessions spread across different terminals and
editors.
They solve part of the problem, and the Rail works alongside them. By default, Claude Code sends a desktop
notification in Ghostty, Kitty and iTerm2, at most a silent bell in Apple Terminal, and nothing in other
terminals such as Warp or the VS Code integrated terminal unless you add a hook or turn on the terminal bell.
Agent view (a research preview) lists background sessions; interactive sessions open in other terminals do not
appear until you background them. (Source:
terminal configuration and
agent view in the Claude Code docs, checked 2026-12-01.)
The Rail lists your interactive sessions in every supported terminal and editor, puts Codex and Antigravity
sessions on the same list, and takes you to the right window in one click.
Install the Claude Code integration from the Rail's Integrations window. When Claude Code finishes a turn, its
Stop hook tells the Rail, the session turns Done, and you get a banner, a spoken alert, or both, as set in
Settings. Click the banner or the session to go back to its window. More on the topic:
Claude Code notifications.
When Claude Code asks for permission (for example to run a command), its PermissionRequest hook fires and the
session turns Waiting for you. It moves to the top of the Rail and stays there until the tool call goes
ahead. The collapsed Rail shows how many sessions are waiting, so you can see it from the corner of your eye.
Yes. The Rail has no session or project limit. Each session is listed with its project and the app it runs in,
sorted by state or grouped by project, and one click raises its window. A guide:
Run multiple Claude Code sessions.
Yes. Install the Codex integration from the same window. It adds the hooks to ~/.codex/hooks.json; then runcodex, type /hooks and approve them. Codex sessions get the same states, banners and spoken alerts as Claude
Code sessions.
Codex's own notify setting runs a program only when a turn completes (agent-turn-complete), so it does not
tell you when Codex waits for an approval
(Codex docs, checked 2026-12-01). The Rail
uses the Codex PermissionRequest hook too, so a Codex session that waits for approval shows Waiting for you.
macOS 14 (Sonoma) or later. The official builds on
GitHub Releases are for Apple silicon,
signed by SSS Flow and notarized by Apple. You can also build it from source with Swift 6, see
Build from source. More about the Rail:
switchstation.sssflow.com/rail.
Yes. Both show up on the same Rail, each marked with its agent, so you can run Claude Code in one project and
Codex in another and see both at a glance.
Yes, at the Partial level. Install the Antigravity integration from the same window, then start a new
conversation. The Rail shows when the agent is working and when it is done, and a click brings back the
Antigravity window. Antigravity has no hook for approval requests yet, so its sessions do not show Waiting for
you.
Cursor is planned. Gemini CLI (for API-key users), OpenCode, GitHub Copilot CLI and Aider are on the roadmap for
later. An agent is added when the Rail can tell its sessions apart and see when they work, finish or wait, and
it is listed as supported only once tests cover it. To ask for an agent, open a feature request: see
SUPPORT.md.
No. The hook bridge drops the prompt, the reply, the transcript and tool input and output before anything
reaches the Rail. The Rail reads window titles in memory to find the right window, and a few fixed files listed
in PRIVACY.md.
The hook bridge sends one small packet over a local socket, prints nothing and always exits with status 0, even
when the Rail is not running. It never blocks an agent or changes what it does.
In the Integrations window, choose Uninstall Integration for each agent you installed. This removes only the
SwitchStation entries and keeps a backup of each file. Then quit the Rail and move the app to the Trash.
Part of SwitchStation
SwitchStation Rail is part of SwitchStation by SSS Flow, a project control layer for AI work. The Rail works on
its own, and you do not need anything else to use it.
SwitchStation Workspace
is a separate, commercial app: a workspace for projects, terminals and prompts. It is not part of this
repository. When both run on the same Mac, they talk over local sockets: Workspace shows the Rail's session
status and project list, and the Rail can bring a Workspace terminal to the front. A Rail built from this
repository works with the official Workspace the same way an official Rail does: the two apps agree on a local
protocol version when they connect, and if they cannot, the Rail shows "Update needed" instead of failing
quietly. Licenses and purchases live only in Workspace; the Rail has no paid features to unlock.
Go Further
Get SwitchStation Full - Go beyond attention with Workspace and the rest of SwitchStation.
$39 Founding License, one-time (taxes may apply).
Get Full
Get the Guide - Stop Babysitting Your Agents, a field guide to running many AI agents without losing your focus.
Pay what you want, including $0.
Get the Guide
Star Rail - A free way to help more people find it. Bugs and ideas go in issues.
Contributing
Bug reports, ideas and pull requests are welcome. This repository is generated from SSS Flow's source, so an
accepted pull request is ported back and comes out in the next export, with your authorship kept. Please read
CONTRIBUTING.md first, and follow the Code of Conduct.
Security issues: please report them privately, see SECURITY.md.
Changes by release: CHANGELOG.md.
Repository layout
| Path | What |
|---|---|
Sources/SwitchStationRail |
the app (AppKit + SwiftUI) |
Sources/SwitchStationCore |
logic without UI: session state, hook packets, local sockets, hook integration |
Sources/SwitchStationHook |
the hook bridge that the agents run |
Sources/SwitchStationKit, Sources/SwitchStationKitUI |
the part of the shared SwitchStation kit the Rail uses: project model, local protocol, session registry |
Tests/ |
Swift Testing suites |
scripts/ |
bundle.sh, install.sh, send-test-event.sh and its fake payloads |
docs/images/ |
the images in this README (sample data only) |
OSS_SOURCE.json, OSS_FILE_MANIFEST.json |
where this tree was generated from, and a hash of every file |
License and trademarks
The source code is licensed under the Apache License 2.0 (see also NOTICE).
The names "SwitchStation" and "SwitchStation Rail" and the app icons are trademarks of SSS Flow and are not
covered by that license. You can build and run the code as it is. If you distribute your own build, give it
your own name and icons. Details: TRADEMARKS.md.
Yorumlar (0)
Yorum birakmak icin giris yap.
Yorum birakSonuc bulunamadi

