What is dsh-TUI?
dsh-TUI is an interactive terminal interface for DeepSeek Harness (`dsh`), the plugin-based agent harness from DeepSeek AI. DeepSeek Harness ships a Web UI and a headless profile; dsh-TUI adds a full-screen terminal front end on top of the same sessions. It sits in the Coding-Agent Harnesses & Runtimes category of the AI Coding tools and is open-source, written in TypeScript and licensed MIT.
Overview
dsh-TUI is an interactive terminal interface for DeepSeek Harness (`dsh`), the plugin-based agent harness from DeepSeek AI. DeepSeek Harness ships a Web UI and a headless profile; dsh-TUI adds a full-screen terminal front end on top of the same sessions. It mounts as a pure plugin — a Cordis patch layered onto a dedicated `dsh-tui` profile — so installing it enables the interface and uninstalling it leaves no patches behind in the harness itself.

The split of responsibilities is spelled out in the README: the TUI handles interaction and presentation, the session log is the source of truth, and DSH services own models, tools and persistence. Rendering goes from session events through a channel projection into React components drawn by Ink and Yoga, and long sessions render in proportion to the visible window rather than the whole transcript. On screen that means streaming Markdown and thinking, tool cards, a clickable timeline of turns, and a status line with a context bar, a tokens-per-second gauge, cache hit rate, token counts and a session cost estimate that includes subagents.
Beyond the DSH kernel, the project carries two experimental backends: one drives the Claude Code CLI through the Claude Agent SDK, the other runs Codex through `codex app-server`, both inside the same interface. A `dsh-tui migrate` command imports conversation histories from Claude Code, Codex, OMP, zcode and Grok Build into the DSH session store so they can be resumed. The project is TypeScript, MIT-licensed and labelled public beta. It has no sandbox of its own — it uses the active DSH profile's filesystem, shell, sandbox and approval policies — and the README warns that the Windows profile defaults to full access with approvals set to never.
What it does
- Terminal-native chat: streaming Markdown, tool cards, `/` and `@` completion, `#L12-14` line ranges, history search and a Chinese/English UI
- Live state in the status line: activity animation, context bar, TPS, cache hit rate, effort, tokens, session cost estimate (main agent plus subagents) and Git metadata
- Session workflow: one session manager (`/resume`), `/new`, `/compact`, `/export`, model hot-switch, fork, double-Esc rewind and background sessions
- Rich output in the terminal: Kitty/Sixel image thumbnails, Mermaid fences drawn as Unicode diagrams and LaTeX formulas rendered as Unicode text
- IDE selection channel: with the `dsh-tui-vscode` extension, a VS Code selection shows up under the prompt and enters the context

- `dsh-tui migrate` imports Claude Code, Codex, OMP, zcode and Grok Build conversations into DSH, idempotently and read-only on the source
- Experimental Claude backend (Claude Agent SDK) and native Codex backend (`codex app-server`) behind the same interface
- Pure plugin with no core changes; `dsh-tui doctor` and `dsh-tui safe` provide pre-flight checks, read-only diagnostics and a rescue profile
Getting started
You need Node.js, pnpm (the first run initialises a profile with it) and DeepSeek Harness. The `deepseek-official` route reads `DEEPSEEK_API_KEY`; other accounts can sign in through `/provider` or `/auth` after startup. Commands below come from the project README.
Install the harness and the plugin
One global npm install ships both the `dsh` CLI and the `dsh-tui` command.
npm install -g @deepseek-ai/dsh @deepseek-harness-tui/dsh-tuiStart the TUI
The first run auto-initialises the `dsh-tui` profile and walks a four-step setup wizard (API key, language and theme, model and workspace, shortcuts), which `/setup` re-runs later. `dst` is a short alias for the same program.
dsh-tui
# or
dstOr add it to a profile by hand
The manual route installs the plugin into a `dsh-tui` profile; afterwards `dsh-tui` and `dsh --profile dsh-tui` are equivalent.
dsh plugin --profile dsh-tui add @deepseek-harness-tui/dsh-tuiCheck the environment and keep it updated
`doctor` runs pre-flight checks, `safe` gives read-only diagnostics and repair guidance, and `update` updates the profile and aligns the launcher. Inside the TUI, `/update` upgrades, restarts and resumes the session.
dsh-tui doctor
dsh-tui safe
dsh-tui updateBring in conversations from other agents
Without arguments `migrate` only lists importable counts; `--dry-run` previews an import. Imported sessions then appear in `/resume` under their original working directory.
dsh-tui migrate
dsh-tui migrate codex --dry-run
dsh-tui migrate claude-codeCommands and code are distilled from the project's own documentation — always check the official repo for the latest.
When to use it
- Reach for it when you run DeepSeek Harness and want to work in a terminal rather than its Web UI
- Reach for it when you want context usage, tokens per second and a running cost estimate visible during long agent sessions
- Reach for it when you are moving to DeepSeek Harness and want your Claude Code or Codex history resumable there
- Reach for it when you want one terminal interface over DSH, Claude Code and Codex sessions, accepting that the latter two backends are experimental
How dsh-TUI compares
dsh-TUI alongside other open-source coding-agent harnesses & runtimes tools AI/TLDR tracks, ranked by GitHub stars.
| Tool | Stars | What it does |
|---|---|---|
| CC Switch | ★ 158k | A cross-platform desktop app that manages provider configuration for eight coding-agent CLIs from one place, with a local failover proxy, MCP and skill management, and spend tracking. |
| Oh My OpenAgent | ★ 71.2k | Opinionated agent bundle for OpenCode and Codex CLI that ships preconfigured sub-agents, lifecycle hooks and built-in MCP servers behind a single ultrawork command. |
| herdr | ★ 53.7k | A single-binary terminal multiplexer built for coding agents: persistent sessions across local and SSH machines, per-pane working/blocked/idle status, and a socket API agents drive themselves. |
| oh-my-claudecode | ★ 41.1k | A plugin and CLI that adds multi-agent orchestration to Claude Code: staged autopilot workflows, parallel tmux workers, and advisors that route a second opinion to Codex, Gemini, Grok or Cursor. |
| DSH Go | ★ 35.2k | A native Android client for DeepSeek Harness that runs the agent on the phone in a built-in Linux environment or drives DSH on your computer or server over SSH, with plugins and phone control. |
| AionUi | ★ 34.6k | An open-source desktop workspace that pairs a built-in agent engine with dozens of external CLI agents, adding scheduled runs, MCP tools and remote access from a WebUI or chat apps. |
| cc-connect | ★ 16.5k | A Go daemon that bridges local coding agents — Claude Code, Codex, Cursor Agent, Gemini CLI, OpenCode, Kimi CLI and more — to Feishu, DingTalk, Slack, Telegram, Discord, LINE and WeCom, so you drive them from chat. |
| dsh-TUI | ★ 8.5k | A full-screen terminal interface for DeepSeek Harness, mounted as a plugin with no core changes |
