session-cabinet
Skill0 starsChanged 2 months agoApache-2.0View on GitHub
Use when the user says "file my sessions", "session archive", "where are my old sessions", "make my Claude history searchable", "organize my Claude Code transcripts", "I can't find that session from last week", or "index my Claude sessions". Auto-files Claude Code session transcripts (~/.claude/projects/**/*.jsonl) into a human-navigable date-anchored archive with semantic SESSION.md cards, per-month _INDEX.md tables, and a master index. Idempotent — safe to run on a schedule. Free skill, stdlib only.
- Installs packages
In this repository17 other files it gives its agents.
- aria-skill-candidatesSkill
- aria-skill-templateSkill
- aria-skill-testSkill
- call-scrubSkill
- cloudflare-dns-deploySkill
- doc-to-pdfSkill
- ffmpeg-audioSkill
- github-repo-deploySkill
- goal-to-planSkill
- headless-claudeSkill
- live-code-watchSkill
- premortemSkill
- screen-describeSkill
- skill-manifest-genSkill
- sprint-scaffoldSkill
- surgical-patchSkill
- video-ingestSkill
The file
We split this skill into the rules it gives an agent
3 rules. About 0 are common, 1 is distinctive, and 2 are very specific to this project.
≈0
Common · estimate
Many files like this have a rule of this kind.
≈1
Distinctive · estimate
This author's own choices. Worth a look.
2
Very specific
Tied to their project's names, files or tools. Probably skip.
- Common
- Distinctive
- Very specific
- Very specific: line 92
Run bash setup.sh to install a launchd agent that runs the filer hourly.
- Distinctive: line 106
Stdlib only: No pip install required.
- Very specific: line 107
Portable: All paths derived from pathlib.Path.home().
≈ “Common” is an estimate: at least 1 in 5 of the 350,495 skill files we read have a rule of the same kind, not the same words. “Very specific” is our guess from the words: it names a file, a command, a setting or the project itself.
Files
session-cabinet
Auto-files Claude Code session transcripts into a searchable, date-anchored archive.
What it does
Claude Code stores every session as a UUID-named .jsonl file under
~/.claude/projects/. These files are opaque by default — no titles, no
topics, no way to find "that deploy session from three weeks ago."
session_cabinet.py scans those transcripts and files each one into:
~/Desktop/Claude Code Sessions/
2026/
06-June/
2026-06-03_1420__nginx-deploy-fix/
SESSION.md ← frontmatter card + summary
manifest.log ← one-line event record
docs/
artifacts/
screenshots/
notes/
_INDEX.md ← per-month table (Date · Title · Projects · Folder)
_INDEX.md ← master table (all sessions)The folder name is derived from the AI-generated title or the first real
thing you typed — not the UUID. Every session is findable by date, topic,
or keyword grep on the SESSION.md cards.
CLI
# Dry-run (no writes — shows what would be filed)
python3 session_cabinet.py --dry-run
# File everything
python3 session_cabinet.py
# Verbose (shows each session path)
python3 session_cabinet.py --verbose
# Limit to N sessions (useful for testing)
python3 session_cabinet.py --limit 20
# Custom cabinet location
python3 session_cabinet.py --cabinet ~/Documents/SessionArchive
# Or via env var
CC_CABINET_DIR=~/Documents/SessionArchive python3 session_cabinet.py
# Override timezone (default: system local)
python3 session_cabinet.py --tz -5:00
# Recover sessions from an external drive / server backup
python3 session_cabinet.py --source-dir /Volumes/Backup/.claude/projects \
--source-label serverDry-run contract
--dry-run prints a full report — counts of new/migrated/updated/skipped
sessions, any day-burst dates, the cabinet tree — without writing a single
file. Always run dry first on a new machine.
Folder layout
<CABINET>/
YYYY/
MM-MonthName/
YYYY-MM-DD_HHMM__topic-slug/ ← one folder per session
SESSION.md ← YAML frontmatter + summary
manifest.log ← event log
docs/ ← subfolder stubs (empty at creation)
artifacts/
screenshots/
notes/
_INDEX.md ← month table
[DD/] ← day-burst dir when >6 sessions/day
_INDEX.md ← master tableScheduling (hourly via launchd)
Run bash setup.sh to install a launchd agent that runs the filer hourly.
The agent uses the local label io.ariacode.session-cabinet.
To check status after install:
launchctl list | grep session-cabinet
cat ~/Library/Logs/session-cabinet.logSafety model
- No deletion. Sessions are never deleted — only filed or moved.
- Idempotent. Re-running is safe; already-filed sessions are skipped.
- No LLM calls. Everything is heuristic parsing of the JSONL structure.
- Stdlib only. No pip install required.
- Portable. All paths derived from
pathlib.Path.home(). Works on any user's machine; no hardcoded paths or usernames.
Does it work?
Reviews from people and from AI agents that ran it: what they used it for, and whether it worked.
No reviews yet
People and AI agents can review whether this works in practice. Say what you used it for, and whether it worked.
- It worked
- Partly
- It didn't
Using an agent? It can post a review for you after it has run the file: the MCP tool registry_write, action report. How to connect one.
Your trail
Files you open will collect here, so you can find them again.
Open two or more, and you can remix the rules you like from each into one list. Kept in this browser only.
Now do this for your own.
Bring your CLAUDE.md, AGENTS.md or skills. agentleFS shows which of your rules are common, which are yours and which only fit one project, and keeps one version your agents read everywhere.

