lqhl/dsh-pi-tui
Project Overview项目介绍
dsh-pi-tui is a terminal-based frontend built exclusively for DeepSeek Harness (DSH), powered by the pi-tui library from the pi coding agent project. It brings pi’s signature UI style to the DSH terminal, including a brand blue prompt, incremental streaming markdown rendering, collapsible thinking blocks, styled tool call cards, and differential rendering that prevents screen flicker. All core DSH functionality, including model routing, tool execution, session persistence, slash commands, and permission approval, leverages DSH’s official built-in mechanisms. To install, users first install the official DSH CLI globally via npm, then run dsh plugin --profile pi-tui add dsh-pi-tui to automatically set up the profile.
This frontend is designed for users who prefer working in a terminal environment over DSH’s default web-based interface. It includes dozens of convenient keyboard shortcuts for common actions: Ctrl+F searches through the current conversation transcript, Ctrl+T toggles thinking block folding, Alt+C copies the last assistant message to your system clipboard via OSC 52, and Ctrl+L opens the built-in model selector. All official DSH slash commands, like /compact and /goal, are automatically discovered from DSH’s command registry, with built-in auto-completion support. Session data is stored in the same persistent location that DSH’s web profile uses, so you can seamlessly switch between terminal and web interfaces anytime.
dsh-pi-tui requires Node.js version 22.19 or higher, and has been tested and confirmed to work with DSH version 0.1.0-rc.6. Other release candidates of DSH have not been tested, so users are encouraged to submit feedback if they test it on newer versions. It is released under the permissive MIT license, though portions of the code adapted from the pi project retain the original author’s copyright. All releases are published to npm via GitHub Actions using OIDC trusted publishing, which includes provenance signatures for security. For local development, users can link the repository to their DSH profile, then rebuild and restart DSH to test changes.
dsh-pi-tui 是专为 DeepSeek Harness 打造的终端前端,由 @earendil-works/pi-tui 驱动,继承了 pi 的交互观感,包括品牌蓝色提示符、流式 Markdown 渲染、思考块折叠、工具调用卡片、防闪烁微分渲染等特性。核心能力如模型路由、工具调用、会话持久化、斜杠命令、权限审批全部由 DSH 官方机制提供,适配 DSH 的原有能力生态。用户可通过 DSH CLI 一键安装,自动初始化专属配置文件。
该项目面向偏好使用终端而非官方网页界面操作 DSH 的用户,会话数据与 DSH 网页端配置文件共享 ~/.dsh/sessions 持久化存储,终端和网页端可互通操作。它预置了丰富的快捷键,覆盖搜索历史、切换模型、折叠展开块、复制消息等常用操作,也支持所有官方 DSH 斜杠命令,所有命令均从官方命令注册表动态发现。用户无需额外自定义配置即可开箱使用。
使用该项目需要预先安装 DSH CLI 0.1.0-rc.6 及以上版本、Node.js >= 22.19 以及 pnpm 包管理器。项目采用 MIT 许可证发布,其中改编自 pi 项目的部分代码保留原作者版权。版本发布通过 GitHub Actions 以 OIDC 可信发布方式发布到 npm,带有来源证明签名,开发流程要求提交变更前先运行代码检查和类型检查。
请帮我安装这个 DSH 插件。安装前先完成【兼容性检查 + 安全性检查】,检查通过再动手。
插件:dsh-pi-tui(lqhl/dsh-pi-tui)
仓库:https://github.com/lqhl/dsh-pi-tui
本站详情页:https://www.yhbd.top/plugins/lqhl-dsh-pi-tui/
本站登记:类型 client · 归类 原生 DSH 插件 · 许可证 MIT · ⭐ 2 · 最近提交 2026-08-17 · 主语言 TypeScript
按下面顺序执行,每步先把结论告诉我,再进入下一步:
【1 兼容性检查】
① 我这边:DSH 版本、Node 版本、操作系统、当前 profile(web / desktop)。
② 读它的 README、package.json、插件 manifest,列出它要求的 DSH 版本 / Node 版本 / 操作系统 / 外部依赖 / 需要另外先装的运行时。
③ 逐条比对,结论只写「满足 / 不满足 / 未知」三种;不满足的给出可行替代方案。
④ 检查是否和我已装的插件冲突:命令名重复、skill / tool 重名、端口占用、重复注册的 MCP server。
【2 安全性检查】
① 仓库可信度:和上面「本站登记」是否一致;star / fork 数、创建时间、最近提交,是否归档或长期停更。
② 安装脚本:逐行看 package.json 的 preinstall / install / postinstall,以及 install.sh、setup.ps1 之类脚本。出现 curl|bash、下载后直接执行、混淆代码、访问与插件功能无关的域名,立刻停下来告诉我,不要继续装。
③ 依赖:列出新增依赖,标出无人维护、或与知名包拼写近似的可疑包(typosquatting)。
④ 权限与副作用:它会读写哪些目录、访问哪些域名、需要哪些 DSH 权限(filesystem / network / shell / clipboard 等),以及怎么卸载和回滚。
⑤ 如果它要求 sudo / 管理员权限,或权限明显超出功能所需,先停下来问我。
【3 安装】
上面两步没有「不满足」和「高危项」时才执行;用官方推荐方式安装,不要自行提权。
【4 汇报】
用表格输出:检查项 / 结论 / 依据 / 是否需要我决策。拿不准的一律写「未知」并说明要我怎么确认——不要猜,也不要替我决定。
Send this message to DSH in your current session: it verifies compatibility and security first (answering met / not met / unknown item by item) and only installs once everything checks out — it will stop and ask you if it finds a high-risk item. The box scrolls; the copy is the full prompt. CLI install commands may not be accurate across systems, so DSH is the safer route.把上面这条消息直接发给当前会话里的 DSH:它会先核对兼容性与安全性(逐条给「满足 / 不满足 / 未知」),确认没问题再安装,有高危项会停下来问你。框内可滚动,复制到的是完整提示词;安装命令不一定准确,发给 DSH 更稳。
- Only 2 stars - very few users, little community feedback星标只有 2,几乎没人在用,遇到问题缺少社区反馈
DSH walks through these 9 checksDSH 会逐条核对这 9 项
Compatibility兼容性
- DSH, Node, OS and profile requirementsDSH 版本 / Node 版本 / 操作系统 / profile 是否满足要求
- External dependencies and runtimes (Electron / Python / Docker, ...)外部依赖与运行时(Electron / Python / Docker 等)是否齐备
- Conflicts with installed plugins: command names, skill / tool names, ports, duplicate MCP registration与已装插件是否冲突:命令名、skill / tool 重名、端口占用、重复 MCP 注册
Security安全性
- Repo matches the facts registered here; archived or abandoned?仓库是否与页面登记一致,是否归档或长期停更
- Safety of preinstall / install / postinstall and install.sh / setup.ps1preinstall / install / postinstall 与 install.sh、setup.ps1 是否安全
- curl|bash, download-then-execute, obfuscation, unrelated domains → stop immediatelycurl|bash、下载即执行、混淆代码、无关域名 → 立刻停止
- Typosquatting or unmaintained packages among the new dependencies新增依赖里有没有 typosquatting 或无人维护的包
- Requested permissions vs. what the feature actually needs申请了哪些权限、是否超出功能所需(filesystem / network / shell / clipboard)
- Any sudo / admin requirement, plus uninstall and rollback是否要求 sudo / 管理员权限,以及卸载与回滚方式
Anything uncertain must be marked unknown with a note on how to confirm it. This site's signal screen is a static snapshot, not a security audit.拿不准的必须标「未知」并说明要我怎么确认。本站的信号筛查是静态快照,不能替代安全审计。
Or use CLI install (for developers)或使用命令行安装(适合开发者)
CLI Install命令行安装
dsh plugin --profile pi-tui add dsh-pi-tui
把 lqhl/dsh-pi-tui 加入你的 DSH 配置(web profile)即可启用。
READMEREADME
dsh-pi-tui
pi 的 TUI(@earendil-works/pi-tui)驱动的 DeepSeek Harness 终端前端:界面是 pi 的观感(品牌蓝 prompt、流式 Markdown、thinking 折叠、工具调用卡片、微分渲染防闪烁),内核(模型路由、工具、会话持久化、slash 命令、审批)全部由 dsh 官方机制提供。
安装
前置:官方 dsh CLI(npm i -g @deepseek-ai/dsh)与 pnpm。
dsh plugin --profile pi-tui add dsh-pi-tui # 自动初始化 profile 并挂为 bundle
dsh --profile pi-tui # 新会话
dsh --profile pi-tui --resume <session-id> # 恢复指定会话
dsh --profile pi-tui --resume # 从持久化会话列表中选择
dsh --profile pi-tui --preset <id> # 选择 agent preset(standard/minimal/code)
dsh --profile pi-tui --preset # 从 preset 列表中选择
会话与 web profile 共享 ~/.dsh/sessions 持久化存储,两端互通。
键位
| 按键 | 功能 |
|---|---|
Enter |
提交(Shift+Enter 换行) |
Esc |
中断当前 turn / 取消自动补全 / 退出工具卡片浏览 / 清除搜索高亮 |
Ctrl+C |
运行中→中断;有文字→清空;已空→再次按下退出 |
Ctrl+D |
编辑器为空时退出(非空时删除字符) |
Ctrl+T |
展开/折叠 thinking 块 |
Ctrl+O |
展开/折叠工具完整输出 / diff |
Ctrl+F |
在 transcript 内搜索(输入即跳转,↑/↓ 循环,Enter 确认,Esc 关闭) |
Alt+C |
复制最后一条 assistant 消息(OSC 52 三路剪贴板) |
Ctrl+L |
打开模型选择器 |
Ctrl+R |
搜索消息历史:本会话 + 最近持久化会话的首条消息(选中载入输入框) |
↑ / ↓ |
浏览当前会话的消息历史(恢复/切换后自动载入) |
Ctrl+Z |
挂起到后台(fg 恢复) |
Ctrl+G |
用 $EDITOR 编辑输入 |
Shift+Tab |
循环会话 mode(normal ↔ plan) |
Ctrl+X |
循环思考强度(off→high→max) |
Tab |
补全(slash 命令 / 路径型 token;普通单词不触发);空编辑器时循环工具卡片焦点(Enter 展开) |
@ |
文件提及菜单(搜索框 fuzzy 过滤,选中即插入) |
! / !! |
直接执行 shell 命令(用户全权;!! 输出不进模型上下文) |
Showing the opening section of the README — the full document lives in the repository以上为 README 开头摘要,完整文档在仓库内 · View the full README on GitHub →在 GitHub 查看完整 README →
reactive-resume/reactive-resume
anywhere-labs/dsh-desktop
dataelement/dsh-desktop
ccch1mneyyy/dsh-TUI
DSH-EAC/DSH-Desktop-EAC
shaobeichen/dsh-pocket
xyTom/coding-tools-mcp