:app:assembleDebug.The ImWuMie/wear-agent repository hosts a Wear OS app designed for round screens. It uses the official Wear Compose Material 3 and works with any OpenAI-compatible APIs, as well as Anthropic. Response streaming is implemented via SSE for OpenAI Completions/Responses and the Anthropic Messages API. The chat can display token usage stats: each response shows ↓ out, ↑ in (cached), and t/s. Markdown and LaTeX are supported: CommonMark with GFM tables and strikethrough, with formulas $..$, $$..$$, \(..\) and \[..\] rendered via JLaTeXMath, while literal dollar signs and code spans are left untouched. A standout feature is thinking traces: reasoning models (e.g., DeepSeek) stream their chain of thought into a collapsible block within the response; the block automatically expands while the model is thinking and collapses when the main answer begins, with its state saved along with the message. Long-pressing a message opens a full-screen action page: copy, text selection, regeneration (including for user messages), editing, and deletion. The UI uses a pull-up drawer: the handle sits 9dp above the bottom edge of the screen — pull it up and the input field appears, pull higher and you get settings.
The project is a working example of how to fit an AI chat into the constraints of a watch: small screen, limited memory, and the need for background operation. The app runs a single turn in a foreground service with a Stop button in the notification, and saves partial output when stopped. A session log is kept in append-only JSONL: if the process is killed, the file is replayed on the next start, so nothing lives only in memory. For developers, the architecture is valuable: the code is split into agent/ with no Android dependencies (ChatClient on OkHttp SSE, AgentService, Transcript), session/ on DataStore, and presentation/ on Wear Compose. Multiple endpoint profiles are supported, with automatic model list loading and per-endpoint configuration of API type, key, and model.
Building requires JDK 17+ and Android SDK 36. Release signing uses a keystore configured via keystore.properties or environment variables in CI; if the keystore is missing, the release workflow refuses to publish and verifies the APK isn't signed with a debug key. The repository warns that losing the keystore means being unable to update an installed release under the same package name. The TODO list mentions plans for watch-side tool execution and a multi-turn tool-use loop. The app is localized: Chinese (default) and English. The project is distributed under the GNU AGPLv
Source: github.com · post in Telegram