<?xml version="1.0" encoding="UTF-8"?>
<rss version="2.0" xmlns:atom="http://www.w3.org/2005/Atom" xmlns:dc="http://purl.org/dc/elements/1.1/">
  <channel>
    <title>DEV Community: Seven Tao</title>
    <description>The latest articles on DEV Community by Seven Tao (@seven_tao_de443a2f126fc76).</description>
    <link>https://dev.to/seven_tao_de443a2f126fc76</link>
    <image>
      <url>https://media2.dev.to/dynamic/image/width=90,height=90,fit=cover,gravity=auto,format=auto/https:%2F%2Fdev-to-uploads.s3.us-east-2.amazonaws.com%2Fuploads%2Fuser%2Fprofile_image%2F4264889%2F24f97b73-e855-4958-a2c5-9b5c3c72170e.png</url>
      <title>DEV Community: Seven Tao</title>
      <link>https://dev.to/seven_tao_de443a2f126fc76</link>
    </image>
    <atom:link rel="self" type="application/rss+xml" href="https://dev.to/feed/seven_tao_de443a2f126fc76"/>
    <language>en</language>
    <item>
      <title>How I Built a Zero-Knowledge E2EE Native iOS &amp; Android Companion for Google Antigravity</title>
      <dc:creator>Seven Tao</dc:creator>
      <pubDate>Wed, 25 Nov 2026 13:56:18 +0000</pubDate>
      <link>https://dev.to/seven_tao_de443a2f126fc76/how-i-built-a-zero-knowledge-e2ee-native-ios-android-companion-for-google-antigravity-3mm6</link>
      <guid>https://dev.to/seven_tao_de443a2f126fc76/how-i-built-a-zero-knowledge-e2ee-native-ios-android-companion-for-google-antigravity-3mm6</guid>
      <description>&lt;p&gt;If you run multi-step refactors or &lt;code&gt;/swarm&lt;/code&gt; jobs in &lt;strong&gt;Google Antigravity&lt;/strong&gt;, you probably know the exact friction: the agent runs for 15 minutes, pauses on a shell command or file-write approval the moment you walk away from your desk, and sits idle until you return.&lt;/p&gt;

&lt;p&gt;Google ships an official browser-based &lt;strong&gt;Remote Control (Web PWA)&lt;/strong&gt; experience, which is convenient for quick checks with zero setup. Still, once you start using Antigravity heavily on macOS, Linux/NAS, or Windows, three practical limitations show up fast:&lt;/p&gt;

&lt;ol&gt;
&lt;li&gt;
&lt;strong&gt;iOS lock-screen &amp;amp; background limits&lt;/strong&gt;: Web PWAs cannot render Dynamic Island Live Activities, iOS Home/Lock Screen WidgetKit gauges, or reliable lock-screen command approval actions.&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;Multi-agent &amp;amp; quota observability&lt;/strong&gt;: Watching a &lt;code&gt;/swarm&lt;/code&gt; topology, checking 5-hour vs. weekly quota burn rates across Gemini and Claude pools, or spotting a sudden Prompt Cache Hit(%) drop is painful on a mobile browser or pinch-zoomed remote desktop.&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;Self-hosted / enterprise networks&lt;/strong&gt;: Many developers run Antigravity on local macOS machines, home Linux/NAS boxes, or restricted GCP/corporate environments where LAN Wi-Fi, Tailscale, or a bring-your-own Cloudflare Tunnel is strongly preferred over cloud session routing.&lt;/li&gt;
&lt;/ol&gt;

&lt;p&gt;That is why I built &lt;a href="https://mgy.jiuge.space/" rel="noopener noreferrer"&gt;&lt;strong&gt;Multigravity&lt;/strong&gt;&lt;/a&gt; (&lt;a href="https://github.com/GHSaiMo/antigravity-mobile" rel="noopener noreferrer"&gt;&lt;code&gt;GHSaiMo/antigravity-mobile&lt;/code&gt;&lt;/a&gt;) — a 100% free, MIT open-source native &lt;strong&gt;SwiftUI (iOS / iPadOS)&lt;/strong&gt; and &lt;strong&gt;Jetpack Compose (Android)&lt;/strong&gt; companion backed by a single local Go gateway binary (&lt;code&gt;mgy&lt;/code&gt;).&lt;/p&gt;

&lt;blockquote&gt;
&lt;p&gt;&lt;strong&gt;Quick disambiguation:&lt;/strong&gt; Multigravity (&lt;code&gt;mgy&lt;/code&gt;) is strictly a mobile companion for your &lt;em&gt;official local&lt;/em&gt; Google Antigravity IDE/CLI. It is unrelated to the desktop profile launcher &lt;code&gt;multigravity-pro&lt;/code&gt;, and it is &lt;strong&gt;not&lt;/strong&gt; a third-party coding harness or API proxy.&lt;/p&gt;
&lt;/blockquote&gt;




&lt;h2&gt;
  
  
  Architecture: Keep the Official Local Antigravity Harness Untouched
&lt;/h2&gt;

&lt;p&gt;The #1 design rule was &lt;strong&gt;zero Google token extraction and zero API proxying&lt;/strong&gt;.&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight plaintext"&gt;&lt;code&gt;iPhone / iPad / Android / Web PWA
   ──[LAN Wi-Fi | Tailscale | Zero-Knowledge E2EE Relay | Cloudflare HTTPS]──▶
Local Go Gateway (`mgy` on your macOS / Linux / Windows host)
   ──▶ Official Local Google Antigravity Core (`language_server` / CLI)
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;p&gt;Every model invocation, MCP tool call, skill, workspace file edit, and &lt;code&gt;/swarm&lt;/code&gt; worker stays inside your official local Antigravity runtime. The &lt;code&gt;mgy&lt;/code&gt; gateway only exposes a secure remote control and observability bridge to your paired devices.&lt;/p&gt;




&lt;h2&gt;
  
  
  Zero-Knowledge E2EE (&lt;code&gt;mgy-e2ee-v1&lt;/code&gt;) &amp;amp; Fail-Closed Plaintext Rejection
&lt;/h2&gt;

&lt;p&gt;Direct LAN Wi-Fi and Tailscale routes never leave your network. When you connect from cellular via the multi-region relay pool, Multigravity does not ask you to trust relay operators with TLS termination.&lt;/p&gt;

&lt;p&gt;Inside &lt;a href="https://github.com/GHSaiMo/antigravity-mobile/blob/main/internal/e2ee/crypto.go" rel="noopener noreferrer"&gt;&lt;code&gt;internal/e2ee/crypto.go&lt;/code&gt;&lt;/a&gt; and &lt;a href="https://github.com/GHSaiMo/antigravity-mobile/blob/main/internal/e2ee/http.go" rel="noopener noreferrer"&gt;&lt;code&gt;internal/e2ee/http.go&lt;/code&gt;&lt;/a&gt;:&lt;/p&gt;

&lt;ul&gt;
&lt;li&gt;On startup, &lt;code&gt;mgy&lt;/code&gt; generates a persistent NIST &lt;strong&gt;P-256 ECDH&lt;/strong&gt; identity key stored locally at &lt;code&gt;~/.multigravity/e2ee_identity.json&lt;/code&gt; (&lt;code&gt;0600&lt;/code&gt;).&lt;/li&gt;
&lt;li&gt;Scanning the one-time terminal QR code exchanges device public keys and derives directional session keys via &lt;strong&gt;HKDF-SHA256&lt;/strong&gt; (&lt;code&gt;mgy-e2ee-v1:&amp;lt;deviceID&amp;gt;:&amp;lt;direction&amp;gt;&lt;/code&gt;).&lt;/li&gt;
&lt;li&gt;All HTTP envelopes and WebSocket frames over the relay are sealed with &lt;strong&gt;AES-256-GCM&lt;/strong&gt; using fresh 96-bit nonces.&lt;/li&gt;
&lt;li&gt;Any unencrypted request flagged as arriving over an untrusted relay context (&lt;code&gt;WithRelayTransport&lt;/code&gt;) is hard-rejected with &lt;strong&gt;&lt;code&gt;HTTP 426 Upgrade Required&lt;/code&gt;&lt;/strong&gt; — eliminating silent downgrade bugs.&lt;/li&gt;
&lt;/ul&gt;

&lt;p&gt;For remote iOS lock-screen pushes and Dynamic Island updates, the local gateway calls an open-source, &lt;strong&gt;stateless Cloudflare Worker&lt;/strong&gt; (&lt;a href="https://github.com/GHSaiMo/antigravity-mobile/tree/main/scripts/cloudflare-apns-worker" rel="noopener noreferrer"&gt;&lt;code&gt;scripts/cloudflare-apns-worker/&lt;/code&gt;&lt;/a&gt;) that caches an ES256 APNs JWT in memory for 45 minutes with zero database and zero logging — and you can self-host it on Cloudflare's free tier in 3 minutes.&lt;/p&gt;




&lt;h2&gt;
  
  
  What Native Mobile Unlocks Day to Day
&lt;/h2&gt;

&lt;div class="table-wrapper-paragraph"&gt;&lt;table&gt;
&lt;thead&gt;
&lt;tr&gt;
&lt;th&gt;Workflow&lt;/th&gt;
&lt;th&gt;Official Remote Control (Web PWA)&lt;/th&gt;
&lt;th&gt;Remote Desktop (RDP / VNC)&lt;/th&gt;
&lt;th&gt;Multigravity (Native MIT Companion)&lt;/th&gt;
&lt;/tr&gt;
&lt;/thead&gt;
&lt;tbody&gt;
&lt;tr&gt;
&lt;td&gt;&lt;strong&gt;Client&lt;/strong&gt;&lt;/td&gt;
&lt;td&gt;Mobile browser / PWA&lt;/td&gt;
&lt;td&gt;Desktop screen stream&lt;/td&gt;
&lt;td&gt;Native SwiftUI (App Store) + Jetpack Compose (Android) + PWA&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;&lt;strong&gt;Lock-Screen Approvals&lt;/strong&gt;&lt;/td&gt;
&lt;td&gt;Limited iOS web push&lt;/td&gt;
&lt;td&gt;Unlock &amp;amp; zoom desktop UI&lt;/td&gt;
&lt;td&gt;Native APNs/FCM push + diff preflight + inbox pinning&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;&lt;strong&gt;Ambient Progress&lt;/strong&gt;&lt;/td&gt;
&lt;td&gt;None on Lock Screen&lt;/td&gt;
&lt;td&gt;None&lt;/td&gt;
&lt;td&gt;Dynamic Island, Lock Screen Live Activities &amp;amp; CarPlay&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;&lt;strong&gt;&lt;code&gt;/swarm&lt;/code&gt; Multi-Agent&lt;/strong&gt;&lt;/td&gt;
&lt;td&gt;Basic mobile web&lt;/td&gt;
&lt;td&gt;Desktop window only&lt;/td&gt;
&lt;td&gt;Native Hive topology, live worker states &amp;amp; actual model badges&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;&lt;strong&gt;Quota &amp;amp; Cache Audit&lt;/strong&gt;&lt;/td&gt;
&lt;td&gt;Basic status&lt;/td&gt;
&lt;td&gt;Desktop window only&lt;/td&gt;
&lt;td&gt;5-pool 5h/7d gauges, iOS Widgets, 20-week Token heatmap &amp;amp; cache-drop alerts&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;&lt;strong&gt;Host Sleep Guard&lt;/strong&gt;&lt;/td&gt;
&lt;td&gt;OS default&lt;/td&gt;
&lt;td&gt;Host may sleep&lt;/td&gt;
&lt;td&gt;Cross-platform task-time idle sleep lock (releases 2m after idle)&lt;/td&gt;
&lt;/tr&gt;
&lt;/tbody&gt;
&lt;/table&gt;&lt;/div&gt;

&lt;p&gt;A small detail that turned out to be hugely popular is the &lt;strong&gt;5-pool Quota Guardian&lt;/strong&gt; (&lt;a href="https://github.com/GHSaiMo/antigravity-mobile/blob/main/internal/cockpit/quota_alert.go" rel="noopener noreferrer"&gt;&lt;code&gt;internal/cockpit/quota_alert.go&lt;/code&gt;&lt;/a&gt;):&lt;/p&gt;

&lt;ul&gt;
&lt;li&gt;Tracks &lt;strong&gt;Gemini 5h, Gemini Weekly, Claude 5h, Claude Weekly, and Gemini 4 Argon&lt;/strong&gt; on iOS Home/Lock Screen widgets.&lt;/li&gt;
&lt;li&gt;Sends deduplicated low-quota alerts (default &lt;code&gt;&amp;lt;=20%&lt;/code&gt; warn / &lt;code&gt;&amp;lt;=5%&lt;/code&gt; critical) with a 60-minute rolling depletion ETA when exhaustion will beat the reset timer.&lt;/li&gt;
&lt;li&gt;Detects early official &lt;strong&gt;Bonus Resets&lt;/strong&gt; (&lt;code&gt;&amp;gt;=95%&lt;/code&gt; refill ahead of schedule) as well as unexpected idle/rapid quota drops and Prompt Cache Hit(%) degradation.&lt;/li&gt;
&lt;/ul&gt;




&lt;h2&gt;
  
  
  Try It in 5 Seconds (No Gateway Required First)
&lt;/h2&gt;

&lt;p&gt;If you just want to feel the native UI before installing anything on your computer, the &lt;a href="https://apps.apple.com/app/id6835508934" rel="noopener noreferrer"&gt;iOS App Store release&lt;/a&gt; includes a built-in &lt;strong&gt;offline Demo Mode&lt;/strong&gt; showcasing streaming conversations, high-risk approval cards, &lt;code&gt;/swarm&lt;/code&gt; Hive topology, dark Mermaid plans, and 5h/weekly quota widgets.&lt;/p&gt;

&lt;p&gt;When you are ready to pair your own machine:&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight shell"&gt;&lt;code&gt;&lt;span class="c"&gt;# macOS / Linux / Windows (Git Bash)&lt;/span&gt;
curl -fsSL https://raw.githubusercontent.com/GHSaiMo/antigravity-mobile/main/scripts/install.sh &lt;span class="o"&gt;|&lt;/span&gt; bash

&lt;span class="c"&gt;# Windows (PowerShell)&lt;/span&gt;
irm https://raw.githubusercontent.com/GHSaiMo/antigravity-mobile/main/scripts/install.ps1 &lt;span class="o"&gt;|&lt;/span&gt; iex

&lt;span class="c"&gt;# Launch gateway and scan the terminal QR code&lt;/span&gt;
mgy
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;h3&gt;
  
  
  Links &amp;amp; Technical Deep Dives
&lt;/h3&gt;

&lt;ul&gt;
&lt;li&gt;
&lt;strong&gt;Website:&lt;/strong&gt; &lt;a href="https://mgy.jiuge.space/" rel="noopener noreferrer"&gt;https://mgy.jiuge.space/&lt;/a&gt;
&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;GitHub (MIT):&lt;/strong&gt; &lt;a href="https://github.com/GHSaiMo/antigravity-mobile" rel="noopener noreferrer"&gt;https://github.com/GHSaiMo/antigravity-mobile&lt;/a&gt;
&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;iOS App Store (Free):&lt;/strong&gt; &lt;a href="https://apps.apple.com/app/id6835508934" rel="noopener noreferrer"&gt;https://apps.apple.com/app/id6835508934&lt;/a&gt;
&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;Android Signed APK Releases:&lt;/strong&gt; &lt;a href="https://github.com/GHSaiMo/antigravity-mobile/releases/latest" rel="noopener noreferrer"&gt;https://github.com/GHSaiMo/antigravity-mobile/releases/latest&lt;/a&gt;
&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;Deep Dives:&lt;/strong&gt; &lt;a href="https://mgy.jiuge.space/security.html" rel="noopener noreferrer"&gt;Security &amp;amp; &lt;code&gt;mgy-e2ee-v1&lt;/code&gt;&lt;/a&gt; · &lt;a href="https://mgy.jiuge.space/swarm-mobile.html" rel="noopener noreferrer"&gt;&lt;code&gt;/swarm&lt;/code&gt; &amp;amp; Lock-Screen Approvals&lt;/a&gt; · &lt;a href="https://mgy.jiuge.space/quota-widget.html" rel="noopener noreferrer"&gt;Quota Widgets &amp;amp; Token Heatmap&lt;/a&gt;
&lt;/li&gt;
&lt;/ul&gt;

</description>
      <category>ai</category>
      <category>ios</category>
      <category>go</category>
      <category>opensource</category>
    </item>
  </channel>
</rss>
