dsh-prompt-vcs: Versioning and Rollback for Agent Instruction Surfaces

Preface

In DeepSeek Harness (DSH), agent behavior is often determined by “instruction surface” files such as AGENTS.md, CLAUDE.md, and Skill files. These files can change through iteration, plugin injection, or model rewriting. Relying solely on editor history or manual backups makes it difficult to answer “who changed which segment when” or “whether it can be safely rolled back.” The community plugin dsh-prompt-vcs (directory identifier hj01857655/dsh-prompt-vcs) addresses this by recording diffs for every change to instruction-related files locally, providing a timeline, diff viewing, and rollback capabilities.

The DSH ecosystem follows an “everything is a plugin” extension approach. Community directories like SkillHub are independent of DeepSeek/HF (幻方) and are not official app stores. Before installing third-party plugins, you should review the source code and license yourself.

What is This

dsh-prompt-vcs was published by maintainer hj01857655, with the npm package name dsh-prompt-vcs (MIT license). In one sentence: it tracks changes to files that shape agent behavior, writes each modification to history with unified diffs and attribution, and supports rollback by change.

The SkillHub directory page marks this entry as [Archived], and the source code has been merged into the monorepo hj01857655/dsh-plugins. The standalone repository github.com/hj01857655/dsh-prompt-vcs is currently unavailable. As of 2026-10-20, the monorepo workspace has been streamlined, and packages like dsh-prompt-vcs have been removed from the repository. However, they remain installable from npm, with the installation method unchanged (see the monorepo README for details).

Core Features

The following capabilities come from the npm package README (consistent with in-package documentation):

  1. Monitor Instruction Surface Files
    Covers files that affect agent behavior, such as AGENTS.md, CLAUDE.md, and Skill files.

  2. Change Snapshots
    When files change, generate unified diffs and record attribution (user/plugin/agent), appending to .promptvcs/history.jsonl (append-only).

  3. Timeline
    promptvcs log (CLI: dsh-prompt-vcs log) lists the time, target file, operator, and lines added/removed for each change.

  4. View Diff
    promptvcs diff <hash> displays the unified diff for a specific change.

  5. Rollback
    promptvcs rollback <hash> restores files to the state before that change. Rollbacks themselves are recorded as new entries, maintaining a complete timeline.

  6. File Statistics
    Track change frequency and scale per file over time.

  7. Settings Panel
    Provides a Prompt VCS page in Settings with an inline diff timeline, per-file statistics, attribution, and rollback buttons. The host registers GET /api/prompt-vcs.panel, rebuilding data from history logs on each request. Headless hosts without a web interface can skip this route.

Installation and Activation

The official README provides the following installation method (using the npm package name, not concatenating GitHub paths based on directory names):

dsh plugin --profile web add dsh-prompt-vcs

For source installation (when the standalone GitHub repository is archived, use the source address you actually have. The README original is):

dsh plugin --profile web add github:hj01857655/dsh-prompt-vcs

SkillHub also supports installation via conversation, where DSH reads the backend installation plan. For example, in the Harness: “Please install the DSH plugin hj01857655/dsh-prompt-vcs. First read the installation plan.” Specific steps depend on the Harness and directory page at the time.

The latest version on npm is 0.6.1 (the SkillHub directory page previously showed v0.5.1; use the version you resolve at installation time). Peer dependency: @deepseek-ai/cordis (approximately ~4.0.4).

Typical Usage

CLI

With the plugin installed, use the following commands to manipulate history (command prefix based on the package’s bin):

dsh-prompt-vcs log               # View change history
dsh-prompt-vcs diff <hash>       # View diff for a specific change
dsh-prompt-vcs rollback <hash>   # Rollback a specific change

Settings Panel

After enabling an installation with --profile web, open the Prompt VCS page in DSH Settings to browse the timeline, view inline diffs, check attribution, and trigger rollbacks without manually entering hashes.

Local Development (Maintainer Workflow)

For building and testing from package source, the README recommends:

npm ci
npm run typecheck
npm run build
npm test

Use Cases and Considerations

Who is it for

  • DSH users who frequently modify AGENTS.md, project Skills, or Claude-style instruction files.
  • Teams or individuals who need to distinguish between “user/plugin/agent” modifications and occasionally roll back.

Important Notes

  1. Permissions: The plugin runs with the current dsh process permissions, allowing read/write access to instruction files in the workspace and .promptvcs/ history. Review the npm package or source code before installation to confirm behavior matches expectations.
  2. Repository and Archive: Both the directory page and monorepo document the history merge and streamlining. Long-term maintenance should follow the npm package dsh-prompt-vcs and dsh-plugins documentation.
  3. History Files: History is stored in .promptvcs/history.jsonl under the project. Decide whether to commit or ignore it based on your version control or backup strategy.

Conclusion

dsh-prompt-vcs treats the “instruction surface” as auditable versioned assets: changes have diffs, attribution, and rollback support, with an optional web panel for browsing. If you rely on Markdown and Skills to drive behavior in DSH, it’s worth trying after reviewing the source code and license.

羽毛球分组比赛记分
小程序二维码

欢迎使用《羽毛球分组比赛记分》微信小程序

Xiaoye