wingmirror Download
Docs Connecting coding agents

Docs · Guides

Connecting coding agents

Wingmirror has built-in connections for Claude Code, Codex, GitHub Copilot and Cursor. This page covers those four briefly, then three agents that have no connection of their own yet (Gemini CLI, OpenCode and Grok Build) and how to put them on the panel today with what the app already accepts. The README is the reference for the built-in connections and for the HTTP addresses; this page does not repeat it.

The agents were chosen from those developers reported using in the 2026 Stack Overflow Developer Survey (read 17 Nov 2026). The survey lists Google's Antigravity and Gemini Code Assist, not Gemini CLI; Gemini CLI is covered because it has a documented hook system. Antigravity is not covered. Grok Build is not in the survey; it is included because its hooks are documented.

Contents

How much of this has been tried

Only the Claude Code and Codex connections have been used with a real install; the README's Status and known limits says what was seen working.

Everything else follows each tool's own documentation as read on 17 November 2026 (Cursor's on 18 November) and is untested:

  • GitHub Copilot. The built-in connection is written from GitHub's hooks reference and has not been run against a real Copilot install.
  • Cursor. The built-in connection is written from Cursor's hooks reference and from reading the code of an installed Cursor. No Cursor session was run with it.
  • Gemini CLI, OpenCode and Grok Build. None was run. Every snippet for them is marked untested. Where the documentation does not say something, the text says so and does not guess.
  • The MCP server has not been tried with a real client, so every MCP command on this page is untested too, Claude Code's included.
  • The bridge script was run against a spare-port instance of the app with made-up events in the documented shapes: Approve, Deny, no answer, no match, and nothing listening. It was not run under any agent.

These tools change often. Check the linked page before relying on an event name or a key.

Which route to choose

  1. A built-in connection, if the agent has one: Claude Code, Codex, GitHub Copilot, Cursor. One menu item, and the menu says when a connection needs updating.
  2. Hooks and the generic HTTP addresses, if the agent runs a command at fixed points in its work (session start and end, prompt sent, turn finished, before a tool). Map those events to POST /hooks/agent/<name> and, where a hook can block a tool call, to POST /hooks/agent/<name>/permission. Apart from a built-in connection, this is the only route that gives a session card. The contract is in the README under Other agents.
  3. The MCP server, if the agent can call tools, alone or alongside hooks. It gives notes and questions by tap, on the agent's own initiative. It gives no session card and approves nothing. See For agents that call tools (MCP).

Three things to know about route 2:

  • Send "reports_end": true if the agent has a hook for a session ending. The card is then kept through the agent's silences until it reports "ended": true, or for a day without a word. Without it, a quiet session is dimmed after two minutes and removed after ten.
  • activity (up to 120 characters) is the line on a running card that says what the session is doing. It stands until the next one is sent; an empty string, or any state but running, clears it.
  • A request through /hooks/agent/<name>/permission is badged Advisory approval on the panel, always. The app cannot tell whether the agent will obey the answer. Where the request comes from a hook the agent waits on, a Deny does block the call, but that is the hook's doing; keep the agent's own permission settings as the real guard.

An agent that runs somewhere other than this Mac cannot reach the panel by any of these.

Comparison

"Documented" means the tool's documentation says so; none of the rows below Codex has been run.

AgentRoute todaySession cardLive activityApprove / Deny on the panelModel / context %
Claude CodeBuilt inYesYesYes, only when it would askBoth
Codex (CLI and desktop app)Built inYesYesYes, only when it would askModel only
GitHub CopilotBuilt in, untestedYesA tool shows once it has finishedOff by default; opt-in for destructive-looking commandsNeither
CursorBuilt in, untestedYesYesOff by default; opt-in for destructive-looking shell commands. Deny blocks. Approve leaves the command to Cursor's own rules.Model only
Gemini CLIHooks + bridge scriptDocumentedThe approved command onlyDeny blocks. Approve does not replace Gemini's own confirmation.Neither
OpenCodeA small pluginFrom the first permission requestNoDocumented, only when it would askNot established
Grok BuildHooks + bridge scriptDocumentedThe approved command onlyDeny blocks; the hook sees every call. Approve continues to Grok's own check.Neither through hooks

All seven document local MCP servers over standard input and output, so notes and questions are available to each.

Claude Code

On the panel: the session card with live activity, model, context, cost and lines changed; Approve and Deny, where the panel's answer is the decision; with the MCP server, notes and questions.

Connect: press Connect in the setup window, or choose Connect Claude Code… in the menu. For notes and questions (untested with a real client), choose Copy MCP Setup Command, under Claude Code in the menu, and paste it into a terminal. Details: Connecting Claude Code.

Limits: a session that was open before the connection was made or updated needs restarting to pick up the hooks.

Codex

Covers the Codex CLI and the Codex desktop app, which share ~/.codex.

On the panel: the session card with live activity and model; Approve and Deny, where the panel's answer is the decision and no answer leaves Codex's own prompt in place.

Connect: press Connect in the setup window, or choose Connect Codex… in the menu. Then trust the hooks in Codex: /hooks in the terminal, or Settings → Hooks in the desktop app. Until you do, the hooks send nothing. Details: Connecting Codex.

For notes and questions, in Codex's documented form (untested):

codex mcp add wingmirror -- "/Applications/Wingmirror.app/Contents/MacOS/Wingmirror" mcp

Limits:

  • No context figure: nothing Codex sends is a percentage or a window size.
  • Cloud tasks do not run local hooks and never appear.
  • A thread that ends keeps its card, idle, for an hour, because the Codex app shuts a thread down soon after its turn and reopens it when you return. Hide card clears one sooner.

GitHub Copilot

The connection is built in but has not been tried against a real Copilot install. It is written for Copilot CLI. VS Code's documentation says agent sessions in VS Code with Copilot as the session target, and the GitHub Copilot app, read the same hooks folder in the same format, so their sessions should appear too. Copilot's cloud agent never appears.

On the panel: the session from its start, with its project, running or idle, and the last tool it finished. When Copilot asks permission the card reads "Needs approval"; when it asks a question, "Needs input".

Connect: press Connect in the setup window, or choose Connect GitHub Copilot… in the menu. Both are shown only if ~/.copilot exists. One file is written, ~/.copilot/hooks/wingmirror.json, and nothing else of Copilot's is touched. Do not edit that file by hand: the menu then shows the connection as out of date, and updating it writes the file again. Details: Connecting GitHub Copilot.

Approve and Deny are off as connected: a request is answered in Copilot and the card only says one is waiting. Tick Ask on the Panel Before Risky Commands, under GitHub Copilot in the menu, to register Copilot's permission hook as well. Copilot puts every request through that hook before its own rules, so the app answers at once, leaving the request to Copilot, unless the command looks destructive (rm, sudo, git push, git reset --hard, --force, a deploy or publish, terraform apply, kubectl delete and the like). Those wait up to five minutes for a tap. With no answer Copilot asks in its own way.

For notes and questions, in Copilot's documented form (untested):

copilot mcp add wingmirror -- "/Applications/Wingmirror.app/Contents/MacOS/Wingmirror" mcp

Limits:

  • No model, no context figure and no helpers line. A tool shows once it has finished, not while it runs.
  • A turn that is interrupted may go on reading as running until the next prompt.
  • With COPILOT_HOME set in a shell only, connect from that shell: Wingmirror hooks install copilot.

Not verified against a real install: whether Copilot loads the file and runs the hooks without asking you to trust them; whether the notification names its session as the other events do; what a tool's arguments look like; how hooks behave in a sandboxed session. What the permission hook is sent is not laid out in GitHub's reference, so the opt-in approvals are the least certain part.

The bridge script

Cursor, Gemini CLI and Grok Build each run a command for a hook, pass the event as JSON on standard input, and read a decision from standard output, each with its own field names and decision format. This script covers the three. Cursor now has a built-in connection, which is the one to use; the script's Cursor form is left here as it was written.

It is an example, not part of Wingmirror, and it has not been run under any agent. It is not shipped with the app or kept in the repository. Save it yourself, for example as ~/bin/wingmirror-bridge.py, run chmod +x on it, and maintain it: if an agent changes its hook format, the script is yours to change. It needs /usr/bin/python3, which comes with the Xcode command line tools.

#!/usr/bin/python3 -I
# wingmirror-bridge: forwards one hook event from a coding agent to the Wingmirror panel.
#
#   wingmirror-bridge.py <agent> <running|idle|needs_input|completed|end> [text to print]
#   wingmirror-bridge.py <agent> approve <cursor|gemini|grok>
#
# The agent's hook JSON is read from standard input. If the panel is off or nobody answers, the
# hook's "no decision" answer is printed, so the agent carries on in its own way. A mistake in the
# arguments exits with 1, which is a failed hook and not a refusal on the events used here.
import json, os, re, sys, urllib.request

DIALECTS = ("cursor", "gemini", "grok")
if len(sys.argv) < 3 or (sys.argv[2] == "approve" and (len(sys.argv) < 4 or sys.argv[3] not in DIALECTS)):
    sys.exit("usage: wingmirror-bridge.py <agent> <state|end> [text]  or  <agent> approve <%s>" % "|".join(DIALECTS))
agent, what = sys.argv[1], sys.argv[2]
extra = sys.argv[3] if len(sys.argv) > 3 else ""
bus = "http://127.0.0.1:%s/hooks/agent/%s" % (os.environ.get("WINGMIRROR_PORT", "7317"), agent)

try:
    event = json.load(sys.stdin)
except ValueError:
    event = {}
if not isinstance(event, dict):
    event = {}

def first(*names):
    for name in names:
        value = event.get(name)
        if isinstance(value, str) and value:
            return value
    return None

roots = event.get("workspace_roots") or []
cwd = first("cwd", "workspaceRoot") or (roots[0] if roots else os.getcwd())
session = (first("session_id", "sessionId", "conversation_id")
           or os.environ.get("GEMINI_SESSION_ID") or os.environ.get("GROK_SESSION_ID")
           or agent + "-" + os.path.basename(cwd))

def post(path, body, wait):
    request = urllib.request.Request(bus + path, json.dumps(body).encode(), {"Content-Type": "application/json"})
    try:
        with urllib.request.urlopen(request, timeout=wait) as reply:
            return json.loads(reply.read() or b"{}")
    except Exception:
        return {}

if what != "approve":
    if what == "end":
        body = {"session_id": session, "ended": True}
    else:
        # reports_end keeps the card through the agent's silences, so register the "end" hook too.
        # An empty activity clears the line left by the last approved command.
        body = {"session_id": session, "cwd": cwd, "state": what, "reports_end": True, "activity": ""}
        model = first("model", "model_id")
        if model:
            body["model"] = model
    post("", body, 2)
    print(extra or "{}")
    sys.exit(0)

# What is about to be done, as one line to read on the panel.
tool = first("tool_name", "toolName") or ("Shell" if isinstance(event.get("command"), str) else "Action")
detail = event.get("tool_input", event.get("toolInput", event.get("command", "")))
if isinstance(detail, dict):
    detail = detail.get("command") or json.dumps(detail)
summary = str(detail or tool)

no_decision = {"cursor": '{"permission":"ask"}', "gemini": "{}", "grok": ""}[extra]
only = os.environ.get("WM_MATCH")
if only and not re.search(only, tool + " " + summary):
    if no_decision:
        print(no_decision)
    sys.exit(0)

hold = int(os.environ.get("WM_HOLD", "120"))
answer = post("/permission", {"session_id": session, "cwd": cwd, "tool": tool, "summary": summary, "hold_seconds": hold}, hold + 10).get("behavior")
if answer in ("allow", "deny"):
    # The card reads "Needs approval" until the session reports another state. After Approve the
    # command is what the session is doing, until the next report clears it.
    post("", {"session_id": session, "state": "running", "reports_end": True,
              "activity": summary[:120] if answer == "allow" else ""}, 2)
why = "Denied on the Wingmirror panel"
if answer == "deny":
    out = json.dumps({
        "cursor": {"permission": "deny", "user_message": why, "agent_message": why},
        "gemini": {"decision": "deny", "reason": why},
        "grok": {"decision": "deny", "reason": why},
    }[extra])
elif answer == "allow":
    out = {"cursor": '{"permission":"allow"}', "gemini": '{"decision":"allow"}', "grok": ""}[extra]
else:
    out = no_decision
if out:
    print(out)

What it does:

  • <agent> running | idle | needs_input | completed reports the session's state to /hooks/agent/<agent>, with cwd, the model if the event carries one, and reports_end. end removes the card. Because of reports_end, always register the end hook as well; a session whose end is never reported keeps its card for up to a day.
  • <agent> approve <dialect> posts the tool and command to /hooks/agent/<agent>/permission, waits, and prints the answer in that agent's format. After Approve the command becomes the card's activity line until the next report. If nobody taps, or Wingmirror is not running, it prints that agent's "no decision" answer and the agent asks in its own way. Silence is never turned into permission.
  • While the panel holds a request the agent is stopped and its own prompt is not on screen. WM_HOLD is how long that lasts, in seconds: 120 if unset. Keep it below the hook's own timeout.
  • WM_MATCH is a regular expression. When set, only tool calls whose name and command match go to the panel, and the rest get "no decision" at once. Use it where the hook fires on every call.
  • WINGMIRROR_PORT points it at another port. Try it against a spare-port run first, not the live panel.

The snippets below use /Users/YOU/bin/wingmirror-bridge.py; put the real path in. They show only Wingmirror's entries. If the file already has hooks, add these beside them.

Cursor

The connection is built in but has not been run under a real Cursor session. It is written from Cursor's hooks reference as read on 18 November 2026 and from reading the code of an installed Cursor (the editor 3.30.14 and the command line tool 2026.01.23). It is for the agent in the editor; the command line tool reads the same file. Cursor's cloud agents do not load user-level hooks and never appear.

On the panel: the session from the moment its conversation is made, with its project and model, running or idle, the tool it is running and the ones it has finished.

Connect: press Connect in the setup window, or choose Connect Cursor… in the menu. Both are shown only if ~/.cursor exists. Wingmirror's entries are added to ~/.cursor/hooks.json beside any already there, a copy of the file is kept first in Wingmirror's own folder, and Disconnect takes only those entries out again. Details: Connecting Cursor.

Approve and Deny are off as connected. Tick Ask on the Panel Before Risky Commands, under Cursor in the menu, to register beforeShellExecution as well. Cursor runs that hook before every shell command, so the app answers at once with nothing, leaving the command to Cursor, unless it looks destructive. Those wait up to five minutes for a tap. Deny refuses the command. Approve does not run it: the Cursor that was read acts on deny and ask and treats allow as no answer, so its own allowlist and run mode still decide and it may ask again at the keyboard. The card is badged Advisory approval for that reason.

For notes and questions, add to ~/.cursor/mcp.json (untested):

{
  "mcpServers": {
    "wingmirror": {
      "type": "stdio",
      "command": "/Applications/Wingmirror.app/Contents/MacOS/Wingmirror",
      "args": ["mcp"]
    }
  }
}

Limits:

  • The card does not say when Cursor is waiting at its own approval prompt: Cursor has no event for it.
  • Only shell commands can be held. File edits, file reads and MCP tools are not covered.
  • No context figure: no hook that is used carries one.
  • The command line tool of January 2026 sends only the tool events, so its card appears at the first tool and goes after ten minutes without one.

Three things worth knowing if you write Cursor hooks of your own (read in the code of the versions above):

  • A hook that prints nothing, with status 0, gives no answer and the step goes ahead, unless the entry sets failClosed. Output that is not valid JSON, or not the shape the step expects, blocks a permission step.
  • For beforeShellExecution, {"permission":"ask"} makes Cursor prompt even for a command it would have run by itself, and it outranks another hook's allow. It is not a way of saying "no opinion"; printing nothing is. The bridge script still replies ask in its Cursor form when it has no answer, which is why its example needs a matcher; the built-in connection replaces it for Cursor.
  • An event name Cursor does not know makes it refuse the whole hooks.json, every other tool's hooks included. workspaceOpen is one the January 2026 command line tool does not know.

Not verified against a real session: any event as Cursor sends it; when a session is said to start and end; whether a subagent's tools carry the parent's conversation id; what Cursor shows after Approve.

Gemini CLI

On the panel: a session card, working or idle; Deny for shell commands; with the MCP server, notes and questions. All documented, none run.

Connect (untested). Save the bridge script, then add to ~/.gemini/settings.json:

{
  "hooks": {
    "SessionStart": [
      { "hooks": [{ "name": "wingmirror-start", "type": "command", "command": "/Users/YOU/bin/wingmirror-bridge.py gemini idle", "timeout": 5000 }] }
    ],
    "BeforeAgent": [
      { "hooks": [{ "name": "wingmirror-working", "type": "command", "command": "/Users/YOU/bin/wingmirror-bridge.py gemini running", "timeout": 5000 }] }
    ],
    "AfterTool": [
      { "matcher": "*", "hooks": [{ "name": "wingmirror-tool", "type": "command", "command": "/Users/YOU/bin/wingmirror-bridge.py gemini running", "timeout": 5000 }] }
    ],
    "AfterAgent": [
      { "hooks": [{ "name": "wingmirror-idle", "type": "command", "command": "/Users/YOU/bin/wingmirror-bridge.py gemini idle", "timeout": 5000 }] }
    ],
    "SessionEnd": [
      { "hooks": [{ "name": "wingmirror-end", "type": "command", "command": "/Users/YOU/bin/wingmirror-bridge.py gemini end", "timeout": 5000 }] }
    ],
    "BeforeTool": [
      {
        "matcher": "run_shell_command",
        "hooks": [{ "name": "wingmirror-approve", "type": "command", "command": "WM_MATCH='rm |git push|deploy|sudo ' /Users/YOU/bin/wingmirror-bridge.py gemini approve gemini", "timeout": 300000 }]
      }
    ]
  }
}

Timeouts here are in milliseconds. For notes and questions (untested):

gemini mcp add wingmirror /Applications/Wingmirror.app/Contents/MacOS/Wingmirror mcp

Limits:

  • Deny blocks the tool. Approve only lets it continue to Gemini's own confirmation, which may ask again at the keyboard; nothing in the documentation says an allow skips it. The panel is a gate before Gemini's own, not a replacement, and after Approve the card reads as running while Gemini may still be asking.
  • No model and no context figure in the events used.
  • Hooks are synchronous: Gemini waits for each one, so every report costs it the time the post takes.
  • Gemini does not wait for the SessionEnd hook to finish. If the report does not arrive, the card stays, idle, for up to a day; Hide card takes it off the panel.

OpenCode

OpenCode has no hook file. It loads plugins, written in TypeScript or JavaScript, into its own server. Its documentation describes a V2 plugin API and says V1 plugins do not run in V2; what follows is written from the V2 reference alone.

On the panel: a session card from the first permission request; Approve and Deny only for actions OpenCode was going to ask about; with the MCP server, notes and questions. All documented, none run.

Connect (untested). Save as ~/.config/opencode/plugins/wingmirror.ts:

import { Plugin } from "@opencode/plugin"

const bus = "http://127.0.0.1:7317/hooks/agent/opencode"

// Posts to the panel. Any failure, or an empty answer, comes back as {}.
async function post(path: string, body: unknown): Promise<{ behavior?: string }> {
  try {
    const reply = await fetch(bus + path, {
      method: "POST",
      headers: { "Content-Type": "application/json" },
      body: JSON.stringify(body),
    })
    const text = await reply.text()
    return text ? JSON.parse(text) : {}
  } catch {
    return {}
  }
}

export default Plugin.define({
  id: "wingmirror",
  async setup(ctx) {
    const cwd = ctx.location.directory

    await ctx.permission.hook("evaluate", async (event) => {
      // Only what OpenCode was going to ask about goes to the panel.
      if (event.effect !== "ask") return
      const session_id = event.sessionID
      const summary = [event.action, ...event.resources].join(" ")
      const answer = await post("/permission", { session_id, cwd, tool: event.action, summary, hold_seconds: 120 })
      // With no answer the effect stays "ask", and OpenCode asks in its own way.
      if (answer.behavior !== "allow" && answer.behavior !== "deny") return
      event.effect = answer.behavior
      if (answer.behavior === "deny") event.message = "Denied on the Wingmirror panel"
      await post("", { session_id, cwd, state: "running" })
    })
  },
})

For notes and questions, add to ~/.config/opencode/opencode.jsonc (untested):

{
  "mcp": {
    "servers": {
      "wingmirror": {
        "type": "local",
        "command": ["/Applications/Wingmirror.app/Contents/MacOS/Wingmirror", "mcp"]
      }
    }
  }
}

Limits:

  • While the panel holds a request, up to the 120 seconds in hold_seconds, OpenCode's own prompt is not on screen. No time limit for the hook is documented; whether OpenCode will wait that long is the first thing to test.
  • The card appears with the first request. After an answered request it goes once the session has been quiet for ten minutes. After a request nobody answered it goes on reading "Needs approval" until a later request is answered, since the plugin reports nothing else; Hide card takes it off the panel.
  • The plugin does not send reports_end, because the name of a session-end event was not confirmed, and it sends no activity, model or context figure.
  • A plugin runs inside OpenCode, so a fault in it is a fault in your agent.

Grok Build

The grok terminal agent. No connection is built for it and nothing here has been run.

On the panel: a session card, working or idle; Deny for shell commands; with the MCP server, notes and questions. All documented, none run.

Connect (untested). Save the bridge script, then save as ~/.grok/hooks/wingmirror.json:

{
  "hooks": {
    "SessionStart": [{ "hooks": [{ "type": "command", "command": "/Users/YOU/bin/wingmirror-bridge.py grok idle" }] }],
    "UserPromptSubmit": [{ "hooks": [{ "type": "command", "command": "/Users/YOU/bin/wingmirror-bridge.py grok running" }] }],
    "PostToolUse": [{ "hooks": [{ "type": "command", "command": "/Users/YOU/bin/wingmirror-bridge.py grok running" }] }],
    "Stop": [{ "hooks": [{ "type": "command", "command": "/Users/YOU/bin/wingmirror-bridge.py grok idle" }] }],
    "SessionEnd": [{ "hooks": [{ "type": "command", "command": "/Users/YOU/bin/wingmirror-bridge.py grok end" }] }],
    "PreToolUse": [
      {
        "matcher": "Bash",
        "hooks": [{ "type": "command", "command": "WM_MATCH='rm |git push|deploy|sudo ' /Users/YOU/bin/wingmirror-bridge.py grok approve grok", "timeout": 300 }]
      }
    ]
  }
}

For notes and questions (untested):

grok mcp add wingmirror -- "/Applications/Wingmirror.app/Contents/MacOS/Wingmirror" mcp

Limits:

  • PreToolUse is the only blocking event and fires for every tool call, hence WM_MATCH. Deny blocks. Nothing in the documentation says an allow skips Grok's own permission check, so Approve lets the call continue to it, and the card reads as running while Grok may still be asking.
  • No model and no context figure through hooks.
  • Grok Build's documentation says it also reads Claude Code's and Cursor's hook files. See the contributor notes before connecting both.

Any other agent

  • It has hooks, and one can block a tool call: route 2, with a permission hook. Translate {"behavior": "allow" | "deny"} into what the agent expects and treat an empty answer as "no decision", never as a refusal or a permission. The bridge script is a template: a new agent is usually one more entry in its tables.
  • It has hooks but none can block: route 2 for the session card only.
  • No hooks, but it runs local MCP servers: route 3. Point it at /Applications/Wingmirror.app/Contents/MacOS/Wingmirror with the single argument mcp.

Use a name of the agent's own in the address. /hooks/claude/*, /hooks/codex/*, /hooks/copilot/* and /hooks/cursor/* expect those agents' own payloads and label the session as theirs.

Not built yet: notes for contributors

None of this exists in the app. The details come from the documentation listed under Sources and need confirming on a real install before anything is built on them.

Claude Code. Events the connection does not use, as candidates: SessionStart (a card before the first status line), SubagentStart, StopFailure, PermissionDenied, and Elicitation (a question raised by an MCP server; not investigated).

Codex. PostModelRequest is documented as carrying token_usage for each request, which with the model's window size could give a context figure. SubagentStart would pair with the SubagentStop already handled. A one-tap codex mcp add could sit beside the Claude Code one.

GitHub Copilot. First, run the existing connection against a real install and capture what the permission hook is sent. Model and context might come from the statusLine command in ~/.copilot/settings.json; the fields it receives are not documented.

Cursor. First, run the existing connection under a real session with WINGMIRROR_CAPTURE_DIR set and compare what arrives with the bodies in the tests. Candidates after that: subagentStart and subagentStop for the helpers line (the start carries tool_call_id, which is what a subagent's tools are taken to name as parent_tool_call_id); beforeMCPExecution for holding MCP tools, which takes the same reply as the shell hook; preCompact, which carries context_usage_percent but only at the moment of a compaction; and afterAgentResponse if a card should ever say what the session last said. There is still no event for Cursor's own approval prompt.

Gemini CLI (medium). Merge into ~/.gemini/settings.json with a backup. The payload is close to Claude Code's, with Gemini's own tool names and a {"decision": …} reply. The model is in BeforeModel, at the cost of a hook on every model request; context has no clean source. Approvals cannot replace Gemini's own prompt. How much applies to Antigravity is unknown.

OpenCode (medium to large). Copy a plugin into ~/.config/opencode/plugins/ and remove it again; no merging. The mapping would live in the plugin, which is a second language to ship against an API that has just been replaced, and possibly two versions to support. Unknown: which version most people run, the session event names, and whether ctx.session.get gives a model or context figure.

Grok Build (small). One file of its own in ~/.grok/hooks/, /hooks/grok/* paths with a camelCase mapping, and possibly the status line script: its documentation describes a status line command receiving model.display_name and context_window.used_percentage.

Cross-loading. Cursor's documentation says it loads Claude Code's hooks from ~/.claude/settings.json by default. Wingmirror's Claude Code hooks are HTTP hooks, and the code of the Cursor that was read (the editor 3.30.14 and the command line tool 2026.01.23) keeps only entries of type prompt or with a command when it converts that file, so they are dropped and a Cursor session is not also posted to /hooks/claude/*. That was read, not watched: to confirm it, run the app with WINGMIRROR_CAPTURE_DIR set while Cursor works and check that nothing arrives under /hooks/claude/ with a cursor_version in it. Grok Build's documentation says it reads Claude Code's and Cursor's hook files; with the Cursor connection in place its sessions could be posted to /hooks/cursor/* and show as Cursor's. That has not been looked at, and is the thing to test before connecting Grok Build.

Sources

All read 17 Nov 2026, and Cursor's hooks and third-party hooks pages again on 18 Nov 2026.

Edit source on GitHub docs/integrations.md