DeepSeek Harness 插件

dsh-tui-nexlinea

A full-screen interactive terminal UI for the DeepSeek Harness agent runtime — live streaming, reasoning blocks, tool cards, sessions, permissions, plan mode, and a full slash-command suite. The web(英文原文)

跳到安装方式

来源信息

GitHub 仓库
nexlineai/dsh-tui
最近更新
2026年8月20日
分类
自动化与任务
GitHub stars
1
载体类型
plugin
目录证据
上游声明已找到 dsh.bundle
证据路径
package.json#dsh.bundle
核对版本
0.1.0-rc.8
上游核对日期
2026-08-21

该证据由上游目录提供。本站没有安装、运行或安全审核这个插件。

安装

默认先复制一段 Prompt,让 Agent 读 GitHub 仓库和源码;需要自己装时再切到命令。

复制这段 Prompt,发给 DSH、Codex 或其他 Agent,让它先读 GitHub 仓库和源码。

请先不要安装或执行任何命令。阅读这个插件的 GitHub 仓库、README 和关键源码,然后用清楚、直接的方式回答以下问题,帮助我判断它是否适合我的需求:

1. 这个插件是什么,解决什么问题;
2. 适合哪些用户和典型使用场景;
3. 安装后如何使用,并给出一个最小使用示例;
4. 有哪些已知限制,以及隐私、安全、兼容性或维护风险;
5. 给出“推荐 / 有条件推荐 / 不推荐”的明确建议和理由。

请区分仓库明确说明、根据源码推断和未知信息。证据不足时请明确说明,不要猜测或照抄 README。

GitHub:https://github.com/nexlineai/dsh-tui
插件名:dsh-tui-nexlinea
作者:nexlineai

检查来源文件

安装前先看这个插件目录里的 README 和其他文件。

文件资源管理器3 个文件
README.md来源说明 · 只读预览

dsh-tui

> A full-screen interactive terminal UI for the DeepSeek Harness agent runtime — the web UI, reimagined for the terminal.

![npm](https://www.npmjs.com/package/@nexlineai/dsh-tui) ![CI](https://github.com/nexlineai/dsh-tui/actions/workflows/ci.yml) ![license](./LICENSE) !platform

dsh-tui runs the official DeepSeek Harness agent (tools, file editing, shell, subagents, sessions, permissions, plan mode) behind a Claude Code / opencode-style interface — live token streaming, reasoning blocks, boxed tool cards, prompt history, and a full slash-command suite. No browser, no Electron, just your terminal.

It is not a model wrapper or a plain chat REPL — it drives the real agent runtime.

---

Features

  • Live streaming — answers render token-by-token as the model generates.
  • Reasoning displaythinking blocks stream dim/italic, with per-turn effort control (/model <id> high).
  • Tool cards — box-drawn ⏱ bash blocks with lifecycle markers (● running → ✓ done / ✖ error) and arg/result previews.
  • Full agent toolkit — the agent can read/edit files, run commands, delegate subagents, and execute plans.
  • Session management — list and resume any persisted session (/resume).
  • Permission modesread-only / workspace-write / danger-full-access, switchable live (/permissions).
  • Plan mode — toggle plan-first behavior (/plan).
  • Compaction — shrink the conversation on demand (/compact).
  • Trajectory — a filtered event timeline of the whole session (/trajectory).
  • Diagnostics — environment + model-catalog health check (/doctor).
  • Scrollback — mouse wheel / PgUp / PgDn, with ↑ N indicator.
  • Markdown rendering — fenced code blocks, inline code, bold, headings, lists.
  • Cross-platform — macOS and Linux terminals (iTerm2, Terminal.app, kitty, alacritty, xterm, …).

---

Install

dsh-tui is a DeepSeek Harness plugin. You need the official dsh installed first:

# 1. Install the official DeepSeek Harness (once)
npx @deepseek-ai/dsh web --help   # or: npm i -g @deepseek-ai/dsh

# 2. Create a `tui` profile and add this plugin
dsh plugin --profile tui add @nexlineai/dsh-tui

# 3. Run it
dsh --profile tui

The profile initializes on first use; dsh-tui composes over the same @deepseek-ai/dsh-base core as the web UI.

Model key

export DEEPSEEK_API_KEY=sk-...

The TUI uses the same credential sources as the harness (DEEPSEEK_API_KEY / settings.yaml).

---

Demo

A representative session transcript — streaming answer, reasoning block, tool card, trajectory, doctor, model picker — is in [demo/session.md](./demo/session.md).

---

Commands

| Command | Description | |---|---| | /help | list commands | | /model | list models + reasoning efforts; ● active marks current | | /model <id> [effort] | switch live, e.g. /model deepseek-v4-pro high | | /resume | list persisted sessions (id, title, date) | | /resume <n> | continue that session with full history | | /permissions | list permission presets | | /permissions <name> | switch (read-only / workspace-write / danger-full-access) | | /plan | toggle plan mode | | /compact | compact the conversation now | | /trajectory | show the session event timeline | | /settings | one-screen summary of model/permission/plan/stream state | | /doctor | environment + model catalog health check | | /version | dsh-tui + runtime versions | | /status | session, cwd, event and turn counts | | /reasoning on\|off | show/hide the thinking display | | /stream on\|off | toggle live token streaming | | /clear | clear the conversation area | | /exit (or q, quit, :q, Ctrl+D) | leave |

---

Keybindings

KeyAction
Entersubmit
/ prompt history
/ move cursor
Home / End (Ctrl+A / Ctrl+E)line start / end
Backspace / Deletedelete
Ctrl+U / Ctrl+Kkill to start / end
Ctrl+Wdelete previous word
Escclear the input line
Tabcomplete a slash command
Ctrl+Cclear (empty → exit)
Ctrl+Dexit
PgUp / PgDn / mouse wheelscroll the conversation

---

Layout

┌ DeepSeek Harness TUI            deepseek-official/deepseek-v4-pro · session a1b2c3d4 ┐
│ ─────────────────────────────────────────────────────────────── 15:35:34 · 2s · 12→45 tok │
│ ❯ list the files                                                                     │
│ ✻ thinking                                                                            │
│   · a simple listing; I'll use bash ls                                                 │
│ This is the repository root — a plugin-based agent harness with pnpm workspaces...    │
│ ┌─ ⏱ bash ──────────────────────────────────────────────────────────────────────────┐ │
│ │ $ ls -la                                                                           │ │
│ └─ ✓ done ───────────────────────────────────────────────────────────────────────────┘ │
│ ❯ your input                                                                          │
│ ~/project · stream on · 1 turns · 500→120 tok                              ↑ /help  │
└───────────────────────────────────────────────────────────────────────────────────────┘

---

How it differs from the web UI

Same agent, same permissions, same sessions — but everything happens in your terminal. dsh-tui is aimed at people who live in a terminal, want a keyboard-first flow, or run the harness over SSH / inside a multiplexer like herdr or tmux.

Why a separate CLI?

The official dsh ships a web UI and a one-shot headless mode — no interactive terminal agent. dsh-tui fills that gap as an installable plugin, without forking the runtime.

---

Contributing

Bug reports, terminal-compatibility notes, and PRs are welcome — see [CONTRIBUTING.md](./CONTRIBUTING.md). For rendering issues, please include your terminal, $TERM, and the output of /version and /doctor.

License

MIT — see [LICENSE](./LICENSE). Not affiliated with DeepSeek AI; the runtime it drives is MIT-licensed upstream.