session-history
Skill1 starsChanged 6 months agoMITView on GitHub
Index, summarize, browse, search, and open local Claude Code and Codex JSONL conversation transcripts by project. Use when the user asks for session history, conversation history, transcript lookup, prior Claude/Codex work, a project conversation menu, or a slash-command style way to find past sessions across Claude Code and Codex.
3 other projects use a version of this.
Adopted by
Most recently taken up by
- KeyShiftLDN/ClaudeCodetheir own version, first seen Jun 9, 2026
- psw7205/skillstheir own version, first seen May 26, 2026
- srobinson/nancytheir own version, first seen Feb 2, 2026
Other versions3 projects use a version of this.
Word for word · 0
None found.
Edited · 0
None found.
Wrote their own version · 3
- psw7205/skills★ 1same name
- KeyShiftLDN/ClaudeCode★ 0same name
- srobinson/nancy★ 0same name
How matches are found. Word for word: the exact same text. Edited: shares passages with this file (“99% same” means 99% of its five-word phrases also appear here; 10% or more counts). Their own version: similar meaning, or, weakest, the same name. We can’t tell which project had it first. Projects are counted among the 200 most-starred candidates, and mentions are links to the repository we found, up to 50 per site, so both counts are a floor.
In this repositoryOne other file it gives its agents.
- CLAUDE.mdCLAUDE.md
The file
We split this skill into the rules it gives an agent
12 rules. About 0 are common, 5 are distinctive, and 7 are very specific to this project.
≈0
Common · estimate
Many files like this have a rule of this kind.
≈5
Distinctive · estimate
This author's own choices. Worth a look.
7
Very specific
Tied to their project's names, files or tools. Probably skip.
- Common
- Distinctive
- Very specific
- Very specific: line 10
Use this skill to turn local Claude Code and Codex JSONL transcripts into a shared, browsable project history under ~/.session-history.
- Very specific: line 14
Prefer specific workstream labels over broad channel labels.
- Distinctive: line 36
Run the indexer with Python:
- Very specific: line 81
Run session_history.py menu when no arguments are provided.
- Very specific: line 82
Run session_history.py project "$ARGUMENTS" when arguments look like a project name, slug, or menu row number.
- Very specific: line 83
Run session_history.py thread "<project row/slug> <thread row>" when the first argument is thread.
- Very specific: line 84
Run session_history.py find "<query>" when the first argument is find or search.
- Distinctive: line 88
If a query is ambiguous, show the top matches and ask the user to rerun with a more specific project name.
- Distinctive: line 92
Use custom source and output folders for testing or nonstandard installs:
- Distinctive: line 105
Always present menu, project, ambiguous match, and search results as Markdown tables, not bulleted lists.
- Very specific: line 106
Always include a # column so the user can navigate by row number instead of typing project or thread names.
- Distinctive: line 112
Always mention that the raw JSONL transcript copy is linked from each generated session page.
≈ “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 History
Overview
Use this skill to turn local Claude Code and Codex JSONL transcripts into a shared, browsable project history under ~/.session-history.
Do not treat the transcript cwd as the project identity. Claude Code and Codex sessions often live in broad launch folders such as Documents, Projects, or New project; the script infers the real workstream from transcript titles, real user prompts, explicit project name: markers, session-relay mentions, and meaningful file paths.
Prefer specific workstream labels over broad channel labels. For example, split newsletter and LinkedIn work into lanes such as Newsletter Draft / Copy, Newsletter Graphics, Newsletter Subscriber Analysis, LinkedIn Post Review, LinkedIn Post Design, LinkedIn Profile Research, and LinkedIn DMs. Split broad CRM/outbound labels into concrete threads such as CRM Dedupe Dry Runs, CRM Dedupe Plugin Development, HubSpot Dedup Automations, Outbound Campaign Research, Audience Scoring, and Paid Ads Agencies Outbound.
Treat broad reference material, team memory, or a company brain as context, not as the project identity. Only place a session in that memory system's build or maintenance workstream when the transcript is actually about creating, updating, publishing, or maintaining the memory system itself; otherwise infer the real task from the prompt, title, and meaningful file paths.
The bundled script discovers:
- Codex transcripts in
~/.codex/sessions/**/*.jsonland~/.codex/archived_sessions/*.jsonl - Claude Code transcripts in
~/.claude/projects/**/*.jsonl
It writes a generated library with:
session-history.md: a semantic project/workstream menu ordered by most recent edited conversationprojects/<project-slug>/README.md: one project's conversation listprojects/<project-slug>/threads/<thread-slug>/README.md: one specific artifact/thread inside a workstreamartifacts/<thread-slug>/README.md: a cross-workstream artifact hub that can collect draft, graphics, social, and support sessions for the same newsletter or deliverable- an
Important Output Filestable on project and thread pages for meaningful generated artifacts such as decks, PDFs, reports, CSV exports, graphics, campaign docs, briefs, and HTML outputs projects/<project-slug>/sessions/*.md: one Markdown summary per sessionprojects/<project-slug>/transcripts/*.jsonl: copied raw transcriptsindex.json: machine-readable index for search and future tooling
Quick Start
Run the indexer with Python:
python3 scripts/session_history.py menuThen summarize the printed menu for the user. Include the generated ~/.session-history/session-history.md path as a clickable file link when responding from Codex Desktop.
Common Tasks
For a top-level project menu:
python3 scripts/session_history.py menuFor one project, pass a project slug, row number, or a case-insensitive substring of the project name/path:
python3 scripts/session_history.py project "my app"
python3 scripts/session_history.py project 3For a thread/subfolder inside a project, pass the project row/slug plus the thread row. Use thread row 0 to go back to the parent project view:
python3 scripts/session_history.py thread 3 2For search across titles, summaries, user prompts, assistant output, project names, and file paths:
python3 scripts/session_history.py find "deployment fix"To open a generated project README in the local default app on macOS:
python3 scripts/session_history.py open "my app"Slash Command Behavior
The matching /session-history command should:
- Run
session_history.py menuwhen no arguments are provided. - Run
session_history.py project "$ARGUMENTS"when arguments look like a project name, slug, or menu row number. - Run
session_history.py thread "<project row/slug> <thread row>"when the first argument isthread. - Run
session_history.py find "<query>"when the first argument isfindorsearch. - Run
session_history.py open "<project>"when the first argument isopen. - Print the relevant generated Markdown summary and tell the user where the underlying generated file lives.
If a query is ambiguous, show the top matches and ask the user to rerun with a more specific project name.
Custom Roots
Use custom source and output folders for testing or nonstandard installs:
python3 scripts/session_history.py menu \
--codex-root ~/.codex \
--claude-root ~/.claude \
--output ~/.session-historyOutput Style
Keep responses compact:
- Always present menu, project, ambiguous match, and search results as Markdown tables, not bulleted lists.
- Always include a
#column so the user can navigate by row number instead of typing project or thread names. - In any multi-table view, row numbers must continue across tables and must not restart at
1. For example, if the thread/subfolder table has rows0and1, the first important output file should be row2, and the first conversation should continue after the final output-file row. - For menu results, table columns should include row number, project, last conversation date, session count, and slug or open command.
- For project results, first show a numbered thread/subfolder table. Include row
0asBack to Project Menu. Then show a separateImportant Output Filestable for meaningful created files associated with the project. Then show a numbered conversations table with date, source, conversation title, generated summary, and session file. - For thread/subfolder results, include row
0asBack to <parent project>and include its ownImportant Output Filestable before conversations. - For search results, table columns should include row number, date, project, source, conversation title, generated summary, and session file.
- Always mention that the raw JSONL transcript copy is linked from each generated session page.
The Important Output Files table must be selective. Do not list every file path seen in a transcript. Include only high-signal deliverables and useful artifacts, such as decks, PDFs, reports, CSV/XLSX exports, graphics/images, newsletter or campaign artifacts, briefs, guides, generated HTML, and similar outputs. Each row must include both a clickable file link and the full file path in its own Path column. Exclude raw JSONL transcripts, session-history generated copies, dependency folders, caches, lockfiles, source files, and routine project internals unless they are clearly the artifact the session produced.
The script's summaries are deterministic extracts, not deep LLM summaries. If the user wants richer summaries, read the generated session Markdown and raw transcript for the specific sessions they select, then produce a deeper synthesis.
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.

