pi-vscode-sr
Code diff assistant for VS Code.
Package details
Install pi-vscode-sr from npm and Pi will load the resources declared by the package manifest.
$ pi install npm:pi-vscode-sr- Package
pi-vscode-sr- Version
1.1.10- Published
- Jun 9, 2026
- Downloads
- not available
- Author
- serhioromano
- License
- MIT
- Types
- extension
- Size
- 1.9 MB
- Dependencies
- 2 dependencies · 0 peers
Pi manifest JSON
{
"extensions": [
"./src/index.ts"
],
"image": "https://raw.githubusercontent.com/Serhioromano/pi-vscode/refs/heads/main/images/pi-vscode.png"
}Security note
Pi packages can execute code and influence agent behavior. Review the source before installing third-party packages.
README
🔍 Pi VS Code
Secure code review bridge between Pi coding agent and VS Code. Every file mutation proposed by Pi opens a diff editor — you preview, edit, and approve or reject before anything touches disk.
✨ How it works
- Pi agent generates code changes
- Instead of writing directly, a review request is created
- VS Code opens a diff editor so you can inspect and even edit the proposed changes
- Choose what to do in a terminal selector:
| Option | Action |
|---|---|
| ✅ Approve | Apply this file's changes |
| ❌ Reject | Discard this file's changes — agent sees an error and must retry |
| ⭐ Approve All | Auto-approve every future change for this session |
| 🚪 Abort | Stop the agent session immediately |
You can also approve/reject from the diff tab.
📦 Installation
1. Pi Extension
pi install pi-vscode-sr
Or install locally:
pi install pi-vscode-sr -l
2. VS Code Extension
Install from marketplace:
serhioromano.vscode-pi-sr — Pi Agent Companion
Or search Pi Agent Companion in the VS Code Extensions panel.
