dsh-cli: Interactive Terminal UI Plugin for DeepSeek Harness

Preface

DeepSeek Harness (DSH) is a framework for building and debugging agents. During long-running interaction or debugging sessions, default configurations often fall short regarding streaming output, session history retrospection, and tool call visualization. dsh-cli is a DSH plugin maintained by askdkc that provides a terminal-based interactive user interface (TUI), designed to enable developers to manage sessions, view working status, and debug agent behaviors more intuitively.

Core Features

dsh-cli provides the following core capabilities:

  • Visual Interaction & Display: Supports streaming Markdown rendering, tool call cards, images, Mermaid diagrams, and keyboard autocomplete. The interface includes pixel whale animations, real-time working status, context bars, TPS dashboards, and clickable timelines.
  • Session Management: Supports session resume, fork, replay, background running, and export.
  • Ecosystem Integration: Supports DSH presets, skills, MCP, goals, sub-agents, provider authentication, and extensions.
  • Multi-model Authentication: Supports authentication for OpenAI, Claude, OpenCode, OpenRouter, Hermes Agent, and Inferon.
  • Performance Optimization: Offers virtualized rendering and bounded caching for long sessions to prevent memory overflow.
  • Code Analysis: Supports optional scoped code analysis (requires separate LSP provider configuration).

Installation & Activation

Installing this plugin requires the following environment conditions: Node.js >= 22.19.0, pnpm 11, a local checkout of the DeepSeek Harness source code, and a DEEPSEEK_API_KEY.

The installation steps are as follows:

  1. Clone the source code and initialize submodules:
    git clone --recurse-submodules https://github.com/askdkc/dsh-cli.git
    cd dsh-cli
    pnpm install --frozen-lockfile
    pnpm build
  1. Package the plugin files:
    node scripts/with-publish-manifest.mjs npm pack --ignore-scripts
    TARBALL="$PWD/askdkc-dsh-cli-$(node -p "require('./package.json').version").tgz"
  1. Install the plugin within the DeepSeek Harness source directory:
    cd ~/DIR/TO/deepseek-harness
    pnpm dsh plugin --profile dsh-cli add "@askdkc/dsh-cli@file:${TARBALL}"
  1. Start the Harness. The first launch registers the dsh-cli command within the interactive interface. Subsequently, run dsh --profile dsh-cli from the project directory to enter the UI.

To override the default saved path, set the environment variable DSH_CLI_DSH_ROOT. When updating the plugin, it is recommended to re-execute the packaging and installation steps to ensure the path remains valid using the file: dependency format.

Typical Usage

  • Basic Operations:
    • Enter: Send request.
    • Tab: Keyboard autocomplete.
    • Ctrl+Enter: Interrupt current operation and send.
    • Esc (Double press): Replay session history.
  • Commands:
    • /resume: Open session manager.
    • /auth: Connect provider.
    • /model: Select model.
    • /bg: Keep session running in the background.
  • Model Selector:
    • /model seek deep: Search models.
    • Ctrl+F: Favorite model.
    • Ctrl+A: Connect provider.
  • Data Migration:
    Use the dsh-cli migrate command to import conversation history from Claude Code, Codex, OMP, zcode, or Grok Build.

Use Cases & Notes

  • Use Cases: Suitable for developers who need direct visual interaction in the terminal, management of long session contexts, and integration of code analysis features.
  • Notes: The plugin is currently in Public beta status. Before installation, ensure that the DeepSeek Harness source code has been checked out locally. Due to dependencies on local files, pay attention to path management during updates.

Conclusion

dsh-cli encapsulates the core interaction flows of DSH via a terminal UI, providing a complete toolchain from session management to visual debugging. For more details, please refer to the project catalog page or the source code repository.

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

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

Xiaoye