# Antigravity CLI × Tokenade

> Tokenade hooks into Antigravity CLI; a few layers stay partial, detailed below.

## What `tokenade install` does

- Hooks in `~/.gemini/config/hooks.json`: PreToolUse on `run_command` rewrites the command to `tokenade wrap`.
- Rules: `~/.gemini/GEMINI.md`.
- MCP: every third-party server in `~/.gemini/settings.json` is wrapped as `tokenade mcp-proxy -- <original command>` (original kept, undone by `tokenade uninstall`), so its results reach you folded.

## Coverage

- ✓ Command compaction — Supported
- ✓ Web search — Supported
- ✓ MCP optimization — Supported
- ✓ Code search — Supported
- ✓ Lean output — Supported
- ◐ Context optimization — Partial
- ✓ Re-read dedup — Supported
- ✓ Documents & media — Supported
- ✓ Privacy — Supported
- ✓ Secret redaction — Supported

## What isn't compressed

- Context is partial with no fallback: its PostToolUse can't substitute output and its model endpoints can't be redirected, so no proxy either.

## Install

    npm install -g @tokenade/cli
    tokenade install
    tokenade login

`tokenade uninstall` restores every file it touched.

## Read next

- https://tokenade.net/tokenade.md
- https://tokenade.net/install.md
- https://tokenade.net/en/docs/compatibility
