The show card. A tool call may now carry `show` (event["show"], harness spec 3.0.0): a file's
name, path, kind, line and which copy -- node and version in the chat's tree, or the copy a linked
device sent (shown_id). The transcript draws it as a card with Open; the viewer is a full-screen,
read-only dialog that fetches the text and opens at the named line. Markdown goes through the same
Markwon setup as a reply (rule 4); code, text and Markdown over 200 000 characters are numbered
lines in a lazy list, the number column measured from the file's longest number. HTML is never
rendered: no WebView exists in the app, so it is shown as source, and "Open in the browser" opens
the web UI's viewer, which renders it in its sealed frame. Copy takes the whole file.
The text comes from GET /api/v2/chats/{chat}/show?node=&version= (or ?shown=), plain text, at most
1 MB. That route is the app's half of a contract the server does not have yet: /api/v2 neither
publishes `show` on a tool call nor serves the file to a token. Until it does, the card does not
appear, and a viewer that meets a missing route says so and offers the browser.
Older servers are refused: the discovery document's device-link protocol must be 3 (LLeMbas 2.0),
at sign-in and, for an instance signed in to before, when the chat list opens. The protocol and
not the version string, because the server's dev still says 1.7.x before its first beta.
Also: gen-strings.py takes a server ref like the other two generators, so the strings come from
the same commit as the contract and the tokens rather than from a shared working tree; the
Reports notification channel goes (2.0 has no reports) and is deleted on first start.
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2.8 KiB
LLeMbas for Android
A native Android app for a LLeMbas instance: your chats and agent chats, notifications that arrive when the app is closed, and LLeMbas as the phone's digital assistant -- hold the power button and ask.
- Native, not a web view. Kotlin and Jetpack Compose on the server's JSON API (
/api/v2). The installable web app keeps working; this is for what a web page on a phone cannot do. - No Google services. Notifications come through UnifiedPush (ntfy, or any distributor you like), so the app runs on de-Googled phones and builds for F-Droid.
- Your instance, nobody else's. Nothing is predefined: the app talks to the address you give it, and to nothing else.
Alpha. 0.x versions may change how things work between releases.
Install
Download the APK from the latest release
and check it against SHA256SUMS. The full APK updates itself from llembas.eu; the -fdroid
one does not. Android 10 or newer; the instance must run LLeMbas server 2.0 or newer (an older
one is refused at sign-in, with a sentence saying so).
If your instance uses a certificate from your own certificate authority, install that CA on the phone first (Settings › Security › Encryption & credentials › Install a certificate › CA certificate). The app trusts CAs you installed, as the browser does.
Use
- Sign in: type the instance's address and approve the code shown, in the browser.
- Notifications: install a UnifiedPush distributor (for example ntfy), then Settings › Notifications › Turn notifications on.
- Assistant: Settings › Assistant › Open the assistant settings, and choose LLeMbas as the digital assistant app. On Samsung phones also set Settings › Advanced features › Side button › Press and hold › Digital assistant.
There is no wake word. Android reserves always-on hotword detection for the system's own preinstalled assistant; no app from outside can use it.
Build
Builds run on GitHub Actions (.github/workflows/ci.yml); locally it is the usual
./gradlew assembleFullDebug with JDK 17 and the Android SDK.
Three things are generated from the server at one ref; the first two are pinned with a lock file CI checks, and CI checks the strings against the code:
| What | Script | From the server |
|---|---|---|
ui/theme/Tokens.kt |
scripts/fetch-tokens.py <server-ref> |
tokens.css |
contract/*.json |
scripts/fetch-contract.py <server-ref> |
tests/fixtures/api_v2/ |
res/values*/strings.xml |
scripts/gen-strings.py <server-ref> |
the translation catalogues |
The icons come from the server's pixel leaf (scripts/gen-icons.py).
Licence
MIT -- see LICENSE.