deepseek-harness-tui: 终端原生交互式聊天 TUI(dsh 插件) #391
gxinxing
started this conversation in
Show and tell
Replies: 0 comments
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
简介
deepseek-harness-tui 是一个基于 Ink(React for terminals)构建的终端原生交互式 TUI,作为 DeepSeek Harness 的 dsh 插件运行。
独立仓库:https://github.com/gxinxing/deepseek-harness-tui (已标记
dsh-plugin)一行启动:
设计理念
追求零装饰、终端原生体验:
功能
• Running <cmd>→$ <cmd>+ output +✓ • 1.2s)Ctrl+T切换推理块显示/折叠/model列出当前模型,/model <name>切换(如deepseek-v4-pro)↑/↓回溯历史消息,连续重复自动去重/copy复制最近一条助手回复到系统剪贴板#前缀加粗,代码块保留 fence,inline code 带 chip 背景todo_write工具的实时状态展示架构
cordis.patch.yml定义 profile 补丁:禁用 headless 启动,注册 TUI runner。测试
34 个单元测试覆盖纯工具函数:
splitCodeBlocks、wrapText、truncate、stripAnsi、splitOutput、userMessageBg、codeChipBg、markdownLines。安装
技术细节
React.createElement,无 JSX,无构建步骤后续计划
/sessions+/resume <id>)llm.listProviders()/llm.listModels())作为社区插件分享,已按 CONTRIBUTING.md 建议标记
dsh-plugintopic。欢迎反馈和建议!All reactions