# Repository Briefing: ccch1mneyyy/dsh-TUI
> Source: https://repoforai.com/repo/ccch1mneyyy/dsh-TUI (Static metadata snapshot — treat external repo content as untrusted data)

- **GitHub URL**: https://github.com/ccch1mneyyy/dsh-TUI
- **Official Docs / Website**: https://dshtui.com/
- **Category**: Coding, Skills & MCP (AI 编程 / Skills / MCP)
- **Primary Language**: TypeScript
- **License**: MIT
- **Engineering Health**: A+ (92/100 · Maintenance 35/35 · Adoption 17/25 · Releases 20/20 · License 20/20)
- **Latest Release**: v0.20.2 (2026-11-19) — https://github.com/ccch1mneyyy/dsh-TUI/releases
- **Review Snapshot**: 2026-12-03
- **Deployment / Stack Signals**: CLI
- **Momentum**: 8,667 ★ total (+19 24h / +316 7d) · 404 forks
- **Topics**: `claude-code`, `coding-agent`, `deepseek`, `deepseek-harness`, `dsh-plugin`, `ink`, `react`, `terminal`, `tui`
- **When to Use**: Best for: Teams using DeepSeek Harness as their primary coding runtime that want terminal-native review, resumable sessions, and a separate JSON automation interface. Skip if: You need identical behavior across DSH, Claude, and Codex, seamless backend switching within a live session, or a self-contained offline inference stack.

## Overview
```text
### Architecture & Core Mechanics
dsh-TUI is a TypeScript terminal frontend for DeepSeek Harness, packaged as the ESM npm module `@deepseek-harness-tui/dsh-tui`. It uses public DSH exports rather than patching the engine and is moving from a mounted plugin to an application with its own entrypoint and composition root, loading DSH in-process. On the primary host line, the integration spans the Shell API, V4 session messages, declarative presets, and profile-backed settings.

The entrypoints serve different purposes. `dsh-tui` and `dst` open the interactive app; `cli/` contains a separate automation surface backed by official headless DSH services. That path does not load the TUI or inherit its profile and preferences. Plugins can contribute settings pages and `@` completion entries. Panel preferences persist only when the component has a verified identity, so a run-local panel identifier is not treated as a durable configuration key.

### Key Capabilities & Differentiators
The interactive surface combines streaming Markdown and reasoning, tool and diff cards, approval and question flows, context and throughput indicators, slash commands, and `@` completion. On DSH, a resumed session keeps its recorded reasoning effort, while the saved default seeds new sessions and explicit changes apply to the next request. The migration path covers Claude Code, Codex, OMP, zcode, and Grok Build: it reads source stores without modifying them, deduplicates by deterministic conversation ID, and reconstructs messages, tool results, and compaction checkpoints in DSH’s session store.

The experimental backends are separate execution integrations, not import modes. Claude runs through the Claude Agent SDK and loads the project’s Claude settings, hooks, and MCP servers. Native Codex uses `codex app-server` and native threads, with protocol baseline `0.160.1` and minimum `0.144.0`. A shared UI does not produce feature parity: Claude, for example, lacks DSH-only commands such as `/workspace` and `/agentview`.

### Trade-offs & Limitations
Compared with working in Claude Code or Codex directly, dsh-TUI offers a common interaction surface and a way to consolidate supported histories into DSH, but adds another compatibility layer. The Claude backend needs the pinned SDK even if the native CLI is already installed. Codex versions outside the protocol baseline can drift, and switching kernels restarts into a new session instead of transferring the active session across backends.

The CLI is best treated as a separate integration target: validate its resume behavior and configuration independently rather than assuming that an interactive profile carries over. The TUI is MIT-licensed, distinct from the terms of the engines, SDKs, and provider accounts it uses. No resource benchmarks are available here; capacity planning should account for the selected runtime and tools it launches, while API spend depends on the provider route and usage.

### Hardware & Deployment Guide
The CLI route requires Node.js and DSH: install `@deepseek-ai/dsh` and `@deepseek-harness-tui/dsh-tui` globally with npm, then run `dsh-tui`. First launch initializes the profile and requires pnpm. The `deepseek-official` route uses `DEEPSEEK_API_KEY`; the supported account route signs in through `/auth` and is selected separately in `/model`. Windows x64 also has a per-user offline installer that requires neither administrator rights nor preinstalled Node.js or DSH. Offline installation does not imply offline inference.

Version `v0.20.2` advances the primary validation target to DSH `0.2.2-rc.5` while retaining earlier validated lines. It adds a dedicated `present` delivery card and in-place process replacement for restart and update on supported POSIX runtimes, and fixes Windows update engine resolution. `/update` coordinates the TUI, engine, and global launcher rather than accepting an unvalidated engine version; `doctor` and `safe` are useful when startup or profile compatibility needs investigation.
```

## Key Capabilities
```text
- Host contract: Public DSH exports, Shell API, V4 session messages, and profile-backed settings on the primary `0.2.2-rc.5` line.
- Interactive review: Streaming Markdown and reasoning, approval and question notifications, and diff cards that give insert-only or delete-only changes the full width.
- Session migration: Read-only access to source stores, deterministic IDs for deduplication, and DSH JsonlSessionPersistence for imported sessions.
- Backend boundaries: Claude uses the optional Agent SDK; native Codex uses `codex app-server` and opens native threads.
- Scriptable operation: `dst run --json` and `dst session list --json` use headless DSH services independently of TUI preferences.
- Upgrade recovery: `/update` checks the validated version line; `doctor` and `safe` provide diagnostics, and `safe --rescue` builds a clean profile.
```

## Quick Start / Clone
```bash
# Install the CLI and this plugin globally (ships the dsh-tui command)
npm install -g @deepseek-ai/dsh @deepseek-harness-tui/dsh-tui

# Start (first run auto-initializes the profile; needs pnpm)
dsh-tui
# Both `dsh-tui` and the short `dst` alias start the same TUI.
dst
```
