Port of the Mac's "Approve commands from the notch" (#934). Antigravity has
no permission request: it runs PreToolUse before its own permission check and
waits for the hook's decision. With Settings → Agents → Antigravity →
Approve commands from the notch (off by default, shown once the hooks are
installed), a run_command that none of Antigravity's command(...) rules
covers waits on the island's card: Allow prints {"decision":"allow"}, Deny
{"decision":"deny","reason":"Denied from Coucou"}, and Reply in terminal, no
click, a full card or Coucou closed print {"decision":"ask"}. Coucou never
allows a command without a click.
- agy_rules.rs: AgyPermissionRules.swift in Rust (CLI settings, global
grants, the session's project or "outside of project"), with the Swift
tests plus Windows folder URIs and paths.
- agy_approvals.rs: the gate (setting, run_command, hooks.json timeout >=
120 s, rules verdict unknown, wait min(timeout - 10, 110) s) and the
setting's commands, owned by Rust like the phone switches.
- Relay: Antigravity's PreToolUse is tagged coucou_kind agy_pre_tool and
reads one line: "ask" at once, or "pending" then allow / deny / ask. 3 s
for the first line, 115 s once pending. A command longer than what the
relay forwards is flagged and gets no card.
- App (pipe.rs): the event goes to the island as usual, then the card as a
PermissionRequest; "pending" once the island acks it.
- PreToolUse hook installed with a 120 s timeout; Settings shows the Mac's
"install again" hint for hooks written with 10 s.
- Card: Deny, Allow and Reply in terminal for Antigravity only. Mac strings
reused (all already in strings.json), no extra.json entries needed.
- CHANGELOG, windows/README.md, docs/AGENTS.md.
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01LJm3SRL9k3gBPaVtfPhwcT
Antigravity has no permission-request event: it runs PreToolUse before its
own permission check and waits for the hook's decision. With the new
Settings → Antigravity → Approve commands from the notch (off by default),
a run_command that none of Antigravity's command(...) rules covers waits on
the approval card: Allow prints {"decision":"allow"}, Deny prints "deny",
and Reply in terminal, no click or Coucou closed print "ask" (Antigravity's
own prompt). Coucou never allows a command without a click.
- AgyPermissionRules reads Antigravity's allow and deny rules (CLI settings,
shared global grants, the session's project), so commands they cover get
no card. Tested by scripts/test-agy-permissions.sh, added to CI.
- Relay: Antigravity's PreToolUse asks Coucou and reads one line back:
"ask" at once, or {"pending":true} then the decision. It waits 3 s for the
first line and 115 s for the click. The shell wrapper answers "ask" when
Python is missing.
- The PreToolUse hook is installed with a 120 s timeout. Settings asks to
install again the hooks written with the old 10 s.
- Card: Deny, Allow and Reply in terminal for Antigravity; other agents'
cards are unchanged.
- Strings in the 14 languages, CHANGELOG, AGENTS.md, SPEC.md, README.
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
docs/REMOTE.md: the relay and hooks on the server, the ssh -R tunnel from
the Mac (remove the socket a dropped connection leaves behind, or set
StreamLocalBindUnlink), keeping it up with launchd, what to do while the
Mac sleeps (ClientAliveInterval, or a heartbeat the hooks check), and which
sessions show up by CLAUDE_CODE_ENTRYPOINT, with a wrapper to filter them.
Linked from the README and docs/AGENTS.md.
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Claude Code sessions started from the Claude desktop app (Code tab) set
CLAUDE_CODE_ENTRYPOINT=claude-desktop and have no VS Code terminal, so
the island ignored them (#32). Both nb-hook relays (GitHub and App Store)
now tag those events with coucou_agent: claude-desktop when no --agent
was given, so they reach their own pill with nothing extra to install.
- PillCatalog: agent_claude-desktop under Agents (every build), so it can
be declared in Settings and stays as idle after a session ends.
- The pill's jump button and the finished card's primary button open the
Claude app ("Open Claude") instead of activating a terminal.
- Permission requests from these sessions still get "ask" like any other
external agent, so Claude Desktop shows its own prompt.
- docs/AGENTS.md: one paragraph on the new pill.
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
* design: agent pills, Settings agents section, model picker mockups
Three additions to notch-buddy.html:
- Agent pills: Gemini CLI (#4285F4), Antigravity (#FF7043), Codex (#22C55E)
with two togglable variants (A: tinted bg / B: colored top accent)
- Settings panel: Agents section with per-tool install/uninstall buttons,
inline diff preview and result directly under each row
- Model picker: variant A (compact dropdowns) and variant B (provider chips)
each with a provider-change animation (wink or surprised, togglable)
New sim buttons: "Agents mélangés" and "Fin d'une session Gemini".
All controls in a new "Nouveautés" panel at the bottom of the controls.
* feat: agent pills variant B, multi-provider model picker, provider animation
Pills: top gradient accent + tool color label (uppercased) replacing the
plain grey label; border at higher opacity; shadow on hover.
Model picker: provider chips (Anthropic / Google / OpenAI) + model list
popover accessible from a capsule button in the chat prompt view. Mochi
plays the "surprised" emote whenever the provider changes.
Multi-provider chat: ClaudeService routes to chatOpenAICompatible() for
Google and OpenAI (OpenAI-compatible endpoint); API keys stored in
Keychain (google-api-key, openai-api-key); per-provider model choice
persisted in UserDefaults.
Settings: new "Chat — autres fournisseurs" section with Google and
OpenAI API key fields.
Prototype: variant B locked as default in notch-buddy.html.
* Keep the shipped pill design and add the rule to CLAUDE.md
* Load chat models from each provider's API
* Keep hidden views from pushing the island header off screen
* Declare your tools in Settings with a pill catalog
* Update the docs for the pill catalog and the multi-provider chat
* Keep the design mockups out of the prototype
Update README setup table, CHANGELOG, support FAQ (EN+FR) and
AGENTS.md with real-world examples and event tables for Gemini CLI
and Antigravity.
Co-authored-by: corefusiion <corefusiion@users.noreply.github.com>
hooks.ts: restore seven comments removed by the previous commit that
have nothing to do with coucou_agent:
- "Silence here used to cost Claude Code nearly two minutes…"
- "The field is `prompt`; reading `message` meant…"
- "One card, one request. A second one must never quietly replace the
first — … Hand it straight back to the terminal."
- "The relay's short ack window closes in 800 ms…"
- "Another agent holds the view, so the card would yank it away…"
- "Coucou answers within 108 s or not at all…"
Replace every "with Codex (n°20)" / "with Codex support (n°20)" with
"with Codex support" in HookServer.swift, hooks.ts and docs/AGENTS.md.
Co-authored-by: Tudor Lacatus <lacatu5@users.noreply.github.com>
- ID prefix: external agent pills use "agent_<name>" (not
"integration_<name>") so no collision with existing integration pills
(stripe, github, n8n…) and their Stop/SessionEnd cannot remove them.
- "claude" reserved: validateAgent rejects it, event routes to the
Claude Code pill unchanged (Mac + Windows).
- PermissionRequest for external agents: answered immediately with no
decision on Mac (ask → relay silent → agent re-asks in terminal) and
declined on Windows; no approval card shown (n°20 / Codex will add it).
- AgentSource.agent: new case in Swift enum and "agent" in the TypeScript
type; IslandViewContent shows "Agent" for these pills (closure call
instead of invalid switch-as-argument).
- Windows (state.ts): removeTask(), upsertExternalAgent(), sort fix so
dynamic agent_ pills sort after integration_ pills, not before them.
- Windows (hooks.ts): full coucou_agent routing mirroring the Mac logic
— validateAgent, agentColor (hash-stable fallback), ensurePill(),
Stop/SessionEnd remove the dynamic pill.
- docs/AGENTS.md: note that PermissionRequest is not yet supported.
- CHANGELOG: example renamed my-agent.
Co-authored-by: Tudor Lacatus <lacatu5@users.noreply.github.com>
- CHANGELOG: entry for n°12
- docs/AGENTS.md: new file — JSON format, hook command examples,
event table, quick test for third-party agent integration
- docs/INTEGRATIONS.md §1: mention --agent flag and coucou_agent field
- README: update Claude Code bullet to mention other agents