Slash Command

/rollback

Undo last agent changes — git-based rollback to previous state. Can rollback by commit count, to a specific commit, or to last checkpoint.

From project-orchestrator
Install
1
Run in your terminal
$
npx claudepluginhub vivekmano27/agent-orchestrator --plugin project-orchestrator
Details
Argument<count: number of commits> OR <commit-hash> OR 'last-checkpoint'
Command Content

Mission

Safely undo agent changes using git.

Options

/rollback 1               → undo last 1 commit
/rollback 5               → undo last 5 commits
/rollback abc1234         → rollback to specific commit
/rollback last-checkpoint → rollback to last /backup checkpoint

Steps

  1. Show what will be rolled back: git log --oneline -N
  2. STOP. Call the AskUserQuestion tool NOW — do NOT proceed without confirmation:
    AskUserQuestion(
      question="This will undo N commits. Proceed?",
      options=["Yes, rollback", "No, cancel"]
    )
    
  3. Execute only if user selected "Yes, rollback": git reset --hard HEAD~N or git reset --hard <hash>
  4. Verify: git status + run tests

Safety Rules

  • ALWAYS show what will be undone before executing
  • ALWAYS call AskUserQuestion tool before executing — never assume consent, never skip
  • NEVER rollback past the initial commit
  • Suggest /backup before risky rollbacks
Stats
Parent Repo Stars0
Parent Repo Forks0
Last CommitMar 15, 2026