Cc Clean — Development skill for Claude Code
Feel free to clean up the Claude Code and Codex session storage that you no longer need.
How to install Cc Clean
This entry records only its repository, not the path inside it, so there is no
exact command to give. Open moonrailgun/cc-clean and copy the folder into
~/.claude/skills/, or the file into ~/.claude/agents/.
What Cc Clean does
Feel free to clean up the Claude Code and Codex session storage that you no longer need.
Alternatives in Development
- System Cache Cleanup — Clean temporary files and caches to free disk space: $ARGUMENTS 23.4k ★
- Native Feel Skill — An Agent Skill for designing cross-platform desktop apps that feel native — distilled from Raycast's 2.0 deep 1.9k ★
- InspireSkill — InspireSkill: Local agent cockpit for the Inspire compute platform, unifying a composable CLI, Agent Skill, an 577 ★
README
cc-clean
Free up disk space used by Claude Code and Codex.
npx cc-clean@latest
Requires **Node.js 24+**. Cleanup currently supports **macOS**; other platforms support analysis only.
Choose **Clean → Quick clean**, review the estimated savings, then press **Enter** to confirm.
| Claude Code | Codex |
|---|---|
![]() |
![]() |
Real Quick clean previews; your savings depend on your own history.
What gets cleaned
- Temporary files — old task outputs, logs, working-directory records and leftover installers in recognized locations.
- Conversation history — remove embedded images and shorten supported shell outputs while keeping chat text and recorded token/cost usage.
- Claude Code extras — remove API request archives and compact successful hooks, saved tool definitions and skill listings.
- Codex extras — slim plain or zstd history up to 512 MiB stored and decoded, including encrypted reasoning and older compaction snapshots; remove duplicate history originals when an identical compressed copy exists.
- Generated PNGs — losslessly compress supported Codex images.
Use **Clean temporary files** or **Slim history** to choose a narrower cleanup. **Analyze** shows storage and usage; **Statistics** shows past cleanup savings.
Before you clean
Quick clean only makes irreversible changes to files last modified **more than 72 hours ago**. Open sessions and files that cannot be safely verified are skipped.
Removed content cannot be recovered. History slimming can change the context available when resuming a conversation. Review the [compatibility limits](docs/native-compatibility.md) if you rely on restoring older sessions.
See the [full guide](docs/usage.md) for CLI options, agent/JSON usage,
Related Skills
CleanerX
A local-only desktop app to review and safely clean storage created by Codex, Claude Code, OpenCode, and pi.
Media Stack Setup
Self-hosted Real-Debrid streaming media library: zurg+rclone storage-free streaming + arr automation (Decyphar
Rill
Seamless lightweight native RSS app for MacOS & Linux (both x11 and Wayland). Fully free. Yes we have agents,
Claude Session Share
Render Claude Code session transcripts as styled HTML pages and upload to S3-compatible storage
Zlog
Multi-agent session log compressor and storage optimizer for Claude Code, Cursor, Antigravity, Gemini, Ollama,
Harden Auth
Deployment hardening step 2 — review auth/session/authz surfaces. Identifies insecure cookies, broad CORS, mis
Related Agents
Memory Steward
Keeps the memory index clean and honest. Use when the memory folder is growing, the index is getting long, or
Osf Clean Room
Reads a feature inside a temp folder, extracts its behavior and test coverage as a source-free specification,
Insight Miner
Finds sharp, usable consumer insights from reviews, comments, search behaviour, culture and category conventio

