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
docs: Gemini CLI and Antigravity support
Louis Raillef6f7c93cc439
diff --git a/CHANGELOG.md b/CHANGELOG.mdindex 60f2332d..5967b938 100644--- a/CHANGELOG.md+++ b/CHANGELOG.md@@ -9,3 +9,4 @@- Choose the Claude model for the chat in Settings; the list comes from your Anthropic account, and Claude Sonnet 4.6 stays the default — thanks @rouderz- Windows build artifacts are now downloadable from a manual CI run — thanks @MysJofR- Any agent can talk to Mochi: tag a hook payload with `coucou_agent` (e.g. `nb-hook --agent my-agent`) and it gets its own pill in the island (#7, #9) — thanks @lacatu5+- Gemini CLI and Antigravity (agy) hook support on macOS: install from Settings and their sessions show up in the island — thanks @corefusiiondiff --git a/README.md b/README.mdindex a337a8e1..c153137e 100644--- a/README.md+++ b/README.md@@ -31,7 +31,7 @@ Meet **Mochi**: a soft little squircle with big eyes that pops out of your notch## Features-- 🤖 **Claude Code and other agents, live** — see every session in your notch: what it reads, edits and runs, step by step. Tag a hook payload with `coucou_agent` to give any agent its own pill (see [`docs/AGENTS.md`](docs/AGENTS.md)). Finished? Mochi does a happy little jump.+- 🤖 **Claude Code, Gemini CLI, Antigravity and other agents, live** — see every session in your notch: what it reads, edits and runs, step by step. Tag a hook payload with `coucou_agent` to give any agent its own pill (see [`docs/AGENTS.md`](docs/AGENTS.md)). Finished? Mochi does a happy little jump.- ✅ **Approve from the notch** — Claude Code permission requests show up with **Allow / Deny**. One click, back to work.- 🧑💻 **Jump to the right terminal** — open the exact terminal window of a session *(macOS)*.- 💬 **Ask Claude anything** — built-in chat, straight from the notch. Pick the model in Settings; the list comes from your Anthropic account.@@ -101,6 +101,8 @@ Click the Coucou icon in the menu bar (macOS) or in the system tray (Windows)| What | Why | Where the key goes ||---|---|---|| **Claude Code hooks** | live sessions and approvals | **Install hooks** — Coucou backs up `~/.claude/settings.json`, merges its hooks and shows you the diff before writing anything |+| **Gemini CLI hooks** *(macOS)* | Gemini CLI sessions in the island | **Install hooks** in Settings → Gemini CLI — backs up `~/.gemini/settings.json` |+| **Antigravity (agy) hooks** *(macOS)* | agy sessions in the island | **Install hooks** in Settings → Antigravity — backs up `~/.gemini/config/hooks.json` || **Anthropic API key** | chat and questions about files | Keychain / Windows Credential Manager || Stripe, n8n, GitHub, Vercel, Resend, Notion, Cal.com | the integration pills | Keychain / Windows Credential Manager, all optional |diff --git a/docs/AGENTS.md b/docs/AGENTS.mdindex 34c84221..bb2cda22 100644--- a/docs/AGENTS.md+++ b/docs/AGENTS.md@@ -78,6 +78,45 @@ The pill lifecycle:| `SessionEnd` | Pill removed || `SubagentStart` / `SubagentStop` | Step added to ticker |+## Real-world examples++### Gemini CLI (macOS)++Coucou supports Gemini CLI out of the box via **Settings → Gemini CLI → Install hooks**.+The installer writes to `~/.gemini/settings.json` and uses `--agent gemini` so+Gemini sessions get their own pill. The relay translates Gemini event names to canonical+Coucou events automatically.++| Gemini CLI event | Canonical event |+|---|---|+| `BeforeTool` | `PreToolUse` |+| `AfterTool` | `PostToolUse` |+| `BeforeAgent` | `UserPromptSubmit` |+| `AfterAgent` | `Stop` |++`AfterModel` is not installed — it fires on every response chunk and would flood the island.++### Antigravity — `agy` (macOS)++Coucou supports Antigravity out of the box via **Settings → Antigravity → Install hooks**.+The installer writes to `~/.gemini/config/hooks.json` (timeouts in seconds) and uses+`--agent antigravity`. The relay translates `toolCall.name` / `conversationId` to the+island's `tool_name` / `session_id`.++| Antigravity event | Canonical event |+|---|---|+| `PreInvocation` | `UserPromptSubmit` |+| `PreToolUse` | `PreToolUse` |+| `PostToolUse` | `PostToolUse` |+| `PostInvocation` | `PostToolUse` |+| `Stop` | `Stop` |++### Any other tool++Follow the generic pattern: call `nb-hook --agent <your-name> <EventName>` (macOS)+or `coucou-hook.exe --agent <your-name> <EventName>` (Windows) and let the relay+forward the event.+## Quick test (macOS)With Coucou running:diff --git a/docs/support.html b/docs/support.htmlindex 67910695..8de6a41d 100644--- a/docs/support.html+++ b/docs/support.html@@ -17,6 +17,8 @@<p>It is paused for now. Microsoft Defender wrongly flags the unsigned Windows installer as malware; a false-positive report is under review at Microsoft, and the installer will come back once it’s cleared and signed. Until then you can <a href="https://github.com/Louis-CFM/coucou/tree/main/windows#build-it-yourself">build it from source</a>.</p><h3>Mochi doesn’t show my Claude Code sessions</h3><p>Open Settings → Claude Code → <b>Install hooks</b>, review the changes, confirm, then start a new Claude Code session.</p>+<h3>Can I use Coucou with Gemini CLI or Antigravity (agy)? (macOS)</h3>+<p>Yes. Open <b>Settings → Gemini CLI → Install hooks</b> or <b>Settings → Antigravity → Install hooks</b>. The same backup-and-diff flow as Claude Code applies. Once installed, each <code>gemini</code> or <code>agy</code> session gets its own pill in the island.</p><h3>The chat doesn’t answer</h3><p>Add your Anthropic API key in Settings. API usage is billed by Anthropic, separately from a Claude subscription.</p><h3>An integration pill stays grey</h3>@@ -45,6 +47,8 @@<p>Il est en pause pour le moment. Microsoft Defender détecte à tort l’installeur Windows (non signé) comme un malware ; un signalement de faux positif est en cours d’analyse chez Microsoft, et l’installeur reviendra dès que ce sera réglé et signé. En attendant, tu peux <a href="https://github.com/Louis-CFM/coucou/tree/main/windows#build-it-yourself">le compiler depuis le code source</a>.</p><h3>Mochi n’affiche pas mes sessions Claude Code</h3><p>Réglages → Claude Code → <b>Install hooks</b>, vérifie les changements, confirme, puis lance une nouvelle session Claude Code.</p>+<h3>Puis-je utiliser Coucou avec Gemini CLI ou Antigravity (agy) ? (macOS)</h3>+<p>Oui. Ouvre <b>Réglages → Gemini CLI → Install hooks</b> ou <b>Réglages → Antigravity → Install hooks</b>. Le même flux sauvegarde + diff qu’avec Claude Code s’applique. Une fois installé, chaque session <code>gemini</code> ou <code>agy</code> obtient sa propre pastille dans l’island.</p><h3>Le chat ne répond pas</h3><p>Ajoute ta clé d’API Anthropic dans les Réglages. L’API est facturée par Anthropic, à part d’un abonnement Claude.</p><h3>Une pastille d’intégration reste grise</h3>