claude-code-autoconfig: Command for Claude Code

.claude/commands/continue.md

continue is a command for Claude Code from design-and-deliver/claude-code-autoconfig. It costs 22 tokens per session (4,107 once invoked), scanned A, original, MIT.

A command that recovers the previous coding session's last active task and reports its current state.

In plain words
What is it for?
Use it at the start of a resumed terminal session, then approve the reported next step in a new turn.
Why use it?
It saves time when returning to interrupted work by rebuilding the relevant context and identifying the next action.

Command for Claude Code

Written for Claude Code: argument-hint in frontmatter. Also seen: reads .claude/ paths; names the AskUserQuestion tool; mentions Claude Code.

This is design-and-deliver/claude-code-autoconfig's own configuration. It tells Claude Code how to work on claude-code-autoconfig itself, so it is not a mod to install elsewhere. Copy it as a starting point and replace the rules that are about this project. Everything claude-code-autoconfig configures →

Needs its repository: it runs a file that does not travel with it, so clone the repository first. The line is python3 .claude/scripts/recover-session.py 2>/dev/null \.

Reuse

Borrowing it

Nothing to install: this file belongs to design-and-deliver/claude-code-autoconfig. Take a copy, put it at the same path in your own repository, and replace the rules that are about this project with yours.

Copy the file
curl -O https://raw.githubusercontent.com/design-and-deliver/claude-code-autoconfig/main/.claude/commands/continue.md
Clone the repo
git clone --depth 1 https://github.com/design-and-deliver/claude-code-autoconfig

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 continue

README.md
[![agentmods](https://agentmods.dev/badge/commands/design-and-deliver/claude-code-autoconfig/continue/github.svg)](https://agentmods.dev/commands/design-and-deliver/claude-code-autoconfig/continue)
Your own site
<a href="https://agentmods.dev/commands/design-and-deliver/claude-code-autoconfig/continue"><img src="https://agentmods.dev/badge/commands/design-and-deliver/claude-code-autoconfig/continue/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 continue

Your own site · 80×15
<a href="https://agentmods.dev/commands/design-and-deliver/claude-code-autoconfig/continue"><img src="https://agentmods.dev/badge/commands/design-and-deliver/claude-code-autoconfig/continue.svg" alt="Reviewed on agentmods" width="80" height="20"></a>
Per session 22 Only the description is in the session, so the agent can decide to use it. The body loads when it is invoked.
When invoked 4,107 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.00022 $0.04107
Opus 5.5 $0.00009 $0.01643
Sonnet 5.5 $0.00004 $0.00821
Haiku 4.5 $0.00002 $0.00411

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

Security

Grade A, and why

continue 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 1mo 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.

.claude/commands/continue.md · 263 lines

How it starts

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

Continue where the previous session in this terminal left off.

This is the no-ceremony wrapper around /recover-context's auto mode: no arguments, it figures everything out itself, and it is plan-aware (below). Recovery is mechanical re-reading — probe, read, reconcile — never the resumed work itself. So this command ends its turn at the report: state recovered, the one next action named, a go-ahead question. The user's next prompt ("go") starts a fresh turn with the recovered context already in the conversation.

⛔ End the turn on a plain text question — never an AskUserQuestion picker. A picker answer continues the SAME turn, so the work it green-lights runs inside the recovery turn — exactly what the stop exists to prevent. This overrides any local end-of-turn convention that prefers a picker for closed choices. Ask in text, end the message, wait.

No model pin, no model advice (v18). Claude Code ignores command model: frontmatter at runtime — a known bug (anthropics/claude-code#45191, closed "not planned") — so v9–v16's model: sonnet pin never actually switched anything (measured 2026-08-23 on 2.1.220: 85 /continue runs, zero switches at the command boundary) and was removed rather than left looking load-bearing. Do not re-add it. Do not surface model advice either: v17's "⚠ recovery ran on {model} — /model sonnet first" report line was cut 2026-08-27 as UI noise — /clear then /continue must stay a two-step habit with zero model choreography around it. The recovery steps are identical on any model; the probe's currentModel field is informational only — never report it, never act on it.

It is also plan-aware: when the previous session was executing a substep of a phased plan doc (the plan-authoring pattern — a docs/*.md or .claude/plans/*.md with a ## Ledger section) and stayed on that plan through to the end of the session, the plan doc + Ledger is the handoff, not the transcript. If the session moved on to something else afterward, the transcript's tail is the handoff — see Step 3.

Every probe runs in ONE call (Step 1). Recovery cost is round trips × resident context, and this command used to spend eight to fifteen sequential round trips on pure filesystem reads whose results never changed what the next probe did — while the context they recovered was ~700 tokens at p50 (measured 2026-08-07 across 245 real /continue sessions). The probes were separate only because this doc used to write them as separate prose steps. Everything below Step 1 is a DECISION, not a lookup.

Step 0: Announce (the turn's first output, before any tool call)

Say exactly:

Recovering context for the previous session's last active use case.

Say that sentence in full — not the vaguer "Recovering the previous session's context.", and not a trimmed hybrid that drops "context for". Both halves earn their place: "context for" names what is being rebuilt, and "last active use case" names how much of it comes back — the in-flight tail of that session (cutoff ladder + 3k cap) or its plan Ledger, never the whole transcript.

Read the full file on GitHub · 263 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. 1mo ago Changed 30bab013c09c
  2. 1mo ago Changed · -18 lines e5dc95de946e
  3. 2mo ago First seen · 281 lines · 22 tokens per session scan A 4fad1aa31068

Subscribe to this mod's changes

continue is a command published in the GitHub repository design-and-deliver/claude-code-autoconfig (2 stars, last pushed 10d ago), licensed MIT. It adds 22 tokens to every session and 4,107 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-31.