Async Parallel Antigravity for Codex & Claude Code

io.github.varadfromeast由 GitHub 帳號 varadfromeast 發布v0.1.12更新於 Oct 24, 2026

Run parallel, resumable, human-operable Antigravity CLI sessions from any MCP agent harness

發布方自己的服務:Claude Platform Docs

已驗證STDIO僅桌面開發者工具AI 與機器學習

概覽

AI 產生的概覽

包裝 Antigravity CLI,讓 MCP 代理能平行啟動、等待、觀察、輸入與取消可續跑的 agy 工作階段。

可以做什麼
  • 啟動、續接或開啟互動式 Antigravity CLI 執行,並取消單一進行中的執行
  • 等待稀疏的生命週期、需關注、進度與終端事件,並讀取狀態、對話紀錄或原始終端畫面
  • 對執行送出附前置條件檢查的輸入
  • 依執行 ID 讀取最終結果中繼資料或限定長度的結果片段
  • 建立目標、以受限平行度啟動具名子任務並讀取彙總狀態
  • 讀取診斷、模型、外掛、驗證與變更日誌資訊
適用情境
適合讓 Codex、Claude Desktop 等代理框架平行驅動多個長時間執行的 Antigravity CLI 工作階段,並在 MCP 呼叫逾時或框架重新啟動後仍能取回結果。也適合把工作拆成同一目標下的多個具名子任務。
執行需求
透過 uvx 從 PyPI 安裝的本機 stdio 程序,需 Python 3.11+,執行於 macOS 或 Linux。需要已安裝並完成登入的官方 Antigravity CLI、tmux 及支援的終端啟動器,並將 AGY_CMD 設為 agy 執行檔的絕對路徑。另有狀態目錄、Antigravity 根目錄、平行上限與等待時間等選用設定。
安裝前請注意
此橋接一律啟用 Antigravity 的危險略過權限策略,執行可以目前使用者權限讀寫檔案、執行指令並存取網路;它不是沙箱,sandbox 提示也不構成隔離。它會讀取本機對話中繼資料與軌跡檔案。專案仍屬實驗性,且依賴特定版本的 Antigravity CLI。

安裝

在 SourceWeft 中

  1. 開啟 儀表板中的 Async Parallel Antigravity for Codex & Claude Code,將其新增到工作區。
  2. 為需要使用其工具的對話啟用該服務。

Desktop only,透過 STDIO。 STDIO 服務會啟動本機處理程序,因此需要 SourceWeft 桌面主機。

其他 MCP 客戶端

參照 儲存庫 中的啟動說明。

README

codex-agy-bridge

[CI] [License: MIT]

Run Antigravity from an agent harness as durable, parallel, human-operable agy sessions over MCP.

codex-agy-bridge wraps the official Antigravity CLI with a resumable MCP control plane. Agent harnesses like Codex, Claude Desktop, or your own GPT/Claude-powered MCP client can start agy runs, wait on sparse events, attach a real terminal, send guarded input, cancel safely, continue exact conversations, and collect final results later by run_id.

Quick Install

Prerequisites:

  • Codex CLI for the command below, or another local stdio MCP-capable harness
  • The official Antigravity CLI (agy), already authenticated locally
  • uv / uvx
  • tmux and a supported terminal launcher:
bash
# macOSbrew install tmux
# Debian/Ubuntu Linux (x-terminal-emulator is also supported)sudo apt install tmux gnome-terminal

Check the required commands:

bash
codex --versionagy --versionagy modelsuvx --versiontmux -V

Day 0 Authentication

agy --version only proves the binary exists. Before adding the MCP server, run agy models; if Antigravity asks you to sign in or reports that you are not logged in, start a visible session and complete the browser/login flow:

bash
agy --prompt-interactive "Authenticate Antigravity and then exit."agy models

After agy models succeeds, install or restart the MCP server. If a bridge run still hits auth, agy_run_start returns status="auth_required" and opens a visible agy authentication session by default. Complete sign-in there, then start a fresh run. You can also use agy_run_observe(view="terminal") or agy_admin(action="doctor") to inspect the auth-required status.

Install from PyPI with the Codex CLI:

bash
codex mcp add codex-agy-bridge \  --env AGY_CMD="$(command -v agy)" \  -- "$(command -v uvx)" codex-agy-bridge@latest

Restart the harness, then verify in Codex if you used the command above:

bash
codex mcp get codex-agy-bridgecodex mcp list

Remove it with:

bash
codex mcp remove codex-agy-bridge

For Claude Desktop or a custom MCP client, use the same stdio command shape: uvx codex-agy-bridge@latest with AGY_CMD set to the authenticated agy executable.

What Makes It Different

  • Parallel Antigravity sessions: launch multiple independent agy runs, each with its own durable state, logs, transcript projection, and result.
  • Human-operable terminals: foreground runs live in persistent tmux sessions, so Terminal.app can attach without killing the agent.
  • Resumable MCP control: MCP calls can time out, the harness can restart, and the run can still be observed later by run_id.
  • Goal orchestration: create a goal, start named targets with bounded parallelism, and inspect the whole batch as one coordinated effort.
  • Sparse wake events: agy_run_wait short-polls lifecycle, attention, progress, and terminal events without transcript-polling spam.
  • Guarded input: agy_run_input can reject stale writes when event or transcript cursors changed after the caller observed the run.
  • Trajectory-aware observability: bounded transcript summaries and terminal evidence are exposed without private model reasoning.
  • Operational hygiene: duplicate active starts are deduplicated, process groups are cancelled safely, and completed result artifacts are preserved.

Install Details

If You Are An Agent Reading This

Help the user install it; do not silently mutate their machine.

  1. Verify prerequisites first:
bash
command -v codexcommand -v agycommand -v uvxcommand -v tmuxagy --versionagy models
  1. If anything is missing, ask before installing it.
  2. If agy models reports an auth error, help the user complete the Day 0 authentication flow above before adding the MCP server.
  3. Then run:
bash
codex mcp add codex-agy-bridge \  --env AGY_CMD="$(command -v agy)" \  -- "$(command -v uvx)" codex-agy-bridge@latest
  1. Verify:
bash
codex mcp get codex-agy-bridgecodex mcp list
  1. Tell the user to restart their agent harness so the new MCP tools load.

PyPI

The Quick Install command stores an stdio MCP server definition. When the agent harness starts the server, uvx resolves codex-agy-bridge@latest from PyPI, installs it into an isolated cached environment, and runs the codex-agy-bridge console script. AGY_CMD pins the bridge to the user's already-installed and authenticated agy executable.

Do not replace $ or $(...) manually in the command. In POSIX shells, $(command -v agy) and $(command -v uvx) expand to absolute executable paths.

GitHub

Use this when you want the repository version directly:

bash
codex mcp add codex-agy-bridge \  --env AGY_CMD="$(command -v agy)" \  -- uvx --from git+https://github.com/varadfromeast/codex-agy-bridge \  codex-agy-bridge

Local Development

bash
git clone https://github.com/varadfromeast/codex-agy-bridge.gitcd codex-agy-bridgeuv sync --extra dev
codex mcp add codex-agy-bridge \  --env AGY_CMD="$(command -v agy)" \  -- uv --directory "$PWD" run codex-agy-bridge

How It Works

mermaid
flowchart LR  H["Agent harness<br/>(Codex, Claude, custom MCP client)"]  M["codex-agy-bridge<br/>MCP stdio server"]  S["Durable control plane<br/>runs, goals, events, results"]  W["Detached run supervisor"]  A["Antigravity CLI<br/>agy"]  T["Persistent tmux session<br/>human attach/input"]  L["Local Antigravity<br/>trajectory files"]
  H <-->|"MCP tools"| M  M <--> S  S --> W  W --> A  W <--> T  A --> L  W -->|"bounded transcript projection"| S  T -->|"terminal logs and attention prompts"| S

The bridge keeps the MCP server responsive while detached supervisors own the long-running agy processes. State and events are persisted locally, so a run can continue after the original MCP call returns. For the deeper process model, see docs/ARCHITECTURE.md. For the MCP control-loop vision, see docs/MCP_VISION.md.

MCP Tools

ToolPurpose
agy_run_startStart, continue, or open an interactive foreground run
agy_run_waitShort-poll until selected runs emit sparse wake events
agy_run_observeRead full, status, transcript, or raw terminal views
agy_run_inputSend input with optional event/transcript preconditions
agy_run_cancelCancel one active run
agy_run_resultRead final result metadata or bounded result chunks
agy_goalCreate goals, start targets, and read aggregate status
agy_adminRead diagnostics, models, plugins, validation, and changelog

Omit model (or pass null) to let Agy choose its default: the bridge stores model: null and does not send --model. This applies to runs, review tools, and goals, whose targets inherit their goal's selection. Explicit selections are validated against agy models, including the bridge's former Gemini 3.5 Flash (Medium) default; unknown and empty selections are rejected. The bridge never substitutes the first catalog entry. agy_admin(action="models") reports default_model: null and default_model_source: "agy_cli"; this describes delegation, not an observed effective provider model.

Existing persisted runs and goals retain their model strings and remain readable. They are not silently migrated to a different model. New launches from an old goal revalidate its selection and reject it if it is no longer available; create a new goal with an available model or omit the selection to delegate to Agy. Previously reserved runs retain their original command policy. New delegated requests have distinct deduplication keys from explicitly selected models. Older bridge versions that require a string goal model cannot read new null-model goals; avoid downgrading with those goals in use.

Typical flow:

text
agy_run_start -> agy_run_wait -> agy_run_observe -> agy_run_result

In Codex MCP, tools may be exposed with the server prefix, for example codex_agy_bridge_agy_run_wait. Run responses include exact wait_call arguments; note that agy_run_wait always takes run_ids: ["..."], even for a single run. Supported wait conditions are any_attention, any_terminal, all_terminal, any_event, and aliases attention, terminal, finished, finish, complete, completed, result, all_finished, all_complete, and all_completed.

Use agy_goal when the harness should split work into named targets with a shared objective and bounded parallelism.

Configuration

VariableDefaultPurpose
AGY_CMDagy on PATHExact Antigravity executable
AGY_BRIDGE_STATE_DIR~/.local/state/codex-agy-bridgeDurable run and goal state
AGY_BRIDGE_AGY_ROOT~/.gemini/antigravity-cliAntigravity conversations and trajectories
AGY_BRIDGE_MAX_PARALLEL50Global concurrent-run limit
AGY_BRIDGE_COMPLETION_STABILITY_SECONDS150Time a final marker must remain stable
AGY_BRIDGE_MCP_WAIT_SLICE_SECONDS120Max seconds a single agy_run_wait MCP call blocks before returning a snapshot so gateways do not time out

Run state survives MCP server restarts under ~/.local/state/codex-agy-bridge/.

Status And Risk

This project is experimental. It currently targets Python 3.11+, macOS or Linux with a supported terminal launcher, tmux, and Antigravity CLI 1.0.8-compatible commands and trajectory files.

Antigravity is an agentic CLI. It can read and write files, execute commands, and access the network with the current user's privileges. This bridge is not a sandbox or security boundary.

The bridge always enables Antigravity's dangerous permission-skip policy so unattended runs do not stall on CLI approval prompts. Any dangerously_skip_permissions=false input is rejected; the only allowed value is true. sandbox=true and additional_directories are CLI policy hints, not filesystem containment.

The bridge does not read or copy Antigravity OAuth credentials. It invokes the installed agy binary and reads ordinary local conversation metadata and trajectory files.

Development

bash
git clone https://github.com/varadfromeast/codex-agy-bridge.gitcd codex-agy-bridgeuv sync --extra devuv run pytestuv run ruff check .uv build

Run the server directly:

bash
uv run codex-agy-bridge

The server uses stdio transport. Do not print diagnostic text to stdout; it would corrupt MCP framing.

Publishing

A pushed version tag runs .github/workflows/publish.yml, which verifies versions, runs checks, builds distributions, publishes to PyPI through GitHub OIDC, creates a GitHub release, and publishes server.json to the MCP Registry.

Compatibility

The current reader expects Antigravity trajectory JSONL under:

text
~/.gemini/antigravity-cli/brain/<conversation-id>/  .system_generated/logs/transcript.jsonl

If Antigravity moves to SQLite or a local daemon API, a new adapter can replace this reader without changing the MCP tool contract.

License

MIT

來源:README.md,提交 508120b

工具

0
SourceWeft 尚未在沙箱中啟動過該軟體包,因此其工具未知。

版本歷史

2
  1. v0.1.12最新Sep 17, 2026
  2. v0.1.11Sep 16, 2026

評分

已滿足適用檢查項的 50%

該評分衡量此收錄條目的完整程度,依據註冊中心條目、端點與公開來源計算得出。它不是對伺服器本身的評價,也不表示伺服器安全或目前可用:可連通性是帶日期的檢查結果,評分也不包含安裝量或使用者評價。

  • 近 30 天內可連通25 分

    請保持端點能夠回應 MCP 握手;SourceWeft 每 30 天探測一次。

  • 已宣告認證方式10 分

    請在註冊中心條目中宣告憑證請求標頭,或保持端點能夠回應探測,以便判定其認證方式。

  • 已列出工具15 分

    請讓伺服器在無憑證時回應 tools/list,或發布可在沙箱中無憑證啟動的軟體包。

  • 描述必需15 分
  • 圖示10 分
  • 文件15 分
  • 授權條款10 分

其他 Claude 整合