One list of every Claude Code session on your machine. Pick one, it opens where it left off.
Claude Code's own /resume only shows sessions from the folder you're standing in. If you run it from many repos, or keep two accounts (~/.claude and ~/.claude-work), finding yesterday's session means guessing the folder, guessing the account, and squinting at first prompts. unpause reads every account, every repo, shows the names you gave sessions with /rename, and resumes the one you pick with the right account in the right folder.
unpause 158 sessions · personal, work
› type to filter · name, repo, account, branch, id
▶ ● ★ tracker-hertz surgery-planning work now │ tracker-hertz
● Openusage multiple accounts playground personal 2m │ id 9e63e42f
★ interview-skill-brain surgery-planning work 3h │ account work
Wishlist contents track-one personal 2d │ repo ~/developer/ai/deepinsight/surgery-planning
! Slack thread review pow-1257 work 4d◷ │ branch main
│ active now · 41 messages
│ ● running pid 9310 busy
│
│ you
│ can you check why the hertz tracker drifts…
│
│ claude
│ The drift comes from the 50 ms poll…
enter open ^f fork ^r rename ↑↓ move ^s deep search esc clear/quit opens via ghostty-tab
Install
brew install hamzafer/tap/unpause
# or
go install github.com/hamzafer/unpause/cmd/unpause@latest
Use
unpause # the picker
unpause --all # picker, including empty sessions and subagent transcripts
unpause --open tmux # override the opener for this run
unpause list # plain text, newest first
unpause list --json # for scripts
unpause list --all # include empty sessions and subagent transcripts
unpause search tunnel key # sessions where both words were said, most matches first
unpause search "a phrase" # one quoted argument is a phrase; --json, --limit N (0 = all)
unpause open tracker # resume by name or id prefix, no picker
unpause open 9e63 --print # just print the shell command, don't run it
unpause open 9e63 --fork # resume as a fork (new session id, original untouched)
unpause rename 9e63 "hertz tracker"
unpause autoname --dry-run # propose Haiku names for untitled sessions, write nothing
unpause autoname --apply # write exactly the names the dry run showed
unpause autoname # ask Haiku and write in one go
unpause recap --session 9e63 # write a Recap (goal, done, next) for one session, see "Recaps"
unpause recap --dry-run # list the sessions missing a Recap or with an outdated one
unpause recap # write Recaps for the newest 20 of those (--limit 0 for all)
unpause doctor # what it detected: accounts, opener, claude binary
unpause mcp # read-only MCP server on stdio, see "Use from ChatGPT"
unpause mcp stats # what MCP clients read in the last 7 days (--since 30d, --json)
unpause mcp stats --web # the same as a live page in the browser
unpause --version # print the binary version
By default the list hides empty sessions (nobody ever typed a prompt) and subagent transcripts. --all, on the top-level command or on list, shows them too.
Inside the picker:
key
action
type
fuzzy filter on name, repo, account, branch, id
enter
open the session (asks first if it's running, see below)
^f
open as a fork (new session id, original untouched)
^r
rename (writes the same record Claude Code's /rename does)
^s
Deep search: search inside what was said, see below (^s again to go back)
^t
hide or show the Recap box for this run (only when Recaps are on)
↑/↓, ^p/^n, ^k/^j
move the cursor one row
pgup/pgdown
move a page at a time
home/end
jump to the first/last row
esc
clear the filter, then quit (in Deep search: back to the filter)
enter on a row that's running right now (●) doesn't resume it; it opens a small prompt instead:
key
action
f or enter
fork a copy
o
open anyway
esc
cancel
^r turns the filter box into a rename prompt: enter saves the name, esc cancels without writing anything.
^s turns the filter box into Deep search (deep › ), with whatever you'd typed as the first query. It searches what was said in each session, the same way as unpause search: your prompts, Claude's replies, and the session's name or generated title, not tool calls, tool output or thinking. Every word has to appear somewhere in the session and "double quotes" keep a phrase together. The search starts when you stop typing, the header counts the transcripts as they're scanned (searching 430/1175), and the list shows only matching sessions, most matches first, with the match count (12×) before the title. The preview shows up to 3 snippets with your words highlighted. enter, ^f and ^r work on the results as usual. ^s or esc goes back to the normal filter.
Rows: ★ has a name, ● running right now, ! folder no longer exists (an orphan; opening it resumes the transcript in your home directory instead), ⎇ the session ran in a Claude Code worktree that has since been removed while its repo still exists (a retired worktree; opening it resumes in the repo, or the same subfolder of it when that exists), ◷ after the age means Claude Code will ask whether to resume from a summary (the session is over 100k tokens and has been idle for more than an hour). That last one is a prediction from the transcript's last usage record: the thresholds are approximate, and unpause can't tell if you've already picked "Don't ask again".
Naming sessions automatically
Claude Code titles most sessions on its own, and unpause shows that title when you haven't named one. The ones it skips, usually short ones, show the raw first prompt. unpause autoname gives those a name from Claude Haiku:
It only touches sessions with no name you gave and no Claude title. It never replaces your names or Claude's titles.
unpause autoname skips sessions that are running. The hook doesn't, since it runs as the session ends.
Just before writing, it re-reads the transcript. If a name or Claude title appeared while Haiku was thinking, it leaves the session alone.
It runs claude -p --model haiku under the session's own account, so there's no API key to set up. The call keeps no transcript and loads no hooks, tools or MCP servers.
The name is written with the same record as /rename, so it shows in Claude's own /resume too.
--dry-run prints the proposed names, writes nothing to any transcript, and saves the list. --apply then writes exactly those names without asking Haiku again, since a second call would word them differently.
Each dry run replaces the saved list, even when it finds nothing. --apply skips sessions that are running and keeps their names, plus any it failed to write, for the next --apply.
A reply that asks a question or runs past 8 words counts as no name. That happens when a session has too little in it to go on.
To name sessions as they end, add a SessionEnd hook to each account's settings.json (~/.claude/settings.json, ~/.claude-work/settings.json, ...):
It fires when you exit (Ctrl+C twice, Ctrl+D, /exit) or /clear. Claude Code only gives end-of-session hooks about 1.5 seconds, so the hook starts a detached unpause autoname --session <id> and returns at once. The name lands a few seconds later, and the job logs what it did to ~/.cache/unpause/autoname.log. If a session ends without the hook firing, say the terminal was killed, the next unpause autoname catches it.
Recaps
The preview's last few messages show where a session stopped, not what it was about. A Recap is three short lines from Claude Haiku, shown in a box above those messages:
goal cheapest padel for 4 in Oslo, 21:00-24:00
done top 3 found; showers confirmed at Bærum and Just Padel
next decide between a membership and paying per game
Recaps are off unless you turn them on, because each one sends part of a session's talk to Haiku. In ~/.config/unpause/config.toml:
[recap]
enabled = true
unpause recap --session <id> writes the Recap for one session and prints it.
unpause recap catches up: sessions with no Recap, or one made before the transcript grew, newest first, 20 at a time (--limit N, 0 = all). --dry-run lists them and asks Haiku nothing. Running sessions are skipped until they end. If an account's login fails, its other sessions are skipped for that run.
unpause doctor shows whether Recaps are on and how many sessions have one.
With the SessionEnd hook installed (see autoname), every session that ends also gets a Recap in the background. Its output goes to autoname.log.
A Recap made before the session went on is shown dim, with · earlier after goal, until it's written again.
Haiku sees the repo, branch and title, then your prompts and Claude's replies (no tool calls, tool output or thinking), about 8,000 characters at most: the first prompt and as much of the end as fits.
The call is the same as autoname's: claude -p --model haiku under the session's own account, no transcript kept, no hooks, tools or MCP servers. Each Recap is one small Haiku call against that account's plan.
A reply that isn't three lines labelled goal, done and next is thrown away; nothing is stored.
Recaps live in ~/.cache/unpause/recaps.json, never in the transcript. Deleting the file loses nothing but Recaps.
Cowork sessions, subagent transcripts and empty sessions get no Recap.
Where sessions open
unpause detects the terminal it's running in:
you're in
a resumed session opens in
Ghostty
a new tab (via Ghostty's AppleScript API, Ghostty 1.3+)
Warp
a new tab (via a reusable Warp Tab Config)
tmux
a new window
anything else
in place of unpause
Override with --open tab|tmux|inplace|ghostty|warp or in the config file. Tab and tmux openers leave the picker running so you can launch several sessions in a row.
Running sessions are never resumed twice; see the fork/open-anyway prompt above.
Accounts
Every ~/.claude and ~/.claude-* directory with a projects/ folder is an account. ~/.claude is labelled personal, ~/.claude-work is work, and so on. $CLAUDE_CONFIG_DIR is honoured too. The personal account (~/.claude) always launches with CLAUDE_CONFIG_DIR unset, never set to its own path: Claude Code treats an explicitly-set value as a request to look for .claude.json inside that directory, finds nothing, and opens the login wizard instead of resuming. Other accounts launch with the variable set to their path.
On macOS, Claude Desktop's Cowork sessions show up too, under one account called cowork, with the title Claude Desktop gives them. They are listed and readable, but unpause won't open, rename or autoname them: they ran inside Claude Desktop's VM, so open them in Claude Desktop. no_auto_detect = true hides them along with the rest of auto-detection.
To relabel an account or add one at a path unpause wouldn't otherwise find:
# ~/.config/unpause/config.toml
opener = "auto" # auto | tab | tmux | inplace
claude = "claude" # binary to run
no_auto_detect = false # true disables the ~/.claude* scan; only [[roots]] below are used
[[roots]]
label = "client"
path = "~/.claude-work"
[[roots]]
label = "lab"
path = "/Volumes/lab/.claude"
opener and claude are optional and default to auto and claude. [[roots]] entries add accounts or override the label of an auto-detected one at the same path; ~ is expanded.
Use from ChatGPT
unpause mcp is a read-only MCP server that speaks over stdin and stdout. Another assistant can use it to read your sessions. It has three tools:
list_sessions: sessions newest first, with title, account, project, folder, branch, times, message count and whether it's running. Filters: account, project, live. Pages with limit and offset.
search_sessions: the same search as unpause search. It looks at what was said (your prompts, Claude's replies, and the session's name or generated title), not tool calls, tool output or thinking. Every word of the query has to appear somewhere in a session, and "double quotes" keep a phrase together. Results are ranked by match count, newest first on ties, with up to 3 snippets.
get_session: one session's transcript, page by page, by id, id prefix or name (same lookup as unpause open). Blocks longer than max_chars (default 20,000) are cut. A page also stops once its text would pass max_total_chars (default 30,000, max 200,000) and returns next_offset to read on, so one result stays small enough for clients like Claude Desktop.
It never writes to a transcript, and it sees the same sessions as unpause list, re-read on every call.
Everything in a transcript can be read through it, tool output included. That means file contents, command output and any secrets that showed up in them. To keep folders out, list them in the config:
Each entry is a glob on a folder (* matches within one folder name, ~ is expanded). A session is hidden if any folder it ever worked in matches, not only the last one. An entry also covers every folder below a match, and an entry that doesn't start with / or ~ can match the last folders of any path, so */secret-repo covers every secret-repo folder. On macOS case doesn't matter, and symlinked folders are matched on their real path too. Cowork sessions are matched by the folders you gave them in Claude Desktop. A broken pattern stops unpause mcp from starting, and while any entry is set, a session with no folder at all is hidden too. Excluded sessions don't exist as far as the MCP server knows. The picker and unpause list still show them.
Use from Claude Desktop or Codex
Claude Desktop starts local MCP servers from ~/Library/Application Support/Claude/claude_desktop_config.json. Add unpause under mcpServers with its full path (which unpause prints it; Desktop doesn't see your shell's PATH), then quit and restart Desktop:
To reach it from ChatGPT, use OpenAI's Secure MCP Tunnel. tunnel-client runs unpause mcp as a child process and polls OpenAI over outbound HTTPS, so nothing on your Mac listens for connections:
In ChatGPT, open Plugins, add a custom MCP server and pick Connection: Tunnel.
While tunnel-client run is going, whatever ChatGPT asks for, full transcripts and tool output included, is sent to OpenAI. Stop it when you're done; unpause doesn't start it for you.
See what was read
Every tool call is logged as one JSON line in ~/.cache/unpause/access.jsonl (under $XDG_CACHE_HOME/unpause when that is set): the time, the client's name and version, the tool, what the client asked for (search query, id, filters, paging), the ids of the sessions that came back, the count and how long it took. It never holds message text, titles or snippets. What a client sends is logged as sent, so a search query lands in the log, cut to 500 bytes per field. A failed call is logged with a short error class (not found, invalid input, canceled or failed), never the error text, and calls the server turns away before they run, such as an unknown tool, are logged as invalid input. The file is readable only by you, rotates to access.jsonl.1 at 10 MB and is never written through a symlink. To sum it up:
unpause mcp stats # last 7 days: calls per tool and client, sessions read most, top searches
unpause mcp stats --since 30d --json
See it as a page.unpause mcp stats --web serves the same log as a live page and opens it in your browser: who read your sessions and what they read, calls over time per client, the sessions read most (click one to see every call that returned it), top searches and the latest calls. It listens on 127.0.0.1:4777 only (a free port if that one is taken; --port picks another, --no-open just prints the URL) and stops on Ctrl+C. The URL it opens carries a token made for that run, and the page's data is only served with it, so other users or programs on your machine can't read your session titles off the port; open the printed link, not the bare address. The page is built into the binary and makes no request off your machine. Hours and days on the chart follow this machine's time zone.
unpause mcp stats --web
The screenshot uses sample data.
How it works
unpause streams each transcript in <account>/projects/*/*.jsonl once, keeps a handful of fields (id, cwd, branch, timestamps, titles, the last few messages) and caches them in ~/.cache/unpause/index.json, keyed by each transcript's path, mtime and size. A transcript is re-parsed only when its mtime or size changes, or after unpause rename writes to it. First run over ~400 MB of transcripts takes about a second; after that it's milliseconds. It's safe to delete the cache file at any time; unpause rebuilds it from scratch on the next run. Live status comes from Claude Code's pid files and is checked every run, never cached.
The transcript format is internal to Claude Code and may change. When it does, the parser in internal/provider/claude/scan.go is the only thing to fix. Decisions and their reasons are in docs/adr; the vocabulary is in CONTEXT.md; how to work on the code is in CONTRIBUTING.md.
Claude Code today. Codex, OpenCode and friends are welcome as sibling providers.
Shell completions
Installed automatically by the Homebrew formula. To set them up manually:
go vet ./...
go test ./...
go run ./cmd/unpause doctor
If a change alters what the parser reads out of a transcript, bump cacheVersion in internal/index/index.go so cache entries built by the old code get re-parsed instead of reused; see CONTRIBUTING.md for the full checklist.
Releases: tag vX.Y.Z, then goreleaser release --clean with GITHUB_TOKEN and HOMEBREW_TAP_GITHUB_TOKEN set. The release workflow does the same on CI once the HOMEBREW_TAP_GITHUB_TOKEN secret exists. See CHANGELOG.md for release history.
Package recap writes a Recap: three short lines (goal, done, next) a small model writes about a Session, kept in unpause's cache and never in the Transcript (ADR 0012).
Package recap writes a Recap: three short lines (goal, done, next) a small model writes about a Session, kept in unpause's cache and never in the Transcript (ADR 0012).
Package webui holds the stats page: the Next.js static export under dist, built from web/ and committed, so the binary serves it without Node (ADR 0014).
Package webui holds the stats page: the Next.js static export under dist, built from web/ and committed, so the binary serves it without Node (ADR 0014).
Click to show internal directories.
Click to hide internal directories.
go.dev uses cookies from Google to deliver and enhance the quality of its services and to
analyze traffic. Learn more.