Skip to content

Coucou for Android 0.6.0: start a Claude Code session from the phone, spoken alerts - #1133

Merged
Louis-CFM merged 14 commits into
Louis-CFM:mainfrom
Rhytam23:feat/android-0.6.0
Nov 21, 2026
Merged

Louis-CFM merged 14 commits into
Louis-CFM:mainfrom
Rhytam23:feat/android-0.6.0

Conversation

@Rhytam23

Copy link
Copy Markdown
Contributor

Coucou for Android 0.6.0 (versionCode 6), with the Windows and Linux side of starting a session from the phone. As agreed by mail on 19 November: the two features you suggested, built as in docs/ANDROID_0_6_PLAN.md, with your one change applied.

What's in it

1. Start a Claude Code session from the phone (Windows and Linux)

  • Computer: Settings → Android phone → Let the phone start Claude Code sessions, off by default. With it off, the phone is offered nothing.
  • Phone: a New Claude Code session row on Home: pick a project from the computer's list, write what Claude should do, and send; sending asks for the fingerprint or screen lock, like Allow.
  • Safety:
    • The phone only sees folder names and opaque ids, never a path, and cannot name a folder, a command or an option.
    • The request ends in the island's own launcher, so the prompt is never written into a command line.
    • At most 6 starts in 10 minutes, and the prompt is not logged.
  • Your change: a session started from the phone always starts with --permission-mode default, whatever the computer's own Claude Code settings say. The island's own launch is unchanged. Tested in launch.rs (a_session_from_the_phone_always_starts_in_the_standard_permission_mode, only_the_phone_entry_point_uses_the_phone_origin) and in phone_link/tests.rs.
  • Protocol: a new optional capability launch (docs/ANDROID_LINK.md). An older computer or phone simply doesn't offer or ask for it.
  • Mac: not built, as agreed.

2. Spoken alerts (Android only)

  • Settings → Sound → Spoken alerts, off by default. The phone's own voice says one short line when an agent needs you or finishes ("Claude Code needs your approval").
  • It never reads a command, a file name or a message, and it never answers anything.
  • It stays silent in Do Not Disturb, on silent or vibrate, during a call, or without an offline voice for the app's language. No network and no permission.

3. A translation fix
The quiet hours' "To" label meant a message's recipient in seven languages (Indonesian, Russian, Simplified Chinese, Bengali, Hindi, Spanish, Brazilian Portuguese); it now means "until".

Checks

Not done yet

  • Real devices: not yet tried on my phone or on a PC. The short vertical recording will follow before you merge.

You keep the merge and the tag.

🤖 Generated with Claude Code

claude and others added 11 commits November 14, 2026 06:10
Settings > Sound > Spoken alerts: the phone says one short line with
Android's own TextToSpeech when a linked agent needs the user (a
permission request or a question) or finishes, e.g. "Claude Code needs
your approval". The line names the agent and the kind of event only: it
never reads a command, a diff, a file name or a message, and it never
answers or approves anything.

Silent in Do Not Disturb, when the ringer is silent or on vibrate,
during a call, and when the phone has no installed offline voice for the
app's language (Settings then says so). No network call, no dependency,
no permission; the engine exists only while the switch is on.

The decision (speak or not, which line, which voice, never twice) is
pure Kotlin in core/SpokenAlerts.kt with unit tests. Strings in the 16
languages; the machine-written ones are listed in i18n/REVIEW.md.

Co-Authored-By: Claude Fable 5.2 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01EMLAfnxNRTcLp4GtHWhuKm
What each of the two features does, what the phone sends, what the
computer accepts and refuses, what is off by default, what is not
included, what the Mac would need, and the decisions Louis may want
changed. Committed before the code of Part 2 (starting a Claude Code
session from the phone) so the design can be reworked.

Co-Authored-By: Claude Fable 5.2 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01EMLAfnxNRTcLp4GtHWhuKm
…f by default)

Settings > Android phone > "Let the phone start Claude Code sessions",
off by default and owned by Rust like the other phone switches. With it
on, a phone that asks for the new `launch` capability is told the
island's projects (folder names and opaque ids, never a path) and may
ask for a session in one of them with a prompt.

There is no second launcher: the request ends in launch::launch_session,
the function behind the island's own card, so the prompt is handed over
the same way and is never written into a command line. The phone cannot
name a folder, a command or an option; the switch is read again for
every request; starts are rate limited; the prompt is not logged.

An older phone never asks for `launch` and is sent nothing new; to a
phone that did not negotiate it, the message is an unknown type.

Tests through the real TLS server in phone_link/tests.rs (mod launch).
See docs/ANDROID_0_6_PLAN.md; the design is still to be reviewed.

Co-Authored-By: Claude Fable 5.2 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01EMLAfnxNRTcLp4GtHWhuKm
Co-Authored-By: Claude Fable 5.2 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01EMLAfnxNRTcLp4GtHWhuKm
A row on Home, "New Claude Code session", once a computer is paired. Its
sheet lists the projects the computer offers (folder names, tapped, never
a typed path), a text field for what Claude should do, and Send, which
asks for the fingerprint or screen lock like Allow. It says what became
of the request (sent, refused and why, no answer in 10 s) and what is
missing (the computer does not offer this yet, no project yet, not
connected). The words are not stored or logged.

Protocol: the optional capability `launch` (docs/ANDROID_LINK.md). The
phone sends a project id of the computer's list and the prompt, nothing
else; a computer that does not know it offers nothing and the phone then
sends nothing.

Rules in core/LaunchFlow.kt (pure, unit tested); the client is tested
against a plain-socket computer, the pretend computer
(tools/dev-desktop.mjs --launch) and the real Rust server
(RustDesktopInteropTest). Strings in the 16 languages, the machine-written
ones listed in i18n/REVIEW.md.

See docs/ANDROID_0_6_PLAN.md; the design is still to be reviewed.

Co-Authored-By: Claude Fable 5.2 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01EMLAfnxNRTcLp4GtHWhuKm
versionName 0.6.0, versionCode 6. An "Android 0.6.0 — Unreleased"
section in the CHANGELOG, a line under "Windows and Linux 0.6.0 —
Unreleased" for the computer-side switch, and the README Android row
(no link: nothing is tagged or published).

Co-Authored-By: Claude Fable 5.2 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01EMLAfnxNRTcLp4GtHWhuKm
The label of the quiet hours' end ("From … To") had been reused from the
"To" of a message's recipient: Kepada, Кому, 收件人, প্রতি, प्रति, Para.
It now says "until" in Indonesian, Russian, Simplified Chinese, Bengali,
Hindi, Spanish and Brazilian Portuguese. These seven are now Android's
own words, so REVIEW.md lists them for a native speaker.

Co-Authored-By: Claude Fable 5.2 <noreply@anthropic.com>
Co-Authored-By: Claude Fable 5.2 <noreply@anthropic.com>
Conflicts: README.md (the Android Versions rows from Louis-CFM#1098 next to the
0.6.0 row) and android/i18n/REVIEW.md (regenerated with gen-strings
--review). All generated strings files regenerated; --check passes.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
…pproval

As Louis asked: Claude Code started from a phone always gets
--permission-mode default, whatever the computer's own Claude Code
settings say, so a phone can never start a session that skips approval.
The island's own launch is unchanged.

launch.rs: Origin (Island, Phone) carries the flag into the Linux shell
command and the PowerShell script; launch_from_phone is the phone's
entry point and phone_link calls only it. Tests: the flag on Linux and
Windows, with and without a prompt, in Windows Terminal and in a
console; a prompt that tries to pass its own flags stays in the
environment; only launch_from_phone uses the phone origin; phone_link
never calls launch_session.

Plan, ANDROID_LINK.md and CHANGELOG updated.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Louis asked for Windows and Linux only; nothing on the Mac is built or planned
in this release.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Rhytam23 and others added 2 commits November 20, 2026 22:04
As Louis asked: the Linux terminal runs an interactive login shell, so a
user's alias or shell function named claude still applied, and an alias
such as claude='claude --dangerously-skip-permissions' would have
reached a session started from the phone. The phone's launch now uses
'command claude', which takes the program on $PATH only. The island's
own launch is unchanged; Windows already skipped aliases with
Get-Command -CommandType Application.

Tests: the phone's command on zsh, bash and fish, with and without a
prompt; the island keeps plain claude.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Three pills share the Vibration for a request row, about 90 dp each on a
360 dp phone; PillButton's 22 dp a side left under 50 dp for the label.
PillButton takes a sidePadding (22 dp by default, so every other button
is unchanged) and ChoiceRow passes 8 dp.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
@Louis-CFM
Louis-CFM merged commit 3445153 into Louis-CFM:main Nov 21, 2026
10 checks passed
Anil56 pushed a commit to Anil56/coucou that referenced this pull request Nov 22, 2026
Windows and Linux 0.6.0: start a Claude Code session from the island or
from Coucou for Android 0.6.0, drop a file on a session, approve
Antigravity and OpenCode. Version 0.6.0 in Cargo, npm, Tauri and the Arch
PKGBUILD; CHANGELOG dated; README rows, Linux links and paragraph.
What's new: the session item says island (no notch on a PC), and the phone
launch replaces the « OK Coucou » item; 14 languages, the test passes.

Android 0.6.0 (Louis-CFM#1133 by @Rhytam23): CHANGELOG dated, README row and
download links, docs/android.html and docs/index.html point to android-v0.6.0.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01LJm3SRL9k3gBPaVtfPhwcT
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants