Skip to content
Alerts and notifications

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

NameShown asRaised when
error✗ error: Basha tool call fails. The header counts errors you haven’t seen
stall◌ waiting 30s on Basha tool call has no result after --stall. Often a permission prompt
turn✓ your turnClaude finishes a turn and no subagent is still running in the background
compact⟳ compactedthe context is compacted
ctxctx 90%the context window passes 90%
ask? Bash: npm testthe session asks for permission to use a tool. Needs snoop’s hooks; press A or D to answer
cost$ cost passed $5.00with --cost-alert 5, the session’s cost passes another multiple of $5. Off by default
long◌ turn running 15m00swith --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,error

To turn notifications off, use --notify=off.

While either is on, the top bar shows it beside “snoop” on every screen:

BadgeMeaning
● notifynotifications go out for the chosen alerts
○ notifynotifications are held, because snoop’s window has focus
✗ notifythe last notification failed to send; the footer says why
● bellthe 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 prompt

How notifications are delivered

For each environment, snoop picks one way to deliver notifications:

Where snoop runsDelivered by
iTerm2, WezTerm, Ghostty, kittythe terminal’s own notifications. Clicking one focuses the tab
over SSHthe terminal’s own, so they appear on your machine, not the server; only with --notify
WSLa Windows toast, through powershell.exe
macOS, other terminalsosascript
Linux desktopnotify-send
anywhere elsethe 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.