跳到正文

dsh-tui/dsh-tui

151最近提交 2026年8月14日

dsh-tui DSH 插件

dsh-tui 在终端中提供类似 Claude Code / Codex 的聊天界面。它基于官方 @deepseek-ai/dsh-base 包构建,共享 shell、文件系统、技能、子代理、工作流和沙箱审批等插件生态。基于 @earendil-works/pi-tui,提供流式模型输出、工具调用卡片和各种交互对话框。

如何安装 dsh-tui DSH 插件

dsh plugin --profile tui add @dsh-tui/dsh-tui

复制不会执行命令。安装 dsh-tui DSH 插件前请核对仓库和版本。

dsh-tui DSH 插件数据来源

dsh-tui DSH 插件快照日期:2026年8月16日

discovered

dsh-tui DSH 插件能做什么

  • 流式模型输出和推理,以 Markdown 渲染
  • 工具调用卡片,支持终端/diff/通用渲染意图;Ctrl+O 循环切换折叠/展开/隐藏
  • 审批和 `ask_user_question` 对话框,包括计划模式审查
  • `@file` 路径自动补全和 `@session` 引用卡片
  • 斜杠命令:/model(含推理努力度选择)、/resume、/compact、/details、/help 以及其他插件注册的命令
  • 待办事项面板、令牌使用量和上下文压力状态栏、会话标题
  • 可配置主题,支持真彩色(从 COLORTERM 检测)

dsh-tui DSH 插件适合哪些场景

  • 在终端中启动与 DeepSeek 模型的新对话
  • 使用 --resume <session-id> 恢复之前持久化的会话
  • 通过 /model 命令切换模型或调整推理努力度
  • 压缩会话上下文以管理令牌使用量
  • 在计划模式中审查和批准工具调用或回答用户问题

dsh-tui DSH 插件适合谁

  • 使用 DeepSeek Harness 且偏好终端界面的开发者
  • 熟练使用 CLI 工具和 dsh 插件生态的高级用户

dsh-tui DSH 插件的限制

  • 正在积极开发中,依赖预发布的 @deepseek-ai/dsh;上游稳定前可能发生破坏性变更
  • 测试套件(tests/)在移植前就已存在,目前尚未运行
  • 真正与模型交互需要可访问的 DeepSeek 兼容端点;无密钥时,请求前的所有功能(合成、渲染、审批、恢复)均正常工作

dsh-tui DSH 插件的仓库 README 摘录

以下文字摘自 dsh-tui DSH 插件的上游仓库 dsh-tui/dsh-tui 的 README,版权归原作者,仅作引用。

English | [中文](README.zh.md) An interactive terminal (TUI) front door for [DeepSeek Harness](https://github.com/deepseek-ai/deepseek-harness) agents — a Claude Code / Codex-style chat interface in your terminal, installed as an out-of-tree dsh plugin bundle. Built on [`@earendil-works/pi-tui`](https://www.npmjs.com/package/@earendil-works/pi-tui). It composes over the official `@deepseek-ai/dsh-base` bundle, so the whole plugin ecosystem — shell and filesystem tools, skills, subagents, workflows, sandbox approvals — is the same one the official web surface uses. Nothing is forked. ![A dsh-tui session](docs/tui.png) ## Features - Streaming model output and reasoning, rendered as Markdown - Tool-call cards with terminal / diff / generic render intents; Ctrl+O cycles collapsed → expanded → hidden - Approval and `ask_user_question` dialogs, plan-mode review included - `@file` path autocomplete and `@session` reference cards - Slash commands: `/model` (with reasoning-effort selection), `/resume`, `/compact`, `/details`, `/help`, and every command other plugins register - Standing todo panel, token usage and context-pressure status line, session titles - Configurable theme; truecolo

阅读完整 README仓库许可: NOASSERTION

dsh-tui DSH 插件常见问题

如何安装 dsh-tui?

首先全局安装 dsh CLI:`npm i -g @deepseek-ai/dsh@next`。然后运行 `dsh plugin --profile tui add @dsh-tui/dsh-tui`。要启动会话,使用 `dsh --profile tui`。如果你想跟踪 GitHub 仓库而非 npm 发布版,使用 `add github:dsh-tui/dsh-tui`,并按照打印的构建权限说明操作。

如何设置 dsh-tui 的 API key?

设置 `DEEPSEEK_API_KEY` 环境变量。你也可以在启动目录或 `$DSH_HOME` 中放置一个 `.env` 文件。插件会自动从这些位置读取 key。

能否在 dsh-tui 中使用本地或自托管的 DeepSeek 端点?

可以。你可以将 `DEEPSEEK_BASE_URL=http://localhost:8000/v1` 作为环境变量设置,同时提供 API key。或者在 `$DSH_HOME/settings.yaml` 中配置 `llm-deepseek.baseURL`。对于 vLLM、SGLang 等兼容 OpenAI 的网关,在配置文件补丁(`cordis.patch.yml`)中声明 `llm-pi-ai` 路由,并将默认模型指向它。

如何恢复之前的会话?

启动 dsh-tui 时使用 `--resume <session-id>` 参数:`dsh --profile tui --resume <session-id>`。会话 ID 通常显示在状态栏中,或从会话历史中找到。

dsh-tui 中有哪些可用的斜杠命令?

内置命令包括 `/model`(含推理努力度选择)、`/resume`、`/compact`、`/details`、`/help` 和 `/reply`。该插件也会注册其他插件提供的任何命令。你可以在聊天中键入 `/help` 查看完整列表。