claude-code-autoconfig: Command for Claude Code

.claude/commands/restore-after-reboot.md

restore-after-reboot is a command for Claude Code from design-and-deliver/claude-code-autoconfig. It costs 0 tokens per session (1,783 once invoked), scanned C, original, MIT.

A read-only command that identifies which Claude Code sessions were active before a computer restart and reports uncommitted changes in their worktrees.

In plain words
What is it for?
Use it after reboot to identify affected sessions and unfinished code; optional launch flags can open sessions or worktrees.
Why use it?
It helps you see what the restart interrupted when many saved conversation transcripts exist but the previously open terminals are unknown.

Command for Claude Code

Written for Claude Code: ${CLAUDE_PROJECT_DIR variable. Also seen: reads .claude/ paths.

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 →

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/restore-after-reboot.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 restore-after-reboot

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

Your own site · 80×15
<a href="https://agentmods.dev/commands/design-and-deliver/claude-code-autoconfig/restore-after-reboot"><img src="https://agentmods.dev/badge/commands/design-and-deliver/claude-code-autoconfig/restore-after-reboot.svg" alt="Reviewed on agentmods" width="80" height="20"></a>
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,783 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.00000 $0.01783
Opus 5 $0.00000 $0.00892
Sonnet 5 $0.00000 $0.00357
Haiku 4.5 $0.00000 $0.00178

Measured 9d ago against content hash 941bfd9d13fc, method: parsed. Prices are Anthropic first-party input rates as of 2026-09-09, from the pricing page.

Security

Grade C, and why

restore-after-reboot 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 9d 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.

Hidden instructionshighPrompt injection

Directives inside HTML comments, invisible characters or bidirectional overrides are read by the model and not by the person reviewing the file.

<!-- @example /restore-after-reboot | What died in the restart, and how to get it back -->
.claude/commands/restore-after-reboot.md · 129 lines

How it starts

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

/restore-after-reboot

A restart closes every terminal at once. The conversations survive — transcripts are append-only — but nothing tells you WHICH of the hundreds on disk were open when the power went. This does.

It is named for the event, not the object, because that is how you reach for it: you don't know what got wiped, you know the machine restarted. Answering "what else did that take?" is part of the job, so it also reports uncommitted work sitting in the trees those sessions were editing.

READ-ONLY unless you pass --launch or --vscode. Running it never resumes anything on its own.

DEV-ONLY: gated out of user installs (DEV_ONLY_FILES in bin/cli.js), dogfooded from the CCA repo like fleet and token-guard. It depends on session-close.js, which is gated the same way.

Read the full file on GitHub · 129 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. 9d ago First seen · 129 lines · 0 tokens per session scan C 941bfd9d13fc

Subscribe to this mod's changes

restore-after-reboot is a command published in the GitHub repository design-and-deliver/claude-code-autoconfig (2 stars, last pushed 5d ago), licensed MIT. It costs nothing until one of its globs matches a file; then it loads 1,783 tokens. A static security scan graded it C with 1 finding (hidden instructions). No closer match exists in the catalogue, so it is treated as the original; first seen 2026-08-31.