checkpoint

A command for saving the current work state to project files. It records code changes, decisions, research, problems, tests, and progress.

In plain words
What is it for?
Use it before stepping away, before a large task, or when finishing work to create a durable project snapshot.
Why use it?
It preserves your working context so you can continue later without having to explain the task again, especially after a long operation or interrupted session.

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/paulonasc/orchestra/checkpoint
Clone the repo
git clone --depth 1 https://github.com/paulonasc/orchestra
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 1,641 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.01641
Opus 5 $0.00000 $0.00821
Sonnet 5 $0.00000 $0.00328
Haiku 4.5 $0.00000 $0.00164

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

commands/checkpoint.md · 120 lines

How it starts

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

/o checkpoint — Save everything to disk

A task is NOT DONE until checkpoint is saved. This is non-negotiable. Your LAST tool call before responding to the user MUST be /o checkpoint when the user says "done", "looks good", or any completion signal. If you skip checkpoint, all work from this session is PERMANENTLY LOST — the user will have to re-explain everything next session.

Force-flush all in-flight context to Orchestra files. Use before stepping away, before a long operation, or whenever you want a compaction-proof snapshot.

Prefer delegating to a subagent (via the Agent tool) to keep the main context lean. But if the Agent tool is not available, write the files inline directly — the checkpoint must always complete. Do not skip writes because you cannot delegate.

Before writing, answer each category:

  • Code: What files did you create or edit?
  • Decisions: What architectural, tool, or approach decisions did you make (and why)?
  • Research: What did you investigate, compare, or evaluate?
  • Gotchas: What surprised you or broke unexpectedly?
  • Tests: What tests did you run? What passed? What failed? Include counts and specific failures.
  • Progress: Which milestone items are now done, in-progress, or blocked?
  • Next: What should happen next?

Write down your answers — they become the subagent prompt (or your own writing guide if doing it inline). Be thorough — this is what survives compaction.

Files to write (all paths relative to .orchestra/), in priority order:

Write these two FIRST — they are the minimum viable checkpoint. If you are low on turns, write only these two and skip the rest:

  1. state/sessions/{session-id}.md (CRITICAL) — session state snapshot. Fill in every section: Working on, Progress updates, Decisions made, Research findings, Gotchas, Next steps. This is the single most important file — without it, the session is lost on compaction.
  2. memory/YYYY-MM-DD.md (CRITICAL) — append-only daily log. Prefix each entry with [session: {session-id}] so concurrent sessions don't interleave ambiguously.

Then write these if turns/context allow:

  1. threads/NNN-slug/progress.yaml — update item statuses to reflect reality. Mark completed items as done, new work as in-progress.
  2. threads/NNN-slug/verification.md — record any test results from this session. Update PENDING items to PASS/FAIL with details.
  3. threads/NNN-slug/conversation.md — append design decisions or important discussion from this session.
  4. decisions/NNN-slug.md — new decision files for any decisions made this session. Use unique filenames (next available number + descriptive slug) so concurrent agents never collide.
  5. MEMORY.md — durable learnings (gotchas, patterns, preferences). Append new entries; never overwrite existing ones.

After writing (or after the subagent returns), reset the edit counter and confirm to the user:

echo 0 > .orchestra/.logs/edit-count-{session-id}
Checkpoint saved:
  ✓ session file, daily log, thread files updated
  ✓ {N} decision(s) recorded (if any)

This is the "save game" button. Everything needed to resume from scratch is now on disk. If compaction happens or the session ends, nothing is lost. Other concurrent sessions will pick up your changes at their next session-start.

Read the full file on GitHub · 120 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. 3d ago First seen · 120 lines · 0 tokens per session scan A ab3624021be1

Subscribe to this mod's changes

checkpoint is a command published in the GitHub repository paulonasc/orchestra (15 stars, last pushed 4mo ago), licensed MIT. It costs nothing until one of its globs matches a file; then it loads 1,641 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.