session-checkpoint
Skill1 starsChanged 3 months agoMITView on GitHub
Write a small, timestamped snapshot of current state to .memory/checkpoints/ periodically throughout a session (not just at the end), so a session that ends abruptly — credit exhaustion, crash, closed terminal — has a recent, resumable state to bootstrap from. Use after completing a meaningful unit of work, before starting something risky or long-running, and periodically during extended sessions — not only when the user asks to "save" or "checkpoint.
7 other projects use a version of this.
Adopted by
Most recently taken up by
- Brandondaymdr/Claude-Skillstheir own version, first seen Oct 29, 2026
- jin2004-cmd/codex-practical-skillstheir own version, first seen Oct 13, 2026
- AlexZio00/sovereign-skillstheir own version, first seen Oct 9, 2026
- xarleyn/dsh-pluginstheir own version, first seen Oct 8, 2026
- herreraspaintingba-hub/second-brain-starter-kittheir own version, first seen Oct 2, 2026
- alexmonegrop/job-hunt-ostheir own version, first seen May 5, 2026
Other versions7 projects use a version of this.
Word for word · 0
None found.
Edited · 0
None found.
Wrote their own version · 7
- AlexZio00/sovereign-skills★ 157same name
- tunsuy/ai-skills★ 4same name
- xarleyn/dsh-plugins★ 3same name
- Brandondaymdr/Claude-Skills★ 1same name
- jin2004-cmd/codex-practical-skills★ 1same name
- alexmonegrop/job-hunt-os★ 0same name
- herreraspaintingba-hub/second-brain-starter-kit★ 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 repository8 other files it gives its agents.
- agent-handoffSkill
- decision-logSkill
- memory-bootstrapSkill
- memory-captureSkill
- memory-consolidationSkill
- memory-hygieneSkill
- memory-recallSkill
- repo-awarenessSkill
The file
We split this skill into the rules it gives an agent
2 rules. 0 are common, 2 are distinctive, and 0 are very specific to this project.
0
Common
Most of the 6 edited versions we read keep these.
2
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 35
After completing any meaningful unit of work (not every single edit — a completed sub-task, not every file save)
- Distinctive: line 36
Before starting something risky (a large refactor, a destructive operation, anything that might eat significant time or tokens)
“Common” is measured: kept by at least 6 in 10 of the 6 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 Checkpoint
Why this exists as a distinct skill from memory-capture: capture writes specific events as they happen; checkpoint writes the overall current state on a cadence, as a safety net independent of whether every individual event got captured. Per ARCHITECTURE.md's Layer 3, this is the concrete implementation of the ML Mastery guide's "Execution Checkpointing" pattern, adapted from graph-workflow state to project-memory state.
What a checkpoint contains
Small and current, not a full re-summary of the project:
# Checkpoint: 2026-08-01T14:30:00
## Currently doing
Refactoring auth middleware to extract TokenService (see decisions/0012-token-service.md)
## Just finished
Extracted refresh logic into TokenService; existing tests pass
## Next step
Write new unit tests for TokenService directly (not just via middleware integration tests)
## Open threads
- Haven't decided whether TokenService should own the refresh interval config or receive it injected
- Noticed but didn't fix: middleware still has an unrelated logging concern mixed inFour sections, consistently: currently doing, just finished, next step, open threads. This is deliberately small — a checkpoint should take seconds to write, which is what makes writing it frequently actually sustainable.
When to write one
- After completing any meaningful unit of work (not every single edit — a completed sub-task, not every file save)
- Before starting something risky (a large refactor, a destructive operation, anything that might eat significant time or tokens)
- On a rough time cadence during long sessions — e.g., roughly every 20-30 minutes of active work, adjusted to the task's actual rhythm rather than a rigid timer
- Whenever something feels like "if this session ended right now, I'd want the next session to know this"
On resume
memory-bootstrap reads the most recent checkpoint file (sorted by timestamp), not a fixed "latest.md" — this is deliberate: filenames carrying real timestamps mean the checkpoint history itself is a lightweight episodic record, even though checkpoints aren't primarily for that (see memory-consolidation for when old checkpoints get folded into a proper episode).
Checkpoint pruning
Checkpoints accumulate fast if written every 20-30 minutes across many sessions. memory-hygiene handles pruning old checkpoints once their content has either been superseded by newer ones or consolidated into an episode summary — don't let this skill itself worry about cleanup; its only job is writing frequently and cheaply.
The honest limit
Frequent checkpointing drives the worst-case loss from "the whole session" down to "the last checkpoint interval" — it does not reach mathematically perfect zero-loss, because a cutoff mid-generation, before any write completes, can still lose that increment. This is stated plainly in ARCHITECTURE.md rather than oversold — the practical answer to "not even a single context lost" is checkpointing frequently enough that this residual gap is irrelevant in practice, not a claim that the gap is literally zero.
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.

