README
¶
ccs
Browse Claude Code sessions in the terminal, grouped by project. Search the text of all of them, see which running ones are waiting for you, preview how a conversation ended, then read it the way Claude Code shows it, resume it, open it in VS Code as markdown, or delete it.

Install
A prebuilt binary for macOS or Linux (Intel and ARM), no Go needed:
os=$(uname -s | tr A-Z a-z); arch=$(uname -m | sed 's/x86_64/amd64/; s/aarch64/arm64/')
curl -fsSL "https://github.com/vedran-nikolic/ccs/releases/latest/download/ccs_${os}_${arch}.tar.gz" | tar -xz
sudo mv "ccs_${os}_${arch}/ccs" /usr/local/bin/
Or with Go 1.27.4 or newer:
go install github.com/vedran-nikolic/ccs@latest
The macOS binaries are not signed. Downloaded with curl as above they run
as they are; one downloaded with a browser is blocked by Gatekeeper until you
run xattr -d com.apple.quarantine ccs.
Optional: VS Code's code on PATH for o, and claude on PATH for c.
Sessions are read in less, which macOS and Linux come with.
On Windows, ccs runs under WSL2: install the Linux binary inside WSL with the
commands above. Claude Code must be installed in WSL as well, not on Windows.
ccs reads the sessions in WSL's ~/.claude, and c resumes them with the
claude in WSL. Sessions from Claude Code on Windows are in a different
.claude folder and do not appear.
Use
ccs # inside a project dir: opens on its sessions
ccs -a # always start at the project list
ccs -preview=right # preview beside the list; also bottom, off, auto (default)
ccs -preview-style=text # preview a session as text; claude is the default
ccs -v # print the version
"Inside a project dir" means the exact directory Claude Code was started in. A subdirectory starts at the project list.
The lists stay current on their own: every two seconds ccs checks for sessions started, renamed, closed or removed in other terminals. The cursor stays on the session it was on, and a filter stays applied.
Keys
| Key | Projects | Sessions and search results |
|---|---|---|
| ↑ ↓ / j k | move | move |
| PgUp PgDn / b f | page | page |
| Home End / g G | first, last | first, last |
/ |
fuzzy filter by path | fuzzy filter by title, first prompt or id |
| Enter / → / l | open the project | read it in less, drawn as Claude Code shows it; from a search, at the mention |
v |
the same, with tool output and Claude's thinking in full | |
s |
search the text of all sessions | search the text of all sessions |
| Tab | scroll the preview: the keys go to it until Tab again | |
m |
preview as Claude Code shows the session, or as text | |
p |
show or hide the preview | show or hide the preview |
P |
move the preview: beside the list or under it | the same |
c |
resume in Claude Code (claude --resume <id>, in the session's directory) |
|
o |
write $TMPDIR/<id>.md and open it in VS Code |
|
t |
add [OPEN] to the end of the title, or take it off |
|
n |
rename: edit the title on the bottom line | |
D / d / Delete |
delete, after a y/N prompt | |
| ← / h / Backspace / Esc | Esc clears a filter | back (Esc clears a filter first) |
r |
reread everything | reread everything |
? |
all keys | all keys |
q / Ctrl+C |
quit | quit |
? lists the keys that work where you are; the bottom of the window always
shows the most used ones.
While a / filter is being typed, every key goes into it: Enter keeps the
filter and goes back to the list, Esc drops it. In the search prompt that
s opens, Enter searches, Esc cancels, Backspace deletes a character, Ctrl+U
clears the line, Ctrl+P and Ctrl+T set what is searched (see
Search), and pasted text goes in as one line.
At the rename prompt that n opens, the current title is already typed in:
Enter renames, Esc cancels, Backspace deletes a character, Ctrl+W a word and
Ctrl+U the whole line.
At the delete prompt, y deletes and any other key keeps the session.
Results and errors (deleted 0c9b7e24 (3 paths), opened … in VS Code,
kept, searched 212 sessions in 38 ms) show on the bottom line.
Search
/ narrows the list you are looking at by title. s looks through what was
said: type some text and ccs lists every session, in any project, where you or
Claude wrote it, ignoring case. Each result shows how many messages mention it
and the text around the first one. Enter opens the conversation at that
mention, and c, o and D work as in a session list. Esc goes back.
Two keys in the search prompt change what it looks through, and the prompt says what that is:
- Ctrl+P: only the project you are in, or the one under the cursor on the project list. Again for every project.
- Ctrl+T: tool calls and their output too, such as the commands Claude ran and what they printed, for "which session ran that migration?". A result found there is marked Tool, and Enter opens the full view, so the match is not cut from the output.
Both stay as you set them for the next search. The results' title says when they were limited to a project or took in tool output.
Open sessions and renaming
Mark the sessions you left unfinished with t: it adds [OPEN] to the end of
the title, and t again takes it off. A session without a title gets one
from its first prompt. /[open] then lists only the open ones.
n renames a session to anything you type.
Both rename the way /rename in Claude Code does: they add a custom-title
record to the transcript, which is where Claude Code takes the title from when
the session is resumed, and update <uuid>/custom-title.json to match. The
transcript keeps its modification time, so a renamed session stays where it
was in the list.
A session open in a running Claude Code cannot be renamed from ccs, since that
process writes its own title back into the transcript. Use /rename there.
Taking the tag off a session that only had an AI title leaves a rename equal
to that title. ccs shows it as the plain AI title again; Claude Code's own
/resume list counts it as renamed.
Preview
The preview pane shows what is under the cursor: a project's latest sessions, the last messages of a session, or the message a search found.
It goes where the window has room for it. From 150 columns up it stands beside
the list and runs the full height; in a narrower window it lies under the list
and takes two fifths of the height. P moves it to the other side and keeps it
there, and -preview=right or -preview=bottom starts that way.
A session is drawn the way Claude Code shows it, as in the full view (see Reading a session): the end of the conversation, with its last tool calls. From a search, the pane opens at the message that mentions the text, with the mentions marked. Only the end of a long transcript is read for this, and each drawing is kept until the session changes, so moving through the list stays quick.
m switches to the text style and back: what you and Claude wrote under
You and Claude, without tool calls, filled from the newest message
back. There each message gets up to a third of the pane, and the oldest one
shown takes whatever room is left. The text style fits more of the
conversation into a short pane. -preview-style=text starts with it. The
pane's top line names the other style next to m, and when the preview has
the keys, m keeps the message you are reading on top.
Tab gives the preview the keys, to read the selected session in it. The pane
then holds the whole conversation, every message in full, starting at the end
(from a search, at the first message that mentions it). ↑ ↓ or j k scroll a
line, PgUp PgDn or b f a page, g G go to the start or the end, and the mouse
wheel scrolls it too, as terminals send it as arrow keys. Its top line turns
magenta and says how far down you are, the list's cursor greys out, and the
key hints under the list become the preview's. Enter
opens the full view at the message on top of the pane, v the same in full,
and c, o, t, n and D work as from the list. Tab, Esc or ← give the
keys back. At the end, new messages from a running session scroll in.
p hides and shows it, and -preview=off (or -no-preview) starts without
it. A window too small goes without: under 20 lines for the pane below, under
80 columns or 8 lines for the pane beside. A side picked with P or
-preview is kept even then: the pane comes back when the window grows,
instead of moving to the other side. Pressing p or P while there is no
room says so on the bottom line.
What it reads
Sessions are ~/.claude/projects/<project>/<uuid>.jsonl (or under
$CLAUDE_CONFIG_DIR). Projects are sorted by their newest session, and sessions
newest first. Projects with no transcripts are hidden.
Dates follow your region: 14.11.2026 15:04 in Croatia, 11/14/2026 03:04 PM
in the US, ISO 2026-11-14 15:04 where the region is unknown. The region comes
from LC_ALL, then LC_TIME, then on macOS the region in System Settings,
then LANG.
A project row shows the number of sessions, the last modified time and the working directory. A session row shows the full id, last modified time, file size and title:
✎ yellow: renamed with/rename,torn(the lastcustom-titlerecord wins; one equal to the AI title is shown as the AI title)- plain: the AI-generated title (
ai-titlerecord) - dimmed: neither, so the first prompt is shown instead
∅ empty: nothing was said in it, no prompt and no reply, only commands such as/mcp, or a session opened and left. These are the ones to clear out withD, and/(empty)lists only them.
A ● marks a session a running Claude Code process has open, and a project
containing one. Its colour says what that process is doing:
- green: idle, so it is your turn
- yellow: busy working
- magenta: waiting on a prompt, such as a permission request
The preview's top line says the same in words. This comes from
~/.claude/sessions/<pid>.json, with the pid checked for liveness. c, D, t
and n all refuse a running session.
For any session, the preview's top line also says what it took: the model of
its latest reply, the tokens of all replies (input, cache reads and writes
included, and output) and how long Claude worked, the sum of its turns. For
example Opus 5.5 · 33.3M in · 95.3k out · worked 1h 3m.
c hands the terminal to Claude Code; ccs is back when you exit it.
The markdown that o writes has a heading per message with user and
assistant text only, prompts typed while Claude was working included. Tool
calls, tool results and meta records are left out.
Reading a session
Enter shows a session the way Claude Code draws it: > before what you typed,
⏺ before what Claude said, Claude's text rendered as markdown, and each tool
call under its own ⏺ with a short result beneath ⎿: a few lines of
command output, Read 120 lines, or the diff of an edit with line numbers.
Diffs look as they do in VS Code and Claude Code: the code keeps its syntax
colours, removed and added lines are shaded red and green, and where an added
line replaces a similar removed one, the words that changed get a stronger
shade. A new file shows its first lines in colour too.
The dot is green when the call worked and red when it failed or you refused it.
Slash commands, ! commands, background tasks finishing, interruptions and
the time each turn took show up as they do in Claude Code.
Long tool output is cut to its first lines, with … +N lines for the rest.
v opens the same view with nothing cut: every line of tool output, Claude's
thinking where the transcript kept it (mostly it keeps only a signature), and
the summary a compaction left. This is what ctrl+o shows in Claude Code.
v also shows what each subagent did. Under an Agent call, or a skill that
ran in a subagent of its own, comes the subagent's own conversation behind a
bar: the prompt it was given, its tool calls and its answer. Claude Code keeps
these beside the session, in <uuid>/subagents/. Without v the call shows
only its Done (…) line.
The colours follow your terminal: shading for a dark or a light background,
and fewer colours, or none with NO_COLOR, where the terminal has fewer. The
page is laid out for the window's width when you open it.
The transcript format is Claude Code's own and not documented, so this follows what it writes today. A tool ccs has no summary for, such as an MCP tool, is shown with its arguments and the first lines of what it returned.
What D deletes
- the transcript
<uuid>.jsonl - its sibling folder
<uuid>/(tool results, subagent transcripts, title) ~/.claude/file-history/<uuid>and~/.claude/session-env/<uuid>
It refuses running sessions, checking again at the moment you confirm, and
never touches the project folder, so memory/ survives even when the last
session goes. The project then drops out of the list. Prompts typed in the session stay in ~/.claude/history.jsonl
(the prompt history).
Tests
go test ./... builds a fake ~/.claude in a temp dir, checks scanning, title
precedence, markdown, the Claude Code view of a session (each kind of record,
the cut and full views, where a search opens), search and date formats, then
drives the UI through
filter, cancel, delete, the running-session guard, the background refresh,
search, and the preview, including which side it takes at each window size.
Pushing a v* tag builds the release archives (.github/workflows/release.yml).
Demo
demo/demo.gif is rendered from demo/demo.cast (play it with
asciinema play demo/demo.cast). Every project and session in it is invented.
To re-record after a UI change:
brew install asciinema agg
demo/record.sh
record.sh builds ccs, writes a fake config dir with demo/fixture.py (one
session marked as running), and records demo/drive.py typing keys into ccs in
a pty.
Licence
Copyright © 2026 Proxi projekt d.o.o.
GPL-3.0 only, see LICENSE. You may use, change and share ccs, also commercially. If you distribute it or anything built from it, you must keep the copyright notice and release your source under the same licence.
Bug reports and ideas are welcome as issues. Pull requests are not accepted at this time.