XMoon/dsh-pi-tui--packages-tui-app ↗★ 1
@xmoon76/tui-app
The dsh-pi-tui bundle: a TUI surface for DeepSeek Harness profiles (dsh --profile pi-tui)
安装
npx -p @deepseek-ai/dsh dsh plugin --profile web add github:XMoon/dsh-pi-tui#2f4ac5a10a1951f4afe779560f0e674f34674a8b&path:packages/tui-app说明文档
阅读完整 README ↗dsh-pi-tui
A third-party TUI mode for DeepSeek Harness (dsh), built on a vendored fork of pi-tui.
Run dsh --profile pi-tui for a terminal UI instead of the browser GUI (dsh --profile web) or one-shot mode (dsh --profile headless).
Status: working. The TUI covers the main session loop — input → session events, approvals, commands, session switching and full-text search — plus presets, skills, model/settings menus, and slash commands. Rendering and input routing are verified by headless tests (
@xterm/headless) with no TTY or model connection needed.
Layout
packages/pi-tui/ Vendored @moonshot-ai/pi-tui fork (kimi-code commit b6144f9, v0.84.2),
rescoped to @xmoon76/pi-tui. The five local fixes from the fork
(CJK wrap guard, width clamps, overwide truncation, negative-width
guards, per-frame processed-line reuse) are preserved; native/
prebuilds are deliberately not vendored (graceful fallback).
packages/tui-app/ The dsh bundle: @xmoon76/tui-app. cordis.patch.yml inserts the
startup row (dsh --profile pi-tui flags) and the runner row (TUI glue).
Prerequisites
- A DeepSeek Harness installation with profiles support (
dshon yourPATH). - Node >= 22.19 (
^22.19.0 || >=24, same range as dsh). Running from source needs Node with native TypeScript support (>= 23.6) or the tsx ESM hook (node --import tsx/esm, how dsh's own source launch works). - pnpm only when installing from source.
Install
dsh plugin runs pnpm inside the target profile's directory, so the usual
pnpm verbs (add, remove, update, list) all work.
Option A — from the npm registry (recommended)
The published package ships prebuilt (@xmoon76/tui-app pulls in
@xmoon76/pi-tui automatically):
# install the bundle into the pi-tui profile (creates the profile if needed)
dsh plugin --profile pi-tui -- add @xmoon76/tui-app
# run it
dsh --profile pi-tui