Skip to main content
skill CX Codex

antigravity-cli — Claude Code skill: delegate coding tasks

Send Antigravity CLI a bounded investigation, review, or implementation task, then track its progress. Useful when you can inspect the agent’s result.

Install into Claude Code · Skills CLI (Vercel) All methods and platforms ↓
npx skills add scarletkc/agents --skill antigravity-cli -a claude-code
Open on GitHub

What antigravity-cli does

This skill runs the installed, authenticated agy CLI as an external coding agent. A helper script returns a task ID while a background worker handles the task. You can check its status, wait for a result, send a follow-up in the same conversation, or cancel it.

The script needs Python 3.12+ and uses the standard library; Antigravity CLI must already be installed and authenticated. The helper surfaces tool errors and permission denials, but a completed turn does not verify its own claims or edits. Inspect the diff and output files. Cancelling stops the process, not changes it has already made.

What it helps with

  • delegate a bounded investigation to Antigravity CLI
  • track a background task and inspect its result
  • send follow-up instructions in the same conversation
  • cancel a task and review its partial output

Example prompts for the agent

  • Ask Antigravity to inspect error handling in src/ and report which files need changes.
  • Run this function review through Antigravity, wait for the result, then inspect the diff.
  • Send Antigravity a follow-up to edit only src/parser.py, then check the changed files.

How to install antigravity-cli

1Skills CLI (Vercel)

npx skills add scarletkc/agents --skill antigravity-cli -a claude-code

2Manually: put the files in place

~/.claude/skills/antigravity-cli/SKILL.md

Copy the whole skill folder; for one project use .claude/skills/antigravity-cli/

Step by step, with commands for each platform: How to install skills in Claude Code: five ways

Questions about antigravity-cli

How do I install antigravity-cli in Claude Code?

Run npx skills add scarletkc/agents --skill antigravity-cli -a claude-code. The skill file is placed at ~/.claude/skills/antigravity-cli/SKILL.md.

What does antigravity-cli do?

It lets a supervising agent assign work to Antigravity CLI and monitor the task. You can continue the same conversation with follow-up instructions or cancel the task.

What does antigravity-cli need to run?

Antigravity CLI must be installed and authenticated, and the helper script needs Python 3.12+. Check the diff and output files yourself; a completed turn does not establish that its result is correct.

Source text

SKILL.md · Apache-2.0
---
name: antigravity-cli
description: "Delegate bounded investigation, review, or implementation tasks to Antigravity CLI from a supervising agent. Includes a background client for task progress, follow-up prompts, conversation recovery, cancellation, and visible failures."
license: Apache-2.0
metadata:
  author: scarletkc
  source: https://github.com/scarletkc/agents
  summary: "Delegate work to Antigravity CLI, inspect progress and tool failures, and continue the same conversation across follow-up tasks."
---

# Antigravity CLI

Use the installed `agy` CLI as an external coding agent. The bundled client
returns a task ID immediately and keeps a background worker available for
follow-ups. It runs each turn with official streaming JSON input/output and
resumes the exact Antigravity conversation on the next turn. Waiting for the
process and stderr to finish makes permission denials and partial-output
timeouts visible; each follow-up incurs CLI startup time.

Delegate when the user requests Antigravity or another agent can add value
that you can verify. Keep routine work with the supervising agent when the
extra startup and review time would outweigh that benefit.

Antigravity CLI must already be installed and authenticated. Run
[scripts/agy.py](scripts/agy.py) with the project's Python 3.12+ interpreter.
The helper uses only the standard library; when the project has no Python
environment, `uv run --python 3.12 <script> ...` also works. Resolve the
script relative to this skill, not the project receiving the task.

## Assign and follow up

Provide the goal, absolute working directory, relevant files and evidence,
scope, and completion check. Antigravity does not inherit the supervising
agent's conversation. Use a UTF-8 prompt file for substantial instructions:

```sh
python <script> start --cwd <absolute-project-path> --prompt-file <task-file>
python <script> wait <task_id> --timeout 30
python <script> status <task_id>
python <script> reply <task_id> --prompt-file <follow-up-file>
python <script> cancel <task_id>
python <script> close <task_id>
```

Keep independent work with the supervising agent while the task runs.
`wait` timing out only returns a snapshot; it does not cancel the task.
`reply` is accepted after the current turn finishes. Retain the `task_id`
and close the worker when no more follow-ups are needed.

The helper supplies both the process working directory and `--add-dir`.
For concurrent edits to overlapping files, use separate worktrees and pass
their paths as `--cwd`; the helper does not create worktrees. Check actual
output paths, since Antigravity can also write to its conversation artifacts.

## Configuration and permissions

Inherit Antigravity's authentication, model, and permission configuration.
Subscription and API authentication remain Antigravity's responsibility.
Do not switch providers, change authentication, or rewrite its global
settings to conceal a failure.

`start --model`, `--effort`, `--mode`, and `--sandbox` are task-specific
overrides. Honor the user's model or effort choice. Otherwise choose effort
according to complexity, error cost, and ease of verification; omit the
override when the model's support or the appropriate choice is uncertain.
Discover models with `agy --output-format json models`.

Match permissions to the authorized work. `--mode plan` is a planning
instruction, not enforced read-only access: headless plan review can proceed
automatically. The supervising agent's sandbox does not configure AGY's.
Do not promise isolation without checking the target platform's support.

For authorized workspace edits, `--mode accept-edits` allows file changes
without interactive diff review; shell commands still follow tool permission
rules. If a file tool rejects the target as an invalid artifact path, ask
Antigravity to write a regular workspace file instead of an artifact. Inspect
that tool error before attempting a shell workaround or expanding permissions.

Headless AGY cannot accept programmatic approval responses. When the helper
reports `blocked`, inspect `denied_actions` and the partial result. If the
task requires those tools, use scoped Antigravity permission rules or an
interactive AGY session to establish the required permissions, following the
original authorization. Do not repeatedly submit a blocked operation with
unchanged permissions. The helper exposes `--dangerously-skip-permissions`
only as an explicit override; do not use it merely to avoid an approval.
Scoped rules limit which actions match; they are stored in Antigravity's
global settings, not as temporary grants managed by this helper.

## Check results and recover

Read `status`, `closed`, `stop_reason`, `error`, `denied_actions`, and
`tool_errors` together. `completed` means the turn returned a response, not
that its claims or edits were verified. Inspect the diff, output files, and
relevant checks. AGY may recover from an individual tool error, so tool
errors remain visible even when the final turn completes.

The helper does not equate native `SUCCESS` or exit code 0 with completion.
It checks permission denials and stderr timeout diagnostics, and enforces
its own startup, turn, and shutdown deadlines.

`cancel` stops that task's AGY process tree and closes its worker. It does
not undo edits or external actions already performed. Read partial results
before retrying. To continue a closed conversation, explicitly start a new
task with its returned `session_id`:

```sh
python <script> start --cwd <same-project-path> --conversation <session_id> --prompt-file <follow-up-file>
```

An open task can use `reply` after a provider failure. This is an explicit
new turn in the same conversation; there is no automatic retry. If startup
failed before a session ID was obtained, resolve the error and start again.

If installation, authentication, network, permissions, or execution blocks
the task, tell the user what failed and what remains incomplete. Do not
silently replace the requested Antigravity contribution with your own work
or another provider. Committing, publishing, and other external actions
retain the authorization boundaries of the original assignment.

Use `<script> --help` for commands and
[references/client.md](references/client.md) for state fields, timeouts,
storage, and diagnostics.

© scarletkc · Apache-2.0 · scarletkc/agents

Similar skills

SKILL.md skills catalog →

From the same set10

ux-writing A skill that sets judgment rules for user-facing strings and docs: CLI and diagnostic output, errors, help text, README structure, comments and titles. CX Codex +1 ★ 224repo stars scoped-change Restricts agent edits strictly to the requested scope. Prevents unrequested refactoring and missed sibling updates. CX Codex +1 ★ 224repo stars product-writing This skill helps draft and review interface copy and technical docs. Use it for error messages, CLI text, help content, and explanations of product behavior. CX Codex +1 ★ 224repo stars marketing-copy Drafts launch posts, store descriptions, landing headlines and press notes. Checks first that no key, unlisted link or unshipped feature leaks into public text. CX Codex +1 ★ 224repo stars grok-cli Delegates bounded tasks to Grok Build while your main agent keeps working. Manages background ACP sessions for progress, follow-ups, and permissions. CX Codex +1 ★ 224repo stars devin-cli Delegates bounded coding work to a local Devin CLI over ACP and tracks the run. Use it for parallel implementation, ports, reviews, or follow-up turns. CX Codex +1 ★ 224repo stars codex-cli A skill on when handing work to Claude CLI pays off, and how to size the run: model, reasoning effort, sandbox permissions. Written for the supervising agent. CX Codex +1 ★ 224repo stars ask-to-plan Turns vague ideas into an actionable plan via native clickable choices. It asks one focused question at a time to clarify scope and technical decisions. CX Codex +1 ★ 224repo stars

Project sponsors

Companies that keep this analytics open
Gold sponsor

Impressions, clicks and code copies — open statistics. We keep the numbers public for the same reason NeBlask itself is public. Become a sponsor