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.
git clone --depth 1 https://github.com/nxtg-ai/forge-pluginWrote 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.
[](https://agentmods.dev/commands/nxtg-ai/forge-plugin/restore)<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.
<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>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.
| Model | Per session | Once 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 |
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.
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
--previewflag: show what would be restored without changing anything - If no arguments: list available checkpoints and ask user to choose
Execution
No arguments - Interactive restore
- List all checkpoints in
.claude/checkpoints/:
ls .claude/checkpoints/*.json 2>/dev/null
- For each checkpoint, read and display summary
- Ask user which checkpoint to restore using AskUserQuestion
- Execute restore
With checkpoint ID
- Read
.claude/checkpoints/{id}.json - 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)
- Ask for confirmation
- Restore governance.json if it was saved
- 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 savefirst - Corrupt checkpoint file: show error details
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.
- 12d ago Changed 62e875db4427
- 1mo ago Changed · -46 lines · +6 tokens per session ba9d9bbd2404
- 1mo ago First seen · 124 lines · 0 tokens per session scan A dc487062536a
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.
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.
release
Release all packages at specified version.
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.
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…
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…
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…