Skip to main content

Terminal UI for managing Claude Code sessions, projects, and data

Project description

Claude

cc-session-utils

Terminal UI for Managing Claude Code Sessions

Python Textual License Platform

Dashboard · Session cleanup · Migration · Backup/Restore — all in your terminal

한국어


Demo

cc-session-utils 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
  • --path option 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: Space to check/uncheck, Enter to 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

🔒 Safety

  • Symlink rejection — refuses to operate on symbolic links
  • Path validationis_relative_to allowlist blocks outside ~/.claude
  • Thread-safe trash log~/.cc-tui/trash-log.jsonl
  • Safe deletion — everything via send2trash, no permanent deletes
  • Atomic config writes — tempfile + os.replace

Install

pip install cc-session-utils
Other methods
# 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
F1F6 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

MIT


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

cc_session_utils-0.1.0.tar.gz (90.1 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

cc_session_utils-0.1.0-py3-none-any.whl (50.0 kB view details)

Uploaded Python 3

File details

Details for the file cc_session_utils-0.1.0.tar.gz.

File metadata

  • Download URL: cc_session_utils-0.1.0.tar.gz
  • Upload date:
  • Size: 90.1 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.2.0 CPython/3.13.2

File hashes

Hashes for cc_session_utils-0.1.0.tar.gz
Algorithm Hash digest
SHA256 ad426a024f1c041c2ba6202f21cdbe452ed73a3916644dd02aff1a75cc489d80
MD5 57b02061b9a56b67ac705cde6ae5993f
BLAKE2b-256 ee20f8a1844c0a94672440ab0e92bb2931b24171704ce864af82998b1af97be5

See more details on using hashes here.

File details

Details for the file cc_session_utils-0.1.0-py3-none-any.whl.

File metadata

File hashes

Hashes for cc_session_utils-0.1.0-py3-none-any.whl
Algorithm Hash digest
SHA256 b723aa26ffe734c93ec3699d65cd9bcfe9f0b615f18ad6584ace429d7a48d602
MD5 31b714fe421f301811a5ffe683333a32
BLAKE2b-256 365a6d5b4196d5f618c279f99ea91bf0529e08cdcbe2ee7d4c48a495d489e8ad

See more details on using hashes here.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page