DeepSeek Harness Plugin Hub

发布与管理完整 Harness Profiles,发现适合你的插件。

探索

插件目录环境预设文档中心动态

社区

发布插件联系我们报告问题

相关链接

Plugin Hub GitHubDeepSeek Harness 官方项目系统状态隐私说明
© 2026 DeepSeek Harness Plugin HubPowered byPaxTech

独立、非官方社区项目,与 DeepSeek 官方无隶属、授权或背书关系。

Task Progress — DeepSeek Harness 插件(DSH Plugin)
← Plugins
T

dsh-task-progress

Task Progress

长时间运行的 DSH 任务的实时进度:脚本将结构化进度报告到每个会话的目录中,Web UI 会在浮动叠加层和右侧边栏标签页中显示这些进度。

插件会安装到这里;不确定时保持 web。

npx -y @deepseek-ai/dsh plugin --profile web add github:chen8923/dsh-task-progress#fa4417e23ef97dcf20b025dc0b279caddf035a92
README兼容性版本

兼容性与来源证明

Task Progress 以 dsh-task-progress 发布,当前版本为 0.1.0。Plugin Hub 会校验它的 manifest,并保存精确安装来源,便于复现安装结果。

DSH 兼容范围
*
运行环境
web
发布来源
github
Registry 更新时间
2026/9/20

版本

0.1.0stable
2026/9/20

相关插件

正在加载相关插件…

最新版
0.1.0
DSH
*
HMR
重启进程
Tree shaking
未声明可安全裁剪
解包体积
未提供
文件数
未提供
Surface
web
许可证
MIT
发布源
github
GitHub
★ 0
周下载
0
最近提交
2026/9/20
查看源码 ↗
README Badge

点击下方 Badge 复制 Markdown,粘贴到 README 即可。

这是你的 Plugin?认领权益 · 优先安全扫描

验证 package.json 声明的 GitHub 仓库,即可管理这个公开页面。认领后,Hub 会优先安排当前版本的安全扫描,并在通过后公开展示结果。

认领这个 Plugin →
报告问题
DeepSeek Harness Plugin Hub
ProfilesPlugins分类动态文档登录管理 Profiles
ProfilesPlugins分类动态文档登录

相关插件

继续浏览 productivity-workflow 分类下经过校验的插件。

Acp App@deepseek-ai/dsh-acp-appdsh ACP 配置文件包:基于 dsh-base 的仅限自动化的 JSON-RPC stdio 和进程生命周期管理Client Ui Task Board@linxin666/dsh-client-ui-task-board面向 DSH Web GUI 的主机权威任务面板,支持实际会话执行、主机 cron 调度以及可选的跨平台空闲睡眠保护;以挂载方式提供,无需修改 DSH 源代码。Web All@linxin666/dsh-web-allDSH Web UI 全家桶聚合插件:一键安装全部功能插件(task-board / git-graph / pet / remote-web-ui / web-ui-settings / skin-center / community-plugins / compat shim)。compat 桥接层已并入本包(src/client),无需独立 compat npm 包。Deepseek Ipptdeepseek-ipptiPolloWork PPT Studio 及其精选幻灯片模板,作为原生 DeepSeek Harness 对话视图。

README

dsh-task-progress

Live progress for long-running tasks in DeepSeek Harness. A script reports structured progress to a file; the Web UI shows it in a floating overlay and a right-sidebar tab — no polling the agent, no waiting for the command to finish.

Version 0.1.0 · MIT · 中文 · Changelog

┌──────────────────────────────────────┐
│ ⟳ 2 tasks running                    │   ← floating pill, appears only while
└──────────────────────────────────────┘     something is running
┌──────────────────────────────────────┐
│ Long-task progress      2 running · 1│
│ ██████████░░░░░░░░░░  52%  build     │   ← click the pill, or open the
│ linking objects                      │     "Task progress" sidebar tab
│ 12m04s elapsed · 5/9 files · ~11m left│
└──────────────────────────────────────┘

Why this exists

DSH's pwsh/bash tools are not streaming: a foreground command's output appears only when it finishes, and a background job's output lives behind the model's job_output cursor. The session-header job list shows status, but not a single line of output. So a ten-minute build is a black box to the human watching the GUI.

This plugin gives long tasks a second, purpose-built channel that is theirs to write and the human's to read.

Install

# from npm (once published)
dsh plugin --profile web add dsh-task-progress

# from a git checkout
dsh plugin --profile web add github:chen8923/dsh-task-progress

# from a local checkout of this repository (see Development)
./tools/rebuild.ps1 -Profile web -Checkout <path-to-dsh-checkout>

DSH mounts a profile bundle at startup, so restart DSH afterwards. The plugin requires the Web profile (webServer, connection, shellEnv, and the right sidebar); in a composition without them it stays unloaded and changes nothing.

The git install is one command with nothing to allow: the built plugin is committed, so there is no build step for pnpm to gate.

Use

Inside a DSH shell call the plugin hands the script its directory:

# PowerShell — one append per event
$line = '{"v":1,"task":"build","state":"running","pct":42,"msg":"linking"}'
[System.IO.File]::AppendAllText(
  (Join-Path $env:DSH_PROGRESS_DIR 'build.jsonl'), $line + "`n",
  [System.Text.UTF8Encoding]::new($false))
# bash
printf '{"v":1,"task":"build","pct":42,"msg":"linking"}\n' >> "$DSH_PROGRESS_DIR/build.jsonl"
# Python (any language works — it is just a file)
import json, os
path = os.path.join(os.environ["DSH_PROGRESS_DIR"], "build.jsonl")
with open(path, "a", encoding="utf-8") as handle:
    handle.write(json.dumps({"v": 1, "task": "build", "pct": 42, "msg": "linking"}) + "\n")

Or let the bundled helper do the quoting:

node "$DSH_PROGRESS_CLI" emit --task build --pct 42 --msg "linking"
node "$DSH_PROGRESS_CLI" done --task build --msg "shipped"
node "$DSH_PROGRESS_CLI" list          # print what the directory currently says

Try it with no setup at all:

pwsh ./examples/simulate.ps1 -Task demo -Steps 30 -DelayMs 500

Then open the Task progress tab in the right sidebar (or click the floating pill once it appears).

Out of the box

Installing the plugin is enough for the agent to know the convention: the host half contributes a short section to the system prompt, right where the background-jobs guidance already is, so the model arranges progress reporting for long commands on its own. There is nothing to configure and no AGENTS.md edit — a feature that only works after you edit your own instructions is not one you can install.

If you want it stronger, or you run a composition without that prompt seam, the same instruction can live in your workspace AGENTS.md:

## Long-running tasks
For any command expected to run longer than ~30s, report progress from inside the
script to `$DSH_PROGRESS_DIR/<task>.jsonl` (one JSON line per event, see the
dsh-task-progress protocol), or use
`node "$env:DSH_PROGRESS_CLI" emit --task <id> --pct N --msg "..."`.
Never read the progress file back — it is for the human.

When nothing appears

The panel shows what scripts report; it never reads a running job's output. A background job started by a script that does not report is therefore invisible here, and existing jobs cannot be retrofitted — but the sidebar tab says so instead of looking broken: with jobs live and nothing reported, its empty state names the count.

Settings

The plugin registers one settings namespace, so its knobs are editable where every plugin's are: Settings → Plugins → Plugin configuration → Task progress.

FieldDefaultMeaning
Scan interval (ms)1000How often the Host half re-reads changed progress files.
Poll interval (ms)2000How often the browser asks for progress.
Keep finished for (ms)1800000How long a finished task stays listed.
Messages per task30Recent messages kept per task.
Max tasks200Cap on tasks in one state document.
File tail bytes262144Bytes read from the tail of one progress file.
Extra roots–Absolute paths whose .dsh-progress is scanned too.

Saving writes the namespace's user layer into $DSH_HOME/settings.yaml; pressing Reset (or emptying a field) removes the override, so the value falls back to the plugin row's config and then to the schema default. Changes apply live: a new scan interval re-arms the Host loops on their next tick, and the state document's pollMs follows the value the browser should use.

dirName is deliberately absent from the panel — it is part of every path already written, so it stays a composition-level setting on the plugin row.

Design

Three layers, each independently replaceable — the point is that neither a producer nor the UI knows about the other, and neither knows about DSH internals.

LayerWhat it isWhy it is shaped that way
Protocol (docs/PROTOCOL.md)Append-only JSONL, one file per taskAny language, no IPC, no ports, no auth, survives restarts. Works with the plugin uninstalled — the files are just files.
Host halfctx.shellEnv contributor + directory poll + one HTTP route + a system-prompt sectionUses only public DSH seams (webServer, connection, shellEnv, settings, systemPrompt), and never touches the job registry.
Browser halfOne polling store, two panels (shell.overlay + a sidebar tab), and a settings cardThe panels read the same snapshot and the card reads its own namespace scope, so adding or removing a surface never touches the data path.

Why the plugin does not read job output. ctx.jobs.read() consumes a single-consumer cursor that belongs to the model's job_output tool; a browser path reading it would silently steal bytes the model can then never see (DSH pins that as a tested invariant). Progress here is therefore something the script chooses to report, which is what makes this plugin safe to install alongside anything else.

Why polling instead of push. The data is a couple of kilobytes of JSON on localhost, and a poll loop is the one design that cannot desynchronize: every reader sees the same last-wins document, a missed tick costs one interval, and there is no reconnect logic to get wrong. The interval comes from the Host half's configuration.

Zero dependencies. The host half imports Node built-ins only; the browser half bundles everything it owns and treats react as a platform external. That extends to the settings schema: ctx.settings.register takes a schemastery schema, and this plugin supplies a minimal compatible node — callable for resolution, toJSON() in schemastery's reference-graph form, and walkable by the settings redactor — instead of depending on a package that a profile install cannot resolve. Its own browser card passes a decoder so it never has to rehydrate a schema envelope at all.

What it deliberately does not do

  • No history. Progress is live state, not a log; finished tasks age out.
  • No cancel button. Stopping a job is the model's job_kill (a human-initiated interrupt needs a delivery-semantics decision this plugin does not own).
  • No remote producers. Everything is local files in the workspace the session already writes to.
  • No session lookup. Directories are learned from the shell calls that were handed them, plus configured roots — so the plugin never revives a session or reads a path the browser suggested.
  • No cross-session reads. The state endpoint answers for exactly one session per request and puts no filesystem path on the wire. DSH's web login fences the whole instance rather than a session, so an endpoint that answered with everything the process knows would hand any authenticated caller every other session's task names and messages.

Development

npm test          # 38 tests, one process (works in restricted sandboxes)
npm run test:runner   # the same suite through node --test
npm run build         # requires tsdown

Source layout:

src/protocol.ts        the shared contract (pure, bundled into both halves)
src/host/              settings namespace, store, shell-environment contributor, HTTP route, prompt section, entry
src/client/            polling store, formatting, settings form, React components, slots, styles
bin/dsh-progress.mjs   the dependency-free producer CLI
docs/PROTOCOL.md       the file contract and every configuration key
test/                  protocol, store, formatting, host-wiring, settings, prompt, and release suites
tools/                 test entry and the build/pack/install script

lib/ is committed, and that is load-bearing. A git-hosted package that has to build needs pnpm's build-script allowlist, whose key contains the exact commit — so the install would take two steps and the second one would change on every push. Shipping the build makes it one command, at the cost of discipline: after any source change, run npm run build and commit lib/ in the same commit. test/bundle.test.ts fails if the build is missing, is not a loader bundle, or no longer carries what the sources define. prepublishOnly still builds for npm publish. The suites run on Node 22.18+ (they execute the TypeScript sources directly through type stripping), while the plugin itself runs on Node 20+.

Releasing

npm test                                  # 69 checks, one process
npm publish                               # builds first, then publishes
git tag v0.1.0 && git push --tags

test/release.test.ts fails if the version in package.json is not also stated in both READMEs and the changelog, if a documented example is missing from files, or if the repository links disagree with the install instructions — so the four places a version or a URL appears cannot drift apart.

License

MIT