Whitepaper

An agent kernel on your phone, end-to-end encrypted tasks and social, and agents that can’t leak in groups. Version 0.3, November 2026, for Android beta 0.1.0.

What YuSho is

YuSho is an Agent chat app for the agent era. It brings three things together in one phone app: a personal assistant, the coding agents on your computer (Codex, Claude Code, DeepSeek Harness), and the people you talk to. The design goal: users own their identity and data, and no one, including us, can see private content.

Architecture

  • On-device kernel: the app ships its own Node 24 runtime, which runs a trimmed-down DeepSeek Harness (the assistant’s reasoning, tools, skills, and memory). No Linux install on the phone is required.
  • Desktop connector: drives the agents on the computer over the Agent Client Protocol (ACP), and reports progress, approval requests, and results back to the phone, encrypted.
  • Relay: built on the Nostr protocol and responsible only for forwarding. It stores encrypted events and cannot read their contents.

Identity and recovery

Each user’s identity is a secp256k1 key pair stored only on their phone. A YuSho ID is a public numeric alias (mapped to the public key via NIP-05) that makes it easy for friends to find you; it is not a credential in itself.

Recovery: the user sets a recovery password. The phone derives a key from it with scrypt, encrypts an identity backup with AES-256-GCM, and uploads it; only someone who knows the recovery password can decrypt it. Users can also export an encrypted identity file and keep it themselves.

Message and file encryption

  • Direct messages, group messages, and task handoffs use NIP-17 private messages (NIP-44 encryption plus gift wrap to hide sender and recipient). Group messages are sent as a separate copy to each member.
  • Files and images are first encrypted on the device with a random key, then uploaded to the file service. The key travels only inside the encrypted message to the recipient.
  • Public content (public Moments and the public profiles of groups and interest circles) is something users choose to make public, and is published as plaintext signed events.

Computer agents and approvals

Every task the phone dispatches carries an explicit executor, instructions, and working directory. When an agent wants to perform a risky operation, the connector sends an encrypted approval request back to the phone, and the user decides on each one; a request left unanswered for 10 minutes counts as denied.

The plan card on the phone supports undo (within 3 seconds), stopping everything, retrying a single step or handing it to a different agent (carrying over the progress so far), and adding follow-up requests after the work is done.

Linux on the phone

Since Android 10, apps can't execute programs they download. YuSho ships PRoot (the Termux build, GPL-2.0) as a native library inside the APK and uses it to run Alpine Linux in the app's private storage. DSH's bash tool runs commands there, and the app's working folder is mounted at the same path, so the assistant's file tools and its shell see the same files.

  • Packages come from mirrors in China (Tsinghua, Aliyun, USTC); bash, git, node and python are installed on first use.
  • It can only reach the app's own folders, isolated from other apps, photos and contacts.
  • Third-party DSH plugins are installed with its npm (install scripts disabled) and take effect after a kernel restart.

Offline speech

  • Dictation: SenseVoice-Small via sherpa-onnx, about 228 MB, downloaded on request; recording and recognition stay on the phone.
  • Voice: Kokoro v1.1 Chinese/English (Apache-2.0) via sherpa-onnx, about 141 MB; it synthesizes sentence by sentence and starts speaking as soon as the first one is ready.
  • Models come from ModelScope first, and every file is checked against the SHA-256 of the official release, so a tampered mirror can't slip in.

Direct phone-to-computer transfer

On the same local network, the computer connector opens an HTTP port that only accepts LAN connections. Each transfer gets a one-time AES-256-GCM key and a one-time token, delivered to the phone only inside end-to-end encrypted messages. Files are split into 1 MB chunks, each sealed separately (the nonce is the chunk index), so an interrupted transfer resumes from the missing chunk; the whole file's SHA-256 is verified at the end.

Follow-ups continue the same session

Every task the phone sends carries a thread id. The next task in the same thread, such as “now change this”, runs in the agent session the previous one left open, so the agent remembers what it already did; new tasks get a fresh session. Idle sessions close after 30 minutes and at most three stay open, so sessions don't pile up on your computer.

Agents in groups: preventing leaks

Users can bring their assistant, work assistant, and computer agents into a group. To stop group members from using an agent to extract private information, there are several layers of protection:

  1. Who can call on it: Only me / Others need my approval / Anyone in the group. In public groups, a computer agent called on by anyone other than its owner always requires the owner’s approval.
  2. Minimal context: in a group, the phone assistant sees only the recent group chat. It doesn’t load the user’s memories, calendar, tasks, or files, and it can’t call tools.
  3. Identity cues: the agent is told explicitly that the person calling on it is not its owner, so it makes no decisions and no commitments on the owner’s behalf.
  4. Outbound filtering: before a reply goes into the group, anything resembling a key, token, or password is automatically masked.
  5. Rate limits: calls to the same agent from other people are capped per hour.

Governing public content

The app is open source, and any check built into it can be patched out, so review of public content happens on the server. Public Moments and public profiles go to a review service before publishing, and the relay only accepts content that has passed review. Each item is rated public, friends only, or visible only to the author, taking the account’s recent violations into account. Ranking on the public square and the Discover page weighs content quality, freshness, and a measure of random exposure.

End-to-end encrypted direct messages, group chats, and friends-only Moments are never read by the server. These are handled through user reports, where the reporter voluntarily submits the content in question.

Open source and licensing

  • YuSho connector: MIT license, github.com/moluyao/dsh-yusho-skill.
  • App: the source code will be released once it’s ready. Server-side review rules are not open source, so they can’t be deliberately gamed.
  • The underlying DeepSeek Harness is an open-source project. YuSho has no affiliation or partnership with DeepSeek the company.