SPB Git

Repository Public

UI-AGENT-BRIEF.md 5.2 KB

# Common brief for the macOS and iOS interface workstreams

Product: Claude Remote and Codex Remote — native clients (Swift 6, SwiftUI, no WebView anywhere) of https://claude.spboucher.ai and https://codex.spboucher.ai. They remote-control the real Claude Code / Codex CLI running in persistent tmux sessions on the MacLustr cluster. One code base, two brandings: everything that differs comes from AgentProfile.claude / .codex (ClaudeRemoteModels). Never simulate a terminal, never invent data: unknown values are shown as unknown.

# Read first

  • docs/APPLE-ARCHITECTURE.md (public API of the shared package Packages/ClaudeRemoteKit — use it, do not re-implement networking, auth, stores or the terminal; if something is missing or wrong in the kit, make a minimal additive fix in the package, keep its tests green (Scripts/kit.sh test) and list it in your report. The other UI agent uses the kit at the same time: never rename or remove public API).
  • docs/NATIVE-API-CONTRACT.md, docs/APPLE-NATIVE-AUDIT.md.
  • Backend mirror (read-only) /tmp/cr-audit: docs/native-clients.md, docs/native-dev-stack.md, and the web app apps/web/src as the functional reference for every screen (what each page shows and does).
  • Proven sibling recipes on this Mac (read, never modify): ../SPChat and ../SPChat-iOS (xcodegen, passkeys, Scripts for build/test/release/notarize/TestFlight, asc.py, provision.py), ../SPTerm (terminal UX).
  • Ignore ~/Desktop/Cluster/apple/CLAUDE.md (spec of an unrelated project).

# Identity and signing facts (real, do not invent others)

  • Team 3YM54G49SN. Bundle ids ai.spboucher.clauderemote, ai.spboucher.codexremote (same id on macOS and iOS); Debug configuration uses the suffix .dev; widget extensions <bundle>.widgets. All are registered with Associated Domains, Push Notifications, App Groups (Scripts/register-ids.py, Scripts/asc.py).
  • Associated domains: webcredentials:claude.spboucher.ai / webcredentials:codex.spboucher.ai (+ applinks:). The AASA files are live in production and list <team>.<bundle> and <team>.<bundle>.dev.
  • The passkey must be the SAME one as on the website (RP ID = the domain), presented by the system sheet with Touch ID / Face ID. Sign-in screen offers exactly what the web offers: "Sign in with passkey" (primary) and username + password followed by the second factor (passkey, or TOTP when enrolled). No other credential.
  • Mac signing identity "Developer ID Application: Simon-Pierre Boucher (3YM54G49SN)"; notarytool keychain profile MacLustr-Notarize; App Store Connect API keys in ~/.appstoreconnect/private_keys (see how the sibling scripts find key id / issuer; never print secrets). iOS records exist on App Store Connect: Claude Remote 6837186806 (SKU clauderemote-ios-001), Codex Remote 6837186862 (SKU codexremote-ios-001).
  • Version 1.0.0, build 1. ITSAppUsesNonExemptEncryption = false. Privacy manifest included.

# Real backend for development

Dev stack (fake echo agent, safe): ssh -o ControlMaster=no -o ControlPath=none -N -L 8625:127.0.0.1:8625 M5M36 (kill your tunnel by PID only), base URL http://localhost:8625, fixtures on the node at ~/cr-nativedev-data/fixtures.json (copy to a 0600 temp file outside the repo, never commit). The stack is shared with the other UI agent: never run reset or down; unlock clears a login throttle; TOTP codes are single-use per 30 s step, so serialise sign-ins and retry on the next step. Provide a DEBUG-only way to point the app at it (launch arguments such as -CRBaseURL, -CRDevLogin <fixtures path> performing password+TOTP automatically) — compiled out of Release. Use the fixture shell session / create shell sessions for terminal work. Never sign in to production, never touch the owner's production sessions.

# Rules on this Mac

  • Other Claude sessions are working on this machine: use your own -derivedDataPath under build/, never pkill/killall by name (kill by PID, target your own build path), do not shut down/erase simulators you did not create (create your own, prefixed "CR "), keep GUI automation to the minimum and never type into windows you did not launch. xcodebuild needs -skipPackagePluginValidation (SwiftTerm plugin).
  • Do not commit or push. Do not modify the other platform's directory (Apps/macOS vs Apps/iOS).
  • No hardcoded secrets; nothing sensitive in logs, notifications, widgets, Handoff payloads or Spotlight items (no terminal content, no prompts).
  • Report only what you actually ran. Keep a truthful list of what is not verified.

# Design direction

"Premium developer workstation meets Apple-native productivity software." Use ClaudeRemoteDesign tokens and components; the real brand accents are indigo/violet with a coral warm pair for Claude and emerald for Codex (already in the kit). Light and dark, excellent contrast, SF Symbols, refined materials, elegant loading/empty/ error states, smooth but restrained motion honouring Reduce Motion, full VoiceOver labels, Dynamic Type on iOS. The app icon is derived from the brand assets in the mirror (docs/brand, apps/web/public/brand|icons), one per branding, proper asset catalogs for the platform. Never animate a container that holds a terminal view.

Files main
Menu

Theme