Notifications tell you the run ended. Nothing tells you that you left.
If you keep getting distracted while waiting for a coding agent, a notification only fixes half of it. It tells you the run ended, so you stop coming back an hour late. It does not tell you that you left. The time I lose starts the moment I switch away "for a second" and runs until the alert fires and I find my way back. Every fix I have seen, mine included, works on the second half. This post is about the first.
My setup, and where it leaks
I run Claude Code in iTerm2, and iTerm2 alerts me per tab when Claude stops. Each project lives on its own macOS desktop. I never browse on the desktop I am working on.
That setup is good at one thing: when a run ends, I hear about it. What it never catches is me drifting to another desktop while the run is still going. The alert arrives on time. I am just not where the work is.
I also tried a physical Pomodoro timer, a Ticktime cube, and missed it under headphones. Different signal, same gap: it fires at the end and assumes I am there to hear it.
Other people hit the same gap
I started asking people who run agents what pulls them back when they wander off. The answers were nearly identical: a sound or a notification when the run ends.
In a thread about what to do while Claude Code is thinking, u/Coindef, who builds Waitroom, a set of Claude Code plugins for the wait, said the bell was not enough:
Same, the bell only helps if you're already half listening. What works better for me is a desktop 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. Still lose some to the browser, just less.
"Just less" is the honest part. I answered that alerts tell me the agent stopped, but nothing tells me I left. Their reply:
"nothing tells me I left" is exactly it. The alert assumes you're still nearby.
And a day later:
Leaving the desktop is the actual leak, not the wait.
To be fair: the phrase was mine, and they were agreeing with it. But the habit they described, an alert that helps and a browser that still wins sometimes, was theirs before I said anything.
Under a post about one Space per project, u/dawedev, who works the same way, described their setup:
Mostly a sound. 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. I still wander off, but now I find out within a minute instead of an hour later.
Good setup, and the last sentence is the whole story. The notification shrank "an hour later" to "within a minute" of the run ending. It did nothing about the wander itself.
The builder of clalt, a 3D office where each Claude Code session is a character at a desk, was asked whether the character comes to find you. They put the two jobs side by side:
The wave is for glancing, the notification is for when you've wandered off.
Why notifications aren't enough: two questions
Put those together and there are two questions, not one.
- Is the agent done? Bells, notifications, Stop hooks and notify scripts answer this well. If you have none of them, start there. It is the cheaper fix, and it catches the worst case: the run that sat finished for half an hour.
- Am I still on the work? Nothing above answers this. An end-of-run alert says nothing until the run ends. If the run takes eight minutes and you left after one, that is seven minutes of drift before anything speaks. Then add however long it takes to finish what you were reading and switch back.
People attack the second question in other ways, and they are worth knowing:
- Stay put on purpose. Waitroom keeps you in the terminal during the wait, with things to do there, like reviewing the diff or drafting the commit message.
- Run several agents. When one is working, you switch to another task instead of a browser. It turns the wait into work, if your projects can take it.
- Make the run long. Hand the agent a batch of tasks and do something planned, away from it. A two hour run is a different game from a three minute one.
Each of these changes what the wait looks like. None of them notices the moment you leave.
What I built for the leaving half
That gap is why I built KeepGoing Den, a macOS menu bar app.
Each project gets one or more desktops bound to it. During a focus session, if you leave the project's desktop for longer than a short dwell, that counts as a drift. A small pixel pet in the corner of the screen gives you one quiet nudge, then stays in its corner looking drifted, so a glance still tells you that you wandered off after a notification would have slid away.
It does not send macOS notifications, and it holds nudges back while a macOS Focus is on. A chat or music display can be marked as ambient so moving to it does not count.
It is not a replacement for the alert. I still keep iTerm2's per tab alerts on: they answer the first question and the pet answers the second. And it has limits. It notices you leaving the project's desktop, nothing finer. Open a browser on the same desktop and lose twenty minutes there, and it sees nothing.
Drift is recorded for free, along with time per project. The nudge needs the licence. The features page lists what is free and what is not.
If you only take one thing
Set up an end-of-run alert if you have not. It is cheap and it works. Then notice where your time actually goes. If it goes in the minutes between leaving and the alert, the alert was never going to fix that part. Something has to notice that you left.