DSH-forJP-TUI: A Japanese-Native TUI for DeepSeek Harness

Preface

The default terminal interface for DeepSeek Harness (dsh) relies primarily on English paths and a generic layout. If you wish for Japanese copy to be treated as a first-class citizen from the design phase—rather than squeezed into the margins of language packs—while maintaining control over the rendering layer and reducing dependence on upstream private contracts, a separate path is being explored in the community: referencing the ideas of the existing dsh-TUI, but without sharing code, and redesigning from the rendering layer.

Below is an introduction to the client plugin DSH-forJP-TUI by maintainer mugi995 (Repository: mugi995/DSH-forJP-TUI, Directory Page: SkillHub). As of the README record (2026-10-21), the vertical slice v0 is complete, and major UI overhauls are ongoing; out of the phased implementations S0–S12, only S8b (goal) is retained, while the rest have been implemented.

What is this?

DSH-forJP-TUI is a Japanese-native TUI surface for dsh: conversing with agents, viewing tool results, handling approvals, and addressing user questions within the terminal. It has no subordinate relationship with the official app store; community directories like SkillHub are independent sites, so please review the source code and MIT license before installation.

The plugin runs with the permissions of the current dsh process; it utilizes an in-process Cordis bundle (dsh.bundle.patch) for integration to enable human-machine interactions such as approvals, user prompts, and model switching. The README notes that the official SDK/ACP lacks an approval channel, making this a standard solution.

Core Features (Verified via README)

Under the premise of launching on a PTY and verifying byte-by-byte, the current version covers the following capabilities:

  1. Conversation & Streaming Output: Streaming display of responses and failure messages.
  2. Review & Navigation: Alternate screen (vim-style) and scrolling (PgUp / PgDn / Home / End, mouse wheel).
  3. Tool Cards: Display of calls and results for terminal / diff / search / read, etc.
  4. Secure Interaction: Approvals (y to allow, n to deny; no answer is treated as denial, fail-closed); cancellation via Ctrl+C / Esc during execution.
  5. Background & Questions: Incremental output for background tasks; agent questions (options, free input via Tab, moving back and forth, skipping).
  6. Supplementary Information: Thought display, TODOs, sub-agent lists, web cards (model dependent, [skip] if unavailable); context usage and Cache Hit progress bars.
  7. Japanese Input: Japanese IME support, with text currently being converted appearing in the input field.

The input bar and context bar have been implemented; body decoration UI is still being redone (see README status notes).

Design Orientation (To help determine if it suits you)

Goal Key Points
Custom Look & Feel Control the drawing layer; no stacked decorations by default.
Japanese Native Copy is cataloged from the start, not squeezed into language packs.
Upstream Stability Minimize dependence on dsh private contracts and continuously measure it.
Replaceable Boundary Layered UI and harness; runtime dependence on DSH is deliberately compressed to two export names: ctx.get() / ctx.on() (src/host-contract.ts).

Rendering is based on a forked Ink v8.0.0 (located in src/ink/), with mouse selection, hit testing, and scroll fixing extended by the project itself. Node requirement is >=22.19 (see package.json).

Installation and Activation

The usage described in the materials involves building from the repository and installing a profile, rather than relying on dsh plugin add with a plugin name. The steps are as follows.

First, install dependencies and build (The order must be yoga → ink → main):

pnpm install
pnpm build

Install the profile to $DSH_HOME (default ~/.dsh):

pnpm profile:install

After configuring API keys, launch dsh with the specified profile:

COMMANDCODE_API_KEY=... dsh --profile forjp-tui

You can also launch via the package entry dsh-forjp (lib/bin.js); entry behavior can be toggled via environment variables (see next section).

For isolated development, you can install the profile to a workspace-local home:

pnpm profile:install --home .dsh-home

Typical Usage and Shortcuts

Conversation operations (from README):

  • Enter to send after input; Alt+Enter / Ctrl+J for newline (Input area is limited to about 5 lines).
  • Ctrl+C or pressing Esc twice consecutively to exit.
  • When an approval or question panel appears, the keyboard is taken over by the panel.

Common environment variables:

Variable Value Meaning
FORJP_ENTRY auto (default) Try in-process first, fallback to child process on failure.
in-process Only in-process; exit with exception on failure.
child Force child process dsh --profile.
FORJP_PROFILE Default forjp Profile name.
DSH_FORJP_HOST_PACKAGE Unset Explicitly specify the @deepseek-ai/dsh package directory.

Verify availability on a different version of DSH:

pnpm verify:host --host <dsh package directory>

UI end-to-end smoke test (PTY, calls real models, approx. 10–15 minutes):

pnpm test:ui

Use Cases and Notes

Suitable for: dsh users who require a Japanese interface and IME, and wish to fully navigate the approval/question/tool card workflow within a terminal TUI; willing to build from source and accept that the UI is currently undergoing redesign.

Notes:

  1. The plugin runs with the same permissions as dsh; please review cordis.patch.yml, bundles, and scripts before installation.
  2. The README states that if the custom host-entry fails, it falls back to the dsh --profile child process; set FORJP_ENTRY if forced behavior is required.
  3. Tests do not write to $HOME/.dsh by default, but point to the workspace .dsh-home/ via DSH_HOME (see README development section).
  4. More comprehensive status, architecture, and pitfalls are collected in the repository’s docs/HANDOFF.md; read this document first before taking over development.

Conclusion

DSH-forJP-TUI creates a runnable vertical slice of “Japanese Native + Custom TUI Layer + Minimal Harness Contract,” serving as a reference implementation for client customization and UX experiments. Currently at 0 stars, it is an early-stage community project; follow progress on GitHub and the SkillHub Directory Page.

羽毛球分组比赛记分
小程序二维码

欢迎使用《羽毛球分组比赛记分》微信小程序

Xiaoye