DeepSeek Harness Smartphone Landscape Screen Plugin

Introduction

When using DeepSeek Harness (DSH) on an iPhone, the official web UI has responsive adaptations, but the core interaction experience on a phone is poor: the soft keyboard covers the input area, the notch/Dynamic Island area is obscured by content, tapping the input field triggers page zoom, the sidebar is too narrow in landscape mode, hover tooltips linger after touch, and the app cannot be added to the Home Screen to open in full-screen.

This plugin deploys a client and a gateway within DSH, providing a desktop-like layout and interaction experience on iPhone in landscape mode, while offering both LAN direct connection and public tunnel access.

What Is This

dsh-phone-linking is a DSH plugin, consisting of two parts:

  • Host half: A gateway that runs on your computer, listens on 0.0.0.0:8790, proxies DSH’s actual GUI, and optionally launches a cloudflared temporary tunnel so the phone doesn’t need to be on the same Wi‑Fi.
  • Client half: A landscape adaptation layer that runs in the phone’s browser, handling keyboard occlusion, safe areas, touch targets, sidebar expansion, and removing hover tooltips.

It is installed as a bundle (containing host, client, locale, icon). It is not installed via npm; you must clone the repository and install it through DSH.

Core Features

  • LAN entry point: On your computer, go to Settings → Phone Landscape. The top card displays the LAN address and a 6-digit access code. Open it in Safari on your phone and enter the access code to connect.
  • Public tunnel: Click “Enable Public Access” to launch a cloudflared temporary tunnel. After about ten seconds, you’ll get a https://…trycloudflare.com URL. Copy the no-password link and open it on your phone.
  • Landscape adaptation: After entering, tap Safari’s Share → Add to Home Screen. From then on, open it from the Home Screen icon — in landscape mode, the address bar and toolbar are hidden and the UI goes full-screen; the input field will be pushed up above the keyboard.
  • Secure access: The entry point only listens on 0.0.0.0:<port> and is accessible within the same LAN; it’s unreachable from the public internet unless you click “Enable Public Access.” Access requires a 48-byte random token (delivered via the link on first use, stored as a 1-year HttpOnly Cookie) or a 6-digit access code. The access code locks for 10 minutes after 8 consecutive incorrect attempts.
  • Pairing & revocation: When used alongside the @linxin666/dsh-remote-web-ui plugin, this plugin automatically calls that plugin’s /api/pair/issue and /api/pair/accept endpoints, registering itself as DSH-iPhone-Gateway. You can revoke the pairing at any time.
  • Configuration: DSH_IPHONE_PORT (default 8790, gateway listen port), DSH_CLOUDFLARED (auto-detected, environment variable DSH_CLOUDFLARED takes priority), DSH_IPHONE_PAIR_COOKIE (default dsh_pair, the cookie name used for interoperability with the remote access plugin).
  • Status & logs: Status file $DSH_HOME/iphone-desk.json (token, access code, paired devices, tunnel routing toggle), log file $DSH_HOME/iphone-desk.log.

Installation & Activation

The plugin is installed as a bundle, not via npm. You must clone the repository first.

  1. Clone the repository locally:
git clone https://github.com/zdddrszj985/dsh-Phone-Linking.git
  1. Install the bundle through DSH:
  • GUI: Settings → Plugins → Install from Local Directory, then select the cloned folder.
  • CLI: Add the folder to your profile: dsh plugin add link:<absolute_path>, then add dsh.profile.bundles (value: dsh-phone-linking) to the profile’s package.json.
  1. Restart DeepSeek Harness once. The gateway binds its listener when the plugin mounts, so a restart is required to activate the host half.

  2. On your computer, go to Settings → Phone Landscape. The top card displays the LAN address, 6-digit access code, and pairing status. Open the address in Safari on your phone, enter the access code, or use “Copy No-Password Link” (with token) to open directly. After successful pairing, it’s remembered for one year.

Typical Usage

  1. On your computer: Open Settings → Phone Landscape. Note down the LAN address and access code.
  2. On your phone: Open the address in Safari and enter the access code.
  3. In Safari’s Share menu, select “Add to Home Screen.” From then on, enter via the Home Screen icon — no address bar or toolbar in landscape mode.
  4. Rotate your phone to landscape and type — the input field will be pushed above the keyboard.
  5. If your phone is not on the same Wi‑Fi, click “Enable Public Access,” wait about ten seconds, copy the generated https://…trycloudflare.com URL, and use its “Copy No-Password Link” to open on your phone.

Use Cases & Notes

  • Ideal for developers who use DSH on iPhone for multi-turn conversations, file editing, or debugging and want a closer-to-desktop experience.
  • The plugin runs with the permissions of the current DSH process. Review the source code and license (MIT) before installing.
  • The LAN entry point has low latency and is best for use within the same Wi‑Fi. The public tunnel is a temporary channel — each time you enable it, the URL changes, and it expires when disabled. For a fixed address, configure a Cloudflare named tunnel yourself.
  • When the computer goes to sleep, loses network, or DSH is closed, the tunnel disconnects as well.
  • The phone-side landscape adaptation layer overrides the default responsive behavior. For troubleshooting, append ?dsh-iphone-desk=force to the URL to force-enable it, or verify whether the client code was loaded.

In Short

This plugin provides LAN direct connection and public tunnel access for DeepSeek Harness on iPhone, filling in landscape-mode gaps such as keyboard occlusion, safe areas, touch density, and sidebar expansion. GitHub: https://github.com/zdddrszj985/dsh-Phone-Linking

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

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

Xiaoye