moonrailgun

Cc Clean — Development skill for Claude Code

Development community

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
Quick clean preview for Claude Code: 916.35 MiB estimated savings out of 2.75 GiB Quick clean preview for Codex: 5.84 GiB estimated savings out of 30.86 GiB

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,