dsh-pwa: DeepSeek Harness Mobile PWA

Preface

DeepSeek Harness (DSH) utilizes a plugin-based architecture, and its official Web UI is primarily optimized for desktop environments. For users who need to handle conversations, approvals, or view Agent questions on mobile devices, accessing the desktop interface directly via a mobile browser often results in a poor user experience. The dsh-pwa plugin aims to solve this problem by mounting a full-screen application interface that runs in mobile browsers onto the DSH server, providing a native app-like experience without requiring any application to be installed on the phone.

Plugin Overview

dsh-pwa is a client-side plugin maintained by jackxu925. It is a pure static file web application mounted under the /m path of the DSH Web server. The plugin uses the same /api interface as the desktop GUI, meaning it directly reuses DSH’s conversation management and Agent capabilities.

Core Features

The plugin provides the core interactive capabilities required for mobile operation:

  • Conversation Management: Supports conversation list display, workspace grouping, search, and pull-to-refresh. It features a real “Pending” filter function to quickly locate conversations awaiting approval and Agent Q&A.
  • Streaming Conversations: Supports streaming responses, including optimistic sending, queued message visibility, daily time dividers, and timestamps. It supports copy buttons for code blocks and a full-screen image viewer.
  • Approvals & Interactions: Presents approval requests and Agent questions as clickable cards. For dangerous commands, the interface displays a red secondary confirmation prompt.
  • Multimedia Support: Supports sending images from the camera, album, or clipboard, and automatically compresses them to within model limits.
  • Conversation Creation: Supports selecting Agent presets when creating new conversations.
  • Interaction Details: Supports haptic feedback, dark/light theme switching, automatic conversation draft saving, and connection status indicators with manual reconnect buttons.
  • Desktop Integration: A “Mobile” entry is added to the “Settings” menu in the desktop GUI, displaying the current mobile access address and providing a one-click copy function.

Installation and Activation

Ensure that the dsh CLI is installed on the desktop before installation.

  1. Create or reuse a web-specific configuration file, such as ~/.dsh/profiles/web/package.json, and include dsh-pwa in dependencies.
{
  "name": "dsh-profile-web",
  "private": true,
  "dependencies": {
    "dsh-pwa": "latest"
  },
  "dsh": {
    "profile": {
      "bundles": [
        "@deepseek-ai/dsh-base",
        "@deepseek-ai/dsh-web-app",
        "dsh-pwa"
      ]
    }
  }
}
  1. Enter the configuration directory and run the installation.
cd ~/.dsh/profiles/web && npm install
  1. Start the DSH Web server. To access it on a mobile phone, you need to configure --trusted-host to allow cross-origin access.
dsh --profile web --host 0.0.0.0 --port 3080 --trusted-host <your-access-domain>

Typical Usage

  1. Mobile Access: Open http://<host>:3080/m/ in your mobile browser and click “Share” or “Add to Home Screen” to get the full-screen PWA app experience.
  2. Remote Access: If used outside a local network, you can use Tailscale. Ensure both the mobile phone and the server are in the same Tailnet under the same account, add the Tailscale hostname to --trusted-host in the server startup command, and then access http://<tailscale-hostname>:3080/m/.

Notes

  • No App Installation Required: This is a web application, but it achieves a native app-like full-screen experience through PWA mechanisms.
  • Security Model: Consistent with dsh web. Anyone who can access the URL can control your Agent.
  • Offline Limitations: The plugin does not support offline use; the mobile phone must maintain a network connection to the DSH server.
  • Version Dependency: Since the plugin directly calls DSH’s /api interface, it is tied to DSH version updates. If DSH API undergoes breaking changes, the plugin may require synchronous updates.

Summary

dsh-pwa provides a lightweight, app-free mobile solution for DeepSeek Harness. By reusing the existing API protocol, it implements conversation management, streaming dialogue, approval interactions, and multimedia support within mobile browsers. For developers needing to handle Agent tasks on mobile devices, this is a pragmatic tool.

Related Links:
GitHub Repository
Community Directory

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

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

Xiaoye