Antigravity Bridged
# Antigravity Bridged
**Claude thinks. Antigravity codes.**
Antigravity Bridged is an [MCP](https://modelcontextprotocol.io) server that turns [Claude Code](https://claude.com/claude-code) into the architect of your project and [Google Antigravity](https://antigravity.google) into its engineer. Claude plans the work, writes precise specs, sends them to Antigravity, then reviews the code it gets back and sends corrections until the work is right.
```
┌──────────────────────┐ antigravity_dispatch ┌──────────────────────┐
│ Claude Code │ ────────────────────────► │ Antigravity │
│ (the architect) │ │ (the engineer) │
│ │ │ │
│ plan → spec → review│ ◄──────────────────────── │ read spec → code → │
│ │ summary + changed files │ test → report │
└──────────┬───────────┘ + report └──────────┬───────────┘
│ │
└──────────────► your-project/.bridge/ ◄───────────┘
tasks/ (specs) · reports/ · runs/ (logs)
```
- **No copy-paste.** Claude drives Antigravity through its own CLI (`agy`), headlessly.
- **Real review loop.** Follow-ups continue the same Antigravity conversation, so it keeps its context.
- **Long tasks are fine.** Each run happens in a detached worker, so a 20-minute task doesn't hit tool timeouts.
- **Everything is on disk.** Specs, reports, status and logs live in `.bridge/` inside each project.
- **Zero dependencies.** Node 18+ only. Works on Windows, macOS and Linux.
## Requirements
- [Node.js](https://nodejs.org) 18 or newer
- [Claude Code](https://claude.com/claude-code) (CLI, desktop app or IDE extension)
- [Antigravity](https://antigravity.google), signed in, with its CLI `agy` installed (it ships with Antigravity at `~/.gemini/bin/agy`)
## Install
```powershell
git clone https://github.com/Saifi-DEV-Ux/antigravity-bridged.git
cd antigravity-bridged
powershell -ExecutionPolicy Bypass -File .\install.ps1
```
On macOS or Linux, run `./install.sh` instead.
The installer:
1. registers the MCP server in Claude Code for your user (`~/.claude.json`, with a backup), and
2. installs the `antigravity-bridged` skill, which teaches Claude the architect workflow.
Restart Claude Code afterwards. Keep the cloned folder where it is, since Claude Code runs the server from there. To set it up on another computer, clone and run the installer there too.
To remove it, run `install.ps1 -Uninstall` (or `./install.sh --uninstall`).
## Usage
Open any project in Claude Code and ask for what you want:
> Plan a login page with email and password, then have Antigravity build it.
Claude will:
1. read your code and plan the work in reviewable tasks,
2. write a spec for each task (goal, files, steps, constraints, acceptance checks),
3. send it with `antigravity_dispatch` and wait for Antigravity to finish,
4. read the changed files and run the checks itself,
5. approve the task, or send concrete fixes with `antigravity_followup`.
## Tools
| Tool | What it does |
| --- | --- |
| `antigravity_dispatch` | Send a new task spec. Returns status, Antigravity's summary, changed files and its report. |
| `antigravity_followup` | Send corrections on a task, in the same Antigravity conversation. |
| `antigravity_wait` | Keep waiting for a task that's still running. |
| `antigravity_get_task` | Status, run history, last result and full report of a task. |
| `antigravity_list_tasks` | All tasks in the project. |
| `antigravity_review` | Record a verdict: `approved` or `changes_requested`. |
| `antigravity_cancel` | Stop a running task. |
| `antigravity_models` | List the models available in Antigravity. |
Options for `dispatch` and `followup`:
| Option | Default | Meaning |
| --- | --- | --- |
| `project_dir` | current folder | Absolute path of the project |
| `model` | Antigravity's default | Any id from `antigravity_models` |
| `mode` | `accept-edits` | `accept-edits`, `auto` or `plan` |
| `skip_permissions` | `false` | Let Antigravity run any terminal command without asking |
| `timeout_minutes` | `30` | Hard limit for the run (1 to 240) |
| `wait_seconds` | `300` | How long the call blocks before returning `running` |
## Configuration
Optional environment variables, set in the `env` block of the server entry in `~/.claude.json`:
| Variable | Purpose |
| --- | --- |
| `AGY_PATH` | Full path to `agy` if it isn't in `~/.gemini/bin` or on your `PATH` |
| `AGY_DEFAULT_MODEL` | Model to use when Claude doesn't pick one |
| `AGY_DEFAULT_MODE` | Default execution mode |
## The `.bridge/` folder
```
.bridge/
├── tasks/
│ ├── 001-login-page.md spec written by Claude
│ ├── 001-login-page.followup-2.md corrections written by Claude
│ └── 001-login-page.json status and run history
├── reports/
│ └── 001-login-page.md report written by Antigravity
└── runs/ raw output and logs (safe to delete)
```
Commit it if you want a written history of how your project was built, or add `.bridge/` to `.gitignore`.
## Security
- By default Antigravity runs in `accept-edits` mode: it can edit files in the project, and terminal commands follow Antigravity's own permission settings.
- `skip_permissions: true` passes `--dangerously-skip-permissions` to Antigravity, which lets it run any command. The skill tells Claude to use it only when you allow it.
- The server only touches the project folder you give it and its own `.bridge/` folder. It sends nothing over the network itself; Antigravity and Claude talk to their own services as usual.
## Development
```powershell
npm test
```
```powershell
npm run test:live
```
`npm test` runs the full end-to-end suite against a fake `agy` (fast, no quota). `npm run test:live` runs it against your real Antigravity and spends a little quota.
The code is small on purpose: `server/index.js` is the MCP layer and `server/bridge.js` is the task store and the worker that drives `agy`.
## بالدارجة
**Claude يخمّم، Antigravity يكتب الكود.**
Antigravity Bridged يخلّي Claude Code هو المخ تاع البروجي: يخطّط، يكتب tâches مفصّلين، يبعثهم لـAntigravity، ومن بعد يراجع الكود اللي رجعلو ويصحّحو حتى يولي مليح. كلش يتدار وحدو بلا copy-paste.
**التثبيت:** دير clone للـrepo، ومن بعد `install.ps1`، وعاود افتح Claude Code. باش تخدم بيه في بيسي آخر، عاود نفس الخطوات تمّا.
**الاستعمال:** قول لـClaude: "خطّط لهاذ الفونكسيون وخلّي Antigravity يكتبها". هو يتكفّل بالباقي.
## Disclaimer
Antigravity Bridged is an independent community project. It is not affiliated with, endorsed by, or sponsored by Google or Anthropic. Antigravity is a trademark of Google LLC; Claude is a trademark of Anthropic, PBC.
## License
[MIT](LICENSE)
TDQS
Scored across 8 tools
Each tool maps to a distinct phase of the task lifecycle: dispatch (new task), followup (continue conversation), wait (block for result), get_task/list_tasks (inspect), review (record verdict), cancel (stop), models (introspection). The only mild overlap is between wait and get_task, but the descriptions make the distinction (blocking vs. polling status) clear enough.
All names share the antigravity_ prefix and snake_case convention, which makes the set easy to scan. A few entries are bare verbs/nouns (wait, cancel, review, models) rather than verb_noun, so the pattern isn't perfectly uniform, but it remains predictable and readable.
Eight tools is a well-scoped surface for a task-bridging server: create, continue, poll, block, inspect, list, review, and cancel. Each tool earns its place with no redundant or filler operations.
The create/continue/wait/inspect/review/cancel lifecycle is fully covered, including retrieval of changed files and reports. Minor gaps remain: no way to delete or archive stale tasks in .bridge/tasks/, and no explicit tool to read a report without fetching the whole task, but these are workable arounds.