Alerts and notifications
While a session receives new lines, snoop raises alerts in its header. The live board raises the same alerts for every session on it, prefixed with the project. Lines already in a transcript when snoop opens it never raise alerts.
Alerts
| Name | Shown as | Raised when |
|---|---|---|
error | ✗ error: Bash | a tool call fails. The header counts errors you haven’t seen |
stall | ◌ waiting 30s on Bash | a tool call has no result after --stall. Often a permission prompt |
turn | ✓ your turn | Claude finishes a turn and no subagent is still running in the background |
compact | ⟳ compacted | the context is compacted |
ctx | ctx 90% | the context window passes 90% |
ask | ? Bash: npm test | the session asks for permission to use a tool. Needs snoop’s hooks; press A or D to answer |
cost | $ cost passed $5.00 | with --cost-alert 5, the session’s cost passes another multiple of $5. Off by default |
long | ◌ turn running 15m00s | with --long-turn 15m, a turn has run that long. Off by default |
Any key hides the alert.
Press ! to jump to the event that raised it.
Calls that run a subagent, through the Agent tool or a forked skill, never raise stall.
The cost and long alerts catch a runaway session.
Each needs its limit, such as snoop --live --cost-alert 5 --long-turn 15m.
A session’s cost while it runs is an estimate from its tokens, so the alert says “about”.
Neither alert counts what a session had reached when snoop opened it: the cost alert starts from what was already spent, and a turn already past the limit isn’t alerted.
Bell and notifications
Desktop notifications are on by default wherever snoop has a way to deliver them that is sure to show, and the bell is off.
With --bell, snoop rings the terminal bell, and with notifications on it sends a desktop notification, both for the alerts chosen with --alerts (by default error,turn,ask,cost,long):
snoop --follow --bell
snoop --live --alerts turn,stall,errorTo turn notifications off, use --notify=off.
While either is on, the top bar shows it beside “snoop” on every screen:
| Badge | Meaning |
|---|---|
● notify | notifications go out for the chosen alerts |
○ notify | notifications are held, because snoop’s window has focus |
✗ notify | the last notification failed to send; the footer says why |
● bell | the bell rings for the chosen alerts |
Press ? to see which delivery method snoop picked and which alerts it signals.
A notification’s title names the session and its body says what happened:
api · Fix the flaky test
Waiting 45s on Bash · may be a permission promptHow notifications are delivered
For each environment, snoop picks one way to deliver notifications:
| Where snoop runs | Delivered by |
|---|---|
| iTerm2, WezTerm, Ghostty, kitty | the terminal’s own notifications. Clicking one focuses the tab |
| over SSH | the terminal’s own, so they appear on your machine, not the server; only with --notify |
| WSL | a Windows toast, through powershell.exe |
| macOS, other terminals | osascript |
| Linux desktop | notify-send |
| anywhere else | the terminal’s escape sequence (OSC 777); only with --notify |
Over SSH in another terminal, and where no system notifier is found, notifications stay off unless you ask for them, because the terminal might print the escape sequence as text.
In those places, --notify turns them on.
To override the choice, use --notify=terminal or --notify=system.
When notifications are held back
- None are sent while snoop’s window has focus, in terminals that report focus.
- At most one goes out per session and alert a minute.
- Several snoops watching the same session send one between them.