resume

resume is a command for Claude Code from longthread/claude-plugins. It costs 7 tokens per session (1,008 once invoked), scanned C, original, MIT.

A command for continuing a programme, meaning a tracked body of development work, from its saved project notes.

In plain words
What is it for?
Use it to identify the active programme, read its ledger and next-session notes, and resume from the recorded phase and prompt.
Why use it?
It reduces the risk of working on the wrong task or branch and helps the next session follow the documented goal and starting instructions.

Command for Claude Code

Written for Claude Code: argument-hint in frontmatter. Also seen: positional $N argument.

Part of the programme plugin — 5 commands, 4 hooks shipped together

Good fit Use it to identify the active programme, read its ledger and next-session notes, and resume from the recorded phase and prompt.

Compare 6 commands from other repositories ↓
Install with agentmods
npx agentmods add commands/longthread/claude-plugins/resume
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/longthread/claude-plugins

Made for: Claude Code.

Or install programme, the plugin that ships this one along with the rest of its 5 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 resume

README.md
[![agentmods](https://agentmods.dev/badge/commands/longthread/claude-plugins/resume/github.svg)](https://agentmods.dev/commands/longthread/claude-plugins/resume)
Your own site
<a href="https://agentmods.dev/commands/longthread/claude-plugins/resume"><img src="https://agentmods.dev/badge/commands/longthread/claude-plugins/resume/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 resume

Your own site · 80×15
<a href="https://agentmods.dev/commands/longthread/claude-plugins/resume"><img src="https://agentmods.dev/badge/commands/longthread/claude-plugins/resume.svg" alt="Reviewed on agentmods" width="80" height="20"></a>
Per session 7 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,008 The whole file, excluding the scripts and references it only reads on demand.
Security scan C 1 finding. 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.00007 $0.01008
Opus 5.5 $0.00003 $0.00403
Sonnet 5.5 $0.00001 $0.00202
Haiku 4.5 $0.00001 $0.00101

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

Security

Grade C, and why

resume scanned grade C 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 10d 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.

Tells the agent never to refusehighAnti-refusal

Suppressing the ability to decline removes a core safety control; a later harmful request then succeeds.

position, not after — a phase read without the arc around it is a phase you cannot refuse work
plugins/programme/commands/resume.md · 81 lines

How it starts

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

Resume the programme $1, or resolve it if $1 is empty.

Resolve the programme from the tree

git rev-parse --abbrev-ref HEAD
cat "<docsRoot>/programmes/INDEX.md"

Match the current branch against the branch column. $1 wins if given; otherwise PROGRAMME_SLUG, when it names a programme directory, wins over the branch — it is how a relayed session is told its programme. Skip any row whose status is closed — it is not a candidate, even if its branch matches. If nothing matches and there is exactly one open programme, use it. If several exist and none matches, list them and ask — do not guess, and do not fall back to "most recently modified", which is how a session ends up writing into the wrong programme's ledger. Several open rows on the current branch are the same case as none — list those rows and ask, and take the answer as the user re-running /programme:resume <name>: the re-run is what pins the programme for the rest of the session, including after a compaction.

Say you have started, before reading anything

As soon as the programme is resolved — before reading the ledger — print this as the first line of your first reply, in every mode, including autonomous:

Resumed programme "<SLUG>"

It signals that this session has resolved the programme and has started. A relaying predecessor waits for it in this pane's output, and the checks below can take many minutes, so it must not wait behind them. It says nothing of the checks, which come after.

Read, in this order

  1. <docsRoot>/programmes/<SLUG>/ledger.md — in full, starting with ## The arc: the goal, the programme's terminal condition, and which phases are still planned. Read it before the position, not after — a phase read without the arc around it is a phase you cannot refuse work inside.
  2. <docsRoot>/programmes/<SLUG>/NEXT-SESSION.md — read its "Start here" block now, but it is acted on only after the State-table checks and the report below: it is followed after the report, and in assisted and supervised mode after the user says proceed.

Read the full file on GitHub · 81 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. 10d ago Changed · +32 lines d252c71bd4b9
  2. 11d ago Changed · +2 lines 8202177a8c3a
  3. 1mo ago First seen · 47 lines · 7 tokens per session scan C 77a199060101

Subscribe to this mod's changes

resume is a command published in the GitHub repository longthread/claude-plugins (1 stars, last pushed 11d ago), licensed MIT. It adds 7 tokens to every session and 1,008 once invoked, about $0.0000 per session on Opus 5.5. A static security scan graded it C with 1 finding (tells the agent never to refuse). No closer match exists in the catalogue, so it is treated as the original; first seen 2026-08-31.