# dsh-TUI

> A full-screen terminal interface for DeepSeek Harness, mounted as a plugin with no core changes

- Category: AI Coding / Coding-Agent Harnesses & Runtimes
- Language: TypeScript
- Licence: MIT
- Repository: https://github.com/ccch1mneyyy/dsh-TUI
- Website: https://dshtui.com/
- Canonical page: https://ai-tldr.dev/tools/dsh-tui/

## In short

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.

1. Install the harness and the plugin

   One global npm install ships both the `dsh` CLI and the `dsh-tui` command.

```bash
npm install -g @deepseek-ai/dsh @deepseek-harness-tui/dsh-tui
```

2. Start 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.

```bash
dsh-tui
# or
dst
```

3. Or 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.

```bash
dsh plugin --profile dsh-tui add @deepseek-harness-tui/dsh-tui
```

4. Check 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.

```bash
dsh-tui doctor
dsh-tui safe
dsh-tui update
```

5. Bring 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.

```bash
dsh-tui migrate
dsh-tui migrate codex --dry-run
dsh-tui migrate claude-code
```

## 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
