{"id":45261664,"url":"https://github.com/skydiver/claude-code-archiver","last_synced_at":"2026-02-21T00:27:56.123Z","repository":{"id":332568742,"uuid":"1134230205","full_name":"skydiver/claude-code-archiver","owner":"skydiver","description":"A TUI app to archive old Claude Code conversations and free up disk space","archived":false,"fork":false,"pushed_at":"2026-01-14T13:00:50.000Z","size":418,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":0,"default_branch":"master","last_synced_at":"2026-01-14T16:54:33.905Z","etag":null,"topics":["archiver","claude","claude-code","cleanup","cli","session-manager","terminal","tui"],"latest_commit_sha":null,"homepage":"","language":"JavaScript","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"mit","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/skydiver.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null,"zenodo":null,"notice":null,"maintainers":null,"copyright":null,"agents":null,"dco":null,"cla":null}},"created_at":"2026-01-14T12:39:44.000Z","updated_at":"2026-01-14T13:00:54.000Z","dependencies_parsed_at":null,"dependency_job_id":null,"html_url":"https://github.com/skydiver/claude-code-archiver","commit_stats":null,"previous_names":["skydiver/claude-code-archiver"],"tags_count":null,"template":false,"template_full_name":null,"purl":"pkg:github/skydiver/claude-code-archiver","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/skydiver%2Fclaude-code-archiver","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/skydiver%2Fclaude-code-archiver/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/skydiver%2Fclaude-code-archiver/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/skydiver%2Fclaude-code-archiver/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/skydiver","download_url":"https://codeload.github.com/skydiver/claude-code-archiver/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/skydiver%2Fclaude-code-archiver/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":29668685,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-02-21T00:11:43.526Z","status":"ssl_error","status_checked_at":"2026-02-20T23:52:33.807Z","response_time":59,"last_error":"SSL_connect returned=1 errno=0 peeraddr=140.82.121.5:443 state=error: unexpected eof while reading","robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":false,"can_crawl_api":true,"host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":["archiver","claude","claude-code","cleanup","cli","session-manager","terminal","tui"],"created_at":"2026-02-21T00:27:53.669Z","updated_at":"2026-02-21T00:27:56.112Z","avatar_url":"https://github.com/skydiver.png","language":"JavaScript","funding_links":[],"categories":[],"sub_categories":[],"readme":"# Claude Code Archiver\n\nA terminal app to clean up old Claude Code conversations and free up disk space.\n\n---\n\n## The Problem\n\n[Claude Code](https://claude.ai/code) stores every conversation in `~/.claude/projects/` as `.jsonl` files. Over time, these pile up and can take gigabytes of space — especially if you use Claude Code daily.\n\n**But not all conversations are worth keeping.** Quick questions, abandoned experiments, and one-off debugging sessions clutter your history.\n\n## The Solution\n\nClaude Code Archiver helps you:\n\n- **Find** conversations by criteria (unnamed, by title pattern, etc.)\n- **Preview** exactly what will be archived with expandable file details\n- **Archive** sessions by moving them to a `.archived/` folder\n- **Restore easily** — just move files back if needed\n\nNamed conversations are **never touched** unless you explicitly search for them by title.\n\n---\n\n## Usage\n\nRun directly without installing:\n\n```bash\nnpx github:skydiver/claude-code-archiver\n```\n\nPreview mode (no files moved):\n\n```bash\nnpx github:skydiver/claude-code-archiver --dry-run\n```\n\n---\n\n## How It Works\n\n1. **Select a project** — Choose which Claude Code project to scan\n2. **Pick archive criteria** — Unnamed sessions or search by title\n3. **Review sessions** — Expandable preview shows all files to be moved\n4. **Confirm** — Double-press Enter to archive\n5. **Done** — Files moved to `.archived/` folder for easy restore\n\n---\n\n## Features\n\n- **Interactive TUI** — Navigate with arrow keys, type to filter\n- **Safe by default** — Preview everything, double-Enter to confirm\n- **Non-destructive** — Files are moved, not deleted\n- **Search by title** — Find sessions by custom title pattern (e.g., \"TO_DELETE\")\n- **Comprehensive** — Archives session files, companion folders, and agent sidechains\n\n---\n\n## Archive Types\n\n| Type              | Description                          | Status    |\n| ----------------- | ------------------------------------ | --------- |\n| Unnamed sessions  | Conversations without a custom title | Available |\n| Search by title   | Match sessions by title pattern      | Available |\n| Older than N days | Archive by age                       | Planned   |\n| By size           | Archive large/small sessions         | Planned   |\n\n---\n\n## CLI Flags\n\n| Flag        | Description                            |\n| ----------- | -------------------------------------- |\n| `--dry-run` | Preview mode — no files will be moved  |\n| `--dev`     | Development mode — for testing the app |\n\n---\n\n## What Gets Archived\n\nFor each session, the archiver moves:\n\n1. **Session file** — `{session-id}.jsonl`\n2. **Companion folder** — `{session-id}/` (attachments, if exists)\n3. **Agent files** — `agent-*.jsonl` files linked to the session\n\nAll files go to `.archived/` within the project folder.\n\n---\n\n## FAQ\n\n**Will this delete my important conversations?**\nNo. Files are moved to `.archived/`, not deleted. Named sessions are only touched if you explicitly search for them by title.\n\n**Can I restore archived sessions?**\nYes. Just move files from `.archived/` back to the parent folder.\n\n**Where does Claude Code store conversations?**\nIn `~/.claude/projects/`. Each project has its own folder with `.jsonl` session files.\n\n**What are agent files?**\nSidechain conversations (like background tasks) that Claude Code creates. They're linked to a parent session and archived together.\n\n---\n\n## Requirements\n\n- Node.js 22+\n- Claude Code installed (with existing conversations)\n\n---\n\n## License\n\n[MIT](./LICENSE) © [Martín M.](https://github.com/skydiver/)\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fskydiver%2Fclaude-code-archiver","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fskydiver%2Fclaude-code-archiver","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fskydiver%2Fclaude-code-archiver/lists"}