checkpoint

checkpoint is a command for Claude Code from kumaran-is/claude-code-onboarding. It costs 0 tokens per session (656 once invoked), scanned A, original, MIT.

A named snapshot of a session's Git state and changed files that can be checked later against the current state.

In plain words
What is it for?
Use it to create, list, and verify checkpoints, including the commit, changed files, and later differences.
Why use it?
It gives you a reference point for comparing progress during a long coding session.

Command for Claude Code

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/kumaran-is/claude-code-onboarding/checkpoint
Clone the repo
git clone --depth 1 https://github.com/kumaran-is/claude-code-onboarding

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 checkpoint

README.md
[![agentmods](https://agentmods.dev/badge/commands/kumaran-is/claude-code-onboarding/checkpoint.svg)](https://agentmods.dev/commands/kumaran-is/claude-code-onboarding/checkpoint)
Your own site
<a href="https://agentmods.dev/commands/kumaran-is/claude-code-onboarding/checkpoint"><img src="https://agentmods.dev/badge/commands/kumaran-is/claude-code-onboarding/checkpoint.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 656 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.00656
Opus 5 $0.00000 $0.00328
Sonnet 5 $0.00000 $0.00131
Haiku 4.5 $0.00000 $0.00066

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

Security

Grade A, and why

checkpoint 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 today.

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.

.claude/commands/checkpoint.md · 85 lines

How it starts

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

/checkpoint — Named Checkpoints for Long Sessions

Save named snapshots of session state so you can compare before/after or roll back context.

Modes

/checkpoint create <name>

Save a checkpoint at the current point in the session.

Actions:

  1. Run git diff --stat HEAD — capture list of changed files
  2. Run git rev-parse HEAD — capture current SHA
  3. Append to .claude/checkpoints.log:
    {ISO-8601-timestamp}|{name}|{git-SHA}|{changed-file-count} files changed
    
  4. Report:
    ✅ Checkpoint saved: {name}
    SHA: {git-SHA}
    Changed files: {list from git diff --stat}
    

/checkpoint verify <name>

Compare current state against a saved checkpoint.

Actions:

  1. Read .claude/checkpoints.log — find entry matching {name}
  2. Run git diff {saved-SHA} HEAD --stat
  3. Report:
    Checkpoint: {name} (saved at {timestamp})
    Base SHA: {saved-SHA}
    Current SHA: {current-SHA}
    
    Files changed since checkpoint:
    {git diff output}
    
    Delta: +{added} -{removed} lines across {N} files
    

/checkpoint list

Show all saved checkpoints for this session.

Actions:

  1. Read .claude/checkpoints.log
  2. Report table:
    | Name | Saved At | SHA | Files |
    |------|----------|-----|-------|
    | {name} | {timestamp} | {short-SHA} | {count} |
    
  3. If file is empty or missing: "No checkpoints saved yet. Use /checkpoint create <name> to save one."

/checkpoint clear

Remove all entries from .claude/checkpoints.log.

Actions:

  1. Confirm: "This will delete all {N} checkpoints. Proceed? (yes/no)"
  2. On yes: overwrite .claude/checkpoints.log with empty content
  3. Report: "✅ Checkpoints cleared."

Log Format

File: .claude/checkpoints.log One entry per line, pipe-separated:

2026-03-29T14:22:00Z|pre-refactor|abc1234def|7 files changed
2026-03-29T15:45:00Z|post-auth|def5678abc|3 files changed

When to Use

  • Before a large refactor: /checkpoint create pre-refactor
  • After completing a phase: /checkpoint create phase-1-complete
  • Before trying a risky approach: /checkpoint create before-experiment
  • To verify progress: /checkpoint verify pre-refactor

Read the full file on GitHub · 85 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. today First seen · 85 lines · 0 tokens per session scan A ab517f07d652

Subscribe to this mod's changes

checkpoint is a command published in the GitHub repository kumaran-is/claude-code-onboarding (35 stars, last pushed 2mo ago), licensed MIT. It costs nothing until one of its globs matches a file; then it loads 656 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-09-03.