code-mate-antigravity
它能做什么
这个智能体可以帮你使用 Antigravity CLI 分析代码或完成编程任务。你可以把工作交给 Antigravity 处理,也可以把它的结果和其他编程助手的结果进行对比。
适用场景
- ✓当你想让 Antigravity 分析你的代码时。
- ✓当你想让 Antigravity 完成一项编程任务时。
- ✓当你想对比 Antigravity 和另一个助手的输出结果时。
技能链接
https://github.com/CherryHQ/cherry-studio/blob/main/resources/code-cli-skills/code-mate-antigravity/SKILL.md复制后粘贴给你的 AI(Claude、ChatGPT 或 Cursor),让它按照说明操作。
使用方法
最简单的方法:复制下面的消息,粘贴给你的 AI。它会读取这个技能并按说明操作。
可直接粘贴的消息
适用于 Claude Code、Codex 或 Cursor:在项目文件夹中运行,即可安装该技能。
下载 SKILL.md,放进智能体的技能文件夹。
可以这样问 AI
“用 Antigravity CLI 分析一下这个项目,看看有没有错误。”
每周 5 个新技能,1 分钟读完。
工作原理
它会在后台运行 Antigravity CLI,无需你直接操作。它会先设置好运行环境,然后把你的指令交给命令执行,最后把结果返回给你。
技术内容(原始 SKILL.md)
作者在 GitHub 上的英文原文。
Antigravity CLI
Run
- Set the Bash working directory to the exact project the user named and set a finite timeout, normally 10 minutes.
- Check availability with
command -v agy. If it is missing, stop and ask the user to install Antigravity CLI in Code Mate. - Run one task and exit:
agy -p "<prompt>" --output-format json
Pass the prompt as one quoted argument. Print mode waits up to --print-timeout (5m by default); pass a shorter value when the caller's own timeout is tighter.
Parse the JSON result and read its status field: anything other than a success status is a failure, and error carries the reason. Treat unparseable output as failure too. Never start interactive Antigravity or an authentication flow.
Authentication And Permissions
Antigravity refuses to run headlessly until it is signed in — it returns status: "ERROR" with authentication failed or timed out and tells you to run agy to log in. Do not do that: stop and ask the user to finish Antigravity setup in Code Mate. Never request, read, print, or copy credentials.
Headless mode inherits the permission mode persisted in user settings, and reading and writing files inside the active workspace are auto-approved by default — the default is not a read-only boundary, and a prompt cannot make it one. Do not run it against a writable project for a read-only task. Use a disposable or read-only copy instead. Run against the real project only when the user explicitly requests workspace changes, constrain the directory, and inspect the diff afterward. Never pass --dangerously-skip-permissions, which auto-approves every tool request including outside the workspace.
Example: for an approved edit, ask Antigravity to touch only named files, run it in that project, parse the response and any reported error, and inspect the resulting diff before reporting success.
常见问题
什么是 Antigravity CLI?
它是一个用于代码分析和编程任务的命令行工具。
我需要安装什么吗?
需要。你的环境中要先安装 Antigravity CLI。如果没有安装,智能体会提示你安装。
如果 Antigravity 没有设置好会怎样?
如果 Antigravity 没有设置好或没有登录,智能体会停止运行,并提示你在 Code Mate 中完成设置。
详情
作者的原始描述
Runs Antigravity CLI headlessly for repository analysis and coding tasks. Use when the user asks to delegate work to Antigravity CLI or compare its result with another coding agent.
repo: CherryHQ/cherry-studio
热度
- GitHub 星标
- 53k
- 排名
- #3373
- 许可证
- AGPL-3.0
- 更新时间
- 2026/10/15
评论
- …