DeepSeek Harness Plugin

zuiyouli/dsh-workflow-ui

Stars ★ 0 Category Workflow & Automation Added 2026-10-18

In-conversation workflow run timeline for DSH Web: a horizontal rail with phase stations, agent pills, loop arcs and parallel bands replaces the stock workflow tool card and workflow-run chat node. Planned stations render before the run starts via client-side script scanning; status dots and icons follow DSH official primitives.

Install

# from GitHub (first run asks for allowBuilds approval — follow the hint, retry)

dsh plugin --profile web add github:zuiyouli/dsh-workflow-ui

Any plugin you install runs third-party code with your own permissions — it can read your files, use your credentials, and reach the network, and tool approvals don’t sandbox it. GitHub-sourced plugins also run build scripts at install time — pnpm blocks those until you allow them, so an install can stop with ERR_PNPM_GIT_DEP_PREPARE_NOT_ALLOWED or ERR_PNPM_IGNORED_BUILDS; dsh prints the exact key to add under allowBuilds in your profile’s pnpm-workspace.yaml, and the install works on the next run. Allowing a build is a trust decision: only install sources you trust, and pin a commit (github:owner/repo#sha).

README

CI

An in-conversation workflow run timeline for the DeepSeek Harness web GUI. It replaces the stock workflow tool card and the workflow-run chat node with a horizontal timeline: a rail with phase stations, agent pills, loop arcs, parallel bands — and the full plan is visible before the run reaches it.

中文文档见 README.md。

dsh-workflow-ui screenshot

Narrow windows re-flow automatically (same-row arcs + ↩ loop badges):

dsh-workflow-ui wrap mode

What you get

  • In-conversation card — one card per workflow run, right in the chat flow. No panel to open, nothing to configure.
  • Plan-ahead rendering — the card scans the workflow script client-side (phase() calls, parallel() blocks, revisited phases) and renders every planned station, pill placeholder and dependency arc before the run gets there.
  • Parallel bands — parallel() phases become raised tracks with rounded fork/merge joins.
  • Arcs — non-adjacent forward edges and loop (return) edges fly above the rail with lane assignment (short spans low, crossing spans pushed up), rounded corners and landing arrows; arcs entering a running station light up as march. Wide windows draw the full set; narrow re-flowed windows draw same-row arcs only, with ↩ badges carrying loop information.
  • Pill overflow — stations with more than 5 agents collapse behind a +N expander; expansion persists across live re-renders, and a pulse dot signals hidden pills still running.
  • Pill → child session — clicking a pill opens the corresponding subagent session via the DSH 0.2.1 contract (openSession({parentSessionId, childSessionId, mode: "unknown"})); keyboard focus and Enter supported.
  • Ships its own agent preset — installing adds a Workflow 编排 preset to the roster (full standard toolset plus a persona nudge that makes the model proactively orchestrate multi-step tasks with workflow); uninstalling removes it.
  • DSH-native iconography — StateDot status dots (6px core for done/error, neutral spinner arc for running, idle dot for pending), official ListPen header icon, 1px Check/Close marks.
  • Agent pills — per-agent status with face expressions (glance/blink while running), settled check marks, planned placeholders for agents that have not started.
  • Theme + a11y — light/dark via DSH alias tokens, prefers-reduced-motion honored everywhere, aria labels on status glyphs.

Install

dsh plugin --profile web add github:zuiyouli/dsh-workflow-ui

Restart dsh once after installing (composition change), then refresh the page. Requires DSH >=0.1.0-rc.5; verified on 0.2.0-rc.2 and 0.2.1-rc.2, web profile.

Switch new sessions to the bundled Workflow 编排 preset to make the model proactively reach for workflow orchestration.

How it works

Two keyed slot registrations shadow the official renderers (priority: -1; official stays at 0, lowest priority renders, and any crash in this component abdicates back to the official one):

  • conversation.chat.node key workflow-run — data is the official Definition's projection over durable events (tool-workflow/run-start|agent-start|agent-end|run-end); this plugin only changes the presentation.
  • tool.call.toolview key workflow — renders an invisible marker (its row is hidden via CSS :has, and since 0.2.1 the turn-process running header is hidden alongside), and stashes the tool input's script metadata into a module store, which run cards consume for plan-ahead rendering.

Styles are injected once as a <style data-plugin> element and removed on unload; all classes are zcf--prefixed. Colors land on 14 local --color-* tokens mapped to DSH --dsw-alias-*.

Development

No dependencies. Node >= 20.

npm run check     # syntax checks + unit tests + build + lib checks + facade smoke
npm run preview   # generate docs/preview/preview.html (light/dark cards)

Screenshot a preview headlessly:

chrome --headless=new --virtual-time-budget=3000 --screenshot=shot.png docs/preview/preview.html

Layout constants follow ZCode's public workflow presentation (station 168 / pitch 192 / lamp at +17, arc base 26 / lane 14, 6–8px rounded joins, 120/160/200/320ms motion tokens). Status dots and iconography reproduce the shapes of DSH's official dsh-client-ui-primitives (StateDot, ListPen, Check, Close); this plugin is not affiliated with ZCode or the DSH team.

Roadmap

See docs/roadmap.md for themes per version (next up v0.3.0: collapsed finished-run summary + duration/loop metrics + failure recap).

Notes & limitations

  • The tool row exists only as an invisible data source; the timeline card is the single entry point in a conversation.
  • Wide single-row windows draw the full arc set; re-flowed (multi-row) windows draw same-row arcs only and mark loop targets with badges.
  • Finished runs collapse to a one-line recap (phases / progress / loops / failure locations / duration — duration needs upstream time fields). Status words are built-in Chinese; the locale channel is not wired yet.
  • Workflow events are consumed read-only; the plugin keeps no parallel orchestration state.

License

MIT © zuiyouli

Content from the project README on GitHub ↗

Links

More in this category

View the whole category →

Community comments

Comments are public GitHub Discussions. Loading them connects to GitHub and Giscus; a GitHub account is required to post.