# Antigravity

> Tokenade on Google Antigravity: a hook for the agy CLI, MCP wrapping and a GEMINI.md rules section. Gemini CLI is unsupported since 1.1.19.

Source: https://tokenade.net/en/docs/gemini-antigravity · Updated: 2026-10-07

Tokenade supports Google **Antigravity**: its command-line agent (`agy`) is wired through a hook, and the MCP servers of the Antigravity app are wrapped. **Gemini CLI** is no longer supported: support ended in version 1.1.19, and `tokenade uninstall` still removes what older versions wrote for it.

## Antigravity CLI: what install writes

The Antigravity CLI and the Antigravity editor share the `~/.gemini/` folder (`%USERPROFILE%\.gemini\` on Windows, with the dot on every OS). The hook is only installed when `~/.gemini/config/` exists, the CLI's own folder, so a machine with only the editor is not touched.

| File | What Tokenade adds |
|---|---|
| `~/.gemini/config/hooks.json` | A `tokenade` entry with one `PreToolUse` hook |
| `~/.gemini/GEMINI.md` | A short Tokenade rules section, the global file Antigravity loads |
| `~/.gemini/config/mcp_config.json` | Third-party MCP servers rewritten to start behind `tokenade mcp-wrap` |

Before a shell command runs, the hook rewrites the command so it goes through `tokenade wrap`, and its output comes back compacted. The rewrite does not approve the command for you: Antigravity still asks you first, as it would without Tokenade. The rest of `hooks.json` is left as it is.

### What Antigravity gets

From the [compatibility matrix](https://tokenade.net/en/docs/compatibility): command output, web search, MCP results, code search, re-read dedup, documents and media, and secret redaction are covered. Context optimisation is partial.

## Antigravity editor

The Antigravity editor has no shell hook. It gets:

- **MCP optimisation:** servers in `~/.gemini/config/mcp_config.json` run behind `tokenade mcp-wrap`. See [Wrap MCP servers](https://tokenade.net/en/docs/mcp-wrap).
- **The rules section** in `~/.gemini/GEMINI.md`, so the agent knows the `tokenade` commands (`map`, `skeleton`, `query`, `semantic`, `read`, `search`) and can call them from its terminal.

## Gemini CLI

Gemini CLI support was removed in 1.1.19. If an older version of Tokenade wired it, `tokenade uninstall` still removes those hook entries from `~/.gemini/settings.json` and reverts the older LLM proxy setting it may have written. `~/.gemini/GEMINI.md` is kept, because Antigravity reads it too.

Qwen Code, a fork of Gemini CLI, is still supported. See [Other agents](https://tokenade.net/en/docs/other-agents).

## Verify

```bash
tokenade healthcheck    # checks every agent's hooks are installed and valid
tokenade hooks tail     # recent hook fires
tokenade dashboard      # local savings report, opens in your browser
```

You can also open `~/.gemini/config/hooks.json` and look for the `tokenade` key.

## Remove

```bash
tokenade uninstall --dry-run
tokenade uninstall
```

Uninstall removes the `tokenade` key from `~/.gemini/config/hooks.json`, restores your MCP servers, and strips the Tokenade section from `~/.gemini/GEMINI.md`. To restore only the MCP servers: `tokenade unwrap-mcps`. See [Upgrade and uninstall](https://tokenade.net/en/docs/upgrade-uninstall).

## Related

- [Supported agents and compatibility](https://tokenade.net/en/docs/compatibility)
- [How hooks intercept tool calls](https://tokenade.net/en/docs/hooks)
- [Wrap MCP servers](https://tokenade.net/en/docs/mcp-wrap)
- [Other agents](https://tokenade.net/en/docs/other-agents)
- Article: [Reduce Antigravity token usage](https://tokenade.net/en/articles/reduce-antigravity-token-usage)
- Article: [Antigravity vs Gemini CLI](https://tokenade.net/en/articles/antigravity-vs-gemini-cli)
