sub-antigravity
Click on "Install Server".
Wait a few minutes for the server to deploy. Once ready, it will show a "Started" state.
In the chat, type
@followed by the MCP server name and your instructions, e.g., "@sub-antigravityAnalyze why the login flow is failing in this repo and propose a fix."
That's it! The server will respond to your query, and you can continue using it as needed.
Here is a step-by-step guide with screenshots.
🛰️ sub-antigravity
让任何 Harness 都能把本机 Antigravity CLI 当作可委派的子代理
继续使用 Codex、DeepSeek Harness、Claude Code、Cursor、Hermes 等熟悉的工作流,把代码分析、修改、测试和长任务交给当前机器上已经登录的官方 AGY。
项目简介 · 核心能力 · 工作方式 · 系统架构 · 快速开始 · MCP 接入
📖 项目简介
sub-antigravity 是一个面向 AI Agent 与开发 Harness 的 Antigravity 委派桥接器。它调用用户本机安装并登录的官方 agy,通过通用 stdio MCP 和 Direct CLI 提供统一入口,让不同宿主共享同一套 Antigravity 子代理能力。
在 MCP 模式下,宿主负责理解当前对话和决定何时委派,AGY 负责执行具体任务;在 Direct 模式下,任务可以直接进入 AGY,不经过宿主模型。两种入口使用同一个执行器、模型选择策略和会话续接方式。
💡 一句话概括:保留你习惯的 Harness,把真正耗时的工作交给 Antigravity。
Related MCP server: codex-agy-bridge
✨ 核心能力
🔌 通用 MCP 委派 —— 为支持 stdio MCP 的 Harness 提供统一的 Antigravity 子代理工具。
⚡ Direct 直通 —— 从终端直接把任务交给 AGY,适合希望尽量减少宿主模型 Token 消耗的场景。
🧭 自动模型选择 —— 每次任务前读取账号当前可用模型,优先选择最新 Gemini Flash 的最高推理档,并自动适应后续版本更新。
🧵 长任务与后台 Job —— 提交任务后立即获得 Job ID,可继续查询、等待、读取结果或取消。
✂️ 紧凑交付 —— 向宿主返回状态、摘要、变更文件、测试结果和会话 ID,完整结果保存在本地。
💬 连续对话 —— 使用
conversation_id继续既有 AGY 会话,不必从头描述上下文。🧩 委派 Skill —— 为支持 Skills 的宿主提供任务分流规则,帮助宿主判断哪些工作更适合交给 AGY。
🔄 工作方式
入口 | 适合场景 | 宿主模型参与 |
MCP | 在原有 Harness 对话中自动决定并委派任务 | 参与任务判断与结果接收 |
Direct CLI | 从终端直接调用 AGY,或由支持本地命令直通的宿主触发 | 不参与 |
MCP 使用异步 Job 流程处理长任务:
提交任务 → 返回 job_id → 等待或查询 → 获取紧凑结果Direct CLI 直接等待 AGY 完成并输出结果:
输入任务 → AGY 执行 → 返回结果与 conversation_id🏗️ 系统架构
flowchart LR
U[用户任务] --> H[Codex / DSH / Claude Code / Cursor / Hermes]
H -->|stdio MCP| M[sub-antigravity MCP]
U -->|Direct CLI| D[sub-antigravity Direct]
M --> J[后台 Job]
D --> R[统一执行器]
J --> R
R --> S[动态模型选择]
S --> A[官方 agy CLI]
A --> W[目标工作区]
A --> C[紧凑结果 / 会话续接]
C --> H
C --> U🧠 模型选择
sub-antigravity 在每次任务开始前读取 agy models,按照以下顺序自动选择:
最新版本的 Gemini Flash;
同一版本中最高的推理档;
没有可用 Flash 时,选择最新 Gemini Pro 的最高推理档。
任务始终使用 AGY 提供的最高推理强度,并通过 --effort high 执行。模型名称不绑定具体版本,因此 AGY 账号出现更新的 Gemini Flash 后无需修改配置。
🛠️ 技术栈
领域 | 选型 |
运行时 | Python 3.10+ |
Agent 执行 | 官方 Antigravity CLI( |
宿主接入 | Model Context Protocol(stdio) |
CLI |
|
任务状态 | 本地 Job 与结果文件 |
委派策略 | Agent Skill |
🚀 快速开始
1. 准备 AGY
确认官方 agy 已安装并完成登录:
agy2. 安装 sub-antigravity
uv tool install "git+https://github.com/ZorIgn/sub-antigravity"
sub-antigravity check本地开发:
git clone https://github.com/ZorIgn/sub-antigravity
cd sub-antigravity
uv sync --extra dev
uv run sub-antigravity check项目会从当前 PATH 和 Windows 常见安装位置查找 agy。也可以显式指定路径:
$env:SUB_ANTIGRAVITY_AGY_PATH = "C:\Users\you\AppData\Local\agy\bin\agy.exe"3. 直接委派任务
分析当前项目:
sub-antigravity direct --cwd E:\project "分析登录失败的原因并给出结论"允许 AGY 修改工作区:
sub-antigravity direct --cwd E:\project --edit "修复登录失败并运行相关测试"继续上一次对话:
sub-antigravity continue <conversation-id> --cwd E:\project --edit "继续处理剩余问题"🔌 MCP 接入
通用 stdio MCP 配置:
{
"mcpServers": {
"sub-antigravity": {
"command": "uvx",
"args": [
"--from",
"git+https://github.com/ZorIgn/sub-antigravity",
"sub-antigravity-mcp"
]
}
}
}Codex
codex mcp add sub-antigravity -- uvx --from git+https://github.com/ZorIgn/sub-antigravity sub-antigravity-mcpClaude Code
claude mcp add --transport stdio sub-antigravity -- uvx --from git+https://github.com/ZorIgn/sub-antigravity sub-antigravity-mcpCursor、Hermes 与其他 MCP Harness
使用上面的通用 mcpServers 配置,并将 transport 设为 stdio。
DeepSeek Harness
- id: mcp-sub-antigravity
name: '@deepseek-ai/dsh-mcp-client'
config:
serverName: sub-antigravity
transport: stdio
command: uvx
args:
- --from
- git+https://github.com/ZorIgn/sub-antigravity
- sub-antigravity-mcp
toolCallTimeoutMs: 60000🧰 MCP 工具
工具 | 用途 |
| 提交新任务,或通过 |
| 查询、等待、读取结果或取消后台任务 |
| 查看 AGY、可用模型与自动选择结果 |
典型调用流程:
antigravity_delegate
→ job_id
→ antigravity_job(action="wait", wait_seconds=45, detail="compact")
→ 完成后读取 compact 结果🧩 委派 Skill
skills/delegate-to-antigravity 描述了适合委派给 AGY 的任务范围、结果接收方式和工作区修改规则。
将该目录安装到 Harness 的 Skills 目录后,宿主可以结合 MCP 自动判断何时调用 Antigravity。MCP 也可以独立使用,不依赖 Skill。
📂 项目结构
src/sub_antigravity/ CLI、MCP Server、任务与 AGY 执行器
skills/delegate-to-antigravity/ 通用委派 Skill
docs/IMPLEMENTATION.md 实现说明
tests/ 核心流程测试📚 延伸阅读
🙏 Acknowledgements
项目参考了以下开源实现:
本项目使用 MIT License。
Available Tools
3 toolsantigravity_checkC
Check AGY discovery, local login-visible models, and the selected Gemini model.
| Name | Required | Description | Default |
|---|---|---|---|
| cwd | No |
Output Schema
| Name | Required | Description |
|---|---|---|
No output parameters | ||
TDQS
Does the description disclose side effects, auth requirements, rate limits, or destructive behavior?
With no annotations, the description carries the full burden, but it only says 'Check,' which implies a non-mutating operation without stating it explicitly. It does not disclose whether any configuration is changed, whether a network call is performed, or what happens when discovery is unavailable.
Agents need to know what a tool does to the world before calling it. Descriptions should go beyond structured annotations to explain consequences.
Is the description appropriately sized, front-loaded, and free of redundancy?
The description is a single sentence that names the tool's purpose without filler. It is front-loaded with the action and the three specific check targets, making it easy to scan.
Shorter descriptions cost fewer tokens and are easier for agents to parse. Every sentence should earn its place.
Given the tool's complexity, does the description cover enough for an agent to succeed on first attempt?
The tool is simple, with one optional parameter and an output schema, but the description still omits key context: when to choose this over sibling tools, how cwd affects the result, and whether any setup or login is needed. The agent can probably invoke it, but not with full confidence about side effects and scope.
Complex tools with many parameters or behaviors need more documentation. Simple tools need less. This dimension scales expectations accordingly.
Does the description clarify parameter syntax, constraints, interactions, or defaults beyond what the schema provides?
The single parameter cwd is optional, has a null default, and no schema description; the tool description never mentions it. While 'cwd' is a recognizable abbreviation, the description adds no meaning about how it affects the check, so it fails to compensate for the 0% schema description coverage.
Input schemas describe structure but not intent. Descriptions should explain non-obvious parameter relationships and valid value ranges.
Does the description clearly state what the tool does and how it differs from similar tools?
The description names a specific action ('Check') and enumerates three concrete targets: AGY discovery, local login-visible models, and the selected Gemini model. It conveys the tool is a read-only status/diagnostic operation, which separates it from sibling tools like antigravity_delegate and antigravity_job, though it does not explicitly name those alternatives.
Agents choose between tools based on descriptions. A clear purpose with a specific verb and resource helps agents select the right tool.
Does the description explain when to use this tool, when not to, or what alternatives exist?
There is no guidance on when to run this check versus using antigravity_delegate or antigravity_job, and no mention of prerequisites such as whether login is required. The intended context is only implied by the verb 'Check' and the tool name.
Agents often have multiple tools that could apply. Explicit usage guidance like "use X instead of Y when Z" prevents misuse.
antigravity_delegateA
Start a delegated Antigravity job and return immediately with a job ID.
Give one complete goal with constraints and expected completion evidence. Pass a previous conversation_id to continue that Antigravity conversation. Enable edits only when authorized.
| Name | Required | Description | Default |
|---|---|---|---|
| cwd | No | ||
| prompt | Yes | ||
| sandbox | No | ||
| allow_edits | No | ||
| conversation_id | No | ||
| timeout_seconds | No |
Output Schema
| Name | Required | Description |
|---|---|---|
No output parameters | ||
TDQS
Does the description disclose side effects, auth requirements, rate limits, or destructive behavior?
With no annotations provided, the description carries the behavioral burden. It discloses that the tool is asynchronous ('return immediately with a job ID') and warns about edit permissions ('Enable edits only when authorized'). It does not mention rate limits or exhaustive side effects, but covers the most important behavioral traits for a delegated job starter.
Agents need to know what a tool does to the world before calling it. Descriptions should go beyond structured annotations to explain consequences.
Is the description appropriately sized, front-loaded, and free of redundancy?
The description is compact and front-loaded, with the core purpose first and supporting usage guidance following. Every sentence adds value, and there is no redundant or filler content.
Shorter descriptions cost fewer tokens and are easier for agents to parse. Every sentence should earn its place.
Given the tool's complexity, does the description cover enough for an agent to succeed on first attempt?
The description covers the essentials for starting a job and the main prompt-level guidance, but it omits several parameters (cwd, sandbox, timeout_seconds) and does not mention following up via antigravity_check. Given the tool's async nature and six parameters, the description is adequate but leaves meaningful gaps.
Complex tools with many parameters or behaviors need more documentation. Simple tools need less. This dimension scales expectations accordingly.
Does the description clarify parameter syntax, constraints, interactions, or defaults beyond what the schema provides?
The schema has 0% description coverage, so the description must compensate. It adds meaningful guidance for prompt, conversation_id, and allow_edits ('Give one complete goal', 'Pass a previous conversation_id', 'Enable edits only when authorized'). However, cwd, sandbox, and timeout_seconds are not addressed, leaving notable ambiguity for a tool with six parameters.
Input schemas describe structure but not intent. Descriptions should explain non-obvious parameter relationships and valid value ranges.
Does the description clearly state what the tool does and how it differs from similar tools?
The description states a specific verb and resource: 'Start a delegated Antigravity job and return immediately with a job ID.' This clearly conveys the tool's primary function and distinguishes it from the sibling antigravity_check tool, which is presumably for status retrieval.
Agents choose between tools based on descriptions. A clear purpose with a specific verb and resource helps agents select the right tool.
Does the description explain when to use this tool, when not to, or what alternatives exist?
The description offers clear usage context: 'Give one complete goal with constraints and expected completion evidence.' It also explains when to use conversation_id and when to enable edits. However, it does not explicitly discuss alternatives or when not to use this tool relative to antigravity_job or antigravity_check.
Agents often have multiple tools that could apply. Explicit usage guidance like "use X instead of Y when Z" prevents misuse.
antigravity_jobA
Wait for, inspect, retrieve, or cancel a delegated Antigravity job.
Prefer action=wait and detail=compact. Request detail=full only when the user needs the complete AGY response because full tool results consume the host model's context.
| Name | Required | Description | Default |
|---|---|---|---|
| action | No | status | |
| detail | No | compact | |
| job_id | Yes | ||
| wait_seconds | No |
Output Schema
| Name | Required | Description |
|---|---|---|
No output parameters | ||
TDQS
Does the description disclose side effects, auth requirements, rate limits, or destructive behavior?
With no annotations provided, the description carries the burden of disclosing behavior. It usefully warns that full results consume the host model's context, but it does not mention potential blocking during wait, side effects of cancel, or whether status/result have different implications.
Agents need to know what a tool does to the world before calling it. Descriptions should go beyond structured annotations to explain consequences.
Is the description appropriately sized, front-loaded, and free of redundancy?
The description is two sentences and every part contributes. The action summary is front-loaded and the guidance about context consumption is placed immediately after the recommendation, making the key trade-off easy to notice.
Shorter descriptions cost fewer tokens and are easier for agents to parse. Every sentence should earn its place.
Given the tool's complexity, does the description cover enough for an agent to succeed on first attempt?
An output schema exists, so return values are covered. However, the description omits the relationship to sibling tools and does not explain wait_seconds semantics, leaving some gaps for an agent deciding how to invoke the tool correctly in context.
Complex tools with many parameters or behaviors need more documentation. Simple tools need less. This dimension scales expectations accordingly.
Does the description clarify parameter syntax, constraints, interactions, or defaults beyond what the schema provides?
Schema description coverage is 0%, so the description must compensate for parameter meaning. It clarifies detail and recommends action=wait, but it does not explain wait_seconds, job_id, or the differences among the action enum values beyond their self-evident names.
Input schemas describe structure but not intent. Descriptions should explain non-obvious parameter relationships and valid value ranges.
Does the description clearly state what the tool does and how it differs from similar tools?
The description clearly identifies a specific resource — a delegated Antigravity job — and enumerates the actions available (wait, inspect, retrieve, cancel). It is more specific than the tool name alone, though it does not explicitly distinguish itself from the sibling antigravity_check.
Agents choose between tools based on descriptions. A clear purpose with a specific verb and resource helps agents select the right tool.
Does the description explain when to use this tool, when not to, or what alternatives exist?
The description gives concrete usage guidance: prefer action=wait and detail=compact, and use detail=full only when the complete AGY response is necessary. It does not, however, state when to use this tool versus antigravity_check or antigravity_delegate.
Agents often have multiple tools that could apply. Explicit usage guidance like "use X instead of Y when Z" prevents misuse.
TDQS
Each tool has a clearly distinct role: delegate starts a job, job manages a running or completed job, and check inspects environment configuration. There is no meaningful overlap in purpose.
All tools share the antigravity_ prefix and use snake_case, but antigravity_job breaks the verb-led pattern established by antigravity_delegate and antigravity_check. The convention is still readable and predictable.
Three tools is a well-scoped set for a delegated job system: start, manage, and check environment. Each tool earns its place without unnecessary redundancy.
The core lifecycle of starting, waiting on, retrieving, and canceling delegated jobs is covered, along with environment discovery. A list-all-jobs operation is absent but is not clearly required for the server's stated purpose.
Maintenance
Resources
Unclaimed servers have limited discoverability.
Looking for Admin?
If you are the server author, to access and configure the admin panel.
Related MCP Connectors
Develop, manage, and debug Railway projects, services, and deployments from within agents.
Talk to your public-facing AI from any MCP client — Claude, ChatGPT, Cursor, Cline, Windsurf.
Task management your AI agents can actually run. One line becomes a context-ready task over MCP.
Illumora Craft — evidence-augmented prompt compile for agents via remote MCP (OAuth) or local stdio.
Related MCP Servers
- AlicenseAqualityDmaintenanceEnables Claude to drive the Antigravity agent by running prompts through the agy CLI non-interactively, supporting session management and optional sandboxed execution.51ISC
- AlicenseBqualityAmaintenanceAn MCP bridge that lets Codex delegate long-running agent work to the Antigravity CLI, providing observable and resumable tool-based execution with project scoping.137MIT
- AlicenseNot gradedqualityDmaintenanceEnables MCP-compatible clients like Codex to delegate tasks to the Antigravity CLI, using ConPTY on Windows to reliably capture responses.1MIT
- AlicenseNot gradedqualityBmaintenanceEnables ChatGPT (or any MCP client) to delegate coding tasks to a local Hermes-backed agent with async job management, supporting read-only investigation, implementation, and continuation of sessions via secure MCP tunnel.1MIT
Latest Blog Posts
- Who's Calling? MCP Hosts Are an Identity Blind Spot (And the Spec Knows It)By Om-Shree-0709 on .mcpAgent IdentityOAuth 2.1
- Your AI Chatbot Just Exposed Your CEO's Salary to an InternBy Om-Shree-0709 on .Agent IdentityMCP SecurityOAuth Delegation
- Why MCP Servers Need Execution Sandboxing (And Why Your Current Stack Isn't Enough)By Om-Shree-0709 on .Agentic AiPrompt InjectionWebAssembly
MCP directory API
We provide all the information about MCP servers via our MCP API.
curl -X GET 'https://glama.ai/api/mcp/v1/servers/ZorIgn/sub-antigravity'
If you have feedback or need assistance with the MCP directory API, please join our Discord server