A native macOS command center for Claude Code conversations.
Claude Code writes everything to JSONL. Good. Then it buries the useful parts under tool calls, snapshots, system events, and cleanup rules.
Claude Sessions makes the archive usable: browse it, search it, favorite it, edit it, export it, protect it, and fork clean continuations back into Claude Code.
The main trick: clean continuation. Strip a massive session down to the human ↔ assistant dialogue, keep the parent chain valid, write a fresh resumable JSONL, and open it with claude --resume. A million-token working mess can become a 30–40k-token conversation without asking an LLM to summarize your history.
- Browse every
~/.claude/projects/*.jsonlconversation by project. - One search field,
⌘F, centred above both panes: it filters whatever the current tab is showing, and Return opens the newest match.⌘⇧Fopens the deeper search, which reads the files and can search by meaning. - Read and manage Claude Code's auto-memory: see Memory.
- Read in Chat, Reading, or raw JSON mode.
- Hide, archive, trash, favorite, rename, and copy sessions.
- Edit user or assistant messages safely: saves fork into a new session; the original survives.
- Supercompact a session into a new Claude Code continuation.
- Export to Markdown, JSON, Codex CLI, or Gemini CLI.
- Continue in-app through
claude -p --resumewhen you want one more turn without opening a terminal. - Protect transcripts with continuous backup plus an optional LaunchAgent daemon.
- Let Claude Code control the app through an optional localhost MCP server.
- Look good doing it: themes, ambient background, iMessage-style view, context metrics, configurable Dock icon.
Claude Code keeps an auto-memory directory per project, at
~/.claude/projects/<git-root>/memory/. It writes one markdown file per
lesson it learns from you, and one MEMORY.md index. Nothing in Claude Code
shows you that pile, so the app has a Memory tab, in the titlebar beside
Conversations and Settings (⌘1 / ⌘2 / ⌘3). Each tab owns the whole
window: its own sidebar, its own detail pane.
- One list of every memory on the machine, or one project at a time. Sort by name, type, project, or age; filter by text or by type.
- Select several the way you select anything on a Mac: click, shift-click,
Cmd-click,
⌘A. Then disable, enable, pin, unpin, retype, copy, or delete the whole selection at once. - Disable parks the file in a
memory-disabledfolder beside the memory directory and puts its index line aside. Claude stops seeing it; nothing is deleted, and switching it back on restores the file and the line it had. This matters: taking a memory out ofMEMORY.mddoes not switch it off, because Claude Code finds memories by scanning the folder. - Pin writes
metadata.pinned: true, which injects that memory in full into every session. Only four pins count, and the app says so when you go over. - Edit a memory's title, description, type, or body. Frontmatter is patched line by line, so keys the app does not know about survive, and a file with no frontmatter never grows one.
- The
MEMORY.mdbutton carries a budget meter. Claude reads the first 200 lines or 25000 bytes of that file at the start of every session and silently drops the rest, so the meter turns amber at 70% and red at the limit. The editor behind it also lists index links pointing at deleted files, and memories the index never mentions, with one click to fix either. - Open the session that wrote this jumps from a memory to the
conversation it came from, through
metadata.originSessionId. - The gear opens the real Claude Code settings behind memory:
autoMemoryEnabled,autoDreamEnabled(background consolidation, which lets Claude rewriteMEMORY.mdon its own), andautoMemoryDirectory.
Deletes go to the Trash. Edits are written atomically, and settings.json is
copied to settings.json.claudesessions-backup before any change.
Reading a conversation, and the memory workspace with one memory open.
The MEMORY.md index, with the budget Claude actually reads.
Download the latest DMG from Releases, drag the app to Applications, run it.
Current builds are ad-hoc signed, not notarized. If macOS objects, right-click the app and choose Open.
git clone https://github.com/SignedAdam/ClaudeSessions.git
cd ClaudeSessions
swift run ClaudeSessions
For bugs, ideas, and pull requests, see CONTRIBUTING.md.
The same binary is a headless CLI, so a conversation can supercompact itself without the app running:
make install # the app, plus `claudesessions` on your PATH
claudesessions list --current # the active session for this directory
claudesessions search "context window" # find the thread, across conversations
claudesessions grep --current "tool_use" # find the message, within one
claudesessions show --current --last 6 # read the tail
claudesessions open --current # put it on screen in the app
claudesessions supercompact --current --tools # fork the dialogue into a new session
claudesessions supercompact --current --in-place # ...or rewrite this one, same id
claudesessions supercompact --current --preview # what it would cost, writing nothing
claudesessions move --current ../NewIdea # rehome it in another project
claudesessions count-tokens --file notes.md # exact with ANTHROPIC_API_KEY, else ≈
make install puts the app in /Applications and links claudesessions in
/usr/local/bin to the binary inside it, so the command and the app are always
the same build.
Every verb except open works on files with the app closed. open is the one
that needs a window, and it starts the app if there isn't one.
supercompact forks by default, leaving the source untouched. --in-place
rewrites the session instead, keeping its id, and saves a full copy first. Tool
results are dropped; --tools keeps the call and its parameters as text:
You used tool Bash(command: swift build 2>&1 | tail -5, description: Build the package)
Dialogue only is cheap, and it also throws away the state the session was
standing in. Three options hold a slice back whole, tool output and screenshots
included: --keep-last N for the last N messages, --keep-tools N for the
newest N calls wherever they sit, and --unique-tools so a repeated call counts
once (forty screenshots of one page cost one slot, not forty).
--preview prices it without writing anything. With --json it also returns a
price list — base, tools, and a ladder for each keep option — so a menu can
add up any combination on its own instead of asking again on every click.
Every supercompact writes the new size onto the last assistant message, which is where Claude Code, the context badge and the warning hook all read from. It is a token estimate, and the JSON says so.
edit reshapes the tail and forks the result, for pulling a bad turn out of a
conversation before resuming it:
echo '{"edits":[{"uuid":"a17b9e44","text":"<replacement>"}],
"deletes":["3f9a1c20"]}' | claudesessions edit --current --open
It rewrites user and assistant text only — deleting a tool entry would orphan its
pair — and it scrubs the metadata records (last-prompt and friends) that would
otherwise keep a copy of the text you just removed.
move is for the idea that started in the wrong repo: it copies the session into
another project with its cwd rewritten, so claude --resume works from there.
Everything is preserved — tools, results, timestamps, the parent chain — and the
original stays put. A target directory that doesn't exist yet is created, which is
usually the point.
claudesessions move --current --suggest # parent dir + the projects beside it
claudesessions move --current ../NewIdea --open
--in-place is the variant that keeps the session id and name: it writes a
full-fidelity copy titled <name> supercompact_copy_<date>_<time> first, then
rewrites the session itself. The current turn is preserved untouched — a live
Claude Code session appends to its own transcript, so the entries it knows about
have to keep existing. The saving lands when the session is next resumed, not in
the window you're typing in.
Claude Sessions can't restart your session — whatever owns your pane does, and
that is never this app. So --relaunch runs one executable, detached, and stops
there:
make install-relauncher RELAUNCHER=herdr # or tmux, or new-window
claudesessions supercompact --current --in-place --relaunch
It calls ~/.claude-sessions-app/relaunch with CS_SESSION_ID,
CS_PROJECT_CWD, CS_BACKUP_SESSION_ID and CS_RESUME_COMMAND, and knows
nothing else about your setup. Adapters for herdr, tmux and a plain new window
ship in agent/relaunchers/ — copy one, or write your own.
Without a script it just prints the resume command.
Claude has no running token counter — it can't feel a session getting long.
claudesessions hooks install --thresholds 140000,600000
That installs a UserPromptSubmit hook that reads real usage from the transcript
(input + cache_read + cache_creation, the same arithmetic as the context badge)
and, at each threshold, asks Claude to offer you a supercompact. It fires once per
threshold per session, and it never compacts anything on its own. 140k is roughly
where models start to degrade; the second tier catches a genuinely huge session.
The first-launch wizard offers to set this up.
make install-agent installs /supercompact, /supercompact-self and
/move-to-project into ~/.claude/, so Claude Code can do all of it from inside
the conversation.
- Local-first. Reads Claude Code files from
~/.claude/projects/. - No database. No cloud service. No telemetry.
- OpenRouter is optional and only used for AI search if you add a key.
- MCP is disabled by default and binds to
127.0.0.1only. - Destructive actions use Archive or macOS Trash where possible.
- Edits fork. They do not overwrite your original session.
- macOS 14+
- Xcode command line tools / Swift 5.9+
- Claude Code CLI for resume, clean continuation, and embedded chat features
Stage 2 of this app — 10 phases of features across backup, MCP, version history, multi-root scanning, subagent indexing — was built across 78 autonomous Claude Code cycles using a roadmap-driven loop technique.
The roadmap that drove it: docs/STAGE_2_ROADMAP.md.
The full cycle diary: docs/cycles/.
The technique extracted: claude-loop — the /loop prompt, the roadmap schema, and the operational discipline, packaged so it's reusable for any project.
MIT. See LICENSE.



