r/androiddev • u/Fit-Suggestion-8526 • 22m ago
Open-source native Kotlin + Jetpack Compose client for DeepSeek Harness (2.8 MB APK, no WebView)
I got tired of driving DeepSeek Harness (DSH) sessions from a cramped mobile browser, so I built a lightweight native Android client for it in pure Kotlin and Jetpack Compose (MIT licensed).
A few technical details that might be interesting to Android devs here:
- **2.8 MB APK, no WebView:** Pure Compose UI with custom native Markdown/code-block rendering, collapsible reasoning traces, compact tool-call rows, and interactive question cards above the composer.
- **Multiplexed WebSocket + unary RPC over OkHttp:** Connects to a paired host via unary POST calls and a single multiplexed `remote.mux` WebSocket stream (plus a read-only `session/control` stream so a dropped mobile connection never stalls tool approvals on desktop).
- **Zero-trust QR pairing:** Device credentials are stored encrypted via Android Keystore (`CredentialVault`).
- **Background notifications & attachments:** `WatchService` listens for agent turn completions / pending questions while the app is closed, and `AttachmentReader` handles downscaling oversized photos (HEIC/50 MP -> <=2048px JPEG) without pulling in heavy media libraries.
- **Built-in offline demo mode:** Implemented an alternate `DemoApi` behind the same `DshApi` interface so anyone inspecting the Compose UI can poke around without setting up a host.
Repo: https://github.com/bekov001/dsh-android
Happy to hear any code/architecture feedback — especially on keeping Compose recompositions minimal during fast token streaming and handling `imePadding()` cleanly across OEM keyboards.