Terminal UI for managing Claude Code sessions, projects, and data
Project description
cc-session-utils
Terminal UI for Managing Claude Code Sessions
Dashboard · Session cleanup · Migration · Backup/Restore — all in your terminal
Demo
Why?
The more you use Claude Code, the more files pile up in ~/.claude — session data, cost logs, debug files, file history snapshots. It becomes hard to track which projects cost how much, or which files are orphaned and safe to clean up.
cc-session-utils gives you a visual dashboard right in your terminal to manage all of it.
Features
📊 Dashboard
- Total cost and per-model (Opus / Sonnet / Haiku) token/cost breakdown
- Daily / weekly / monthly usage table
- Project cost Top 10 bar chart
- Data overview: sessions, file history, debug/todo files, disk usage
📁 Project Management
- Tree view of all projects from
.claude.json - Expand to see sessions, click to preview conversations
- Trash sessions, remove projects from config
- Detect and bulk-clean orphaned sessions
--pathoption to filter to a specific project
📋 File History
- Manage Claude's file version snapshots
- Detect and bulk-clean orphaned entries
🐛 Debug / Todos
- Manage debug logs and todo memos with preview panel
- Bulk-clean empty and orphaned files
🔄 Session Migration
- Copy sessions between projects (originals preserved)
- Per-session selection:
Spaceto check/uncheck,Enterto preview conversation - Append or Overwrite mode
- Path references auto-updated after migration
💾 Backup / Restore
- Config backup (
.claude.json) or full backup (~/.claude) - Auto safety-backup before restore
- Restore failure auto-rollback
Install
# pip
pip install cc-session-utils
# uv
uv tool install cc-session-utils
# From source
git clone https://github.com/Bae-ChangHyun/cc-session-utils.git
cd cc-session-utils
uv sync && uv run cc-tui
Usage
cc-tui # Launch
cc-tui --path /your/project # Filter to project
cc-tui --lang ko # Korean UI
Keyboard Shortcuts
| Key | Action |
|---|---|
F1–F6 |
Switch tabs |
q |
Quit |
r |
Refresh all |
d / D |
Trash selected / all orphaned |
Space |
Toggle selection |
Enter |
Preview conversation (Migrate) |
Data Paths
| Path | Description |
|---|---|
~/.claude.json |
Project list, costs, model usage |
~/.claude/projects/ |
Session JSONL files |
~/.claude/file-history/ |
File version snapshots |
~/.claude/debug/ |
Debug logs |
~/.claude/todos/ |
Todo memos |
~/.cc-tui/backups/ |
Backups |
~/.cc-tui/trash-log.jsonl |
Deletion audit log |
Tech Stack
Python 3.11+ · Textual · Rich · send2trash · claude-agent-sdk
License
Made with Claude Code
Project details
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
Built Distribution
Filter files by name, interpreter, ABI, and platform.
If you're not sure about the file name format, learn more about wheel file names.
Copy a direct link to the current filters
File details
Details for the file cc_session_utils-0.4.0.tar.gz.
File metadata
- Download URL: cc_session_utils-0.4.0.tar.gz
- Upload date:
- Size: 100.1 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/6.2.0 CPython/3.13.2
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
bf899de63fd5d4b791f76f024396335f57487fa33dba82df4750596702f87dfe
|
|
| MD5 |
b13541d3edfae0a94c459bb4e62c04c5
|
|
| BLAKE2b-256 |
bc7902364814a203a4f49da1ca4cea5fc6af8fb489679b935d3a1c892cb060c2
|
File details
Details for the file cc_session_utils-0.4.0-py3-none-any.whl.
File metadata
- Download URL: cc_session_utils-0.4.0-py3-none-any.whl
- Upload date:
- Size: 56.0 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/6.2.0 CPython/3.13.2
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
f80e911bcef639afeb768f654082df82b3f5d6552b2371f1036637329fae59f0
|
|
| MD5 |
18e8af3bac255dde913391935f9dfc2c
|
|
| BLAKE2b-256 |
382662cda42f8e7812bef4ab3d5c368be2bf5e905a06ff7c87ecee4df2d24d75
|