lqhl/dsh-pi-tui

Desktop桌面端 Native原生 ⭐ 2 MIT Clients & Launchers客户端与启动器

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,带有来源证明签名,开发流程要求提交变更前先运行代码检查和类型检查。

Pre-install check安装前体检Compatibility · Security兼容性 · 安全性 1 warning1 项注意
  • 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 →

← 上一个 Prev dsh-web 下一个 Next dsh-deepseek-usage →