Claude Code session

Claude Code Cleaner

Interactive TUI tool to clean up disk space accumulated by Claude Code (~/.claude/) — reclaim GBs from orphaned project caches, old session data, debug logs, telemetry, and stale config entries.

49 stars 6 forksSessions & history Source

Install

Install
cargo install claude-code-cleaner

Found in the project README. Check it for setup steps after installing.

From source
git clone https://github.com/GarrickZ2/claude-code-cleaner.git

From the README

Claude Code Cleaner

A terminal UI (TUI) tool for interactively cleaning up the ~/.claude/ directory. Inspired by CleanMyMac, it provides a visual, guided workflow to reclaim disk space from accumulated Claude Code data.

After extended use, ~/.claude/ can grow to 1.8 GB+ across 10,000+ files — old session data, debug logs, telemetry, orphaned project caches, and more. This tool helps you see exactly what's there, choose what to clean, and safely reclaim space.

Screenshots

Features

- 5-screen guided workflow: Scan → Select → Projects → Preview → Clean
- Smart scanning: Detects all cleanable data categories with per-file age tracking
- Orphan project detection: Identifies project caches where the original project path no longer exists
- Expiry-based filtering: Only clean files older than a configurable threshold (default: 30 days)
- Surgical ~/.claude.json cleanup: Remove orphan project entries, session metrics, and stale caches from the config file without deleting it
- 3-segment preview bar: Visualize what will be cleaned (green), what's matchable but unselected (yellow), and what's kept (red)
- Progress bar: Real-time progress tracking during cleaning with per-category breakdown
- Persistent preferences: Your selections and settings are saved and restored between sessions
- Dry run mode: Preview exactly what would be deleted without touching any files
- Protected paths: settings.json, CLAUDE.md, skills/, commands/, agents/, ide/, and credentials.json are never cleaned

Cleanable Categories

Installation

Quick install (Linux / macOS)

Or install a specific version:

Custom install directory:

Via cargo

From GitHub Releases

Download the latest binary for your platform from Releases, extract, and place it in your $PATH.

From source

The binary will be at…
Read the full README on GitHub

Details

Language
Rust
License
MIT
Last updated
11 May 2026

FAQ

What is Claude Code Cleaner?

Interactive TUI tool to clean up disk space accumulated by Claude Code (~/.claude/) — reclaim GBs from orphaned project caches, old session data, debug logs, telemetry, and stale config entries. It is a session for Claude Code, from GarrickZ2/claude-code-cleaner on GitHub.

How do I install Claude Code Cleaner?

Run cargo install claude-code-cleaner, then follow the setup in the README.

Is Claude Code Cleaner popular?

GarrickZ2/claude-code-cleaner has 49 GitHub stars and 6 forks. It was last updated on 11 May 2026.

More sessions & history

Browse the most popular Claude Code mods, all sessions & history, or the skills and MCP server directories.