DSH Plugins Marketplace

DSH Plugins

Plugins

/

UI & Experience

/

dsh-goal-mode-enhance

d

dsh-goal-mode-enhance

Manifest valid

Visual goal lifecycle for the DSH web UI: a composer dock to create, multiline-edit, pause, resume, complete and clear session goals with live round progress, plus a phase-dot composer entry and a set

UI (client)hasBundlePatch

dsh-goal-mode

为 DeepSeek Harness Web 界面提供可视化 goal 模式的插件。

把原本只能靠对话命令(/goal)和模型工具(create_goal / get_goal / update_goal)操作的目标系统,变成看得见、点得动的界面。

English | 中文

两种形态

本仓库同时提供两种形态,推荐使用 A(正式插件,稳定、可注册安装):

形态说明适合
A. 正式插件包(推荐)独立 npm 包结构(dsh.plugin.json + cordis.patch.yml + 构建产物),dsh plugin add 安装,页面刷新/重启不丢日常使用、分享给他人
B. 动态插件源码(保留)会话内 cordis_define + cordis_run 加载(host.js / client.js)快速试玩、调试

功能(形态 A)

  • 完整生命周期目标栏(composer 上方,conversation.input.dock,替换内置 goal 条):
    • 无目标时:◎ 按钮展开「设定目标」创建表单
    • 有目标时:状态标签 + 目标文本 + 轮次进度条与 n/上限 + 已达上限徽标
    • 图标按钮:⏸ 暂停 / ▶ 恢复 / ✎ 编辑(多行)/ ✓ 完成 / 🗑 清除 / 收起
    • 已完成:完成横幅 + 「开始新目标」
  • 多行编辑/创建:目标内容用多行文本框(自动换行、可拖高、Ctrl+Enter 提交),可同框设置轮次上限
  • Composer 工具行入口(conversation.input.left):◎ 目标按钮 + 阶段色点(绿=进行中 / 黄=暂停 / 红=阻塞),点击展开/收起目标栏;目标栏可折叠为内容自适应胶囊
  • General 设置开关(settings.general.item):「在输入框工具行显示目标入口」,经 ui-goal-mode 设置命名空间持久化
  • 独立「目标」设置页(settings.section):展示当前会话的目标状态、轮次和紧凑目标预览,长目标可按需展开,并附使用说明
  • 零空闲干扰:未设置目标时,composer 上方不渲染任何内容(除非创建表单显式打开)

截图

目标栏——完成态(与原生任务条同屏共存)

goal dock with native todo strip

创建表单(多行目标 + 轮次上限)

goal create form

折叠胶囊(工具行入口点击展开/收起)

collapsed goal chip

原理

部分实现
数据展示useProjection('goal') 实时投影(含实时 roundsStarted),零轮询
操作通道ctx.remote.goals(web 装配的 api-remotes 挂载的 Remote 命名空间),带 CAS revision 乐观并发
偏好持久化host 半注册 ui-goal-mode 设置命名空间,client 策略镜像 Host 段落
UI 落点conversation.input.dock(goal 单元,priority -10 覆盖内置条)、conversation.input.left、settings.general.item、settings.section
图标内联 SVG 线条图标(Feather 风格,currentColor 随主题)

数据本身存储在会话日志(goal/change 事件),持久化由引擎保证,插件只负责展示与操作。

安装

  • 形态 A(正式插件):推荐直接使用 Release 预构建 tarball——dsh plugin --profile web add <tgz 路径> 后重启即可;开发者本地构建方式见 INSTALL.md。已验证的 DSH 版本兼容性结论见 COMPATIBILITY.md。
  • 形态 B(动态插件):见 host.js / client.js 顶部注释,会话内 cordis_define + cordis_run 加载。

仓库结构

dsh-goal-mode/
├── src/                      # 形态 A 插件源码
│   ├── index.ts              # host 半:注册 ui-goal-mode 设置命名空间
│   ├── invariant.ts          # 包不变式伴生
│   ├── settings-contract.ts  # 浏览器安全的设置常量/类型(host 与 client 共享)
│   └── client/
│       ├── index.ts          # 插件主体:注册 dock 条 / composer 入口 / 设置行
│       ├── GoalBar.tsx       # 目标栏 / 创建 / 编辑 / 胶囊 / composer 按钮
│       ├── ComposerEntryRow.tsx  # 设置开关行
│       ├── GoalSettingsSection.tsx # 独立目标设置页
│       ├── settings-policy.ts    # 偏好策略(Host 设置镜像)
│       ├── store.ts          # 查看状态(页面内)
│       ├── slots.ts / locales.ts / styles.ts
├── build.mjs                 # esbuild 单文件构建(host ESM + client CJS bundle)
├── dsh.plugin.json           # 插件清单
├── cordis.patch.yml          # web profile patch 挂载
├── package.json / tsconfig.json / pnpm-workspace.yaml
├── host.js                   # 形态 B 动态插件 host 半(保留)
├── client.js                 # 形态 B 动态插件 client 半(保留)
├── INSTALL.md                # 安装指南
└── README.md

要求

  • DeepSeek Harness(Web GUI,web profile)
  • 目标系统内置(goals 服务 + goal 投影)

License

MIT

Compatibility

DSH 0.1.7-rc.2: failedDSH 0.2.1-alpha.4: failedDSH 0.2.0-rc.1: failed

Versions

Latest versionPublishedSize
0.1.0——

Comments

Loading…

Similar plugins

dsh-clearview

Adds a Reading tab to the DSH web client that shows process steps and live reasoning in source order, collapses successful turns to the final answer, and keeps the original tabs, composer, and tooling

UI & ExperienceManifest valid

★ 2

NOASSERTION

TypeScript

dsh plugin --profile web add dsh-clearview

Expand button for the DSH Web UI composer — appears at 3+ lines, stretches to near-fullscreen height, auto-collapses on send, and Enter inserts newlines in expanded mode.

UI & ExperienceManifest valid

★ 0

dsh plugin --profile web add dsh-composer-stretch

by chen8923

Live progress for long-running DSH tasks: scripts report structured progress, the Web UI shows it in a floating overlay, a sidebar tab, and a settings page.

UI & ExperienceDevelopment & InfrastructureTerminal & ClientsManifest valid

★ 0

MIT

TypeScript

Sep 24, 2026

dsh plugin --profile web add dsh-task-progress

by xing-shuyin

Developer tools panel for the DSH web UI: file browser with preview, edit, and path-only file mentions; multi-tab terminals with quick commands; Git panel with commit, push, pull, and branch switching

UI & ExperienceManifest valid

★ 6

↓ 142/wk

JavaScript

Aug 19, 2026

dsh plugin --profile web add dsh-ui-tools

dsh-update-vd

UI & ExperienceManifest valid

★ 0

MIT

JavaScript

dsh plugin --profile web add @mhxy13867806343/dsh-update-vd

by xlennart

为 DeepSeek Harness 提供可视化 goal 模式:Goal 栏 / 头部入口 / 设置页(历史+多会话总览)/ goal_overview 模型工具

UI & ExperienceManifest valid

★ 4

MIT

TypeScript

Sep 30, 2026

dsh plugin --profile web add dsh-goal-mode