Skip to content

Command line

snoop [--follow | --live] [--project dir] [--bell] [--notify] [session-id|path]
snoop export <session-id|path> [-o file]
snoop hooks install|uninstall|status [--project] [--ask-wait duration]

Commands

CommandWhat it does
snoopopen the session picker, across all projects
snoop <session>open a session by id prefix, such as 64f3ec44, or by a .jsonl path
snoop --followfollow the newest session for this directory, and switch to new ones
snoop --liveopen the live board: every session written in the last 30 minutes
snoop export <session>write a session as Markdown to stdout, without thinking blocks
snoop hooks installadd the hooks that deliver the Diff tab’s comments and replies, and let snoop answer permission requests; --project uses ./.claude/settings.json, and --ask-wait (default 5m, from 1s to 30m) sets how long a request, or a finished turn, waits for snoop
snoop hooks uninstallremove exactly those hooks
snoop hooks statusreport whether they’re installed, exiting with 1 if not; an older install without the permission hook, or from before replies, is reported as such
snoop hookrun by the hooks: deliver the comments and replies waiting for the session, or wait for snoop’s answer to a permission request or a reply to a finished turn; you don’t run it yourself

Flags

FlagDefaultDescription
--follow, -fofffollow the newest session for the project and switch to new ones
--liveoffshow the live board. Can’t be combined with --follow or a session
--project DIRcurrent directorythe project whose sessions --follow and c use
--stall DURATION30sraise the waiting alert when a tool call has no result after this long. 0 disables it
--cost-alert DOLLARS0raise the cost alert each time a session’s cost passes another multiple of this, such as 5. 0 disables it
--long-turn DURATION0raise the long-turn alert when a turn has run this long, such as 15m. 0 disables it
--belloffring the terminal bell on the alerts chosen with --alerts
--notify[=MODE]offsend desktop notifications on those alerts. MODE is auto (the default), terminal or system
--alerts LISTerror,turn,ask,cost,longwhich alerts ring the bell or notify: any of error, stall, turn, compact, ctx, ask, cost, long
--versionprint the version and exit

The export command takes -o FILE to write to a file instead of stdout.

Environment

VariableEffect
CLAUDE_CONFIG_DIRwhere Claude Code keeps its data; snoop reads $CLAUDE_CONFIG_DIR/projects, or ~/.claude/projects when it’s unset
XDG_CACHE_HOMEon Linux, moves snoop’s cache. See What snoop reads and writes