dsh-mobile README

项目的 README,来自 github.com/Clarklevis1995/dsh-mobile。合并为一个 markdown 文件:README.md。

English · 简体中文 · 日本語 · 한국어 · Español · Français · Deutsch · Português (Brasil)

Whaleness iOS app showcase

Whaleness — A Third-Party Mobile Client for DeepSeek Harness

Native Android and iOS apps with core business logic shared through Kotlin Multiplatform.

Connect to DeepSeek Harness through Mobile Gateway to access workspaces, live conversations, Agent traces, plugins, scheduled tasks, and files from your phone, tablet, or foldable.

Website: Whaleness

Join the iOS TestFlight beta    Download the Android APK from GitHub Releases

Kotlin Multiplatform Android 7.0+ iOS 16.1+ Jetpack Compose SwiftUI WebSocket

Overview

Whaleness is an independently developed third-party native mobile client for DeepSeek Harness. Both Android and iOS apps use Kotlin Multiplatform (KMP):

Both apps connect to Harness over WebSocket through dsh-plugin-mobile-gateway. Both control and conversation traffic use WebSocket; native WebRTC transport is currently removed. Networking, secure storage, files, images, lifecycle handling, and background execution use native platform APIs. Business rules are consolidated in shared/commonMain wherever practical.

Downloads and Prerequisites

Beta Community

Join the Whaleness beta WeChat group 2 to share feedback, discuss your experience, and get support. Scan with WeChat, or save the image and recognize it in WeChat.

Whaleness beta WeChat group 2 QR code, valid before November 25, 2026

Updated on November 18, 2026. The original image states that the code is valid before November 25, 2026. If it has expired, check the product page for the latest group QR code.

Platform Status

Platform / module Status Main components
KMP shared Used by Android and iOS Gateway protocol, stores/reducers, conversation and trace projections, history synchronization, questions/approvals, session control, workspace file state, and code preview support
Android Native client available Jetpack Compose, OkHttp WebSocket, DataStore for non-sensitive settings, Keystore for credentials, CameraX/ML Kit QR scanning, foreground service, attachment cache, file downloads, and previews
iOS Native client available SwiftUI/UIKit, URLSession WebSocket, UserDefaults for non-sensitive settings, Keychain for credentials, QR pairing, background execution, attachments, and workspace files

Android and iOS each have their own native UI and platform integrations. Features and interactions are being aligned, while some system-level behavior differs between platforms.

Features

Recent additions

Conversations and Agent Execution

Hosts, Workspaces, and Extensions

Native Device Experience

Screenshots

Latest iOS product screenshots: the 1.7.10 image set was captured on October 22–23, 2026; the iPhone Duo set was captured on October 26, 2026. The interface shown is Chinese. Product screenshot sources · Duo screenshot sources.

iPhone Duo: Landscape, Portrait, and Navigation

Unfolded landscape home Landscape home background
Unfolded landscape home Landscape home background
Landscape settings Landscape conversation
Landscape settings Landscape conversation
Expanded navigation sidebar Unfolded portrait home
Expanded navigation sidebar Unfolded portrait home

Teams, Attachments, and Local Storage

Agent team members Shared team tasks File and image picker
Agent team members Shared team tasks File and image picker
Dedicated text selection Files in a conversation Bundled release notes
Dedicated text selection Files in a conversation Bundled release notes
Local storage and cache categories Hold-to-talk input File attachment in the composer
Local storage and cache categories Hold-to-talk input File attachment in the composer
Earlier screenshots: iPad, previews, settings, and pairing

Screenshots show the iOS app with Chinese UI; Android implements the corresponding information architecture and workflows with Jetpack Compose. The voice, file, text-size, and iPad screenshots were captured on October 16, 2026, using version 1.7.6. See screenshot sources.

Voice Input, File Previews, and Text Size

Hold-to-talk voice recording overlay on iPhone PDF preview opened from a conversation file card App text size preview and slider
Hold to talk
Release to transcribe, slide up to cancel
PDF preview
Open files directly from a conversation
Text size
Follow the system or adjust manually

View the slide-up-to-cancel state

iPad and Larger Screens

Two-column iPad home screen with workspace and recent sessions Landscape iPad conversation with a file card
Wide home screen
Workspaces and sessions side by side
Tablet conversations
Comfortable content width and composer
PDF preview window over an iPad conversation Voice recording overlay adapted to a landscape iPad
File previews
Keep the conversation in context
Voice input on iPad
Recording feedback adapts to the window

Core Workflows

iOS workspace home screen iOS conversation with a file card and execution statistics control iOS Agent trace in light mode
Home
Workspaces and recent sessions
Conversation
Markdown, code, and tool results
Agent trace
Timing overview and event timeline

Default Settings

iOS app settings iOS Agent presets iOS default model settings
Settings
Deployment defaults and Gateway status
Agent presets
Tools, prompts, and capabilities
Default model
Provider, model, and reasoning effort

Plugins and Scheduled Tasks

iOS list of official and installed plugins iOS scheduled task rules and details
Plugin management
Browse details and enabled state
Scheduled tasks
Inspect schedules and execution status
More screens: workspaces, trace details, and device pairing

Workspace Actions and Trace Details

iOS workspace switcher iOS workspace directory picker iOS trace details panel
Switch workspaces
Access different projects
Choose a directory
Browse and create workspaces
Trace details
Summary, tokens, and content preview

Light Mode, Dark Mode, and Pairing

iOS device pairing in light mode iOS device pairing in dark mode iOS conversation in dark mode
Light-mode pairing
Scan a QR code or enter details
Dark-mode pairing
Native dark appearance
Dark-mode conversation
Reading, code, and composer

Cross-Platform Architecture

                         DeepSeek Harness
                                │
                  dsh-plugin-mobile-gateway
                                │
                             WebSocket
                ┌───────────────┴───────────────┐
                │                               │
     Android OkHttp Transport          iOS URLSession GatewayClient
                │                               │
       KMP Gateway Runtime             Swift Router / KMP Adapter
                │                               │
                └───────────────┬───────────────┘
                                │
                    KMP shared / commonMain
            Protocol · Store · Reducer · Projection
       History Sync · Question/Approval · Workspace Files
                ┌───────────────┴───────────────┐
                │                               │
       Jetpack Compose                     SwiftUI / UIKit
          Android UI                          iOS UI

Shared Module Responsibilities

The shared module does not depend on Compose, SwiftUI, Android Framework, or Apple UI frameworks. iOS reuses shared stores, reducers, projections, and file state machines. Its Swift GatewayClient still owns WebSocket connections and reconnection, forwarding events into the shared module through an adapter; iOS does not yet use the full KMP Gateway Runtime.

Each platform handles secure storage, image processing, temporary files, system sharing/opening, and application lifecycle. The shared module owns the remote file protocol, state transitions, chunk consistency, and integrity checks without accessing platform filesystems directly.

Repository Layout

.
├── shared/                         # Kotlin Multiplatform business logic
│   └── src/
│       ├── commonMain/             # Protocol, state machines, projections, sync, facades
│       └── commonTest/             # Cross-platform unit tests
├── androidApp/                     # Native Android app (Jetpack Compose)
│   └── src/
│       ├── main/                   # App code and platform integrations
│       ├── test/                   # JVM tests
│       └── androidTest/            # Device tests
├── DeepSeekHarnessMobile/          # Native iOS app (SwiftUI/UIKit)
├── DeepSeekHarnessMobileTests/     # iOS XCTest tests
├── DeepSeekHarnessMobile.xcodeproj
├── Docs/                           # Research, KMP migration, and validation
└── Design/                         # Design specifications and artwork

Development Requirements

Common

Android

iOS

Run Android

  1. Set up Java 17 and point ANDROID_HOME or ANDROID_SDK_ROOT to your Android SDK.

  2. Build a Debug APK from the repository root:

    ./gradlew :androidApp:assembleDebug
    
  3. Install it on a connected device or emulator:

    ./gradlew :androidApp:installDebug
    
  4. Launch DshMobile and scan the pairing QR code from WebUI, or enter pairing details manually.

The Debug APK is generated at:

androidApp/build/outputs/apk/debug/androidApp-debug.apk

To let an Android emulator access the host's 127.0.0.1:3080, first run:

adb reverse tcp:3080 tcp:3080

Run iOS

  1. Set up Java 17 and the Android SDK.
  2. Open DeepSeekHarnessMobile.xcodeproj in Xcode.
  3. Select the DeepSeekHarnessMobile scheme and your target device.
  4. Build and run. The Build KMP Framework phase automatically selects and compiles the matching Kotlin/Native framework.
  5. Scan the WebUI pairing QR code in the app, or enter pairing details manually.

You do not need to build the framework manually first. To build only the Apple Silicon iOS Simulator framework:

./gradlew :shared:linkDebugFrameworkIosSimulatorArm64

Connection and Pairing

  1. Install or upgrade dsh-plugin-mobile-gateway in DeepSeek Harness (minimum 0.11.2), then fully exit and restart dsh web:

    dsh plugin --profile web add dsh-plugin-mobile-gateway@latest
    
  2. Open the Mobile Devices panel in WebUI and enable mobile connections and device authentication.

  3. Make sure the WebSocket endpoint is reachable from your mobile device or simulator.

  4. Generate a one-time pairing QR code/token and authenticate in the Android or iOS app.

  5. Return to the home screen, confirm that Gateway is connected, then choose a workspace and session.

Common endpoints:

Environment Endpoint
iOS Simulator ws://127.0.0.1:3080/ws/mobile
Android Emulator with adb reverse ws://127.0.0.1:3080/ws/mobile
Physical device on the same LAN ws://<HOST-LAN-IP>:3081/ws/mobile
Public deployment wss://<your-domain>/ws/mobile

[!IMPORTANT] A physical phone cannot reach your computer through 127.0.0.1. The ws:// examples are for trusted local development only. Use wss:// with correctly configured TLS and device authentication on public or untrusted networks. Do not include one-time pairing tokens in logs, issues, or chat messages.

[!NOTE] Physical devices on a LAN use the separate port 3081 listener provided by dsh-plugin-mobile-gateway. It serves only authenticated /ws/mobile requests; other paths return 404. Port 3080 belongs to DSH WebUI and listens on loopback only, so physical devices cannot connect through it.

Build and Test

Run Android unit tests, lint, and the APK build:

./gradlew \
  :androidApp:testDebugUnitTest \
  :androidApp:lintDebug \
  :androidApp:assembleDebug

Run the shared Kotlin/Native tests on Apple Silicon macOS:

./gradlew :shared:iosSimulatorArm64Test

With an Android device or emulator available, run device tests:

./gradlew :androidApp:connectedDebugAndroidTest

For iOS tests, select the DeepSeekHarnessMobile scheme in Xcode and choose Product → Test. The build phase links DeepSeekHarnessShared.framework for the selected architecture automatically.

Some linked technical documents are currently available in Chinese.

The following documents record the KMP migration and Android implementation. For the current state, refer to this README and the source code:

Acknowledgments

Thank you to Fei2411 and the DS Bot contributors for creating and maintaining the open-source DeepSeek Harness plugin that powers Bot mode in Whaleness. Upstream DS Bot repository

Project Status

Whaleness is under active development. The KMP shared module and native Android and iOS apps are implemented. Protocol support, platform consistency, and the mobile experience continue to evolve alongside DeepSeek Harness and Mobile Gateway.

This is an independently developed third-party client for DeepSeek Harness.

Listed on dsh-plugin.org

Bundled Release Notes

Both apps' About screens use AppRelease/release-info.json and AppRelease/release-notes.md. The JSON version must match the app version; minimumGatewayVersion specifies the required minimum Mobile Gateway plugin version. Markdown contains the release notes for that version. Apps load these bundled resources locally without fetching the text over the network.

The KMM dual-release skill writes reviewed release notes and synchronizes the resource version before compilation. It verifies that the resources in the APK, AAB, and iOS bundle match the source files, and restores resources and version files if packaging fails. Changes to release notes require rebuilding the apps; editing only the release output directory does not update bundled content.

iOS Metal Compilation from Android Studio

The Build Metal Library phase runs scripts/build_metal_library.sh, locates an installed Metal toolchain, and writes default.metallib into the app bundle. It clears Android Studio's injected TOOLCHAINS and SDKROOT only in its subprocess, while explicitly preserving the current iOS SDK and deployment target. This avoids false missing-Metal-toolchain errors caused by forcing XcodeDefault.

Android Update Sources

Android checks https://download.whaleness.cc/latest.json first and falls back to GitHub Releases if the request fails or the configuration is invalid. The schemaVersion: 1 configuration includes version, versionCode, packageName, downloadUrl, size, and sha256, with optional githubDownloadUrl and releaseNotes. Downloads accept only configured trusted accelerated-download domains and this project's GitHub URLs. If the accelerated source fails, the app switches to the fallback while verifying package size, SHA-256, version, package name, and signature against the same configuration.

Publishing uploads an immutable versioned APK before updating the root latest.json. Update manifests should bypass CDN caching; APK files may be cached. When no newer build is found, no GitHub request is made. Startup checks remain silent, while manual checks in Settings display their result.

Automatic R2 Publishing

Run python3 scripts/configure_r2_release.py to save S3 object read/write credentials for the configured bucket in ~/.config/whaleness/r2-release.json with permissions 600. sh scripts/r2_release.sh --check only verifies connectivity. sh scripts/r2_release.sh --prepare <release-directory> generates a manifest; --publish <release-directory> performs the remote publication. The S3 SDK is installed in the isolated build/r2-tools environment.

When local configuration exists, the KMM dual-release skill publishes automatically: validate local packages, upload an immutable APK whose filename includes the build number, verify both the remote object and public download, then conditionally update latest.json. A failed upload can be retried with the same release directory without rebuilding. Set R2_UPLOAD=0 for local packaging only. Full upload tests may generate R2 read requests; the initial connection check does not modify remote objects.

dsh-mobile (Clarklevis1995/dsh-mobile)

正在搜索数据库…

这是什么?DeepSeek Harness Mobile(dsh-mobile)是一个 DeepSeek Harness 原生移动客户端,把你的 Harness 工作区、会话、智能体实时回复和执行轨迹带到 Android 或 iOS 手机上。
这是原生应用,还是移动网页套壳?它是用 Kotlin Multiplatform 构建的真正原生 Android 和 iOS 应用:两端共享一个 Kotlin 核心(协议、状态机、同步),Android 用 Jetpack Compose 渲染,iOS 用 SwiftUI/UIKit 渲染——没有共享的 UI 层。
怎么让它在手机上跑起来?从仓库根目录用 Gradle 构建并安装 Android 调试 APK,或在 Xcode 中打开 DeepSeekHarnessMobile.xcodeproj 用于 iOS,然后启动应用,扫描 Harness WebUI 中显示的配对二维码(或手动输入配对信息)。
连接之前 Harness 一侧需要什么?你需要一个已启用 dsh-plugin-mobile-gateway 且正在运行的 DeepSeek Harness 实例,此外还需要 Java 17,以及构建 Android 用的 Android SDK/Studio 或构建 iOS 用的 macOS + Xcode。
把应用切到后台后连接还能保持吗?在 Android 上,智能体回合运行期间有前台服务保持 WebSocket 打开;但 iOS 只能获得有限的系统授予的后台执行时间,因此无法保证 WebSocket 连接持续不断。
它支持哪些 Android 和 iOS 版本?Android 需要 7.0(API 24)或更新版本,iOS 需要 17.0 或更新版本,需在 macOS 上使用 Xcode 构建。
在公共网络上配对安全吗?在任何公共或不可信网络上都应使用带适当 TLS 和设备认证的 wss://;纯 ws:// 只适用于可信的本地开发环境,一次性配对令牌绝不能被记录或分享。
DeepSeek Harness 是什么?DeepSeek Harness 是本应用所连接的编码智能体后端;dsh-mobile 是一个非官方社区客户端,把其工作区、会话和智能体活动呈现在移动端上,并非 DeepSeek 官方发布。
能逐步看到智能体在做什么吗?可以——应用会显示完整的智能体轨迹,包括用户/助手/工具事件、调用参数、结果、schema、token 计数和耗时。
需要手动批准智能体的操作吗?需要,它会呈现「人类提问」和工具审批请求,你可以直接在手机上提交、取消、拒绝或允许一次。
怎么把手机和 Harness 配对?在 Harness 中启用 dsh-plugin-mobile-gateway,打开 WebUI 的移动设备面板,生成一次性配对二维码,然后在应用中扫描(或手动输入信息)。
大小
308.4 MB
星标
823
时长
3个月
提交 · 90 天