restore

restore is a command for Claude Code from Data-Wise/craft. It costs 8 tokens per session (670 once invoked), scanned A, original, MIT.

A combined session and Git context recovery command. It summarizes recent repository activity and restores information about project status, planning files, open pull requests and issues, and other recorded work context.

In plain words
What is it for?
Use it when returning to a project to review session state, recent commits, branch changes, unpushed work, open collaboration items, and current plans.
Why use it?
It helps someone resume work without reconstructing recent activity from scattered places. Different output modes let the Git summary be brief or detailed.

Command for Claude Code

Written for Claude Code: shipped in a Claude Code plugin.

Needs its repository: it reads a path above its own folder, which exists only inside the repository. The line is [`docs/specs/SPEC-craft-restore-2026-07-17.md`](../docs/specs/SPEC-craft-restore-2026-07-17.md)..

Part of the craft plugin — 44 skills, 14 commands, 2 agents, 1 MCP server shipped together

Good fit Use it when returning to a project to review session state, recent commits, branch changes, unpushed work, open collaboration items, and current plans.

Compare 6 commands from other repositories ↓
Install

Getting it into your agent

It runs from inside its repository, so the clone comes first — what it calls does not travel with the file alone.

Clone the repo
git clone --depth 1 https://github.com/Data-Wise/craft
agentmods
npx agentmods add commands/data-wise/craft/restore

Made for: Claude Code.

Or install craft, the plugin that ships this one along with the rest of its 44 skills, 14 commands, 2 agents, 1 MCP server.

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

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

Your own site · 80×15
<a href="https://agentmods.dev/commands/data-wise/craft/restore"><img src="https://agentmods.dev/badge/commands/data-wise/craft/restore.svg" alt="Reviewed on agentmods" width="80" height="20"></a>
Per session 8 Only the description is in the session, so the agent can decide to use it. The body loads when it is invoked.
When invoked 670 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.00008 $0.00670
Opus 5.5 $0.00003 $0.00268
Sonnet 5.5 $0.00002 $0.00134
Haiku 4.5 $0.00001 $0.00067

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

Security

Grade A, and why

restore 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.

commands/restore.md · 54 lines

How it starts

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

/restore - Restore Git & Session Context

This command is a thin shim. The canonical behavior lives in two skills: git-activity recap (dev/git skill, Operation 7) and .STATUS-based session recap (adhd-workflow skill, §2 "Context Restoration"). This file exists to give both a single, discoverable combined entry point — see docs/specs/SPEC-craft-restore-2026-07-17.md.

Usage

/craft:restore              # default mode
/craft:restore detailed     # full verbosity on the git-activity portion
/craft:restore summary      # minimal verbosity on the git-activity portion

When invoked

  1. Session state: run the adhd-workflow skill's §2 "Context Restoration (recap)" operation — .STATUS state, git activity (last 48h), open PRs/issues, planning files, Obsidian flow status. This is single-verbosity; the mode argument does not change it.
  2. Git activity: run the dev/git skill's Operation 7 (git activity recap) — today's/this week's commits, branch ahead/behind, unpushed work, open PRs — using whichever mode (default | detailed | summary) was passed.
  3. De-dupe on presentation, not on source logic: both operations independently surface recent commits and open PRs. Present one combined git-activity block (from step 2, mode-aware) rather than printing the same commits/PRs twice. Session-only content from step 1 (.STATUS next-action/blockers, planning files, Obsidian flow status) goes in its own section.
  4. Present as one combined, ADHD-friendly summary: git state first, session state second, a single "what's next" line last.
  5. Do not reimplement either operation here. Any change to git-recap logic belongs in dev/git; any change to session-recap logic belongs in adhd-workflow. This file is routing only.

Read-only

/craft:restore never writes .STATUS, never commits, never syncs anything — it only reads and reports. There is no --sync flag (unlike savant:restore, which optionally applies diff-gated doc updates). If write-back is ever wanted, that is a separate, explicitly-scoped addition — not part of this command today.

Read the full file on GitHub · 54 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 First seen · 54 lines · 8 tokens per session scan A a1eb807984e7

Subscribe to this mod's changes

restore is a command published in the GitHub repository Data-Wise/craft (4 stars, last pushed 7d ago), licensed MIT. It adds 8 tokens to every session and 670 once invoked, about $0.0000 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.