save-session

save-session is a command for Claude Code from SaigonXIII/evc. It costs 0 tokens per session (605 once invoked), scanned A, original, MIT.

A command that records the current project context, progress, decisions, errors, and test status in a session file.

In plain words
What is it for?
Use it when ending work or reaching a useful stopping point to save what worked, what remains, and what should not be retried.
Why use it?
It leaves a written handoff so a later session can continue without losing important context.

Command for Claude Code

Written for Claude Code: a Claude Code command (commands/*.md).

Good fit Use it when ending work or reaching a useful stopping point to save what worked, what remains, and what should not be retried.

Compare 6 commands from other repositories ↓
Install with agentmods
npx agentmods add commands/saigonxiii/evc/save-session
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.

Clone the repo
git clone --depth 1 https://github.com/SaigonXIII/evc

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/commands/saigonxiii/evc/save-session/github.svg)](https://agentmods.dev/commands/saigonxiii/evc/save-session)
Your own site
<a href="https://agentmods.dev/commands/saigonxiii/evc/save-session"><img src="https://agentmods.dev/badge/commands/saigonxiii/evc/save-session/github.svg" alt="Measured on agentmods" height="20"></a>

Or the 80×15 button, for a site that already has a row of RSS and ATOM ones. Only the verdict fits; the numbers stay here.

agentmods 80×15 button for save-session

Your own site · 80×15
<a href="https://agentmods.dev/commands/saigonxiii/evc/save-session"><img src="https://agentmods.dev/badge/commands/saigonxiii/evc/save-session.svg" alt="Reviewed on agentmods" width="80" height="20"></a>
Per session 0 Only the description is in the session, so the agent can decide to use it. The body loads when it is invoked.
When invoked 605 The whole file, excluding the scripts and references it only reads on demand.
Security scan A 0 findings. A grade says what 26 rules found in the file — not that it is safe.
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.00000 $0.00605
Opus 5.5 $0.00000 $0.00242
Sonnet 5.5 $0.00000 $0.00121
Haiku 4.5 $0.00000 $0.00060

Measured 1mo ago against content hash 24ed4151bd15, method: parsed. Prices are Anthropic first-party input rates as of 2026-10-07, 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 1mo 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.

_templates/commands/save-session.md · 118 lines

How it starts

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

Save Session

Capture full session state so the next session can resume with zero context loss.

Trigger

User invokes /save-session or says "save session", "save state", "save progress"

Steps

1. Gather context

  • Review all files modified during this session (git diff or conversation recall)
  • Review what was discussed, attempted, and decided
  • Note errors encountered and how they were resolved (or not)
  • Check current build/test status if relevant

2. Create session file

mkdir -p {{SESSION_DIR}}

Write to {{SESSION_DIR}}/YYYY-MM-DD-<short-id>-session.md using today's date.

3. Populate every section below

Write every section honestly. "Nothing yet" or "N/A" for empty sections. An incomplete file is worse than an honest empty section.

# Session: YYYY-MM-DD

**Started:** [time if known]
**Last Updated:** [current time]
**Project:** [project name or path]
**Topic:** [one-line summary]

---

## What We Are Building

[1-3 paragraphs. Enough context for someone with zero memory to understand the goal.]

---

## What WORKED (with evidence)

[Only confirmed working things. Each item includes WHY you know it works.]

- **[thing]** — confirmed by: [specific evidence]

---

## What Did NOT Work (and why)

[MOST IMPORTANT SECTION. Every failed approach with the EXACT reason.]

- **[approach]** — failed because: [exact reason / error message]

---

## What Has NOT Been Tried Yet

[Promising approaches not yet attempted. Specific enough to act on.]

- [approach / idea]

---

## Current State of Files

| File | Status | Notes |
|------|--------|-------|
| `path/to/file` | Complete / In Progress / Broken / Not Started | [details] |

---

## Decisions Made

[Architecture choices, tradeoffs accepted, approaches chosen and why.]

- **[decision]** — reason: [why]

---

## Blockers & Open Questions

- [blocker / open question]

---

## Exact Next Step

[The single most important thing to do when resuming. Precise enough to start immediately.]

Read the full file on GitHub · 118 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. 1mo ago First seen · 118 lines · 0 tokens per session scan A 24ed4151bd15

Subscribe to this mod's changes

save-session is a command published in the GitHub repository SaigonXIII/evc (59 stars, last pushed 4mo ago), licensed MIT. It costs nothing until one of its globs matches a file; then it loads 605 tokens. 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.