Blog · Question · · Hoa Trinh

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.

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.

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

  1. Set up an end-of-run signal: a bell, a notification or a Stop hook.
  2. Make the place you return to show what finished.
  3. 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.

KeepGoing Den

One project per Desktop, and the Den times them for you, with no timer to start. Plus Focus breaks, posture nudges and a pixel pet that notices when you drift.