checkpoint

A Git checkpoint command for creating, checking, listing, or clearing named snapshots of a project’s state. A checkpoint records a Git stash or commit, timestamp, and short commit ID.

In plain words
What is it for?
Use it before or during major work to create checkpoints, verify progress against one, list existing checkpoints, or remove older entries while keeping the newest five.
Why use it?
It gives you a reference point for seeing what changed later and comparing files, tests, coverage, and build status with that earlier state.

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/luohaothu/everything-codex/checkpoint
Clone the repo
git clone --depth 1 https://github.com/Luohaothu/everything-codex
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 468 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.00468
Opus 5 $0.00000 $0.00234
Sonnet 5 $0.00000 $0.00094
Haiku 4.5 $0.00000 $0.00047

Measured 2d ago against content hash df40aa0c6499, 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.

docs/zh-CN/commands/checkpoint.md · 79 lines

What it actually says

检查点命令

在你的工作流中创建或验证一个检查点。

用法

/checkpoint [create|verify|list] [name]

创建检查点

创建检查点时:

  1. 运行 /verify quick 以确保当前状态是干净的
  2. 使用检查点名称创建一个 git stash 或提交
  3. 将检查点记录到 .claude/checkpoints.log
echo "$(date +%Y-%m-%d-%H:%M) | $CHECKPOINT_NAME | $(git rev-parse --short HEAD)" >> .claude/checkpoints.log
  1. 报告检查点已创建

验证检查点

根据检查点进行验证时:

  1. 从日志中读取检查点

  2. 将当前状态与检查点进行比较:

    • 自检查点以来新增的文件
    • 自检查点以来修改的文件
    • 现在的测试通过率与当时对比
    • 现在的覆盖率与当时对比
  3. 报告:

CHECKPOINT COMPARISON: $NAME
============================
Files changed: X
Tests: +Y passed / -Z failed
Coverage: +X% / -Y%
Build: [PASS/FAIL]

列出检查点

显示所有检查点,包含:

  • 名称
  • 时间戳
  • Git SHA
  • 状态(当前、落后、超前)

工作流

典型的检查点流程:

[Start] --> /checkpoint create "feature-start"
   |
[Implement] --> /checkpoint create "core-done"
   |
[Test] --> /checkpoint verify "core-done"
   |
[Refactor] --> /checkpoint create "refactor-done"
   |
[PR] --> /checkpoint verify "feature-start"

参数

$ARGUMENTS:

  • create <name> - 创建指定名称的检查点
  • verify <name> - 根据指定名称的检查点进行验证
  • list - 显示所有检查点
  • clear - 删除旧的检查点(保留最后5个)
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 · 79 lines · 0 tokens per session scan A df40aa0c6499

Subscribe to this mod's changes

checkpoint is a command published in the GitHub repository Luohaothu/everything-codex (24 stars, last pushed 21d ago), licensed MIT. It costs nothing until one of its globs matches a file; then it loads 468 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.