session-resume
Skill0 starsChanged 5 months agoMITView on GitHub
Cross-session context persistence via .claude/idev/session-resume/last-session.json. Use when resuming work in a new session, or to save working context at task completion or when the user asks to save. Proactively prompts to save at natural stopping points.
10 other projects use a version of this.
Adopted by
Most recently taken up by
- apappascs/claude-code-sessionstheir own version, first seen Nov 1, 2026
- manastalukdar/ai-devstudiotheir own version, first seen Oct 13, 2026
- Chinorab/session-resumetheir own version, first seen Sep 21, 2026
- ShawnDelaineBellazanLoop/agent-skillstheir own version, first seen Sep 2, 2026
- ShawnDelaineBellazanLoop/agent-skillsarchivetheir own version, first seen Sep 2, 2026
- iamneilroberts/claude-skillstheir own version, first seen Jul 3, 2026
Other versions10 projects use a version of this.
Word for word · 0
None found.
Edited · 0
None found.
Wrote their own version · 10
- salavender/antigravity-compound-engineering-plugin★ 48same name
- iamneilroberts/claude-skills★ 26same name
- devstefancho/skills★ 13same name
- apappascs/claude-code-sessions★ 2same name
- manastalukdar/ai-devstudio★ 1same name
- ShawnDelaineBellazanLoop/agent-skills★ 1same name
- ShawnDelaineBellazanLoop/agent-skillsarchive★ 1same name
- Chinorab/session-resume★ 0same name
- ChristopherA/claude_code_tools★ 0same name
- eUmeda/session-resume★ 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 repository38 other files it gives its agents.
- CLAUDE.mdCLAUDE.md
- api-contract-validationSkill
- architecture-scannerSkill
- auto-approve-policySkill
- auto-learningSkill
- backend-patternsSkill
- branch-syncSkill
- browser-testSkill
- browseSkill
- build-checkSkill
- cache-refreshSkill
- codebase-explainerSkill
- coding-standardsSkill
- commit-styleSkill
- context-switchingSkill
- continuous-learningSkill
- db-preflightSkill
- env-preflightSkill
- eval-harnessSkill
- feature-completenessSkill
- file-indexSkill
- frontend-patternsSkill
- function-extractSkill
- idev-initSkill
- import-graphSkill
- lessons-learnedSkill
- post-creation-verifySkill
- pre-ship-verifySkill
- project-mapSkill
- self-reviewSkill
- skill-benchmarkSkill
- skilloptSkill
- smart-contextSkill
- strategic-compactSkill
- task-journalSkill
- tdd-workflowSkill
- test-coverageSkill
- test-mapSkill
The file
We split this skill into the rules it gives an agent
11 rules. 0 are common, 11 are distinctive, and 0 are very specific to this project.
0
Common
Most of the 9 edited versions we read keep these.
11
Distinctive
This author's own choices. Worth a look.
0
Very specific
Tied to their project's names, files or tools. Probably skip.
- Common
- Distinctive
- Very specific
- Distinctive: line 24
No user action required — the hooks handle persistence silently.
- Distinctive: line 123
If the session is ending (user says goodbye, done, wrap up), save automatically without prompting.
- Distinctive: line 129
Keep recentFiles lists to max 10 entries each (most recent first)
- Distinctive: line 130
Keep openIssues to max 5 entries
- Distinctive: line 132
Do NOT save file contents — only paths
- Distinctive: line 133
Do NOT save sensitive data (tokens, passwords, keys)
- Distinctive: line 156
Do NOT save entire file contents in the session state
- Distinctive: line 157
Do NOT save more than 10 recent files
- Distinctive: line 158
Do NOT load the session state AND re-explore the codebase
- Distinctive: line 159
Do NOT ignore the session state when it exists
- Distinctive: line 160
Do NOT prompt to save on every minor action — only at natural stopping points
“Common” is measured: kept by at least 6 in 10 of the 9 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
Session Resume Skill
Purpose
Persist working context across sessions so Claude can resume exactly where it left off without re-discovering files, re-reading code, or re-learning what was being worked on.
Activation
- Save: At task completion, when the user asks to save, or proactively at natural stopping points
- Load: At the start of a new session (before any task work)
Auto-Save
Session state is automatically saved at three points:
- Session end (Stop hook) — saves final state
- Before compaction (PreCompact hook) — saves before context is compressed
- Manual — user says "save session" or "save context"
No user action required — the hooks handle persistence silently.
How It Works
A lightweight session snapshot is saved to:
.claude/idev/session-resume/last-session.json
This file is loaded at session start, giving Claude instant awareness of:
- What feature/area was being worked on
- Which files were recently read/modified
- What the last task was
- Any pending issues or blockers
Phase 1: Save Session State
At task completion (or when the user asks to save context), save:
{
"savedAt": "YYYY-MM-DD HH:mm",
"lastTask": {
"description": "Brief description of what was being done",
"status": "completed|in-progress|blocked",
"blockedBy": "Description of blocker (if blocked)"
},
"activeFeature": "FeatureName (e.g., Orders)",
"activeLayer": "frontend|backend|full-stack",
"recentFiles": {
"modified": [
"relative/path/to/file1.ts",
"relative/path/to/file2.cs"
],
"read": [
"relative/path/to/file3.ts"
]
},
"openIssues": [
{
"description": "Reject button not hitting API - needs browser console check",
"file": "relative/path/to/file.tsx",
"severity": "medium"
}
],
"workingBranch": "feature/branch-name",
"notes": "Any important context that would be lost on session restart"
}Phase 2: Load Session State
At session start:
1. Read last-session.json (~30 lines, roughly 300 tokens)
2. If lastTask.status == "in-progress":
→ Inform user: "Last session was working on: [description]"
→ Offer to continue or start fresh
3. If openIssues exist:
→ Mention pending issues briefly
4. Use activeFeature + activeLayer to pre-load the right context
5. Use recentFiles.modified to know which files were changedPhase 3: When to Save (Proactive Prompts)
Save the session state when ANY of these occur:
- User explicitly says "save session" or "save context"
- A task is completed (update lastTask.status)
- User switches to a different feature/task
- A blocker is encountered (update openIssues)
Proactive save prompts
At natural stopping points, prompt the user to save. This fixes the discoverability gap — the save path was never invoked because nothing reminded the user:
After completing a task:
→ "Task complete. Save session state so we can resume here later? (y/n)"
Before context compaction (if PreCompact hook is wired):
→ Auto-save without prompting — context is about to be compressed
When user says "done for today" or similar:
→ Auto-save immediately
When switching to a completely different feature:
→ "Switching from [Feature A] to [Feature B]. Save state for Feature A? (y/n)"Auto-save on session end
If the session is ending (user says goodbye, done, wrap up), save automatically without prompting. The cost is one file write; the benefit is the next session picks up seamlessly.
Save Rules
- Keep recentFiles lists to max 10 entries each (most recent first)
- Keep openIssues to max 5 entries
- Overwrite previous session file (only latest session matters)
- Do NOT save file contents — only paths
- Do NOT save sensitive data (tokens, passwords, keys)
- Total file size should stay under 50 lines
Integration with Other Skills
Session start:
1. Load last-session.json (this skill)
2. Load .claude/idev/smart-context/index.json (smart context skill)
3. If activeFeature is set → grep file-index for that feature's files
4. Ready to work in ~3 reads
Session end:
1. Save session state (this skill)
2. Update task-journal with what was accomplished
3. remember plugin captures session for future referenceAnti-Patterns
- Do NOT save entire file contents in the session state
- Do NOT save more than 10 recent files
- Do NOT load the session state AND re-explore the codebase
- Do NOT ignore the session state when it exists
- Do NOT prompt to save on every minor action — only at natural stopping points
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.

