Skip to content

Botan link: Coucou on Botan's screen, approve and answer with its button - #1150

Draft
Louis-CFM wants to merge 47 commits into
mainfrom
botan-link
Draft

Louis-CFM wants to merge 47 commits into
mainfrom
botan-link

Conversation

@Louis-CFM

Copy link
Copy Markdown
Owner

Botan is a small screen with one button next to the Mac. This links it to Coucou over Bluetooth (GitHub build only, off by default: Settings → Botan).

What Botan shows: the most urgent thing, one line at a time: a permission request, a question with 2 to 4 short choices, an error (n8n included), work in progress, work done, or Mochi resting.

What its button may do: approve the request, or pick the answer to the question. Each screen carries a token; a press is applied only if its token is the one of the request still pending, then checked again on the main actor and answered through HookServer.sendApprovalDecision / sendQuestionAnswers, the same path as a click on the island's card. Botan never denies, types, or answers what it was not shown; the Mac's card keeps working.

  • BotanLinkScreen.swift — pure mapping and button checks, tested by scripts/test-botan-link.sh (added to CI)
  • BotanLinkService.swift — CoreBluetooth central, event driven (debounced AppState), nothing runs while off
  • Settings box + search entry, 16 languages, NSBluetoothAlwaysUsageDescription (GitHub target only)
  • docs/BOTAN_LINK.md — the line format and the rules

Not tested yet against the real board; the Bluetooth file has not been compiled outside CI.


Generated by Claude Code

Louis-CFM and others added 30 commits November 22, 2026 16:01
…h its button

Botan is a small screen with one button next to the Mac. Settings → Botan (GitHub build, off by
default) links it over Bluetooth: Coucou sends one line for the most urgent thing (a permission
request, a question with 2 to 4 choices, an error, work in progress, work done) and applies a press
only if it carries the token of the request still pending, through the same path as a click on the
island's card. Botan never denies, types, or answers what it was not shown.

- BotanLinkScreen.swift: pure mapping and button checks, tested by scripts/test-botan-link.sh (CI)
- BotanLinkService.swift: CoreBluetooth central, event driven, nothing runs while it is off
- Settings box, search entry, 16 languages, Bluetooth purpose string (GitHub build only)
- docs/BOTAN_LINK.md: the line format and the rules

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01B9uCpBfczfSCvLARne8hCd
The iPhone app links Botan over Bluetooth and turns the sessions the Mac publishes to iCloud into
Botan's line, and its button into the same Decision / Answer records a tap sends. So Botan works
wherever the iPhone has the network, with the iPhone locked.

- BotanBridge.swift: CoreBluetooth central with state restoration; bluetooth-central background mode;
  written after every fetch (push or Botan's 15 s heartbeat); presses sent inside a background task
- BotanLinkScreen moves to CoucouKit, shared by the Mac and the iPhone; the heartbeat decides nothing
- Settings → Botan on the iPhone (off by default, says a press needs no Face ID); Bluetooth purpose string
- Mac and iPhone link only the first Botan met, remembered ("Forget this Botan")
- SessionItem reads approvalTool (optional, old caches still load)
- docs/BOTAN_LINK.md: the iPhone, locked

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01B9uCpBfczfSCvLARne8hCd
Botan (firmware 0.8.0) now requires an authenticated, encrypted Bluetooth link to write its screen or
hear its button: the first time, it shows a random 6-digit code and the iPhone or the Mac asks for it,
then they stay paired. The Mac and the iPhone say "type the code shown on Botan" until Botan takes a
line, retry the write and the subscription while the code is typed, and remember a Botan only once it
has paired.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01B9uCpBfczfSCvLARne8hCd
… a swipe

Botan is picked once in the system's accessory sheet ("Find Botan"), and
Coucou links only to that one. Since iOS 26, iOS relaunches only apps that
set their accessory up this way after a swipe in the app switcher (TN3115),
so Botan stays linked with Coucou closed.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01B9uCpBfczfSCvLARne8hCd
The error of the system sheet (or of the accessory session) shows under
Botan's status in Settings, and "Find Botan" opens a new session if the
last one ended.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01B9uCpBfczfSCvLARne8hCd
…heet

iOS refuses to show the accessory sheet while the app holds a Bluetooth
manager with its own permission (ASErrorDomain 550). Coucou now opens its
central only for the Botan picked in the sheet, and closes it before
showing the sheet again.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01B9uCpBfczfSCvLARne8hCd
…en, Mochi in the Dynamic Island while agents work

- The iPhone app, its widgets and notifications are called Botan (same app
  ID and iCloud container). It stays an Apple-style app; Botan comes in as
  touches: the #FF5A24 accent, its sign and wordmark, Mochi.
- Home: a Botan card with what the box shows right now, or "Link" for
  those who have one. Settings: Botan first. Setup guide: a Botan step.
- Mac: "Also while my Mac is unlocked" keeps Mochi in the iPhone's Dynamic
  Island as long as an agent works. The iPhone updates the running Live
  Activity itself whenever it is awake (Botan's signal, iCloud pushes).
- CLAUDE.md: the iPhone app may be restyled for Botan.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01B9uCpBfczfSCvLARne8hCd
…approval

- Live Activity: Mochi colored by state (working, thinking, waiting for
  your OK, done) as on Botan's screen, plain words instead of step counts,
  a see-through Lock Screen background. The iPhone keeps it up to date,
  shows "Done" a few seconds then ends it, ends it when nothing runs, and
  starts it itself when the app is open; one activity at a time.
- Mac: starts it with the tokens it already has (no full iCloud read
  first), after 8 s instead of 20 when the Mac is unlocked.
- Notifications: a notification service fills in the iCloud alert for an
  approval (agent, project, command), so one banner instead of two; the
  app's own banner only comes if the iCloud alert never does.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01B9uCpBfczfSCvLARne8hCd
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01B9uCpBfczfSCvLARne8hCd
Tapping Allow or Deny turns Mochi back to work with "Allowed" or "Denied"
right away; the request stays answered on the iPhone until the Mac's news
catches up, instead of the buttons coming back.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01B9uCpBfczfSCvLARne8hCd
…t and deployment

- A service item can carry its own fields and lists (optional, so older
  details still decode); the iPhone opens it on a Settings-style page
  with its fields, the lists inside it, its actions and the web link.
- Stripe: fee, net, customer, email, where the payment came from (payment
  link with its address, Checkout, invoice, direct), card, country, dates.
  Payouts: status, arrival, speed, failure.
- Vercel: every project (production address, latest state, framework,
  repository, its deployments) first; each deployment with branch,
  commit, author, build time and the inspector link.
- GitHub: your 30 latest repos, each with its details, its pull requests
  and its CI.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01B9uCpBfczfSCvLARne8hCd
…o and Mail join

- Cal.com: each booking with its time, length, guests, time zone, place,
  meeting link and notes.
- n8n: each run with its status, who started it, how long it took, and
  for the latest failures the error and the node it stopped at; each
  workflow with its triggers, nodes, tags and its latest runs.
- Resend: each email with from, to, cc, status and dates; each domain.
- Notion: kind, edited, created, where it lives.
- Crypto (the coins the pill follows, public prices) and Mail (GitHub
  build: unread, flagged, latest messages) go to the iPhone too, with a
  page per coin and per message.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01B9uCpBfczfSCvLARne8hCd
…ok, the latest

- Mochi bigger, with a glow and the island tinted in the color of the
  moment (blue at work, violet thinking, amber waiting, green done).
- Today: the agents' figures, plus a chip per service with its day (money
  in, deploys, meetings, runs, unread, the lead coin), from the Mac.
- Needs a look: only the services in error or waiting on you, with why.
- Lately: your OKs and the services' latest events together, newest first.
  Every line opens where it comes from.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01B9uCpBfczfSCvLARne8hCd
- Sections in a fixed order with the same spacing and the same titles:
  Mochi's card, Today, Needs a look (only when something does), Agents.
- One Mochi on top. Botan is a small antenna in his card (orange when
  linked); the separate Botan card is gone.
- Today holds the latest news (4 lines) under the figures and the
  services' chips. Needs a look shows a colored dot per service instead
  of another Mochi, on a plain card.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01B9uCpBfczfSCvLARne8hCd
The card insets were set on the sections, which moved their titles too;
they are set on the card rows now.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01B9uCpBfczfSCvLARne8hCd
The stethoscope is on the left, so its page now comes from the left and
leaves to the left (chevron or a swipe). The Kit screen, a developer's
gallery, is gone.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01B9uCpBfczfSCvLARne8hCd
The home slides 30 % to the right and dims while the link test comes in
from the left, and follows a finger pulling it back.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01B9uCpBfczfSCvLARne8hCd
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01B9uCpBfczfSCvLARne8hCd
- A journal on the iPhone (90 days, a file in the app's folder): your OKs,
  the agents' turns, and each service's events as the Mac publishes them,
  kept as they pass so History reaches past any one snapshot.
- History: every source together, by day; filters by theme (your OKs,
  code, money, deploys, errors) and by source; a line opens its source.
- Search: payments, deploys, runs, bookings, emails and your OKs too, not
  only the turns.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01B9uCpBfczfSCvLARne8hCd
…gent or Antigravity

The Mac (GitHub build, instructions on) publishes the agents installed and
its recent folders; the iPhone sends a task with an agent and one of those
folders, confirmed with Face ID; the Mac runs it in the background with no
permission flags (each agent keeps its own rules), stops it after 30 min,
and writes how it ended, shown on the iPhone and in History.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01B9uCpBfczfSCvLARne8hCd
…closes

The Mac only knew the folders seen since launch, so the list was empty after
a restart; it now reads the working folder of the latest Claude Code and
Codex conversations. The task field gets a Done key and closes on scroll.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01B9uCpBfczfSCvLARne8hCd
…inal

A Claude Code run started from the iPhone has no window, so an action that
needs an OK can be turned down without asking. The Mac now reads Claude Code's
JSON answer, sends the turned-down actions to the iPhone, and "Allow and
continue" (Face ID) resumes the same conversation with exactly those actions
allowed, as checked by the Mac. The notch no longer offers Open terminal for
these runs.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01B9uCpBfczfSCvLARne8hCd
…finished

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01B9uCpBfczfSCvLARne8hCd
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01B9uCpBfczfSCvLARne8hCd
Ask about agents, services and OKs; the model reads only what the iPhone
already has, through four read-only tools (agents now, history, services,
last turn). Free and on the iPhone (iOS 26+, Apple Intelligence on); a long
chat starts fresh when it outgrows the model's context.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01B9uCpBfczfSCvLARne8hCd
…e the keyboard

Messages arrive with a spring, Botan thinks with three dots in a glass
bubble, and the conversation opens on Mochi. The model gets a personality,
answers small talk without tools, and replies in the iPhone's language when
the message is too short to tell.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01B9uCpBfczfSCvLARne8hCd
Mochi moves (welcome and beside the latest answer, thinking, hopping when done,
dizzy on a failure) and appears once. Sending animates in the view: the welcome
fades, the chips fold away, the bubbles rise. The field holds the mic and the
send button in one glass capsule; chips are plain. Answers write themselves
letter by letter with their last letters fading in. The background is black
with a moving orange glow at the bottom, paused off screen.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01B9uCpBfczfSCvLARne8hCd
…ubbles

Mac: the Stripe page reads a whole month (every page of payments, payouts that
reached the bank that month) and adds it up (received, payments, failed, paid
out); the balance and subscriptions move to an Account section. The last 12
months are added up every 30 minutes and published with the snapshot.
iPhone: a month switcher on the Stripe page (two years back), the chat gets a
money tool answering from those totals, and your bubbles are glass tinted orange.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01B9uCpBfczfSCvLARne8hCd
…nge glow)

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01B9uCpBfczfSCvLARne8hCd
… orange

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01B9uCpBfczfSCvLARne8hCd
…e sign)

Light, dark and tinted versions; the default choice in the icon picker is now
called Botan, the Mochi colors stay as alternates.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01B9uCpBfczfSCvLARne8hCd
The Mac and the iPhone accept deny|#token from Botan, checked against the
approval it shows like approve. Firmware 0.8.3 sends it; tests and the link
doc follow.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01B9uCpBfczfSCvLARne8hCd
A request turned down (iPhone, Botan or the notch) marks its action in the
turn, so the list no longer looks as if every search ran.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01B9uCpBfczfSCvLARne8hCd
The App Store shares one name and subtitle across a universal purchase, and
the name under the icon must match it: the iPhone app gets its own bundle id
(and its extensions), so it can be listed as Botan while the Mac stays Coucou.
Same iCloud container and app group. Its Live Activity tokens say which app
they belong to and the relay pushes to that app (allowlist APNS_APPS).
Permission texts now say Botan.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01B9uCpBfczfSCvLARne8hCd
The iPhone app is already public (Coucou — Notch Companion, iOS 2.0): a new
bundle id would leave its users behind. It stays the same app and becomes Botan
as an update; the shared App Store listing gets a name that covers both.
The relay keeps accepting the app named by the token.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01B9uCpBfczfSCvLARne8hCd
Replace the old Mochi color icons (Blue, Green, Purple, Pink, Graphite)
with the Botan proposals: Botan (default), Orange, Glow, Mochi and
Mochi Orange. The default icon's preview is now IconPreview-Botan.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01B9uCpBfczfSCvLARne8hCd
…e Botan device

Last updated November 23, 2026 (EN and FR): new tasks started from the
iPhone and Allow and continue, Stripe month totals, the on-device chat,
the relay's app field, Bluetooth on the Mac, and a new section for the
Botan device. Sections after 9 are renumbered.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01B9uCpBfczfSCvLARne8hCd
…h the Mac unlocked

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01B9uCpBfczfSCvLARne8hCd
Settings → Try the demo, or the button on the first screens and the empty
Agents list: sample agents (one waiting for your OK, one with a question),
turns with diffs, Stripe month by month, GitHub and Vercel with actions,
and a history. Allow, deny, answer, a task or an action play out on the
iPhone, with Face ID as for real. Nothing is sent to iCloud, saved or
notified; the real data waits aside and comes back when the demo ends.
A bar on top of every tab says it is the demo, with Leave.

For App Review: the tester has no Mac and no Botan.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01B9uCpBfczfSCvLARne8hCd
CHANGELOG section and README row for 0.7.0, marked unreleased until it
ships with Botan. What's new in the 16 languages: Botan's button, a task
from the iPhone, the iPhone app is now Botan, Mochi stays on the iPhone.
Version 0.7.0 for the GitHub build, 3.0 for the App Store Mac and iPhone
apps and their extensions (build numbers unchanged).

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01B9uCpBfczfSCvLARne8hCd
0.6.2 came out from main with Mochi's room; 0.7.0 comes after it, so it
carries the room too. Kept both everywhere: CHANGELOG (0.7.0 above 0.6.2),
README Versions rows, What's new (0.7.0, then 0.6.2), the settings search,
the strings. Version stays 0.7.0, build 29 (0.6.2 shipped as 28).

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01LJm3SRL9k3gBPaVtfPhwcT

This branch has not been deployed

No deployments
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.

2 participants