ScopeDiff for Visual Studio Code
ScopeDiff checks which files changed after a project baseline was created and identifies changes outside the paths you allowed. It helps you review the scope of a coding task, including work performed with AI coding agents.
The ScopeDiff CLI must be installed separately. This extension invokes your locally installed CLI; it does not bundle it.
Features
- Start and list default or named sessions in the ScopeDiff sidebar.
- Check added, modified, and deleted files, with in-scope and out-of-scope labels.
- View available line differences and local verification history.
- Optionally capture text content and Git context when starting a session.
- Reset a selected baseline after confirmation.
Install the CLI
Download the appropriate archive and its SHA-256 checksum from the ScopeDiff v1.0.0 release, verify the checksum, and extract it:
- Windows x64:
scopediff-x86_64-pc-windows-msvc.zip; place scopediff.exe on your PATH or configure its full path below.
- Linux x64:
scopediff-x86_64-unknown-linux-gnu.tar.gz; make scopediff executable if needed and place it on your PATH or configure its full path.
- macOS: choose
scopediff-aarch64-apple-darwin.tar.gz for Apple Silicon or scopediff-x86_64-apple-darwin.tar.gz for Intel; make scopediff executable if needed and place it on your PATH or configure its full path.
Run scopediff --version in a terminal to verify the installation. Other platforms can build the CLI from the repository.
Open a local folder and trust the workspace when prompted. By default, the extension runs scopediff from PATH. To use a specific trusted executable, set scopediff.executable in VS Code settings, for example:
{ "scopediff.executable": "D:\\Tools\\ScopeDiff\\scopediff.exe" }
Open the ScopeDiff activity bar and select Start Session. Choose allowed files or folders, a capture mode, and whether to include Git context. After the task, select the session or run Check Session to review changes. Reset the session when finished.
The Command Palette provides:
- ScopeDiff: Refresh Sessions — refresh the sidebar list.
- ScopeDiff: Start Session — create a baseline.
- ScopeDiff: Check Session — show changes and available differences.
- ScopeDiff: View History — show local verification history.
- ScopeDiff: Reset Session — remove a selected baseline after confirmation.
- ScopeDiff: Check Version — display the configured CLI version.
For AI-assisted work, create the baseline before the agent starts, allow only the intended paths, then check the session after the agent finishes. Review the reported changes and the code itself.
Security and privacy
The extension requires VS Code Workspace Trust and supports local workspace folders. It runs the configured executable locally, so use a CLI executable you trust. ScopeDiff is a review aid, not a sandbox: it does not prevent changes, prove authorship or correctness, or detect ignored and excluded files. Filesystem changes during scanning can affect results.
Baselines and history are stored under .scopediff/. Optional text capture stores unencrypted source content in the baseline and may include confidential code; filename filtering cannot identify every secret. Add .scopediff/ to your project's .gitignore or local Git exclude file. Ignore rules do not protect files already tracked by Git. See the security policy for limitations.
Report problems through GitHub Issues. ScopeDiff is licensed under MIT.