插件目录 / UI & Skins / dsh-tui-plugin
dsh-tui-plugin
已验证 · 实测可装 JimLuan
功能简介
Terminal UI plugin for the DeepSeek Harness dsh CLI: an interactive in-process host surface over dsh-base (sessions, streaming conversation, tool cards, approvals, questions, jobs, subagents, goals, plan mode, model selection, settings, skills, @-mentions). Loads via dsh --patch.
可用 — 实测通过,早期项目
Terminal UI plugin for the DeepSeek Harness dsh CLI: an interactive in-process host surface over dsh-base (sessions, streaming conversation, tool cards, approvals, questions, jobs, subagents, goals, plan mode, model selection, settings, skills, @-mentions). Loads via dsh --patch. 实测能干净安装、正常启动。早期项目,但功能可用。
「已验证」表示我们的自动化 CI 在干净 profile 里实际执行了 dsh plugin add 并启动成功——仅此而已。功能描述与版本兼容性均为作者声明。这不是安全审计,也不代表对第三方代码的背书。
README
dsh-tui-plugin
A standalone terminal UI bundle for the DeepSeek Harness: an interactive in-process host surface that runs on top of the official dsh base bundle — session list, streaming conversation with light markdown, tool cards, approvals, questions, background jobs, subagents, goals, plan mode, model selection (with reasoning-effort cycling), settings (file editing), skills, and @ file/skill references.
It is a standard Cordis bundle plugin (cordis.patch.yml + tui-runner/tui-startup function plugins). It mounts no Host, HTTP server, or browser — it drives the same ctx host services the official Web surface proxies.
Requirements
- Node
^22.19or>=24 - The official DeepSeek Harness CLI installed, so the
dsh-basebundle and the cmdline/exit services exist.
Install & run
This is a bundle plugin for the official dsh CLI: install it into a profile's bundle stack, then boot that profile. It layers the terminal runner over the official dsh-base bundle.
npm i -g @deepseek-ai/dsh
npm i -g dsh-tui-plugin
# one-time: create/use a profile and add this bundle to it
dsh plugin --profile tui add dsh-tui-plugin
# (the first `add` creates the `tui` profile; it also installs dsh-base)
# every launch: boot the profile
dsh --profile tui
dsh --patch <path>takes a patch file path, not a package name. Bundle plugins are loaded by listing the package name in the profile'sdsh.profile.bundles(whichdsh plugin --profile tui add dsh-tui-plugindoes for you) and installing it with pnpm in the profile directory.
From there the TUI opens in raw mode: 1–8 views, / command palette, @ mentions, mouse selection (copies on release), wheel + PgUp/PgDn scrolling, /lang for 中文.
The status line shows the model route with its reasoning effort (provider/model · high), accumulated token usage (↑in ↓out plus cache traffic), and while a turn runs, its elapsed time and output rate (12.3s 45/s). Resuming an interrupted session clears the stuck running state and shows a "session resumed — send a message to continue" notice instead.
Session lifecycle & compaction
- The sessions view marks heavy sessions (large accumulated prompt-side context,
◆) so you can spot the expensive ones at a glance. - Resuming a heavy session (≥ 40k prompt tokens) offers
/compactfirst: continuing would re-send the whole context on every request, missing provider prompt caches and billing full uncached input each time. Pressyto compact,n/Escto continue as-is./compactis also always available from the command palette.
Build
npm i && npm run build # emits lib/ via tsc
Test
npm test # unit suites (key decoder, screen, views, fold, popups,
# app state machine, runner wiring, i18n)
tests/real-composition.spec.ts boots the shipped base + tui patches through the real Loader; it needs the official base patch on disk:
DSH_BASE_PATCH=/path/to/deepseek-harness/packages/bundle/base/cordis.patch.yml npm test
(The official @deepseek-ai/dsh package may ship its base patch; point DSH_BASE_PATCH at it when it does.)
Publish checklist
- Use the name as-is —
dsh-tui-pluginis free on the npm registry (verified), and every reference (package.json,cordis.patch.yml,src/) already matches it. Only if you want a personal scope (e.g.@your-scope/dsh-tui-plugin) do you rename — and then also update the twodsh-tui-pluginname:entries incordis.patch.yml(the patch rows load this package by its own name). - Verify dependency versions against the registry (
npm view @deepseek-ai/dsh-llm versionetc.) — the ranges here match the day this was scaffolded; the harness moves fast. npm publish(with--provenancewhen your registry supports it).- Add the
dsh-pluginGitHub topic on your repository.
Upgrading
The bundle pins @deepseek-ai/dsh-* service APIs that are stable, but official releases occasionally adjust the base patch rows. When a new @deepseek-ai/dsh lands, bump the ranges and re-run the composition test against the new base.
License
MIT — derived from the DeepSeek Harness project (MIT).
安装
装一次目录插件,之后本站所有插件都能让 DeepSeek Harness 自动找、自动装:
dsh plugin add dshbase-catalog 然后对 agent 说「帮我装 dsh-tui-plugin」,它会在目录里找到并自动安装。文档:dshbase-catalog · 已验证场景包。
该插件是 GitHub 源码(未发 npm)——直接从仓库装:
Web profile:
dsh plugin --profile web add github:JimLuan/dsh-tui-plugin Headless(CLI)profile:
dsh plugin --profile headless add github:JimLuan/dsh-tui-plugin 实测报告
验证通过:从 GitHub 源码完成 L1 安装 + L2 加载 + L3 运行(dsh 0.1.0-rc.6)。