load

load is a command for coding agents from andrew-shwetzer/claude-code-save. It costs 0 tokens per session (1,455 once invoked), scanned A, original, MIT.

A command that resumes a saved coding session by reading its checkpoint and giving a short summary of what happened before. A checkpoint is structured information saved so work can continue later.

In plain words
What is it for?
Use it to load the latest checkpoint for the current project, a named project, or a specific save ID.
Why use it?
It avoids reconstructing the project context from memory when a session ends or moves to another machine.

Command

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/andrew-shwetzer/claude-code-save/load
Clone the repo
git clone --depth 1 https://github.com/andrew-shwetzer/claude-code-save

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 load

README.md
[![agentmods](https://agentmods.dev/badge/commands/andrew-shwetzer/claude-code-save/load.svg)](https://agentmods.dev/commands/andrew-shwetzer/claude-code-save/load)
Your own site
<a href="https://agentmods.dev/commands/andrew-shwetzer/claude-code-save/load"><img src="https://agentmods.dev/badge/commands/andrew-shwetzer/claude-code-save/load.svg" alt="Measured on agentmods" 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 1,455 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.00000 $0.01455
Opus 5 $0.00000 $0.00727
Sonnet 5 $0.00000 $0.00291
Haiku 4.5 $0.00000 $0.00145

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

Security

Grade A, and why

load 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 3d 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.

commands/load.md · 148 lines

How it starts

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

Resume from a saved session checkpoint. Reads a structured save state and produces a "Previously on..." briefing so you can pick up exactly where you left off.

Arguments

The user's message after /load determines what to load:

  • Nothing (/load): Load the most recent save for the current CWD's project
  • Project slug (/load my-app): Load the most recent save for that project
  • Save ID (/load save_1711152000000): Load that specific save

How to execute

Step 0: Sync from remote (if enabled)

Check if ~/.claude/saves/config.json has sync.enabled: true and ~/.claude/saves/ is a git repo. If so, pull latest saves before loading:

cd ~/.claude/saves && git pull --rebase --quiet 2>/dev/null; cd - >/dev/null

This ensures you get saves from other machines. If the pull fails (no network, etc.), continue silently with local saves.

Step 1: Find the save file

If no argument provided:

  1. Detect project slug from CWD using the same priority as /save:
    • .claude-save-config.json in CWD or parent
    • ~/.claude/saves/config.json project mappings
    • Git repo name
    • Directory name
  2. Find the most recent .json file in ~/.claude/saves/<project-slug>/
  3. If the directory doesn't exist or is empty:
    No saves found for this project. Use /save to create your first checkpoint.
    

If project slug provided:

  1. Find the most recent .json file in ~/.claude/saves/<slug>/
  2. If not found:
    No saves found for project "<slug>". Run /saves to see all saved projects.
    

If save ID provided (starts with save_):

  1. Search ~/.claude/saves/index.jsonl for the ID to find the project
  2. Then find the matching JSON file in that project's directory
  3. If not found:
    Save "<id>" not found. Run /saves to browse available saves.
    

To find the most recent file, list JSON files in the project directory sorted by name descending (filenames are YYYYMMDD_HHMMSS.json, so alphabetical = chronological).

Read the full file on GitHub · 148 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. 3d ago First seen · 148 lines · 0 tokens per session scan A ca7e6510ab86

Subscribe to this mod's changes

load is a command published in the GitHub repository andrew-shwetzer/claude-code-save (2 stars, last pushed 4mo ago), licensed MIT. It costs nothing until one of its globs matches a file; then it loads 1,455 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-31.