rollback

rollback is a command for Claude Code from llcoolblaze/claude-boris. It costs 15 tokens per session (733 once invoked), scanned A, original, MIT.

A command set for returning a project to an earlier Git checkpoint or commit. Git is a version-control system that records changes so an earlier state can be restored.

In plain words
What is it for?
Use it to roll back a chosen number of commits or restore a named stash or tag checkpoint. It also checks recent commits and available checkpoints.
Why use it?
It helps recover from unwanted changes by first showing what may be lost and then applying a soft or hard rollback.

Command for Claude Code

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.

agentmods
npx agentmods add commands/llcoolblaze/claude-boris/rollback
Clone the repo
git clone --depth 1 https://github.com/llcoolblaze/claude-boris

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 rollback

README.md
[![agentmods](https://agentmods.dev/badge/commands/llcoolblaze/claude-boris/rollback.svg)](https://agentmods.dev/commands/llcoolblaze/claude-boris/rollback)
Your own site
<a href="https://agentmods.dev/commands/llcoolblaze/claude-boris/rollback"><img src="https://agentmods.dev/badge/commands/llcoolblaze/claude-boris/rollback.svg" alt="Measured on agentmods" height="20"></a>
Per session 15 Only the description is in the session, so the agent can decide to use it. The body loads when it is invoked.
When invoked 733 The whole file, excluding the scripts and references it only reads on demand.
Security scan A 0 findings. Scan, not verified.
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 $0.00015 $0.00733
Opus 5 $0.00008 $0.00367
Sonnet 5 $0.00003 $0.00147
Haiku 4.5 $0.00002 $0.00073

Measured 3d ago against content hash 93f79fdeba25, method: parsed. Prices are Anthropic first-party input rates as of 2026-08-30, from the pricing page.

Security

Grade A, and why

rollback 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 3d 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.

.claude/commands/rollback.md · 151 lines

How it starts

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

Rollback

Available Checkpoints

Stash Checkpoints

!git stash list 2>/dev/null | grep "checkpoint:" || echo "No stash checkpoints"

Tag Checkpoints

!git tag -l "checkpoint/*" 2>/dev/null || echo "No tag checkpoints"

Recent Commits

!git log --oneline -10 2>/dev/null


Rollback Target

Target: $ARGUMENTS


Rollback Protocol

1. Identify Target

If numeric (e.g., 3): Rollback 3 commits

git reset --soft HEAD~3

If checkpoint name (e.g., pre-refactor): Find in stash or tags

# Check stash
git stash list | grep "checkpoint:$NAME"

# Check tags
git tag -l "checkpoint/$NAME"

2. Safety Checks

Before rollback:

  • Current work saved? (stash or commit)
  • Not on protected branch?
  • Understand what will be lost?
# Show what will be affected
git log --oneline HEAD~$N..HEAD  # For numeric
git diff checkpoint/$NAME HEAD   # For named

3. Execute Rollback

From Stash Checkpoint:

git stash apply stash@{N}  # Where N is stash index
# or
git stash pop stash@{N}    # Apply and remove

From Tag Checkpoint:

# Soft rollback (keep changes)
git reset --soft checkpoint/$NAME

# Hard rollback (discard changes)
git checkout checkpoint/$NAME
git checkout -b restored-from-$NAME

From Commit Count:

# Soft (keep changes staged)
git reset --soft HEAD~$N

# Mixed (keep changes unstaged)
git reset HEAD~$N

# Hard (discard changes) ⚠️
git reset --hard HEAD~$N

4. Rollback Options

Option Command Keeps Changes Use When
Soft --soft Staged Review before discard
Mixed (default) Unstaged Selective re-commit
Hard --hard No Full revert

5. Report

↩️ Rollback Complete

Target: [checkpoint/commit]
Method: [soft/mixed/hard]
Commits undone: [N]
Files affected: [count]

Current state: [branch and status]

To undo rollback: git reflog

6. Post-Rollback

Read the full file on GitHub · 151 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. 3d ago First seen · 151 lines · 15 tokens per session scan A 93f79fdeba25

Subscribe to this mod's changes

rollback is a command published in the GitHub repository llcoolblaze/claude-boris (48 stars, last pushed 7mo ago), licensed MIT. It adds 15 tokens to every session and 733 once invoked, about $0.0001 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-30.