dsh-workbench: Integrate Document Iterations into an Auditable Timeline

Preface

Using AI in DeepSeek Harness (DSH) to edit Markdown and then running scripts to generate Word or PDF documents is very similar to editing code: it is multi-round, produces artifacts, and requires your approval. Often, there is only one working copy on disk that gets overwritten, causing intermediate versions to disappear under the same name; skills are scattered across project-level, user-level, and built-in directories; source files are modified but forgotten to be re-exported, resulting in stale content being delivered in the final docx. While tools exist to solve these individual issues, what is missing is a unified thread placed in the Web interface, visible alongside the conversation.

Below is an introduction to the community plugin dsh-workbench (Maintainer: liiydong, Category: Workflow). It adds a “Workbench” panel to the DSH Web interface: an iteration timeline, a skill library, and pairing of document sources with artifacts. It can be docked to the right column, keeping the conversation in the center and the timeline on the right. This is a DSH Web plugin with zero dependencies, designed primarily for read-only access. The only file-writing operations involve approvals, recording a version, opening files, and writing to the same pair of log files via the recorder CLI.

What is this

dsh-workbench adds a workbench to the DeepSeek Harness Web interface: it transforms the process of “AI edits md → generates Word/Excel/PDF → you review this version” into a visible timeline (version snapshots, reasoned approvals, opening specific versions, comparing content diffs with previous versions, and incorporating unrecorded artifacts into the log). Production lines are sorted by recent activity, and directories can be selected from “Recently Used / Registered Workspaces”; the left sidebar icon can display a badge for “Awaiting My Review”. It also includes a command-line recorder, allowing the AI to log a version immediately upon generation without needing the panel to be open.

The current package version is 0.7.0, licensed under MIT, requiring DSH engine >=0.1.5-rc.1.

Core Features

Iteration (Default Tab)

The timeline is grouped by Production Line, sectioned by day within each line, with one row per round. Directories don’t need to be typed manually: use the “Recently Used…” dropdown in the top bar (recently opened directories + DSH registered workspaces), or fill in a path and click Browse…—if a native picker is available locally, the system dialog will appear; for remote/SSH browse backends, the plugin’s internal directory browser is used.

Each round displays the time, artifact type (Word / PDF / Excel), summary (from the record or the note at the time of incorporation), modified md sources, and approval status. Hovering reveals a summary card (notes, size, generation command, snapshot path, historical approval comments). Clicking a round allows you to Approve / Request Changes / Reset to Pending; reasons are written to decisions.jsonl and retained for future hovering. The same row allows Open This Version (snapshot), Open Final Product (the latest file in the production directory that would be overwritten), and Reveal in Folder; the bottom Compare with Previous Version performs a paragraph-level diff on the snapshot content (green for additions, red for deletions, with word-level highlighting within paragraphs). For formats like pdf/pptx/old xls that are currently unsupported, the button is greyed out with an explanation.

The production line header displays the number and disk usage of .versions/ snapshots, as well as warnings for bad lines or missing IDs in the log files. The top bar allows filtering by Awaiting My Review / Approved / Request Changes, Production Line, and Type. Directory changes can be detected via an auto-refresh interval (default 10 seconds, adjustable to 30s / 1m / Off), prompting “N new rounds found” for you to decide whether to refresh, without altering the current view automatically. If iteration workflow skills like doc-iteration-control are installed locally, an Iteration Process button appears in the top bar to open the full skill text in one click.

Record Format and Recorder

A typical directory structure for each production line:

ProductionLine/
├── *.md
├── ThesisFullText.docx          ← Working copy, overwritten each time
└── .versions/
    ├── produced.jsonl     ← Production records
    ├── decisions.jsonl    ← Approval records
    └── …snapshot files…

Daily usage should involve the Recorder or the panel’s Record a Version to append to produced.jsonl, and copying snapshots to .versions/ (not hard links, to avoid modifying old snapshots when the working copy is overwritten). at takes the artifact’s mtime; approvals are determined by the last entry in decisions.jsonl with the same id.

The command-line recorder and the panel share the lib/record.js implementation. Example:

node bin/record.mjs "D:\Thesis\GradThesis" ThesisFullText.docx \
  --summary "Chapter 3: Corrected ethylbenzene conversion rate 0.62→0.58, recalculated all tables" \
  --sources "03-Chapter3-MaterialBalance.md" \
  --tool "python thesis_docx.py"

DSH or the panel does not need to be resident; --json facilitates Agent parsing. Recording the same version repeatedly is rejected; if records are corrupted and only snapshots remain, snapshots can be reused to supplement records (self-healing).

Unrecorded (Missing Records)

The top bar Unrecorded button scans for files that exist on disk but are missing from the records, and can conservatively infer generation commands and modified md files from DSH session logs. When incorporating, you provide a brief description, copy the snapshot, and append a line; if already referenced in records, a 409 error prevents overwriting.

Skill Library

It first reads the ctx.skills registry, then scans ~/.agents/skills, ~/.dsh/skills, and project .agents/skills (one level deep, SKILL.md), avoiding incomplete directory listings when HTTP routes lack session context. Supports searching by name/description/trigger words and filtering by source; clicking allows viewing the full SKILL.md text and path.

Document Pairing

After selecting a directory, it scans and pairs sources like md/tex/qmd with artifacts like docx/pdf/xlsx based on the stem name. Statuses include: Artifact Stale (artifact older than source), Source-less Artifact, No Generated Artifact, and Synced. Changes in sources or artifacts can also be detected via auto-refresh intervals, followed by a manual refresh prompt.

Interface and Entry Points

The left sidebar Workbench icon opens the main area with three tabs; the panel can be Moved to Right Column (⇥) to sit alongside the central conversation. The title bar ← → navigates history within the panel; ← Return to Conversation switches back to the session without altering the current conversation. The number on the left sidebar icon indicates rounds pending review (hidden if 0). Uninstalling the plugin removes all entry points; without right-column services or dsh-better-sidebar, only the corresponding entry is missing, without affecting other functions.

Installation and Activation

Install via local source link (restart the host after code changes):

dsh plugin --profile web add link:/absolute/path/dsh-workbench

Or install from GitHub:

dsh plugin --profile web add github:liiydong/dsh-workbench

Restart dsh web after installation: The client bundle is snapshotted into memory during the composition phase, so simply refreshing the page is insufficient.

Uninstall:

dsh plugin --profile web remove dsh-workbench

Typical Usage

  1. Configure md sources and working copies (docx/xlsx with fixed filenames) in the production directory. After the generation script finishes, run node bin/record.mjs … (or call it at the end of the workflow via an iteration skill) so that .versions/produced.jsonl and snapshots grow in sync.

  2. Open DSH Web, click the Workbench in the left sidebar, select the production directory via dropdown or Browse…, filter pending rounds by status in the Iteration tab, hover to view summaries, open snapshots or Compare with Previous Version, and then provide approval/request changes with reasons.

  3. When editing side-by-side with AI is needed, click Move to Right Column to continue the conversation in the center while scanning the timeline on the right; if md has been modified but not re-exported, switch to the Documents tab to view “Artifact Stale” items and schedule regeneration.

  4. Check the full text of local skills in the Skill Library; if documentation iteration skills are installed, use the top bar Iteration Process to cross-reference protocols and avoid missing --summary / --sources recording.

Scenarios and Notes

Suitable for developers using DSH for long-term multi-round document/report iterations who need to retain snapshots and approval trails, or want a unified view of skills and md-artifact synchronization. The plugin reads directories and session logs with the permissions of the current dsh process; please review the GitHub Source Code and MIT license before installation. Compare with Previous Version only compares artifact snapshot content, not the single md source that may be rewritten at any time. Diffs are calculated client-side in the browser, with the host providing text and other data via JSON routes under /api/dsh-workbench/.

The DeepSeek Harness ecosystem emphasizes “Everything is a plugin”; the community directory SkillHub Plugin Page is an independent site and has no official affiliation with DeepSeek / High-Flyer.

Conclusion

dsh-workbench consolidates the “edit md → generate Word → human review” cycle from an invisible overwriting loop into a timeline with snapshots, summaries, approvals, and diffs, while adding two often-missing global views for skill directories and document pairing. It can be installed from SkillHub or GitHub using the commands above when needed. After restarting dsh web, access the workbench from the left or right sidebar.

  • Directory Page: https://www.skillhub.cn/plugins/liiydong/dsh-workbench
  • GitHub: https://github.com/liiydong/dsh-workbench
羽毛球分组比赛记分
小程序二维码

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

Xiaoye