DeepSeek Harness plugin

dsh-visual-plan

Visual plan mode for DeepSeek Harness: structured plan.json + plan.md, an editable React Flow canvas, comments, plan diff, versioned revisions, and reliable write-back to the agent.

Jump to install

Source facts

Repository
JIAQI23333/dsh-visual-plan
Latest update
Aug 15, 2026
Category
Workflow & Automation
GitHub stars
0
Format
plugin
Catalog evidence
Upstream dsh.bundle evidence
Evidence path
package.json#dsh.bundle
Checked against
0.1.0-rc.8
Upstream check date
2026-08-20

This evidence comes from the upstream catalog. This site has not installed, run, or security-reviewed the plugin.

Install

Start with a prompt that asks an agent to review the GitHub repository and source. Switch to the command if you want to install it yourself.

Copy this prompt into DSH, Codex, or another agent and ask it to review the GitHub repository and source first.

Do not install or run any commands yet. Read this plugin's GitHub repository, README, and relevant source code. Then answer the questions below clearly and directly so I can decide whether it fits my needs:

1. What is this plugin, and what problem does it solve?
2. Who is it for, and what are its typical use cases?
3. How is it used after installation? Include one minimal example.
4. What known limitations or privacy, security, compatibility, or maintenance risks does it have?
5. Give a clear recommendation: recommend, conditionally recommend, or do not recommend, with reasons.

Distinguish statements documented by the repository, inferences from source code, and unknowns. If evidence is insufficient, say so explicitly. Do not guess or simply repeat the README.

GitHub: https://github.com/JIAQI23333/dsh-visual-plan
Plugin: dsh-visual-plan
Author: JIAQI23333

Check the source files

Read the README and other files from this plugin directory before installing.

File explorer4 files
README.en.mdSource · read only
README language

<div align="center">

dsh-visual-plan

简体中文 · English

Visual Plan mode for DeepSeek Harness (dsh): the plan produced by the agent in Plan Mode automatically becomes an editable node graph. You can drag nodes, rewire dependencies, attach comments, review the Plan Diff, create a new version, and hand the user-approved revised plan back to DSH for execution.

</div>

Flow

User request → DSH Plan Mode → structured VisualPlan JSON → node-graph canvas
        → view / edit / comment → Apply Changes → Plan Diff → user confirms
        → new version (v1 → v2 → …) → revised plan written back to DSH → execute

Demo

![Visual Plan canvas demo](assets/demo.png)

Features

  • Automatic plan visualization: the exit_plan_mode output is converted into a VisualPlan JSON

and rendered with DAG auto-layout (no overlapping nodes, clear dependency flow).

  • Full editing: add / delete / edit tasks, drag to rewire dependencies; task type and status at a glance.
  • Comments: attach comments to any task; saved and traceable with each version.
  • Plan Diff: shows added / removed / modified / dependency changes before commit; nothing is written without confirmation.
  • Versioned storage: every Apply creates an immutable new version (.plan/revisions/vN.json);

the user-approved plan is never overwritten.

  • Reliable write-back: the approved version (Plan vN) is handed to the agent with an explicit message, and the agent continues from that exact version; if the situation changes during execution, the agent must propose a new plan for approval instead of silently modifying the approved one.
  • Dual data formats: plan.json (machine interface) + plan.md (human / agent-readable, Git-friendly, debuggable).
  • Plan ↔ Agent boundary: plan.status / version / approvedVersion / executionVersion — execution is bound to the approved version, laying the foundation for dynamic re-planning.
  • Robustness: JSON validation, missing-dependency and circular-dependency detection;

falls back to the Markdown plan when parsing fails.

  • Canvas capabilities: theme (follow / day / night), minimap toggle, fullscreen, interactivity toggle,

undo/redo, keyboard shortcuts (Delete, Cmd/Ctrl+Z, Cmd/Ctrl+S, F, …), a grouped "More" dropdown (View / Appearance), high-contrast controls in the bottom-left corner.

  • Localization: 中文 / English, following the DSH Language setting (Chinese by default).
  • Decoupled from DSH core: UI is isolated from the Agent Core; disabling the plugin leaves DSH's built-in Plan Mode untouched.

Installation

> Requires DSH >= 0.1.0-rc.6 (verified against 0.1.0-rc.6).

Local directory (development)

dsh plugin --profile web add /path/to/dsh-visual-plan

GitHub (after publishing)

dsh plugin --profile web add github:<owner>/dsh-visual-plan

> pnpm ≥ 10 refuses to run prepare build scripts for Git dependencies on first install. > Add dsh-visual-plan to the profile's allowBuilds in pnpm-workspace.yaml and retry.

Verify the config layer and restart:

dsh --profile web --dump-config   # expect a "dsh-visual-plan" layer
dsh --profile web

Usage

1. In the Web GUI (dsh web, default http://127.0.0.1:3080), open a session, enter Plan Mode, and generate a plan. 2. Switch to the Visual Plan tab (between Chat and Trajectory). 3. Edit the graph: drag / zoom / pan the canvas, click a node to open the editor and change title, description, type, status, or dependencies; add or delete tasks and attach comments. 4. Click Apply Changes and confirm in the Diff dialog. 5. DSH creates a new version and continues execution from the revised plan.

Architecture

DSH Plan Mode (exit_plan_mode markdown)
        │
        ▼
DeepSeekHarnessAdapter ──► VisualPlan JSON (single machine interface)
        │                              │
        ▼                              ▼
   revised message              React Flow canvas (editable)
        │                              │
        └────────── Apply Changes ◄────┘
                      │
                      ▼
               Plan Diff → user confirms
                      │
                      ▼
        .plan/plan.json + plan.md + revisions/vN.json
                      │
                      ▼
          revised plan back to DSH → execution

Module layout:

  • src/schema — VisualPlan / Task / Edge / Comment / Version types + validation

(missing dependency, self-dependency, circular-dependency detection).

  • src/engine — Markdown ⇄ plan conversion, plan diff, version creation.
  • src/adapter — source-agnostic adapter seam; v1 ships the DSH adapter

(exit_plan_mode → VisualPlan, VisualPlan → revised-plan message).

  • src/index.ts — host face: .plan/ persistence and loopback API.
  • src/client — the Visual Plan tab (React Flow canvas, task editor, comments, Diff dialog, Apply).

Data layout

Each approved plan is stored in the session workspace:

.plan/
├── plan.json      latest VisualPlan
├── plan.md        latest markdown (agent-readable)
└── revisions/
    ├── v1.json    immutable approved snapshots
    └── v2.json

Version & execution boundary

Every Apply records the new version as both approvedVersion and executionVersion:

Plan v1 (agent-generated)  reviewing     approvedVersion = null   executionVersion = null
        │ user applies
        ▼
Plan v2 (user-approved)    executing     approvedVersion = 2      executionVersion = 2
        │ later draft v3
        ▼
Plan v3 (new draft)        draft         approvedVersion = 2      executionVersion = 2

Execution is always bound to the approved version; a newer draft never silently replaces the version that is currently being executed.

Development

npm install
npm run typecheck   # host + client type checks
npm run build       # host + client build
npm run verify      # offline contract + pure-logic verification (93 checks)

E2E

Against a running DSH web profile that composes this package:

node scripts/gui-probe.mjs [url]        # tab registration + view mounting
node scripts/e2e-plan-flow.mjs [url]    # /plan → approve → nodes on canvas

The full plan-flow script needs a working model and covers the acceptance chain: Plan Mode → exit_plan_mode → VisualPlan → canvas.

Roadmap & Changelog

  • [Roadmap](./ROADMAP.md)
  • [Changelog](./CHANGELOG.md)

Related documents

License

[MIT](./LICENSE)