WatchlampGuidesGet Watchlamp · free

Guide

Running several Claude Code sessions at once, and knowing which one needs you

Updated November 21, 2026 · by the maker of Watchlamp

A single Claude Code session spends much of its time running tests, reading files and waiting for you. Running two or three side by side, each on its own task, keeps the work moving while one of them waits. It works well as long as the sessions cannot trip over each other's files, and as long as you can tell which one needs you.

Give each session its own worktree

A git worktree is a second checkout of the same repository, on its own branch. Claude Code creates one for you:

claude --worktree fix-login
claude -w update-docs

Each command starts a session in .claude/worktrees/<name>/, on a new branch called worktree-<name>; leave the name out and Claude Code picks one. Two more things make it smooth:

To come back to a session later, add --resume: claude --worktree fix-login --resume. In the Claude desktop app, each session in the Code tab is listed in the sidebar and can run in its own worktree too.

The hard part: which one is waiting?

With three sessions in three terminal tabs, the one that matters is the one sitting on a permission prompt, and a tab in the background does not show it. Three ways to fix that.

Put the project's name in the notification

The notification hook from Claude Code's documentation always says "Claude Code needs your attention", whichever session it is. Every hook gets JSON on its standard input with the session's folder in cwd, and a notification's text in message. This script puts both into the alert:

#!/bin/bash
# ~/.claude/notify.sh: a macOS notification that names the session's folder
input=$(cat)
folder=$(basename "$(jq -r .cwd <<< "$input")")
message=$(jq -r .message <<< "$input")
osascript -e 'on run argv' -e 'display notification (item 1 of argv) with title (item 2 of argv)' -e 'end run' "$message" "Claude Code · $folder"

Make it executable with chmod +x ~/.claude/notify.sh and use it as the Notification hook's command in ~/.claude/settings.json:

"command": "$HOME/.claude/notify.sh"

It needs jq, which comes with macOS 15 and later (on older versions: brew install jq). Passing the text to osascript as arguments, rather than pasting it into the script, means quotes in a message cannot break it. Allow Script Editor in System Settings → Notifications, since that is where these notifications come from.

See every session on one board

Watchlamp, our free app, shows one lamp per session, named after its project: sessions in a Claude Code worktree read shop · fix-login, and two sessions in the same folder read shop #1 and shop #2. The one waiting for you blinks red the moment the prompt appears, and a click on it brings up the app that session runs in: Terminal, iTerm2, VS Code or the Claude app. If the board takes too much room, choose Lamps only and put the row of lamps beside the Dock; hovering over a lamp shows its project. Right-click a lamp to hide a project you do not need to watch.

Keep the count small

Two or three sessions on separate tasks are easy to follow; past that, reviewing their work becomes the bottleneck. Give each worktree a name that says what the task is, because that name is what you will see in notifications and on the lamps.

When a task is done

Each worktree's branch is an ordinary branch: review it, merge it or open a pull request as usual. Remove a worktree you no longer need with git worktree remove .claude/worktrees/<name>.

Frequently asked questions

Do sessions in different worktrees share files?

No. Each worktree is its own checkout on its own branch, so an edit in one does not show up in another until you merge the branches. They share the repository's history.

How do I get my .env file into new worktrees?

List it in a .worktreeinclude file at the top of the repository, in the same syntax as .gitignore. Claude Code copies matching ignored files into each new worktree.

How do I go back to a worktree session later?

Run claude --worktree with the same name and --resume, for example claude --worktree fix-login --resume.

Does Watchlamp work with worktree sessions?

Yes. A session in a Claude Code worktree is labelled with the repository and the worktree's name, such as shop · fix-login, and two sessions in the same folder show up as shop #1 and shop #2.

Watchlamp is a free Mac app that puts one lamp per Claude Code session on your screen: it glows while Claude works, blinks when Claude needs you, and goes dark when the turn is done. For the desktop app and claude in the terminal.

Learn more

More guides

How to get notified when Claude Code needs you on a MacClaude Code hooks: which events tell you what a session is doing