restore-session
Skill35 starsChanged 2 months agoMITView on GitHub
Recovers a prior agent session and loads its conversation as context for the current one. Use when the user says 'restore session', 'continue from last time', 'recall previous context' or wants to resume work on a topic discussed in an earlier session.
4 other projects use a version of this.
Adopted by
Most recently taken up by
- shkodnik1917/claude-brainlabword for word, first seen Nov 8, 2026
- arnaugonzalez/memory-boosttheir own version, first seen Oct 8, 2026
- ZENG3LD/claude-session-restoretheir own version, first seen Sep 25, 2026
- ZENG3LD/session-restoretheir own version, first seen Sep 25, 2026
Other versions4 projects use a version of this.
Word for word · 1
- shkodnik1917/claude-brainlab★ 35100% same
Edited · 0
None found.
Wrote their own version · 3
- ZENG3LD/claude-session-restore★ 35same name
- ZENG3LD/session-restore★ 35same name
- arnaugonzalez/memory-boost★ 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 repository68 other files it gives its agents.
- rules/agents.mdAGENTS.md
- CLAUDE.mdCLAUDE.md
- academic-plottingSkill
- agent-identifierSkill
- architecture-designSkill
- astar-paper-reviewSkill
- bug-detectiveSkill
- call-notesSkill
- cavemanSkill
- citation-verificationSkill
- code-ingestSkill
- code-librarySkill
- code-review-excellenceSkill
- command-developmentSkill
- create-projectSkill
- daily-codingSkill
- defuddleSkill
- diagnoseSkill
- doc-coauthoringSkill
- experiment-runsSkill
- frontend-designSkill
- git-guardrails-claude-codeSkill
- git-workflowSkill
- google-workspace-mcpSkill
- grill-meSkill
- grill-with-docsSkill
- handoffSkill
- handoff-to-jarvisSkill
- hook-developmentSkill
- improve-codebase-architectureSkill
- json-canvasSkill
- kaggle-learnerSkill
- lab-knowledgeSkill
- latex-conference-template-organizerSkill
- mcp-integrationSkill
- ml-paper-writingSkill
- obsidian-basesSkill
- obsidian-cliSkill
- obsidian-experiment-logSkill
- obsidian-markdownSkill
- operon-obsidian-setupSkill
- paper-ingestSkill
- paper-searchSkill
- paper-to-socialSkill
- paper-venue-formattingSkill
- pdf-readerSkill
- planning-with-filesSkill
- plugin-structureSkill
- presentationSkill
- presenter-modeSkill
- prototypeSkill
- research-cycleSkill
- research-ideationSkill
- results-analysisSkill
- results-reportSkill
- reverse-outline-flow-checkSkill
- review-responseSkill
- setup-pre-commitSkill
- skill-developmentSkill
- tddSkill
- The first 60 shown.
The file
We split this skill into the rules it gives an agent
7 rules. 0 are common, 6 are distinctive, and 1 is very specific to this project.
0
Common
Most of the 3 edited versions we read keep these.
6
Distinctive
This author's own choices. Worth a look.
1
Very specific
Tied to their project's names, files or tools. Probably skip.
- Common
- Distinctive
- Very specific
- Distinctive: line 22
Run this command and parse the output:
- Very specific: line 30
Read first line of file (the title) with head -1 <file>
- Distinctive: line 44
Ask: "Which one? (number, or 'all' to see full list)"
- Distinctive: line 48
Read the selected file:
- Distinctive: line 54
Read the full conversation
- Distinctive: line 63
When presenting the loaded context, structure it as:
- Distinctive: line 84
If no conversations found, tell user that history starts accumulating from now
“Common” is measured: kept by at least 6 in 10 of the 3 edited versions of this file we could read. “Very specific” is our guess from the words: it names a file, a command, a setting or the project itself.
Files
Restore Session
Load a previous conversation as context for the current session.
When to Use
- User says "restore session", "continue from last time", "recall previous context"
- User wants to resume work on a topic from a past session
- User references something discussed in a previous conversation
Workflow
Step 1 — List saved conversations
Run this command and parse the output:
ls -t ~/.claude/logs/conversations/*.md 2>/dev/null | head -20For each file:
- Parse filename:
YYYY-MM-DD_<topic-slug>.md - Read first line of file (the title) with
head -1 <file> - Show as numbered list
Example output to show user:
Recent conversations:
1. 2026-04-08 — я хочу установить вот такой репозиторий awesome-claude-code (today)
2. 2026-04-07 — как настроить SSH для нового сервера
3. 2026-04-05 — анализ результатов exp_003 не сходится с baseline
...Step 2 — User picks
Ask: "Which one? (number, or 'all' to see full list)"
Step 3 — Load context
Read the selected file:
cat ~/.claude/logs/conversations/<filename>.mdThen:
- Read the full conversation
- Summarize what was discussed in 4-6 bullet points
- Note any unfinished tasks or open questions
- Say: "Context loaded. Here's what we covered last time:" + bullet points
Then ask: "What would you like to continue with?"
Context Injection Format
When presenting the loaded context, structure it as:
## Previous session: <topic> (<date>)
**What we discussed:**
- ...
- ...
**Unfinished / open items:**
- ...
**Files/projects involved:**
- ...Notes
- Conversations are saved automatically at session end
- Files live at
~/.claude/logs/conversations/ - Sessions older than 90 days are auto-deleted
- If no conversations found, tell user that history starts accumulating from now
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.

