save-session

save-session is a skill for Claude Code from faizkhairi/claude-code-blueprint. It costs 76 tokens per session (619 once invoked), scanned A, original, MIT.

A skill for saving coding-agent session state, such as current work, progress, next steps, blockers, and reminders, to project memory files.

In plain words
What is it for?
Use it when saving a session, ending one, or preserving completed work and follow-up tasks, provided memory is enabled.
Why use it?
It preserves useful context between sessions so work can continue without relying on the conversation still being available.

Skill for Claude Code

Written for Claude Code: user-invocable in frontmatter. Also seen: reads .claude/ paths.

Install

Getting it into your agent

One page per mod, every tool's command on it. A separate URL per tool would split the same page into five that compete with each other.

agentmods
npx agentmods add skills/faizkhairi/claude-code-blueprint/save-session
Any agent
npx skills add faizkhairi/claude-code-blueprint --skill save-session
Clone the repo
git clone --depth 1 https://github.com/faizkhairi/claude-code-blueprint

Made for: Claude Code.

Wrote this? Show the measurements

A badge with what this costs and how it scanned, read live from this page, so it follows the numbers instead of freezing them. Markdown for a README, HTML for a documentation site or a project page.

agentmods badge for save-session

README.md
[![agentmods](https://agentmods.dev/badge/skills/faizkhairi/claude-code-blueprint/save-session.svg)](https://agentmods.dev/skills/faizkhairi/claude-code-blueprint/save-session)
Your own site
<a href="https://agentmods.dev/skills/faizkhairi/claude-code-blueprint/save-session"><img src="https://agentmods.dev/badge/skills/faizkhairi/claude-code-blueprint/save-session.svg" alt="Measured on agentmods" height="20"></a>
Per session 76 Skills are progressive disclosure: only the name and description are preloaded; the body loads when the skill is used.
When invoked 619 The whole file, excluding the scripts and references it only reads on demand.
Security scan A 0 findings. Scan, not verified.
Origin original No closer match found in the catalogue.
Token cost

What it costs to keep this loaded

Counted locally with the o200k_base tokenizer, which is exact for GPT models; Claude uses its own tokenizer and its counts differ. Treat this as one consistent yardstick across the catalogue rather than a bill. Prices are per million input tokens.

ModelPer sessionOnce invoked
Fable 5.1 $0.00076 $0.00619
Opus 5 $0.00038 $0.00309
Sonnet 5 $0.00015 $0.00124
Haiku 4.5 $0.00008 $0.00062

Measured 6d ago against content hash 74fb63fe582a, method: parsed. Prices are Anthropic first-party input rates as of 2026-09-06, from the pricing page.

Security

Grade A, and why

save-session scanned grade A with 0 findings against 26 rules in 11 categories — prompt injection, anti-refusal, data exfiltration, privilege escalation, supply chain, agent snooping, system-prompt leakage, SSRF and excessive agency — measured 6d ago.

A static scan of the body, not an audit. Every finding is printed with the line that produced it so you can judge whether it matters here. A mod is markdown that instructs an agent; that is exactly why what it instructs is worth reading.

Nothing flagged

None of the 26 patterns this scan looks for appear in this file: no shell pipes, no recursive deletes, no credential paths, no hidden text, no instruction-override or anti-refusal phrasing, no agent-config snooping. That is not a guarantee, it is the absence of the things that are checkable.

skills/save-session/SKILL.md · 37 lines

What it actually says

Prerequisite check (run first): if ./memory/ does not exist OR ~/.claude/.memory-disabled marker file is present, this skill is a no-op. Output: "Memory persistence is disabled. Run ./setup.sh and choose to enable memory if you want this skill to work."

Save session state to memory:

  1. Update session.md at ./memory/core/session.md:

    • Current topic and what we're working on
    • Recent progress (what was accomplished this session)
    • Next steps (what should happen next session)
    • Any blockers or open questions
  2. Update reminders at ./memory/core/reminders.md:

    • Ask the user if there are any pending tasks, deadlines, or reminders to carry forward
    • Remove completed reminders (move to Completed section with date), keep active ones, add new ones
  3. Update per-project context: If working on a registered project, update ./memory/projects/active/{project}.md → Session Context section:

    • Last worked on (what specifically)
    • In progress (current state)
    • Next up (what should happen next on THIS project)
  4. Check preferences.md: If new preferences or work patterns were observed during this session, update ./memory/core/preferences.md

  5. Check MEMORY.md: If new technical learnings or gotchas were discovered, update {MEMORY_MD_PATH}. After any edit, count total lines; if over 170, warn that MEMORY.md is approaching the 200-line auto-truncation limit and suggest moving content to topic files.

  6. Check decisions.md: If a non-obvious architectural or technical decision was made this session (something future-us would ask "why?"), append to ./memory/core/decisions.md using the existing format: ## YYYY-MM-DD: Title / **Context** / **Decision** / **Rationale**

  7. Diary (if this was a significant session, e.g., feature shipped, major bug fixed, architecture decision made): Use the save-diary skill to create or append an entry to ./memory/diary/current/YYYY-MM-DD.md

  8. Git commit + push memory: Stage all changed files in memory, commit with a descriptive message, and push to GitHub (git push origin main). This keeps the remote diary and session state up to date.

  9. Confirm: Summarize what was saved and where

Changes

What this file has done since we first saw it

Hashed on every crawl. A supply-chain change to an agent config is a question of when, not whether, so the history is kept rather than the latest state alone.

  1. 6d ago First seen · 37 lines · 76 tokens per session scan A 74fb63fe582a

Subscribe to this mod's changes

save-session is a skill published in the GitHub repository faizkhairi/claude-code-blueprint (70 stars, last pushed 25d ago), licensed MIT. It adds 76 tokens to every session and 619 once invoked, about $0.0004 per session on Opus 5. A static security scan graded it A with 0 findings. No closer match exists in the catalogue, so it is treated as the original; first seen 2026-08-30.