restore

restore is a command for Claude Code from nxtg-ai/forge-plugin. It costs 6 tokens per session (466 once invoked), scanned A, original, MIT.

A project-state recovery command that restores settings from a saved checkpoint, a recorded version of the project's state. It previews differences and warns about uncommitted work before changing governance settings.

In plain words
What is it for?
Use it to review available checkpoints, compare one with the current project, and restore its saved governance configuration safely.
Why use it?
Returning to an earlier setup can accidentally overwrite current work or configuration. This shows the comparison first and keeps code changes under your control.

Command for Claude Code

Written for Claude Code: disable-model-invocation in frontmatter. Also seen: names the AskUserQuestion tool.

Part of the nxtg-forge plugin — 27 skills, 24 commands, 33 agents shipped together

Good fit Use it to review available checkpoints, compare one with the current project, and restore its saved governance configuration safely.

Compare 6 commands from other repositories ↓
Install with agentmods
npx agentmods add commands/nxtg-ai/forge-plugin/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/nxtg-ai/forge-plugin

Made for: Claude Code.

Or install nxtg-forge, the plugin that ships this one along with the rest of its 27 skills, 24 commands, 33 agents.

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/nxtg-ai/forge-plugin/restore/github.svg)](https://agentmods.dev/commands/nxtg-ai/forge-plugin/restore)
Your own site
<a href="https://agentmods.dev/commands/nxtg-ai/forge-plugin/restore"><img src="https://agentmods.dev/badge/commands/nxtg-ai/forge-plugin/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/nxtg-ai/forge-plugin/restore"><img src="https://agentmods.dev/badge/commands/nxtg-ai/forge-plugin/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 466 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.00466
Opus 5.5 $0.00002 $0.00186
Sonnet 5.5 $0.00001 $0.00093
Haiku 4.5 $0.00001 $0.00047

Measured 12d ago against content hash 62e875db4427, 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 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/nxtg-forge/commands/restore.md · 78 lines

What it actually says

NXTG-Forge Restore

You are the Restore Manager - restore project state from a previously saved checkpoint.

This command is a shortcut for /nxtg-forge:checkpoint restore.

Parse Arguments

Arguments received: $ARGUMENTS

  • If a checkpoint ID is provided: restore that specific checkpoint
  • If --preview flag: show what would be restored without changing anything
  • If no arguments: list available checkpoints and ask user to choose

Execution

No arguments - Interactive restore

  1. List all checkpoints in .claude/checkpoints/:
ls .claude/checkpoints/*.json 2>/dev/null
  1. For each checkpoint, read and display summary
  2. Ask user which checkpoint to restore using AskUserQuestion
  3. Execute restore

With checkpoint ID

  1. Read .claude/checkpoints/{id}.json
  2. Display what will be restored:
RESTORE PREVIEW
================
Checkpoint: {id}
Saved: {timestamp}
Branch at save: {branch}
Commit at save: {commit}

Current state:
  Branch: {current_branch}
  Commit: {current_commit}
  Uncommitted changes: {count}

This will restore:
  - Governance state from checkpoint
  - Git info displayed for reference (not auto-restored)
  1. Ask for confirmation
  2. Restore governance.json if it was saved
  3. Display restoration complete message

Preview mode (--preview)

Same as above but skip the actual restore step. Just show what would happen.

Safety

  • Always show a diff between current state and checkpoint state before restoring
  • Warn if there are uncommitted changes that would be affected
  • Suggest creating a new checkpoint of current state before restoring:
    Tip: Save current state first with /nxtg-forge:checkpoint save before-restore
    

Error Handling

  • Checkpoint not found: list available checkpoints
  • No checkpoints directory: suggest /nxtg-forge:checkpoint save first
  • Corrupt checkpoint file: show error details
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 Changed 62e875db4427
  2. 1mo ago Changed · -46 lines · +6 tokens per session ba9d9bbd2404
  3. 1mo ago First seen · 124 lines · 0 tokens per session scan A dc487062536a

Subscribe to this mod's changes

restore is a command published in the GitHub repository nxtg-ai/forge-plugin (6 stars, last pushed 4d ago), licensed MIT. It adds 6 tokens to every session and 466 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.

Related

Other commands, from other repositories

fix-issues

Diagnose, reproduce, then fix reproducible open GitHub issues in parallel: one clean worktree/issue; symlink build artifacts to avoid rebuilds.

can1357/oh-my-pi · 0 tokens

release

Release all packages at specified version.

can1357/oh-my-pi · 0 tokens

update-pr-body

Bring the pull request's description in line with the final change. It was written when the draft opened; the base merge and correction rounds since then may have falsified claims in it, and a validation may have passed red it has to disclose. Your product is an accurate description, nothing else.

coleam00/Archon · 0 tokens

settle-threads

The previous round read unresolved review threads on the pull request, and this round's implementer judged each one like a review finding: fixed it, declined it with evidence, or found it needs a decision this run cannot make. Decide which threads are settled and write the reply each one gets. You write nothing…

coleam00/Archon · 0 tokens

fix-issue

Fixes GitHub issues using parallel analysis agents for root cause investigation, code exploration, and regression detection. Reads issue context from gh CLI, searches codebase and memory for related patterns, generates a fix with tests, and links the resolution back to the issue via PR. Includes prevention analysis to…

yonatangross/orchestkit · 82 tokens

create-pr

Creates GitHub pull requests with pre-flight validation, conventional title formatting, and structured summary generation. Runs parallel checks (tests, lint, type-check, security) before opening. Supports feature, bugfix, refactor, and hotfix PR types with milestone assignment via gh CLI. Invoke only if the operator…

yonatangross/orchestkit · 89 tokens