dshbase

插件目录 / UI & Skins / dsh-tui-pi

dsh-tui-pi

已验证 · 实测可装 fan56

✓ 持续维护 2 位贡献者 基于 1 个官方 DSH 包

查看 GitHub ↗ ← 返回插件目录

1Stars
0Forks
0未关闭 issue
—语言
2026-08-24最近推送
跨平台平台

功能简介

pi-style terminal UI for DeepSeek Harness (dsh) — pi-tui look & feel, dsh slash commands, GitHub light/dark themes, powerline footer

✅
我们的评价
可用 — 实测通过,早期项目

pi-style terminal UI for DeepSeek Harness (dsh) — pi-tui look & feel, dsh slash commands, GitHub light/dark themes, powerline footer 实测能干净安装、正常启动。早期项目,但功能可用。

「已验证」表示我们的自动化 CI 在干净 profile 里实际执行了 dsh plugin add 并启动成功——仅此而已。功能描述与版本兼容性均为作者声明。这不是安全审计,也不代表对第三方代码的背书。

README

English | 简体中文

dsh-tui-pi

A fully-featured pi-style terminal UI for DeepSeek Harness (dsh) — a plugin suite that turns dsh into a pi-like coding-agent experience: /history look-back & fork-at-turn, guided preset switching, live subagent steering, model profiles, GitHub light/dark themes and a powerline footer.

Requires dsh >= 0.1.2-rc.1 — this plugin targets the dsh RC/stable line only (CI and releases resolve the newest of the latest/next dist-tags at runtime). The alpha line is no longer supported. A startup guard logs a one-line warning and exits cleanly when the host is older than the floor (opt out with DSH_TUI_SKIP_HOST_CHECK=1). See ADR 0002 for the now-superseded alpha single-target decision.

https://github.com/user-attachments/assets/67a7c6ca-ff42-4005-b543-437ba61771bb

A live recording of a session (MP4, 1.5× speed) — todos, running subagents, think/tool panels and the powerline footer in action.

✨ Features

Each item links to its own doc under docs/features/ — one line here, the details (and demo videos) there.

  • Footer — live session overview — provider/model, context pressure and the session cache-hit rate at a glance, always in view.
  • Think & tool panels — reasoning and tool activity stay out of the transcript, so the conversation reads clean.
  • Subagents — every running subagent gets a status line; watch and steer it live.
  • Ask User Question — the model can pause and ask you structured questions, answered without leaving the TUI.
  • Feishu integration — dsh-tui-pi on the desktop and Feishu/Lark on the phone driving (and answering for) the same dsh session.
  • Dynamic context pruning (DCP) — context stays within limits automatically, with zero LLM calls.
  • Persistent context — your ground rules ride along on every request, hot-applied with no restart.
  • Model profiles & favorites — switch a whole model setup per project and keep the picker small.
  • Agent preset switching — /preset between the shipped agent compositions (standard, minimal, …); a switch is confirmed and starts a NEW session on the preset (the current one stays resumable); what a preset really gates.
  • Sessions & resume — sessions stay tidy automatically and resume in a few keystrokes; a cross-process writer guard keeps the log single-writer.
  • History browser — /history opens a fixed two-pane look-back over the session: completed turns on the left, the selected turn's replies on the right; copy a prompt back to the editor, or cold-read any stored session without resuming it (read-only, no writer lock).
  • Themes — GitHub light/dark palettes, hot-switchable; auto follows your terminal.
  • Search, selection & images — Ctrl+Shift+F over the whole transcript, drag-select copies to the OS clipboard, attachments from web/Feishu render inline, LaTeX replies draw as Unicode math.
  • Slash commands — /model, /resume, /btw, /profile-switch, … plus everything dsh-native.
  • Startup plugin tree — every profile plugin with its installed npm version, printed at launch.

Install and launch

dsh plugin --profile tui add @aiwayds/dsh-tui-pi
dsh --profile tui          # launch (or: dsh-tui-pi)

Legacy session_projcache records (missing identity.isSeeded/identity.inheritedEventCount, written before dsh 0.1.2-alpha.4 — predating the rc/stable floor of 0.1.2-rc.1 this plugin now targets) are migrated at the profile layer: the bundle patch replaces the stock session-projection-cache row with a wrapper (@aiwayds/dsh-tui-pi/projcache) that backfills the records while its module loads — strictly before the stock plugin could open the domain and crash the boot — so every dsh --profile tui start is covered, launcher or not. Migration is idempotent, backs up every rewritten file next to the original, and never blocks startup. The dsh-tui-pi launcher additionally runs the same migration as a CLI preflight before exec dsh.

Everything that used to need manual patching — the canvas background, the @deepseek-ai module closure, the compaction backend — now happens automatically. Upgrade an existing profile after a release:

node scripts/dev-upgrade.mjs                  # latest
node scripts/dev-upgrade.mjs 1.0.5 --dry-run  # preview the plan first

Companion plugins

Default dependencies — the eight plugins below ship with this package (installed into the profile's node_modules); activation still follows the profile's bundles list — list each one there to activate it.

Recommended install — @aiwayds/dsh-topics-memory, OKF topic memory for dsh (zero-LLM hot-path injection + a local git-tracked bundle; formerly dsh-llmwiki-memory):

dsh plugin --profile tui add @aiwayds/dsh-topics-memory

Optional — @aiwayds/dsh-feishu — drives the same dsh session from Feishu/Lark on your phone (demo).


Keyboard shortcuts

Key Action
Enter Send the prompt
Esc Double-press to stop (single press arms; a popup open closes it instead)
Ctrl+C Mid-turn: first press cancels, second quits; idle: clears editor / quits. Held-key auto-repeat never quits.
Ctrl+D Quit (only when the editor is empty)
Ctrl+L Open the model/think picker
Ctrl+G Open the subagent picker (viewer Enter opens steer)
Ctrl+O Pending-message queue (s steer now · d remove)
Ctrl+Shift+F Transcript search (Enter/Ctrl+G next · Shift+Enter/Ctrl+Shift+G previous · Esc close)
↑ / ↓ Browse submitted-message history

Remap any app key through ~/.dsh/keybindings.json (a partial JSON map, live-applied) or interactively with /hotkeys.


Configuration

Session-store knobs under the dsh-tui settings namespace in ~/.dsh/settings.yaml (each also has an env override, DSH_TUI_RETENTION_* / DSH_TUI_RESUME_*; precedence: settings.yaml > env > default):

dsh-tui:
  retention:        # startup janitor for ~/.dsh/sessions — DELETES old logs. Once per startup.
    maxCount: 100   # <= 0 disables the janitor
    maxAgeDays: 7
    minIdleHours: 24
  resume:           # /resume display filter — only HIDES picker rows, never deletes.
    maxAgeDays: 7
    minBytes: 20480

Other knobs: dsh-tui.panelHeight (think/tool panel height), dsh-tui.iconSet (auto/nerdfont/plain — powerline glyphs adapt to your font; install a Nerd Font with node scripts/install-font.mjs), dsh-tui.footerHints (toggle each footer hint segment, incl. search), DSH_TUI_COPY_ON_SELECT=0 (keep drag-selection visual-only), ~/.dsh/keybindings.json (key remaps).


Development

pnpm check    # tsc --noEmit
pnpm build    # emit lib/
pnpm test     # unit tests, node --test against lib/ (pretest builds; 1,100+ tests across 60+ files — the current baseline lives in AGENTS.md)

pi-tui runs pristine from npm — no patches, no fork. See AGENTS.md for the iron rules and quality gates.


Documentation

  • docs/features/ — one doc per feature, with demo videos.
  • ARCHITECTURE.md — full design: process model, layers, data flow.
  • CHANGELOG.md — release history.
  • AGENTS.md — working conventions and quality gates for contributors.
  • docs/ — design notes (steer/follow-up flow, showcase drafts, …).

Credits

The Ask User Question interaction is inspired by juicesharp/rpiv-ask-user-question (adapted to this TUI's docked-panel and dsh userQuestions provider architecture; all code here is original).

安装

🧩 让 Agent 自动装(推荐)

装一次目录插件,之后本站所有插件都能让 DeepSeek Harness 自动找、自动装:

dsh plugin add dshbase-catalog

然后对 agent 说「帮我装 dsh-tui-pi」,它会在目录里找到并自动安装。文档:dshbase-catalog · 已验证场景包。

该插件是 GitHub 源码(未发 npm)——直接从仓库装:

Web profile:

dsh plugin --profile web add github:fan56/dsh-tui-pi

Headless(CLI)profile:

dsh plugin --profile headless add github:fan56/dsh-tui-pi

实测报告

验证通过:从 GitHub 源码完成 L1 安装 + L2 加载 + L3 运行(dsh 0.1.0-rc.6)。

安全:尚未扫描——我们的每日静态扫描将很快覆盖它。

分享徽章

UI & Skins 里更多

浏览全部 7819 个插件 →