checkpoint

A command for creating, checking, and listing named snapshots of a coding project using Git, a tool that records code changes.

In plain words
What is it for?
Use it before and after major workflow steps, such as starting a feature, finishing implementation, refactoring, or preparing a pull request.
Why use it?
It gives developers a known point for comparing later file changes, tests, coverage, and build results.

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/codelably/harmony-claude-code/checkpoint
Clone the repo
git clone --depth 1 https://github.com/codelably/harmony-claude-code
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 490 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.00490
Opus 5 $0.00000 $0.00245
Sonnet 5 $0.00000 $0.00098
Haiku 4.5 $0.00000 $0.00049

Measured yesterday against content hash 26c0758aff31, 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 yesterday.

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 · 75 lines

What it actually says

检查点(Checkpoint)指令

在工作流(Workflow)中创建或验证检查点。

用法

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

创建检查点(Create Checkpoint)

创建检查点时:

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

验证检查点(Verify Checkpoint)

对比检查点进行验证时:

  1. 从日志中读取检查点

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

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

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

列出检查点(List Checkpoints)

显示所有检查点,包括:

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

工作流(Workflow)

典型的检查点工作流:

[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)

$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. yesterday First seen · 75 lines · 0 tokens per session scan A 26c0758aff31

Subscribe to this mod's changes

checkpoint is a command published in the GitHub repository codelably/harmony-claude-code (42 stars, last pushed 6mo ago), licensed MIT. It costs nothing until one of its globs matches a file; then it loads 490 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.