Introduction¶
DeepSeek Harness (DSH) extends its capabilities through plugins, but viewing changes and history in a local code repository typically requires switching to an external Git/SVN client or IDE. To access this information directly within the Web interface, dedicated tool support is needed.
Plugin Overview¶
DSH VCS is a plugin that runs within the DeepSeek Harness Web interface, designed for viewing file changes, commit history, and diff comparisons in Git and SVN repositories. The plugin is maintained by f-e-n-g-0531 and provides read-only preview functionality by default.
The plugin does not switch workspace branches, perform staging, committing, or remote synchronization operations. It only provides access at the read level.
Core Features¶
View Workspace Changes¶
- Git: View all changes
- SVN: Compare local baseline against working copy, and attribute differences
Read Code Diffs¶
- Read-only diff using the Monaco editor
- Supports side-by-side and inline modes
- Supports word wrap, ignoring trailing whitespace, and navigating to previous/next diff
Browse Git History¶
- View commit graph, details, and directories
- Filter by message, author, path, and committer date via “Content Search → Commit History”
Compare Historical Versions¶
- Compare a commit with its selected parent commit
- Select two local commits in the “Version Compare” tab
Trace Code Provenance¶
- View file history
- Follow unique rename sources
- View the commit corresponding to the last modification per line (Blame)
Search File Contents¶
- Search from the HEAD at the time the query is initiated (excluding uncommitted changes) via “Content Search → File Contents”
- Click a result to jump to the matched line
View Images and Large Files¶
- Static images can be compared side-by-side, overlaid, or via swipe
- Larger historical UTF-8 files can be read in chunks
View Historical Auxiliary Records¶
- Read-only access to the most recent 200 HEAD movement records (Reflog)
- View existing Git stash snapshots and their diffs
Browse SVN History¶
- After explicitly agreeing to connect, view HTTPS repository logs, revision diffs, and file history
The plugin provides both Chinese and English interfaces.
Installation and Activation¶
Before installing, please verify the DSH and Node.js compatibility list and confirm that the host can find Git or SVN via PATH (SVN is not required when using Git only).
Install the official release using npm:
dsh plugin --profile web add "@feng0531/dsh-vcs@latest"
web is a sample profile (a DSH configuration and plugin environment, not a Session). Replace it with the profile used by your running DSH instance; the command depends on pnpm. Installation will modify the specified profile—back up your configuration before upgrading.
After installation, manually restart DSH and then refresh the original Web page. You can also download and verify the package from the GitHub Releases page. See the Installation Guide for specific steps, upgrading, and rollback.
Typical Usage¶
- Select a Session in DSH and confirm its working directory is within the project.
- Open the VCS page, discover the repository, then select it from the top dropdown.
- Click a file to view its diff, or navigate to the history view to browse commits.
- After an external tool modifies the project, click “Refresh” to rediscover the repository and update changes. The view also refreshes when the window regains focus. There is no periodic polling.
By default, discovery covers the current directory, first-level subdirectories, and parent repositories that contain the current directory, without recursive deep traversal. Deeper independent projects should use a Session whose working directory points to that project.
Note: When a Session is located in a subdirectory of a repository, the post-discovery viewing scope can cover the entire repository.
Side-by-Side Comparison Content¶
| Mode | Left | Right |
|---|---|---|
| Git All | Latest commit (HEAD) | Current workspace |
| SVN Local Changes | Local baseline (BASE) | Current working copy |
New files may use a blank left side. Conflict files are view-only; three-way merge or conflict resolution is not provided.
History References and Workspace Branches¶
Selecting a branch, tag, or remote-tracking reference on the history page only changes the reading starting point; it does not switch the workspace or connect to a remote. To switch branches, use an external Git client and then refresh the repository.
SVN Remote History¶
Local SVN comparison does not connect to the network. Before opening remote history, you must review the server and path and explicitly agree; the authorization expires in approximately 5 minutes. History reads are bounded above by the local working copy revision and do not automatically fetch the latest server revision. Anonymous HTTPS and explicitly authorized HTTPS Basic are supported. Windows hosts may also use TortoiseSVN login credentials conditionally. See the SVN Remote History Guide for configuration, copy-source viewing, and 401 troubleshooting.
Usage Limitations¶
- Plain text comparison is limited to 2 MiB per side. For Git over the limit, full text can be manually loaded up to 8 MiB and 100,000 lines per side; SVN does not support full large-file comparison. Larger historical UTF-8 files can be read in chunks, up to 16 MiB, but this is not equivalent to a full diff comparison.
- Images support PNG, baseline/progressive JPEG, and simple static WebP; animated formats are not supported. Text supports UTF-8, GBK, and UTF-16 with BOM; the exact supported range varies by view mode.
- Git conflicts can be viewed per stage but cannot be merged or resolved; submodules only display the commit pointer and status, and submodule files are not opened. Search, history, rename tracing, and other features have capacity or scope limitations—see the Capabilities List for details.
Use Cases and Considerations¶
This plugin runs with the permissions of the current DSH process and requires access to the working directory. It is recommended to review the source code and license before installation (the current version uses the MIT License, which permits commercial use, modification, and distribution, subject to retaining copyright and license notices).
The plugin is suitable for scenarios where you need to view code changes and history within a Web interface, such as performing code review, debugging, or writing documentation in DSH without switching to an external Git/SVN client.
Conclusion¶
DSH VCS provides DeepSeek Harness with the ability to directly view Git/SVN changes and history in a Web environment, making it ideal for developers who need read-only preview of code changes and commit records. For more resources, refer to the GitHub repository.