Claude Code finished 30 minutes ago and I never noticed
If you want a Claude Code notification when it's finished, you have three cheap options: a terminal bell, a desktop notification, or a Stop hook that runs your own notify script. Any of them turns "30 minutes later" into "a minute later". Set one up today. Then look at the other half, because a finished run nobody noticed usually means you had already gone somewhere else.
Why it happens
A Claude Code turn takes a few minutes. Too short to start anything real, too long to watch a spinner. So most of us tab out.
In a thread on losing focus while waiting on Cursor's agent, the poster described the loop:
My pattern used to be firing off a Cursor agent task, tabbing over to Slack or a browser, then forgetting to check back. Lost 5, sometimes 10 minutes before I remembered it finished.
(They disclose that they build a voice tool for agents.) Five or ten minutes a run adds up over a day of short runs. On a long run, half an hour goes without you noticing.
How to get a Claude Code notification when it finishes
This is the fix nearly everyone lands on, and it works.
- A sound. One reply in that thread: "It can make a little sound when the turn is over." A terminal bell does the same for Claude Code.
- A desktop notification. Another reply: "Enable the notifications for cursor and disable them for any non essential apps." Mute the rest so the one that matters stands out.
- A Stop hook. Claude Code's hooks can run a command when a turn stops. In a thread about notifications that rarely fired on a Mac, one reply put it plainly: "For an alert on every completed response, use a Stop hook instead of relying on the idle notification."
- Alert on the question, not the finish. u/Coindef, who builds the Waitroom plugins for Claude Code, prefers a notification "the second it stops and needs input, not when it finishes the whole task. That's usually the moment I'd lose 5 min without noticing."
If you have none of these, start here. It is the cheapest fix on the list.
Make coming back quick
An alert tells you something ended. It helps if the place you return to tells you what.
u/dawedev keeps one macOS Space per project and described it this way:
I have the agent's terminal ring the bell or fire a small notify script when the run ends, and clicking that notification usually drops me back into the right Space. The other thing that helped was keeping the agent terminal full screen on its project Space, so a quick look at Mission Control shows which project still has something running.
In the Cursor thread, u/locbuilds leaves "a unique marker in the task prompt so when i come back i can scan the diff and know whether it actually finished or just stopped on a question."
Change the wait itself
Some people skip the alert problem by changing what the wait is for.
- Run more than one agent. "Notifications did not fix this for me, I still came back to a diff I had lost the context for," wrote u/Bitter-Ad2567 in the Cursor thread. "What helped was running two agents on separate tasks, each in its own worktree. Waiting stopped being idle time because I switch to the other task instead of to Slack." In a r/vibecoding thread, u/king-krool went further: "Do multiple tabs. I find 4/5 the amount needed to not get stuck waiting."
- Make one long run. In the same thread, u/incognitochaud tried the opposite: "I tried giving it a sizable list of tasks and it ran for 2 hours." They spent that time planning a new game project. A long run with planned work beside it needs no babysitting.
- Stay in the terminal. Waitroom gives you things to do there while the turn runs, like reviewing the diff or drafting commit notes, so there is less reason to leave.
Parallel agents suit people who can hold several contexts at once. A long batch run suits work you can describe up front. Staying put suits short turns. Pick the one that fits how you work, not the one that sounds most productive.
What a notification can't tell you
Every signal above fires when the run ends. None of them notices the moment you leave.
u/dawedev, after all that setup: "I still wander off, but now I find out within a minute instead of an hour later." And Coindef: "Still lose some to the browser, just less."
That is my problem too. I run Claude Code in iTerm2 with its per tab alerts on, and I keep one macOS desktop per project. The alerts arrive on time. What they miss is me drifting to another desktop mid-run. I wrote about that half in Notifications tell you the run ended. Nothing tells you that you left.
It is also why I built KeepGoing Den, a macOS menu bar app that binds each project to its own desktop. During a focus session, if you leave the project's desktop for longer than a short dwell, that counts as a drift, and a small pixel pet in the corner gives you one quiet nudge.
It does not replace the end-of-run alert. It also can't see you wander off inside the project's own desktop, say in a browser there. It sits beside the alert and covers the minutes before it. Drift and time per project are recorded for free; the nudge needs the licence. The features page has the details.
Short answer
- Set up an end-of-run signal: a bell, a notification or a Stop hook.
- Make the place you return to show what finished.
- Look at what you do during the wait. If the runs are short and you keep drifting, change the wait (more agents, longer runs) or add something that notices when you leave.