restore

restore is a command for Claude Code from GoogilyBoogily/googilyboogily-claude-power-tools. It costs 6 tokens per session (417 once invoked), scanned A, original, MIT.

A command for returning project files to a saved checkpoint. A checkpoint is a Git stash created earlier with the `/checkpoint` command.

In plain words
What is it for?
Use it to restore the latest checkpoint, restore a numbered checkpoint, inspect available checkpoints, or recover safely when current changes conflict with an older state.
Why use it?
It lets you recover an earlier project state while preserving the checkpoint for reuse. If current edits exist, it first creates a temporary backup so they can be recovered.

Command for Claude Code

Written for Claude Code: allowed-tools in frontmatter.

Part of the checkpoint plugin — 3 commands shipped together

Good fit Use it to restore the latest checkpoint, restore a numbered checkpoint, inspect available checkpoints, or recover safely when current changes conflict with an older state.

Compare 6 commands from other repositories ↓
Install with agentmods
npx agentmods add commands/googilyboogily/googilyboogily-claude-power-tools/restore
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/GoogilyBoogily/googilyboogily-claude-power-tools

Made for: Claude Code.

Or install checkpoint, the plugin that ships this one along with the rest of its 3 commands.

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/googilyboogily/googilyboogily-claude-power-tools/restore/github.svg)](https://agentmods.dev/commands/googilyboogily/googilyboogily-claude-power-tools/restore)
Your own site
<a href="https://agentmods.dev/commands/googilyboogily/googilyboogily-claude-power-tools/restore"><img src="https://agentmods.dev/badge/commands/googilyboogily/googilyboogily-claude-power-tools/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/googilyboogily/googilyboogily-claude-power-tools/restore"><img src="https://agentmods.dev/badge/commands/googilyboogily/googilyboogily-claude-power-tools/restore.svg" alt="Reviewed on agentmods" width="80" height="20"></a>
Per session 6 Only the description is in the session, so the agent can decide to use it. The body loads when it is invoked.
When invoked 417 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.00006 $0.00417
Opus 5 $0.00003 $0.00209
Sonnet 5 $0.00001 $0.00083
Haiku 4.5 $0.00001 $0.00042

Measured 12d ago against content hash e5179498969b, method: parsed. Prices are Anthropic first-party input rates as of 2026-09-12, 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 12d 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.

plugins/checkpoint/commands/restore.md · 42 lines

What it actually says

Restore to checkpoint

Restore your project files to a previous checkpoint created with /checkpoint.

Available checkpoints

!git stash list | grep "claude-checkpoint" | head -10

Current status

!git status --short

Task

Restore the project to a previous checkpoint. Based on $ARGUMENTS:

  1. Parse the argument:

    • If empty or "latest": Find the most recent claude-checkpoint stash
    • If a number (e.g. "2"): Use stash@{2} if it's a claude-checkpoint
    • Otherwise: Show error and list available checkpoints
  2. Check for uncommitted changes with git status --porcelain. If any exist:

    • Create a temporary backup stash: git stash push -m "claude-restore-backup: $(date +%Y-%m-%d_%H:%M:%S)"
    • Note the stash reference for potential recovery
  3. Apply the checkpoint:

    • Use git stash apply stash@{n} (not pop, to preserve the checkpoint)
    • If there's a conflict due to uncommitted changes that were stashed, handle gracefully
  4. Show what was restored:

    • Display which checkpoint was applied
    • If uncommitted changes were backed up, inform user how to recover them

Example outputs:

  • For /restore: "Restored to checkpoint: before major refactor (stash@{0})"
  • For /restore 3: "Restored to checkpoint: working OAuth implementation (stash@{3})"
  • With uncommitted changes: "Backed up current changes to stash@{0}. Restored to checkpoint: before major refactor (stash@{1})"
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. 12d ago First seen · 42 lines · 6 tokens per session scan A e5179498969b

Subscribe to this mod's changes

restore is a command published in the GitHub repository GoogilyBoogily/googilyboogily-claude-power-tools (2 stars, last pushed 4mo ago), licensed MIT. It adds 6 tokens to every session and 417 once invoked, about $0.0000 per session on Opus 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.