fd-checkpoint

fd-checkpoint is a command for Claude Code from DVNghiem/FlowDeck. It costs 21 tokens per session (704 once invoked), scanned A, original, MIT.

A command that saves the current agent session to checkpoint.json and STATE.md so it can be resumed later. It is part of a workflow that tracks the project's planning state.

In plain words
What is it for?
Use it to force a session checkpoint, update the recorded status and completed steps, and prepare the workspace for /fd-resume.
Why use it?
It creates a recovery point before ending or interrupting a session, preserving progress and status.

Command for Claude Code

Written for Claude Code: a Claude Code command (commands/*.md).

Good fit Use it to force a session checkpoint, update the recorded status and completed steps, and prepare the workspace for /fd-resume.

Compare 6 commands from other repositories ↓
Install with agentmods
npx agentmods add commands/dvnghiem/flowdeck/fd-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/DVNghiem/FlowDeck

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

README.md
[![agentmods](https://agentmods.dev/badge/commands/dvnghiem/flowdeck/fd-checkpoint/github.svg)](https://agentmods.dev/commands/dvnghiem/flowdeck/fd-checkpoint)
Your own site
<a href="https://agentmods.dev/commands/dvnghiem/flowdeck/fd-checkpoint"><img src="https://agentmods.dev/badge/commands/dvnghiem/flowdeck/fd-checkpoint/github.svg" alt="Measured on agentmods" height="20"></a>

Or the 80×15 button, for a site that already has a row of RSS and ATOM ones. Only the verdict fits; the numbers stay here.

agentmods 80×15 button for fd-checkpoint

Your own site · 80×15
<a href="https://agentmods.dev/commands/dvnghiem/flowdeck/fd-checkpoint"><img src="https://agentmods.dev/badge/commands/dvnghiem/flowdeck/fd-checkpoint.svg" alt="Reviewed on agentmods" width="80" height="20"></a>
Per session 21 Only the description is in the session, so the agent can decide to use it. The body loads when it is invoked.
When invoked 704 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.00021 $0.00704
Opus 5.5 $0.00008 $0.00282
Sonnet 5.5 $0.00004 $0.00141
Haiku 4.5 $0.00002 $0.00070

Measured 16d ago against content hash d67871f95638, method: parsed. Prices are Anthropic first-party input rates as of 2026-10-07, from the pricing page.

Security

Grade A, and why

fd-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 16d 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.

src/commands/fd-checkpoint.md · 68 lines

How it starts

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

Checkpoint

Save the current session state so work can be safely resumed later.

This runs automatically on session.idle via the session-events hook, which refreshes saved_at and persists whatever state the agent last wrote. Invoke it manually only to force a save before closing a session.

Steps

  1. Check ~/.fd-plan/<slug>/STATE.md exists — if not, error: "No planning workspace. Run /fd-task to start."

  2. Read the current STATE.md and the existing checkpoint.json if present.

  3. Update STATE.md:

    • Set last_updated to the current timestamp
    • Ensure status reflects the current state accurately
  4. If ~/.fd-plan/<slug>/<topic>/plan.md exists, scan it for completed steps and update STATE.md's steps_complete.

  5. Write ~/.fd-plan/<slug>/checkpoint.json. This is the file /fd-resume reads first. Merge into the existing file — never drop fields written by an earlier command.

{
  "version": "1",
  "project": "<slug>",
  "topic": "<topic>",
  "saved_at": "<ISO>",
  "current_command": "fd-execute",
  "current_stage": "wave-2",
  "phases": { "1": "complete", "2": "in_progress", "3": "pending" },
  "files_written": ["~/.fd-plan/<slug>/<topic>/plan.md"],
  "worktrees": [],
  "blockers": [],
  "status": "in_progress"
}

Field rules:

  • version — always "1". Bump only when the schema changes incompatibly.
  • project — the project slug (the directory name used for ~/.fd-plan/<slug>/).
  • topic — the active topic slug, i.e. the subdirectory holding the artifacts.
  • saved_at — ISO 8601 timestamp of this save.
  • current_command — the /fd-* command in flight, e.g. fd-execute.
  • current_stage — the stage within that command, e.g. complete, wave-2, failed.
  • phases — every known wave number mapped to complete | in_progress | pending.
  • files_written — planning artifacts written this session, as ~-prefixed paths.
  • worktrees — worktrees still live and unmerged, e.g. fd-<slug>-wave-2. Empty when none.
  • blockers — STATE.md blockers, verbatim. Empty when unblocked.
  • status — in_progress while the pipeline is running, done after /fd-done.

Read the full file on GitHub · 68 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. 16d ago Changed · -2 lines · +21 tokens per session d67871f95638
  2. 3mo ago First seen · 70 lines · 0 tokens per session scan A a29a295c3b49

Subscribe to this mod's changes

fd-checkpoint is a command published in the GitHub repository DVNghiem/FlowDeck (44 stars, last pushed 15d ago), licensed MIT. It adds 21 tokens to every session and 704 once invoked, about $0.0001 per session on Opus 5.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-30.

Related

fd-checkpoint compared with commands from other repositories

fd-checkpoint next to 6 commands from other repositories
ModTypeStarsLast pushLicenceScanTokensWorks with
fd-checkpointDVNghiem/FlowDeckCommand4415d agoMITA21Claude Code
kibi-bootstrapLooted/kibiCommand143d agoAGPL-3.0A12Claude Code, Cursor
context-savewshobson/agentsCommand43k5d agoMITA12Claude Code
rem_helpopenonion/connectonionCommand1.6ktodayApache-2.0B0Claude Code
ingestnvk/llm-wikiCommand1.6k1mo agoMITA34Claude Code
compass-verifychunxiaoxx/nautilus-compassCommand1.3ktodaynoneA0Claude Code
export-closedloop-learningsclosedloop-ai/claude-pluginsCommand1223d agoApache-2.0A13Claude Code