SPB Git

Repository Public

UI-AGENT-BRIEF.md 5.2 KB 63 lines markdown

1# Common brief for the macOS and iOS interface workstreams23Product: **Claude Remote** and **Codex Remote** — native clients (Swift 6, SwiftUI, no WebView anywhere) of4https://claude.spboucher.ai and https://codex.spboucher.ai. They remote-control the real Claude Code / Codex5CLI running in persistent tmux sessions on the MacLustr cluster. One code base, two brandings: everything6that differs comes from `AgentProfile.claude` / `.codex` (ClaudeRemoteModels). Never simulate a terminal,7never invent data: unknown values are shown as unknown.89## Read first10- `docs/APPLE-ARCHITECTURE.md` (public API of the shared package `Packages/ClaudeRemoteKit` — use it, do not11  re-implement networking, auth, stores or the terminal; if something is missing or wrong in the kit, make a12  minimal additive fix in the package, keep its tests green (`Scripts/kit.sh test`) and list it in your report.13  The other UI agent uses the kit at the same time: never rename or remove public API).14- `docs/NATIVE-API-CONTRACT.md`, `docs/APPLE-NATIVE-AUDIT.md`.15- Backend mirror (read-only) `/tmp/cr-audit`: `docs/native-clients.md`, `docs/native-dev-stack.md`, and the web16  app `apps/web/src` as the functional reference for every screen (what each page shows and does).17- Proven sibling recipes on this Mac (read, never modify): `../SPChat` and `../SPChat-iOS` (xcodegen, passkeys,18  Scripts for build/test/release/notarize/TestFlight, `asc.py`, `provision.py`), `../SPTerm` (terminal UX).19- Ignore `~/Desktop/Cluster/apple/CLAUDE.md` (spec of an unrelated project).2021## Identity and signing facts (real, do not invent others)22- Team `3YM54G49SN`. Bundle ids `ai.spboucher.clauderemote`, `ai.spboucher.codexremote` (same id on macOS and23  iOS); Debug configuration uses the suffix `.dev`; widget extensions `<bundle>.widgets`. All are registered with24  Associated Domains, Push Notifications, App Groups (`Scripts/register-ids.py`, `Scripts/asc.py`).25- Associated domains: `webcredentials:claude.spboucher.ai` / `webcredentials:codex.spboucher.ai` (+ `applinks:`).26  The AASA files are live in production and list `<team>.<bundle>` and `<team>.<bundle>.dev`.27- The passkey must be the SAME one as on the website (RP ID = the domain), presented by the system sheet with28  Touch ID / Face ID. Sign-in screen offers exactly what the web offers: "Sign in with passkey" (primary) and29  username + password followed by the second factor (passkey, or TOTP when enrolled). No other credential.30- Mac signing identity "Developer ID Application: Simon-Pierre Boucher (3YM54G49SN)"; notarytool keychain profile31  `MacLustr-Notarize`; App Store Connect API keys in `~/.appstoreconnect/private_keys` (see how the sibling32  scripts find key id / issuer; never print secrets). iOS records exist on App Store Connect:33  Claude Remote `6837186806` (SKU clauderemote-ios-001), Codex Remote `6837186862` (SKU codexremote-ios-001).34- Version 1.0.0, build 1. `ITSAppUsesNonExemptEncryption` = false. Privacy manifest included.3536## Real backend for development37Dev stack (fake echo agent, safe): `ssh -o ControlMaster=no -o ControlPath=none -N -L 8625:127.0.0.1:8625 M5M36`38(kill your tunnel by PID only), base URL `http://localhost:8625`, fixtures on the node at39`~/cr-nativedev-data/fixtures.json` (copy to a 0600 temp file outside the repo, never commit). The stack is shared40with the other UI agent: never run `reset` or `down`; `unlock` clears a login throttle; TOTP codes are single-use41per 30 s step, so serialise sign-ins and retry on the next step. Provide a DEBUG-only way to point the app at it42(launch arguments such as `-CRBaseURL`, `-CRDevLogin <fixtures path>` performing password+TOTP automatically) —43compiled out of Release. Use the fixture **shell** session / create shell sessions for terminal work.44Never sign in to production, never touch the owner's production sessions.4546## Rules on this Mac47- Other Claude sessions are working on this machine: use your own `-derivedDataPath` under `build/`, never48  `pkill`/`killall` by name (kill by PID, target your own build path), do not shut down/erase simulators you did49  not create (create your own, prefixed "CR "), keep GUI automation to the minimum and never type into windows50  you did not launch. `xcodebuild` needs `-skipPackagePluginValidation` (SwiftTerm plugin).51- Do not commit or push. Do not modify the other platform's directory (`Apps/macOS` vs `Apps/iOS`).52- No hardcoded secrets; nothing sensitive in logs, notifications, widgets, Handoff payloads or Spotlight items53  (no terminal content, no prompts).54- Report only what you actually ran. Keep a truthful list of what is not verified.5556## Design direction57"Premium developer workstation meets Apple-native productivity software." Use `ClaudeRemoteDesign` tokens and58components; the real brand accents are indigo/violet with a coral warm pair for Claude and emerald for Codex59(already in the kit). Light and dark, excellent contrast, SF Symbols, refined materials, elegant loading/empty/60error states, smooth but restrained motion honouring Reduce Motion, full VoiceOver labels, Dynamic Type on iOS.61The app icon is derived from the brand assets in the mirror (`docs/brand`, `apps/web/public/brand|icons`), one per62branding, proper asset catalogs for the platform. Never animate a container that holds a terminal view.63
Files main
Menu

Theme