Punam SafeCode - Snapshot Recovery for AI CodingThe Undo Button for AI Coding.
The ProblemAI coding tools can change many files in seconds. If the result breaks your project, editor undo history may not be enough, untracked files may be lost, and you may not have made a Git commit before the changes started. The SolutionPunam SafeCode creates local project snapshots before risky edits. You can preview what a restore will change, roll back files in seconds, and export a recovery point as a ZIP. No Git setup or cloud account is required. Free and open source · Fully local · No account · No telemetry · No tracking Punam SafeCode never uploads your code. Snapshots remain in your workspace unless you explicitly export or move them. See It in ActionCreate a SnapshotName a recovery point before an AI coding session or any risky edit.
Recover a SnapshotPreview and restore a real project snapshot after unwanted code changes.
Preview and Manage SnapshotsReview a snapshot and access Preview, Restore, Export, and Delete from the snapshot menu.
Restore PreviewInspect the restore summary before applying a snapshot. Punam creates an emergency snapshot of the current state before every restore.
Features🗃️ Create SnapshotCapture the full state of your project in one click. Give it a name like "Before AI refactor" or leave it blank for a timestamp. All files are copied into 🔍 Restore PreviewBefore restoring, see exactly what will change:
A diff summary opens in a webview panel so you can decide before committing. 🔄 One-Click RollbackRestore any snapshot to bring your project back to that exact state. Before every restore, Punam automatically creates an emergency snapshot of your current state so you can always undo the undo. 📦 ZIP ExportExport any snapshot as a 🕒 Snapshot TimelineA sidebar panel lists all your snapshots with name, date, and file count. Right-click any snapshot for context actions: Preview, Restore, Export, Delete. ⚡ Auto SnapshotsWhen 5 or more files change quickly (e.g. an AI tool doing a bulk edit), Punam captures the resulting project state as a recovery point in the background. This checkpoint is created after the detected changes; it cannot reconstruct the state from before those edits. Detection is debounced to 5 seconds, with a 10-minute cooldown to avoid noise. Why Not Just Git?Git is a version control system — it tracks intentional, meaningful commits. It is not designed to capture "before I let the AI touch everything" moments.
Punam SafeCode complements Git. It does not replace it. Use Git for structured version history. Use Punam for safety nets around risky AI sessions. CommandsOpen the Command Palette (
You can also access all actions by right-clicking any snapshot in the Punam Snapshots sidebar. Settings
Safety Design
Limitations
Getting Started
The panel header also includes Getting Started and Settings buttons. It shows whether automatic snapshots are enabled and the folder where snapshots are stored. Open Source and PrivacyPunam SafeCode is free software released under the MIT License. Its source code is public so users can inspect how project files are copied, restored, and deleted. Snapshots are a local recovery aid, not a substitute for Git, tested backups, or off-device disaster recovery. Punam SafeCode — local, fast, and always ready to save you. |




