> ## Documentation Index
> Fetch the complete documentation index at: https://eispatch.framewire.io/llms.txt
> Use this file to discover all available pages before exploring further.

# Google Antigravity

> Install and use EISPATCH with Google Antigravity using a workspace or global plugin, the PreInvocation hook, and native same-session dispatch.

Google Antigravity is the only host that currently supports native same-session dispatch via `app.sendMessage()`. EISPATCH integrates through a `PreInvocation` hook and an MCP App rendered in both the aux\_pane and inline.

## Installation

### Option A: Global plugin

Run the installer from the cloned repository:

```bash theme={null}
node scripts/install-antigravity.mjs
```

This writes the plugin to `~/.gemini/config/plugins/eispatch/`.

### Option B: Workspace plugin

Open the cloned EISPATCH repository folder as an Antigravity workspace. Antigravity auto-discovers the plugin at `.agents/plugins/eispatch/`.

> [!NOTE]
>
> To remove the workspace plugin, delete `.agents/plugins/eispatch/` from the repository. To remove the global plugin, run `node scripts/install-antigravity.mjs --uninstall`.

## What the integration provides

| Component | Details |
| - | - |
| Hook | `PreInvocation` |
| MCP App | SEP-1865 MCP App rendered in `aux_pane` and inline |
| MCP tools | `dispatch_compose`, `dispatch_discover`, `dispatch_compile` |
| UI resource | `ui://dispatch/composer.html` |
| Dispatch | Native `app.sendMessage()` in the same session |

## MCP server

You can run the MCP server standalone with:

```bash theme={null}
npm run mcp
```

This starts the adapter that exposes the three dispatch tools and the composer UI resource.

## Usage example

1. Start a prompt with the trigger prefix:
   ```text theme={null}
   /eispatch Create a calculator in React.
   ```
2. The `PreInvocation` hook intercepts the prompt and opens the EISPATCH composer.
3. Review capabilities, edit the final prompt, and click **Approve**.
4. Click **Dispatch**. The approved prompt is sent to Antigravity natively via `app.sendMessage()`.

## Check and uninstall

Verify the installation:

```bash theme={null}
node scripts/install-antigravity.mjs --check
```

Remove EISPATCH entries from Antigravity:

```bash theme={null}
node scripts/install-antigravity.mjs --uninstall
```

Uninstall removes only EISPATCH-owned entries. It does not modify other plugins or host configuration.


This documentation is built and hosted on [Mintlify](https://mintlify.com), a developer documentation platform.