session-save

session-save is a command for coding agents from FlorianBruniaux/claude-code-plugins. It costs 30 tokens per session (839 once invoked), scanned A, original, MIT.

A handoff-document command that saves the current coding session’s decisions, changed files, status, and next steps as a timestamped Markdown file.

In plain words
What is it for?
Use it to record unfinished work, explain architectural decisions, list modified files, and make a later resume easier.
Why use it?
It preserves the important context before ending a session, switching tasks, or handing work to another agent.

Command

Part of the session-tools plugin — 8 skills, 6 commands, 1 agent, 1 plugin shipped together

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 commands/florianbruniaux/claude-code-plugins/session-save
Clone the repo
git clone --depth 1 https://github.com/FlorianBruniaux/claude-code-plugins

Or install session-tools, the plugin that ships this one along with the rest of its 8 skills, 6 commands, 1 agent, 1 plugin.

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 session-save

README.md
[![agentmods](https://agentmods.dev/badge/commands/florianbruniaux/claude-code-plugins/session-save.svg)](https://agentmods.dev/commands/florianbruniaux/claude-code-plugins/session-save)
Your own site
<a href="https://agentmods.dev/commands/florianbruniaux/claude-code-plugins/session-save"><img src="https://agentmods.dev/badge/commands/florianbruniaux/claude-code-plugins/session-save.svg" alt="Measured on agentmods" height="20"></a>
Per session 30 Only the description is in the session, so the agent can decide to use it. The body loads when it is invoked.
When invoked 839 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 $0.00030 $0.00839
Opus 5 $0.00015 $0.00419
Sonnet 5 $0.00006 $0.00168
Haiku 4.5 $0.00003 $0.00084

Measured yesterday against content hash f2ed033b31a8, method: parsed. Prices are Anthropic first-party input rates as of 2026-08-30, from the pricing page.

Security

Grade A, and why

session-save 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 yesterday.

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.

plugins/session-tools/commands/session-save.md · 114 lines

How it starts

The opening of the file, as written. The whole thing — 114 lines — stays where its author put it; the contents beside it link to each section on GitHub.

/session-save

Capture the current session into a structured handoff file so you (or another instance) can resume with full context. Creates a timestamped Markdown file in .claude/sessions/.

When to Use

  • Before ending a session that isn't complete
  • Before switching to a different task
  • Before context reaches 75%+ (to preserve the important parts)
  • At natural milestones in a long task (after each phase)
  • To hand off to a second Claude instance

Instructions

Produce a handoff document with the following structure:


Session Handoff — [TIMESTAMP]

What Was Being Done

[One paragraph: the goal, the approach, where things stand right now]

Files Modified This Session

[List every file that was created, edited, or deleted — with the nature of the change]

path/to/file.ts      — [what changed and why]
path/to/other.ts     — [what changed and why]

Key Decisions Made

[Architectural choices, tradeoffs accepted, approaches rejected and why]

  • Decision: [What was decided]
    • Rationale: [Why]
    • Alternatives rejected: [What else was considered]

Current Status

[Where things are right now — what's working, what's broken, what's in-progress]

  • Working: [...]
  • In-progress: [...]
  • Known issues: [...]

Next Steps (Ordered)

[The exact next actions to take to continue — specific enough that a fresh context can pick up without re-reading everything]

  1. [First action] — path/to/file.ts — [what to do]
  2. [Second action] — [...]
  3. [...]

Context to Reload

[Files that must be read to resume with full understanding — keep this list short]

  • path/to/key-file.ts — [why it matters]
  • CLAUDE.md — project rules

Blockers / Open Questions

[Anything unresolved that needs a decision or external input before proceeding]

  • [Question or blocker] — [who/what can resolve it]

Implementation

Save the handoff to .claude/sessions/handoff-[YYYY-MM-DD-HHMM].md. Then output the file path so the user knows where to find it.

Read the full file on GitHub · 114 lines

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. yesterday First seen · 114 lines · 30 tokens per session scan A f2ed033b31a8

Subscribe to this mod's changes

session-save is a command published in the GitHub repository FlorianBruniaux/claude-code-plugins (40 stars, last pushed 3d ago), licensed MIT. It adds 30 tokens to every session and 839 once invoked, about $0.0002 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-09-04.