checkpoint

A command that reviews the current changes and creates a Git commit as a progress checkpoint. Git is a tool for tracking code changes and saving named versions.

In plain words
What is it for?
Use it to inspect status and diffs, group related changes, stage selected files, and write a descriptive commit message.
Why use it?
It provides a recoverable point in the work and helps prevent unrelated files, debugging code, temporary artifacts, or secrets from entering the commit.

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/versoxbt/claude-initial-setup/checkpoint
Clone the repo
git clone --depth 1 https://github.com/VersoXBT/claude-initial-setup
Per session 8 Only the description is in the session, so the agent can decide to use it. The body loads when it is invoked.
When invoked 510 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.00008 $0.00510
Opus 5 $0.00004 $0.00255
Sonnet 5 $0.00002 $0.00102
Haiku 4.5 $0.00001 $0.00051

Measured 2d ago against content hash b9251497b7d1, 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 2d 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/checkpoint.md · 60 lines

How it starts

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

Checkpoint

Review current changes and create a well-structured git commit to save progress.

Steps

  1. Check the current state:

    • Run git status to see all modified, staged, and untracked files.
    • Run git diff to review unstaged changes.
    • Run git diff --staged to review already-staged changes.
  2. Review changes for commit readiness:

    • Verify no debugging code (console.log, print statements, debugger).
    • Verify no hardcoded secrets (API keys, passwords, tokens).
    • Verify no temporary files or build artifacts are included.
    • Check that .gitignore covers files that should not be committed.
  3. Group changes logically:

    • If changes span multiple concerns (feature + refactor + fix), consider splitting into multiple commits.
    • Each commit should represent a single logical change.
    • Stage only the files related to one logical change at a time.
  4. Stage relevant files:

    • Use git add <specific-files> rather than git add . to avoid committing unintended files.
    • Double-check staged files with git diff --staged.
    • Exclude any files that contain sensitive data.
  5. Write a descriptive commit message:

    • Use conventional commit format: <type>: <description>.
    • Types: feat, fix, refactor, docs, test, chore, perf, ci.
    • Keep the subject line under 72 characters.
    • Add a body for complex changes explaining the "why" not the "what".
  6. Create the commit:

    • Run git commit with the prepared message.
    • Verify the commit was created successfully with git log -1.
  7. If there are remaining changes for a separate concern:

    • Repeat steps 4-6 for the next logical group.

If Pre-Commit Hooks Fail

  • Read the hook output to understand what failed.
  • Fix the reported issues (lint errors, type errors, test failures).
  • Stage the fixes and create a new commit — do not amend the previous commit.

If Sensitive Files Are Accidentally Staged

  • Unstage them immediately with git reset HEAD <file>.
  • Add the file pattern to .gitignore.
  • If already committed, remove from history and rotate any exposed secrets.

Read the full file on GitHub · 60 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. 2d ago First seen · 60 lines · 8 tokens per session scan A b9251497b7d1

Subscribe to this mod's changes

checkpoint is a command published in the GitHub repository VersoXBT/claude-initial-setup (4 stars, last pushed 3mo ago), licensed MIT. It adds 8 tokens to every session and 510 once invoked, about $0.0000 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-31.