um-checkpoint

um-checkpoint is a command for coding agents from goldenwo/universal-memory. It costs 12 tokens per session (613 once invoked), scanned A, original, MIT.

A command that creates a memory checkpoint by summarizing the current session and updating its state file.

In plain words
What is it for?
It is for recording the current session into the project's memory and processing any captured information.
Why use it?
It saves session context on demand, without waiting for the session to end normally.

Command

Installs and runs on its own, but its text points at files inside its plugin — anything it tells you to read at a ${CLAUDE_PLUGIN_ROOT} path is only there once the plugin is installed. Installing the plugin gets both.

Part of the universal-memory plugin — 3 commands, 4 hooks shipped together

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/goldenwo/universal-memory/um-checkpoint
Clone the repo
git clone --depth 1 https://github.com/goldenwo/universal-memory

Or install universal-memory, the plugin that ships this one along with the rest of its 3 commands, 4 hooks.

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 um-checkpoint

README.md
[![agentmods](https://agentmods.dev/badge/commands/goldenwo/universal-memory/um-checkpoint.svg)](https://agentmods.dev/commands/goldenwo/universal-memory/um-checkpoint)
Your own site
<a href="https://agentmods.dev/commands/goldenwo/universal-memory/um-checkpoint"><img src="https://agentmods.dev/badge/commands/goldenwo/universal-memory/um-checkpoint.svg" alt="Measured on agentmods" height="20"></a>
Per session 12 Only the description is in the session, so the agent can decide to use it. The body loads when it is invoked.
When invoked 613 The whole file, excluding the scripts and references it only reads on demand.
Security scan A 1 finding. 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.00012 $0.00613
Opus 5 $0.00006 $0.00307
Sonnet 5 $0.00002 $0.00123
Haiku 4.5 $0.00001 $0.00061

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

Security

Grade A, and why

um-checkpoint scanned grade A with 1 finding 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 4d 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.

Makes network callslowCapability

Not a fault in itself. Listed so you know the mod talks to something, and to what.

immediately (the POST itself is DETACHED, on its own 120s client-side `curl --max-time` — not a
plugins/claude-code/universal-memory/commands/um-checkpoint.md · 39 lines

What it actually says

Execute bash "${CLAUDE_PLUGIN_ROOT}/hooks/session-end.sh" via the Bash tool.

This fires the same detached POST /api/checkpoint {project} that SessionEnd sends automatically on a clean exit — running it on demand just doesn't require exiting first. The hook returns immediately (the POST itself is DETACHED, on its own 120s client-side curl --max-time — not a server-side budget; server-side synthesis can still take a while, this just bounds how long the detached child waits for it); the outcome lands in ~/.um/hook.log (posted http=200 / error=... / skip=...), not in this command's own output. There is no client-side summarizer or state.md merge anymore — the server's checkpoint pipeline owns synthesis end to end.

Chunked semantics. Server-side, checkpoint synthesis is chunked: each call digests at most a few chunks of raw captures (shipped default 3), each an independently committed transaction, then reports whether more backlog remains (backlog_remaining). A normal session's worth of captures fits in one chunk, so one call is usually enough. If the project has a large undigested backlog — after an outage, a long gap between sessions, or a first-ever checkpoint on an older project — a single call can leave backlog_remaining: true; the fix is simply to run this command again. Each call resumes exactly where the last one left off (a durable per-project cursor, not a re-read of everything), so repeated calls are the normal way to catch up — never lossy, at worst a little redundant across a crash boundary.

Use this before:

  • Switching devices — ensures state.md on disk is current so the next session picks up fresh context
  • Approaching auto-compact — the post-compact session reads the refreshed state.md via the SessionStart hook
  • Long breaks — avoids relying on SessionEnd firing cleanly (which it often doesn't: crashes, kills, and terminal closes all skip it)

Draining a large backlog. This command is for one session's on-demand checkpoint. To catch up a large backlog across many calls or many projects at once (e.g. after an extended outage), use the operator tool bin/um-drain.sh instead — it loops the same POST until backlog_remaining: false, with a cost estimate and confirm gate up front. See the paragraph on progressive drain semantics right below the plugin README's component table.

The hook is fail-soft: missing API key, server down, malformed LLM output — all surface as warnings in ~/.um/hook.log, never data loss. Raw captures stay on disk either way; nothing already digested is ever re-read.

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. 4d ago First seen · 39 lines · 12 tokens per session scan A f42a83b1ca49

Subscribe to this mod's changes

um-checkpoint is a command published in the GitHub repository goldenwo/universal-memory (2 stars, last pushed 7d ago), licensed MIT. It adds 12 tokens to every session and 613 once invoked, about $0.0001 per session on Opus 5. A static security scan graded it A with 1 finding (makes network calls). No closer match exists in the catalogue, so it is treated as the original; first seen 2026-08-31.