A tiny friend in your Mac's notch and on your iPhone that keeps an eye on your AI coding agents: Claude Code, Codex, Cursor, Gemini CLI, Antigravity and more. Approve from the notch or your Lock Screen.
Swift ai-agentsanthropicantigravityclaudeclaude-codecodexcursordynamic-islandgemini-cliiosiphonlinuxmacosmacos-appmenubar-appnotchopen-sourceswiftswiftuiwindows
Windows: mini Mochis were drawn at 60 % size, and a white-on-white dropdown
Louis Raille58a5199a14a8
diff --git a/windows/README.md b/windows/README.mdindex 3a4db847..2a48cecc 100644--- a/windows/README.md+++ b/windows/README.md@@ -38,7 +38,8 @@ then this is what an unsigned installer looks like on Windows, and you can alway## Using it-<img src="screenshots/compact.png" width="308" alt="The compact island">+<img src="screenshots/compact.png" width="292" alt="The compact island, with the integration pills as mini Mochis">+<img src="screenshots/overview.png" width="640" alt="The overview: the focused integration on the left, the other pills on the right"><img src="screenshots/approval.png" width="640" alt="A Claude Code permission request, with Deny, Allow and Always"><img src="screenshots/chat.png" width="640" alt="Chatting with Claude from the island"><img src="screenshots/drop.png" width="640" alt="Mochi turned into a box, waiting for a file">diff --git a/windows/screenshots/compact.png b/windows/screenshots/compact.pngindex a99cd605..a739d165 100644Binary files a/windows/screenshots/compact.png and b/windows/screenshots/compact.png differdiff --git a/windows/screenshots/overview.png b/windows/screenshots/overview.pngnew file mode 100644index 00000000..321e29f4Binary files /dev/null and b/windows/screenshots/overview.png differdiff --git a/windows/src/island/island.ts b/windows/src/island/island.tsindex 5ffb60af..556ff6b0 100644--- a/windows/src/island/island.ts+++ b/windows/src/island/island.ts@@ -406,8 +406,8 @@ export class Island {this.islandEl.style.transform = `translateX(-50%)`;// These follow the island as it resizes, so they belong here rather than in// the state-driven DOM sync.- this.miniGrid.style.left = `${w - 40 - 14}px`;- this.miniGrid.style.top = `${hh / 2 - 14}px`;+ this.miniGrid.style.left = `${w - 40 - 14.5}px`;+ this.miniGrid.style.top = `${hh / 2 - 14.5}px`;this.greetingCanvas.style.left = `${(w - EXPANDED_W) / 2}px`;const rect = { x: (PANEL_W - w) / 2, y: 0, w, h: hh };@@ -761,7 +761,7 @@ export class Island {this.miniGrid.dataset.key = key;this.miniGrid.replaceChildren();for (const t of others) {- this.miniGrid.append(createMiniBot(t, 12));+ this.miniGrid.append(createMiniBot(t, 13));}pruneMiniBots();}diff --git a/windows/src/mochi/minibots.ts b/windows/src/mochi/minibots.tsindex 5f7f2c5d..fbf2e03b 100644--- a/windows/src/mochi/minibots.ts+++ b/windows/src/mochi/minibots.ts@@ -14,17 +14,28 @@ interface MiniBot {const live = new Map<HTMLCanvasElement, MiniBot>();/**- * Creates a mini Mochi canvas of `cssSize` CSS pixels. The engine canvas is- * `cssSize / 0.6` wide (the body fills 60 % of it), exactly like SwiftUI.+ * Creates a mini Mochi whose **body** is `bodySize` CSS pixels across.+ *+ * The engine draws the body at 60 % of its canvas, so the canvas is+ * `bodySize / 0.6` and is centred in a `bodySize` slot, overflowing it — the+ * same thing SwiftUI does with a `.frame(width: 22/0.6)` inside a+ * `.frame(width: 22)`. Sizing the canvas itself to `bodySize` would shrink the+ * whole drawing to 60 %, which is what used to happen.*/-export function createMiniBot(task: AgentTask, cssSize: number): HTMLCanvasElement {+export function createMiniBot(task: AgentTask, bodySize: number): HTMLElement {+ const slot = document.createElement("span");+ slot.className = "mini";+ slot.style.width = `${bodySize}px`;+ slot.style.height = `${bodySize}px`;+const canvas = document.createElement("canvas");- const engineSize = cssSize / 0.6;+ const engineSize = bodySize / 0.6;const dpr = Math.min(2, window.devicePixelRatio || 1);canvas.width = Math.round(engineSize * dpr);canvas.height = Math.round(engineSize * dpr);- canvas.style.width = `${cssSize}px`;- canvas.style.height = `${cssSize}px`;+ canvas.style.width = `${engineSize}px`;+ canvas.style.height = `${engineSize}px`;+ slot.append(canvas);const engine = new BotEngine();engine.isMini = true;@@ -38,7 +49,7 @@ export function createMiniBot(task: AgentTask, cssSize: number): HTMLCanvasEleme}live.set(canvas, { canvas, engine, cssSize: engineSize, taskId: task.id });- return canvas;+ return slot;}export function releaseMiniBot(canvas: HTMLCanvasElement) {diff --git a/windows/src/settings/settings.css b/windows/src/settings/settings.cssindex 0f5e95d3..605b8202 100644--- a/windows/src/settings/settings.css+++ b/windows/src/settings/settings.css@@ -1,6 +1,10 @@/* Settings window — same palette as the island, laid out as a normal window. */:root {+ /* Makes Windows render the native dropdown and scrollbars dark — without it+ the <select> popup is white text on white. */+ color-scheme: dark;+--font: system-ui, "Segoe UI Variable Text", "Segoe UI", sans-serif;--mono: "Cascadia Mono", "Consolas", ui-monospace, monospace;--ink: #f5f6f8;@@ -189,6 +193,8 @@ input[type="range"]::-webkit-slider-thumb {}input[type="number"],+input[type="text"],+input[type="password"],select {font: 400 12.5px var(--font);background: rgba(255, 255, 255, 0.07);@@ -198,6 +204,23 @@ select {padding: 5px 8px;}+input::placeholder {+ color: var(--dim-2);+}++input:focus,+select:focus {+ outline: none;+ border-color: rgba(255, 255, 255, 0.28);+}++/* The popup is drawn by the OS: give it an explicit pair of colours rather than+ inheriting white on white. */+select option {+ background-color: #1a1c20;+ color: var(--ink);+}+.diff {font: 400 11.5px/1.5 var(--mono);background: #08090b;diff --git a/windows/src/style.css b/windows/src/style.cssindex 10b01577..57dfcb97 100644--- a/windows/src/style.css+++ b/windows/src/style.css@@ -2,6 +2,8 @@Every colour below is copied from the Swift views. */:root {+ color-scheme: dark;+--font: system-ui, "Segoe UI Variable Text", "Segoe UI", "Segoe UI Emoji", sans-serif;--mono: "Cascadia Mono", "Consolas", ui-monospace, monospace;@@ -108,19 +110,30 @@ body {/* Compact 2×2 mini grid, to the right of the notch. */#mini-grid {position: absolute;- width: 28px;- height: 28px;+ width: 29px;+ height: 29px;display: grid;- grid-template-columns: 12px 12px;- grid-auto-rows: 12px;- gap: 4px;+ grid-template-columns: 13px 13px;+ grid-auto-rows: 13px;+ gap: 3px;pointer-events: none;transition: opacity 0.25s ease-in-out;}-#mini-grid canvas {- width: 12px;- height: 12px;+/* A mini Mochi: the slot is the body, the canvas is larger and overflows it so+ hands, badges and particles are not cut off. */+.mini {+ position: relative;+ display: inline-block;+ flex: 0 0 auto;+}++.mini canvas {+ position: absolute;+ left: 50%;+ top: 50%;+ transform: translate(-50%, -50%);+ pointer-events: none;}/* ── Content shell (expanded) ───────────────────────────────────────────── */@@ -478,11 +491,8 @@ body {box-shadow 0.18s, filter 0.18s;}-.pill canvas {- width: 22px;- height: 22px;- margin-left: 8px;- flex: 0 0 22px;+.pill .mini {+ margin-left: 7px;}.pill .lbl {diff --git a/windows/src/views/views.ts b/windows/src/views/views.tsindex 0051c720..f8fc0397 100644--- a/windows/src/views/views.ts+++ b/windows/src/views/views.ts@@ -223,7 +223,7 @@ function buildOverview(actions: ViewActions): ViewHost {function buildPill(task: AgentTask, actions: ViewActions): HTMLElement {const label = task.id === "integration_claude" ? "VS Code" : task.name;- const canvas = createMiniBot(task, 22);+ const canvas = createMiniBot(task, 24);const pill = h("div",{ class: "pill", onclick: () => actions.setFocus(task.id) },