From siftcoder
Rollback to a previous checkpoint, undoing changes made during a feature or fix workflow.
npx claudepluginhub ialameh/sift-coder# /siftcoder:rollback - Rollback to Checkpoint Rollback to a previous checkpoint, undoing changes made during a feature or fix workflow. ## Usage ## Arguments - `$ARGUMENTS` - Optional checkpoint ID or feature ID. If not provided, shows available checkpoints. ## Instructions You are managing rollback operations for siftcoder workflows. ### Without Arguments (List Checkpoints): 1. Read `.claude/siftcoder-state/checkpoints/` directory 2. Read `implementation-log.jsonl` for checkpoint events 3. Display available rollback points: ### With Checkpoint ID: 1. Find checkpoint in state ...
/rollbackRolls back the most recent database migration or to a specific version, with data loss warnings, explicit confirmation, transactional execution, schema verification, and status report.
/rollbackReverts to a previous Shipyard checkpoint via git: state-only (.shipyard/ files) or full (code + state). Supports --list flag and creates safety checkpoint first.
/rollbackSafely rollbacks a failed or unwanted feature by invoking /specswarm:rollback with optional flags (--dry-run, --keep-artifacts, --force).
/rollbackRollbacks orchestrator project state to a specified checkpoint ID, restoring task status and optionally resetting Git commit. Lists available checkpoints if none provided.
/rollbackRestores codebase after failed multi-step /run or /evaluate using git stash/checkout/branch. Assesses scope for safest strategy and reports rollback details.
/rollbackReverts git repository to checkpoint before specified phase number after previewing changes and user confirmation. Also lists checkpoints with --list.
Rollback to a previous checkpoint, undoing changes made during a feature or fix workflow.
/siftcoder:rollback [checkpoint-id|feature-id]
$ARGUMENTS - Optional checkpoint ID or feature ID. If not provided, shows available checkpoints.You are managing rollback operations for siftcoder workflows.
.claude/siftcoder-state/checkpoints/ directoryimplementation-log.jsonl for checkpoint events๐ AVAILABLE CHECKPOINTS
Recent Checkpoints:
โโโ [cp-005] 2 hours ago
โ Feature: auth-001 (completed)
โ Files: 5 modified, 2 created
โ Git ref: abc123
โ
โโโ [cp-004] 5 hours ago
โ Feature: auth-001 (subtask 3 complete)
โ Files: 3 modified
โ Git ref: def456
โ
โโโ [cp-003] 1 day ago
Feature: setup-000 (completed)
Files: 8 created
Git ref: ghi789
Usage: /siftcoder:rollback cp-004
Find checkpoint in state
Show what will be reverted:
โ ๏ธ ROLLBACK PREVIEW
Checkpoint: [cp-004]
Created: 5 hours ago
Git ref: def456
Will Revert:
โโโ Modified Files (3):
โ โโโ src/auth/login.ts (restore previous version)
โ โโโ src/auth/session.ts (restore previous version)
โ โโโ src/tests/auth.test.ts (restore previous version)
โ
โโโ Created Files (2):
โโโ src/auth/oauth.ts (will be deleted)
โโโ src/auth/tokens.ts (will be deleted)
State Changes:
โโโ Feature auth-001: in_progress โ pending
โโโ Subtasks 4-5: will be removed
[Confirm Rollback] [Cancel]
On confirmation:
# Git rollback
git checkout <git-ref> -- <files>
# Or for full rollback:
git reset --hard <git-ref>
Update state:
Confirm:
โ
ROLLBACK COMPLETE
Restored to: [cp-004] (5 hours ago)
Files reverted: 5
Features affected: 1
Current State:
โโโ Feature auth-001: pending (subtasks 1-3 complete)
โโโ Ready to continue from subtask 4
Use /siftcoder:status to see current state.
Each checkpoint in .claude/siftcoder-state/checkpoints/:
{
"id": "cp-005",
"createdAt": "2026-01-10T15:00:00Z",
"gitRef": "abc123def456",
"featureId": "auth-001",
"phase": "completed",
"trigger": "feature_complete",
"filesModified": ["path1", "path2"],
"filesCreated": ["path3"],
"stateSnapshot": {
"features": { ... },
"currentTask": { ... }
}
}
Pre-rollback Backup
Dirty Working Directory
โ ๏ธ Uncommitted changes detected!
Modified files:
โโโ src/config.ts
โโโ src/utils.ts
These changes will be lost. Options:
[Stash and Rollback] [Commit First] [Cancel]
Pushed Commits
โ ๏ธ Some commits have been pushed to remote.
Rolling back will require force push.
This may affect other collaborators.
[Force Rollback] [Cancel]
This command integrates with Claude Code's built-in /rewind for recent changes:
/rewind for changes in last 30 days/siftcoder:rollback for checkpoint-based rollback with state restorationRead, Write, Edit, Bash, Glob