ZamPoint
Bring back the part that worked.
ZamPoint is an MIT-licensed VS Code desktop extension for local checkpoints. Save a checkpoint, compare it with your current project, and restore a folder, a file, or a single changed block. The core runs offline and works in projects without Git.
Install
Download zampoint-0.2.0.vsix from the GitHub Releases page when the owner publishes one, or use the local VSIX. In VS Code, open Extensions, choose … → Install from VSIX, and select the file. You can also run code --install-extension zampoint-0.2.0.vsix.
Save and restore
- Open a single local folder. Click ZamPoint in the status bar or run ZamPoint: Create Checkpoint.
- Click Open ZamPoint in the editor title toolbar. Choose the timeline or Quick Open, or remember either choice with
zampoint.openMode. You can launch either interface directly from the Command Palette.
- In the timeline, open a checkpoint, expand a file, and select the blocks to restore. The review shows CURRENT → AFTER RESTORE, including files that will be created or deleted. Confirm only after reviewing the selection.
- Use Undo Last Restore or the notification’s Undo action. ZamPoint saves the affected files before restore. Undo preserves non-overlapping later changes and reports overlapping edits for manual review.
Rename using the pencil beside the checkpoint name or press F2 on a timeline entry. The timeline can show newest, oldest, starred, or Git-clean checkpoints first. ZamPoint records Git-clean status when it can verify a clean worktree at capture and the snapshot contains no dirty buffers. Older checkpoints without this marker sort after the marked ones.
Use the trash icon on a checkpoint to delete it or the trash icon in the timeline or sidebar toolbar to delete older unstarred checkpoints. Both actions require confirmation. Restore recovery checkpoints are protected. Shared content is reclaimed only once its last checkpoint reference is gone. Renaming keeps the original checkpoint time. Use the star to mark a checkpoint Known working, or use Star Latest as Known Working from the status bar tooltip or Command Palette.
Drag Checkpoints from the Activity Bar to the Secondary Side Bar if you prefer it on the right. The Explorer and editor context menus offer file restore and history. CodeLens links in changed files open the standard review.
Local data and automatic checkpoints
Checkpoints are stored in VS Code’s workspace storage outside the project. Identical file contents share one stored version. Checkpoints can include unsaved text from open, workspace-backed files. An open file restore can leave its editor dirty so that you can save it normally.
The default exclusions cover Git internals, dependencies, virtual environments, generated output, caches, common credential files, binaries, and files over 1 MiB. Add glob patterns using zampoint.ignore or change zampoint.maxFileBytes. Review skipped paths in the timeline. Ignore patterns cannot guarantee that captured text contains no secrets.
Automatic checkpoints check for changes every 10 minutes by default. Set zampoint.autoCheckpoint to auto, prompt, or off. Change the interval with zampoint.intervalMinutes. Pause/Resume Auto-Checkpoints controls the current session. A pre-rename checkpoint is available for VS Code bulk rename events. Large pastes, arbitrary multi-file edits, and external Git switches have no pre-change capture.
Retention keeps every checkpoint for 24 hours, one per hour from then until seven days, and one per day thereafter, without thinning starred or safety checkpoints. Toggle automatic retention with zampoint.retention. Storage Statistics and Cleanup previews checkpoint count and reclaimable content bytes before applying retention.
History, ZIP archives, and working checks
Search History finds text added or removed between checkpoints and opens the matching file’s comparison. Compare two checkpoints is read-only. Export Checkpoint shows the captured file list before saving a ZIP that contains their text. Import Checkpoint validates the archive and adds a history entry.
Set the optional user setting zampoint.workingCheck to a shell command to run in a trusted workspace after capture. An exit code of zero adds Tests passed. This marker reflects the command result and is separate from the user’s star. The timeout is controlled by zampoint.workingCheckTimeoutMs. Command output is discarded. Tests run on the project as visible to the process at execution time, so unsaved editor contents and later edits can differ from the tested files.
Optional AI
Set zampoint.aiEnabled in user settings and invoke Find What to Rewind. Choose a model exposed by your editor through the VS Code Language Model API, such as a Copilot model, or use the OpenAI API. Editor models use their provider's existing authorization. The OpenAI option uses the key configured through Set OpenAI API Key, stored in VS Code SecretStorage. Before sending the request, checkpoint metadata, and code excerpts to the selected model, ZamPoint displays the exact payload and asks for confirmation. VS Code Language Model API
ZamPoint can run in VS Code alongside the Google Antigravity extension and capture edits made in the same workspace. The standalone Antigravity App has no VS Code extension host. The separate Antigravity IDE 2.8.0 passed the extension-host checkpoint, block restore, Undo, and timeline smoke test. Install the same VSIX from its Extensions view. Editor AI models appear only when the host makes them available. Google Antigravity for VS Code
The provider proposes existing blocks. You choose the blocks, review the locally generated restore, and decide whether to apply it. The proposal shows whether a checkpoint was starred, passed the working check, or lacks recorded working evidence. OpenAI Chat Completions API
Limits
- One local desktop workspace folder, UTF-8 text and regular files. Concurrent windows on one workspace are unsupported.
- VS Code and external processes can edit files between the final validation and the write. Open editors may reject a restore that conflicts with their line-ending mode. Save or close dirty editors before restoring a deletion.
- Multi-file restore can stop partway. Undo uses the journal and safety checkpoint to recover confirmed writes. If the last attempted write is uncertain, ZamPoint flags the file for manual review.
- Safety checkpoints remain in history and are exempt from retention. ZIP imports have size limits, and search displays the newest 1,000 matches.
Develop
Run npm ci, npm run build, npm run typecheck, and npm test. Run npm run test:host for the desktop extension-host suite. Package locally with npx vsce package --allow-missing-repository. See the repository’s PHASES.md for phase notes.