Which Claude Code Session Is Waiting for You?
Claude Code's agent view (claude agents) shows which sessions need input, but only sessions you started in the background; interactive sessions in other terminals do not appear. For those you need terminal-level signals, a hook that names the project, or one status view that every session reports to.
I usually have three or four Claude Code sessions open: one in iTerm2, one in the VS Code terminal, sometimes one in Warp. When one of them stops to ask for permission, I don't notice. I find out twenty minutes later, when I tab through every window. All the tabs look the same. Is there one place that shows which session needs me right now?
Put together from 6 similar questions on GitHub, Hacker News and Product Hunt. Links at the end.
Short answer
Partly. Claude Code has an official screen for this, claude agents, which lists sessions as Working, Needs input, Idle or Completed. But it only lists sessions that run in the background. In the docs' words: "Interactive sessions you have open in other terminals don't appear until you background them."
So if your sessions are ordinary interactive ones spread across iTerm2, VS Code and Warp, nothing built in shows them side by side. You can get part of the way with tab titles, a hook that says the project name, or a tmux-based manager. To really answer "which one", you need a single view that every session reports to.
What do people usually try?
1. Move the work to the background and use claude agents
Agent view is the official answer, and it is good at what it covers. Start work as background sessions, run claude agents, and you get one screen with a state per row. Yellow means Needs input. You can filter by folder with --cwd.
Where it stops:
- Interactive sessions in other terminals are not listed. Most people who ask this question run exactly those.
- It is Claude Code only. A Codex session in the next tab is not there.
- It is a research preview, so "the interface and keyboard shortcuts may change".
2. Make the tabs tell you
People name or color their tabs: a preexec hook in zsh that paints Claude tabs red, or a custom title. Claude Code sets its own terminal title by default. You can turn that off with CLAUDE_CODE_DISABLE_TERMINAL_TITLE=1 and have a hook return your own title through terminalSequence (claude-code#17951).
Some terminals go further. Claude Code v2.1.295 and later reports working / waiting / done through OSC 7501, and terminals that support it can show that per tab (terminal config docs).
Where it stops:
- A title tells you which project a tab is. It does not tell you that this tab is the one waiting. In claude-code#26063, three tabs in three projects all showed the same title.
- Tab dots can lie. In claude-code#30199, switching tabs makes an idle Claude tab show iTerm2's activity dot, so it looks busy.
- It only works inside one terminal app. The VS Code tab and the Warp tab still have to be checked one by one.
3. A hook that says the project name
A Notification hook can read cwd from its input and say it: say "api-server needs you", or a macOS banner with the folder name. People share these in threads like this Hacker News one. It works in any terminal, which is its big advantage.
Where it stops:
- It is a moment, not a list. If you miss the sound, nothing reminds you which session is still waiting.
- The built-in
permission_promptnotification arrives about six seconds after the prompt appears, andidle_promptabout 60 seconds after Claude finishes (hooks guide). - The hook knows the folder, not the window. Two windows on one repo sound the same.
4. A tmux-based session manager
Tools like Agent of Empires or Agent-Manager run every agent inside tmux, read each pane, and show a list of running / idle / waiting (HN, HN). If you already live in tmux, this is the closest thing to a real answer.
Where it stops:
- State is guessed from the text on screen, and the authors say so. In claude-code#94620, authors of similar tools say they still "guess some states".
- Anything outside tmux is not there, including the VS Code terminal and the editor extensions.
| Option | Covers interactive sessions | Across terminal apps | Shows state | Takes you there |
|---|---|---|---|---|
claude agents | No (background only) | Yes | Yes | Yes, inside agent view |
| Tab titles / OSC 7501 | Yes | No | Partly (some terminals) | You click the tab |
| Hook with project name | Yes | Yes | Only at the moment it fires | No |
| tmux session manager | Yes, inside tmux | No | Guessed from screen | Yes, inside tmux |
What do these fixes still miss?
Each session can already report its own state. Hooks fire on every important moment, and they fire in any terminal. What nothing built in does is collect those reports from every session and keep them in one list until you deal with them.
Anthropic has an open request for exactly this: a documented way for an outside app, like a menu bar app or a tmux status line, to know which sessions are running and whether each is working, idle or blocked (claude-code#94620, open as of 2026-12-01). Until that exists, the reliable building block is the hook. And a hook needs something on the other end that remembers.
The real question is not "did something happen?" but "which window needs me now?". Only a view that sees every session at once can answer it.
SwitchStation's answer
Official answer · SSS Flow
This is the problem SwitchStation Rail was built for. Rail is a free, open source macOS app. It sits as a thin strip on the right edge of your screen.
- Every session in one list. Claude Code and Codex sessions report through a small hook. That works for interactive sessions in Terminal, iTerm2, Ghostty, Warp, Cursor and VS Code, with no editor plugins. Rail lists them by state: Waiting for you, Done, Working.
- The waiting one stands out. Rail counts a session as waiting from the moment Claude Code asks for permission. It uses the
PermissionRequesthook, not the delayed notification. The count stays on the strip until you deal with it. - One click back. Click the session and Rail brings its window forward, in the right app.
What Rail does not do:
- It does not replace
claude agentsfor background work, and it does not start or run sessions. - It brings you to the right window, not to the exact tab inside it.
- Antigravity sessions show Working and Done, but not Waiting for you. Antigravity has no hook for approval requests.
- macOS 14 or later only. Jumping to a window needs the Accessibility permission, and Rail uses it for nothing else.
Setup: download Rail, open it, and let it add its hook to Claude Code (it merges, it does not overwrite your settings). Then start your sessions as usual. See how SwitchStation Rail works.
Related questions
- I click the agent notification and it doesn't take me to the right terminal window. Is there a fix?
- Background guide: Run Multiple Claude Code Sessions Without Losing Track
Sources
Tested 2026-12-01 against the current Claude Code docs.
- Anthropic: agent view, terminal config, hooks guide, hooks reference
- The question: claude-code#94620, #26063, #30199, #17951, HN: Agent-Manager, HN: parallel agents, Product Hunt: what breaks first