checkpoint

checkpoint is a command for Claude Code from bybren-llc/a-safe-pulse. It costs 8 tokens per session (650 once invoked), scanned A, original, MIT.

A command that saves a structured summary of a coding session for later use. It records the ticket, Git state, completed work, next steps, decisions, blockers, and risks without storing secrets.

In plain words
What is it for?
Use it to create a checkpoint tied to a ticket, including the latest commit, unpushed commits, and uncommitted changes.
Why use it?
It helps you continue work across sessions without reconstructing what happened or losing pending tasks.

Command for Claude Code

Written for Claude Code: allowed-tools in frontmatter. Also seen: reads .claude/ paths; mentions Claude Code.

Good fit Use it to create a checkpoint tied to a ticket, including the…

Compare 6 commands from other repositories ↓
Install with agentmods
npx agentmods add commands/bybren-llc/a-safe-pulse/checkpoint
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.

Clone the repo
git clone --depth 1 https://github.com/bybren-llc/a-safe-pulse

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/bybren-llc/a-safe-pulse/checkpoint.svg)](https://agentmods.dev/commands/bybren-llc/a-safe-pulse/checkpoint)
Your own site
<a href="https://agentmods.dev/commands/bybren-llc/a-safe-pulse/checkpoint"><img src="https://agentmods.dev/badge/commands/bybren-llc/a-safe-pulse/checkpoint.svg" alt="Measured on agentmods" height="20"></a>
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 650 The whole file, excluding the scripts and references it only reads on demand.
Security scan A 0 findings. A grade says what 26 rules found in the file — not that it is safe.
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.1 $0.00008 $0.00650
Opus 5 $0.00004 $0.00325
Sonnet 5 $0.00002 $0.00130
Haiku 4.5 $0.00001 $0.00065

Measured yesterday against content hash c65a49fc955c, method: parsed. Prices are Anthropic first-party input rates as of 2026-09-06, 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.

.claude/commands/checkpoint.md · 101 lines

How it starts

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

You are saving a session checkpoint for cross-session continuity.

Security rule: Do NOT store secrets, raw tokens, credentials, or sensitive customer data in checkpoint files.

1. Determine Ticket

Extract the ticket number:

# Auto-detect from branch name
TICKET=$(git branch --show-current 2>/dev/null | grep -oE 'ASP-[0-9]+')
echo "Detected ticket: $TICKET"

If $ARGUMENTS was provided, use that instead. If no ticket can be determined, inform the user and stop — checkpoints require a ticket context.

2. Gather Git State

# Last commit
git log -1 --oneline

# Unpushed commits
git log origin/dev..HEAD --oneline 2>/dev/null | wc -l

# Uncommitted changes
git status --porcelain | wc -l

3. Summarize Session

Based on conversation context, create a summary covering:

  • Completed: What was accomplished this session
  • Next Steps: What should happen next (ordered by priority)
  • Decisions Made: Key decisions with rationale
  • Blockers: Any blocking issues (or "None")
  • Open Questions / Risks: Unresolved uncertainty that would get lost across sessions
  • Status: In Progress / Blocked / Ready for Review

4. Write Checkpoint (Canonical)

Write the checkpoint to .claude/state/checkpoints/ASP-{number}.md:

## Session Checkpoint — {today's date}

**Ticket**: ASP-{number}
**Branch**: {branch name}
**Status**: {status}

### Completed
- {bullets from summary}

### Next Steps
- {bullets from summary}

### Decisions Made
- {bullets with rationale}

### Blockers
- {if any, or "None"}

### Open Questions / Risks
- {unresolved items}

### Git State
- Last commit: {hash} {message}
- Unpushed: {count} commits
- Uncommitted: {yes/no}

5. Update Pointer

Write the ticket ID to .claude/state/checkpoints/current.md:

ASP-{number}

This overwrites any previous pointer. Only one ticket is "current" at a time.

6. Optional: Mirror to Memory

If the Claude Code memory system is available, optionally mirror the checkpoint to: ~/.claude/projects/.../memory/checkpoint.md

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

Subscribe to this mod's changes

checkpoint is a command published in the GitHub repository bybren-llc/a-safe-pulse (9 stars, last pushed 5mo ago), licensed MIT. It adds 8 tokens to every session and 650 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-09-04.