npm package discovery and stats viewer.

Discover Tips

  • General search

    [free text search, go nuts!]

  • Package details

    pkg:[package-name]

  • User packages

    @[username]

Sponsor

Optimize Toolset

I’ve always been into building performant and accessible sites, but lately I’ve been taking it extremely seriously. So much so that I’ve been building a tool to help me optimize and monitor the sites that I build to make sure that I’m making an attempt to offer the best experience to those who visit them. If you’re into performant, accessible and SEO friendly sites, you might like it too! You can check it out at Optimize Toolset.

About

Hi, 👋, I’m Ryan Hefner  and I built this site for me, and you! The goal of this site was to provide an easy way for me to check the stats on my npm packages, both for prioritizing issues and updates, and to give me a little kick in the pants to keep up on stuff.

As I was building it, I realized that I was actually using the tool to build the tool, and figured I might as well put this out there and hopefully others will find it to be a fast and useful way to search and browse npm packages as I have.

If you’re interested in other things I’m working on, follow me on Twitter or check out the open source projects I’ve been publishing on GitHub.

I am also working on a Twitter bot for this site to tweet the most popular, newest, random packages from npm. Please follow that account now and it will start sending out packages soon–ish.

Open Software & Tools

This site wouldn’t be possible without the immense generosity and tireless efforts from the people who make contributions to the world and share their work via open source initiatives. Thank you 🙏

© 2026 – Pkg Stats / Ryan Hefner

@raoufsenou/claude-session-manager

v0.3.0

Published

Browse, resume, fork, and delete Claude Code CLI sessions, organized by project — a fast terminal UI.

Readme

ccs — Claude Code session manager

A fast terminal UI to browse, resume, fork, rename, and delete your Claude Code CLI sessions — organized by project, with a live preview of each conversation.

Claude Code stores every session on disk, but claude --resume only gives you a flat, unsorted picker with no way to group by project, preview, rename, or delete. ccs fixes that.

Features

  • Grouped by project — pick a project, then a session.
  • Live preview pane — see the most recent messages of the highlighted session.
  • Scrollable, lazy-loaded list — instant startup even with hundreds of large sessions; metadata loads only for what's on screen.
  • Resume with launch options — start a session in plan mode, with --dangerously-skip-permissions, a specific model, extra --add-dirs, etc.
  • Fork a session into a new id (--fork-session) to experiment without touching the original.
  • Rename (writes a new ai-title, exactly like Claude does) and delete (removes the .jsonl plus all satellite files).
  • Works as an interactive TUI or via scriptable subcommands.

Install

# from npm (scoped)
npm install -g @raoufsenou/claude-session-manager

# or with pnpm
pnpm add -g @raoufsenou/claude-session-manager

This installs the ccs command. Requires Node ≥ 20 and the claude CLI on your PATH (for resume/fork).

From source

git clone https://github.com/raoufsenou/claude-session-manager.git
cd claude-session-manager
pnpm install
pnpm build
pnpm link --global   # optional: makes `ccs` available everywhere

Usage

Run with no arguments for the interactive browser:

ccs

Keys (interactive browser)

| Key | Action | |-----|--------| | / | Move (the preview follows the selection) | | | Resume the session | | o | Resume options (permission mode, fork, safe/bare/ide, extra flags) | | f | Fork & resume (new session id, original untouched) | | r | Rename | | i | Details | | d | Delete (with confirmation) | | q | Back to project list | | esc | Quit |

Subcommands

ccs                          # interactive browser
ccs list [--project <s>]     # list projects and sessions
ccs info <id>                # details for a session (id or unique prefix)
ccs preview <id>             # last messages of a session
ccs rename <id> <title>      # set a session's title
ccs resume <id> [-- ...]     # resume; flags after -- forwarded to claude
ccs fork <id> [-- ...]       # resume into a new session id (--fork-session)
ccs delete <id> [--yes]      # delete a session and its files

Anything after -- is forwarded verbatim to claude:

ccs resume 03fc9146 -- --permission-mode plan --add-dir ../shared

Resume options & defaults

The o popup lets you shape how a session boots — the launch-time choices you can't easily make once Claude is running:

  • Permission: default · plan · acceptEdits · dontAsk · bypassPermissions · skip-all (skip-all--dangerously-skip-permissions, the rest → --permission-mode)
  • Fork → new id, Safe mode (--safe-mode), Bare mode (--bare), Connect IDE (--ide)
  • Extra flags: free-text list for anything else (--model, --add-dir, …)

Default options are read from ccs.config.json (shipped with the package, no files are written to your home directory). Edit it to set your preferred defaults — for example, always resume in plan mode:

{ "permission": "plan", "fork": false, "safeMode": false, "bare": false, "ide": false, "extra": [] }

Per-launch tweaks in the o popup override these defaults for that launch only.

Flags that conflict with resuming (-r, -c, --session-id, --from-pr, -p) are stripped automatically with a warning.

How it works

Claude Code stores sessions as newline-delimited JSON at ~/.claude/projects/<encoded-cwd>/<session-id>.jsonl, with satellite data under session-env/, tasks/, and file-history/. ccs reads these directly — discovery uses only stat (instant), and titles/previews read just the head/tail of each file, never the whole thing. Deleting a session removes the .jsonl and all of its satellite files.

License

MIT © raoufsenou