PromptVC for VS Code
Git for your prompts. Version, diff, and rollback prompts without leaving the editor.
Requirements
Install the CLI first:
pip install prompt-version-control
Then initialize a store in your project:
promptvc init
Features
- Sidebar tree: all your prompts and every version in the Explorer panel
- View any version: click to open content in a read-only editor tab
- Diff: right-click a version to compare it against the previous one
- Rollback: right-click a version and roll back with one click
- Commit: use the command palette to commit the active file as a prompt version
- Auto-refresh: sidebar updates automatically when the store changes
Usage
Open the Explorer panel and find the PromptVC section. Prompts are listed with their version count. Expand any prompt to see its full history.
Committing a prompt
- Open the file containing your prompt text
- Open the command palette (
Ctrl+Shift+P)
- Run PromptVC: Commit Active File as Prompt
- Enter a prompt name and a commit message
Diffing versions
Right-click any version in the sidebar and select Diff with Previous Version.
Rolling back
Right-click any version and select Roll Back to This Version. This is non-destructive: it creates a new version with the old content.
Commands
| Command |
Description |
| PromptVC: Refresh |
Refresh the sidebar |
| PromptVC: Init Store |
Initialize a .promptvc store in the workspace |
| PromptVC: Commit Active File as Prompt |
Stage and commit the open file |
| |