antigravity-rescue

antigravity-rescue is an agent for Claude Code from contrapuntal/antigravity-cli-plugin-cc. It costs 37 tokens per session (768 once invoked), scanned B, original, Apache-2.0.

An agent that forwards substantial coding or analysis tasks to Antigravity, an external coding assistant, through a shared runtime. It is intended for work needing broad context, such as understanding a whole repository.

In plain words
What is it for?
Use it for whole-repository questions, large change reviews, cross-file reasoning, or delegated coding tasks. Simple tasks are outside its intended use.
Why use it?
It gives the main coding session a second opinion or delegates work when the task spans many files and is difficult to hold in one context.

Agent for Claude Code

Written for Claude Code: ${CLAUDE_PLUGIN_ROOT} variable. Also seen: model in frontmatter; mentions subagents; mentions Claude Code.

Runs only inside its plugin — its command needs a path that Claude Code sets for a plugin’s own hooks and for nothing else. Install the plugin, not this.

Part of the ask-antigravity plugin — 4 commands, 1 agent shipped together

Install

Getting it into your agent

This one installs as part of its plugin. Adding the marketplace and installing the plugin brings it with everything else the plugin ships.

Claude Code
/plugin marketplace add contrapuntal/antigravity-cli-plugin-cc
Claude Code
/plugin install ask-antigravity

Made for: Claude Code.

Or install ask-antigravity, the plugin that ships this one along with the rest of its 4 commands, 1 agent.

Wrote this? Show the measurements

A badge with what this costs and how it scanned, read live from this page, so it follows the numbers instead of freezing them. Markdown for a README, HTML for a documentation site or a project page.

agentmods badge for antigravity-rescue

README.md
[![agentmods](https://agentmods.dev/badge/agents/contrapuntal/antigravity-cli-plugin-cc/antigravity-rescue.svg)](https://agentmods.dev/agents/contrapuntal/antigravity-cli-plugin-cc/antigravity-rescue)
Your own site
<a href="https://agentmods.dev/agents/contrapuntal/antigravity-cli-plugin-cc/antigravity-rescue"><img src="https://agentmods.dev/badge/agents/contrapuntal/antigravity-cli-plugin-cc/antigravity-rescue.svg" alt="Measured on agentmods" height="20"></a>
Per session 37 Only the description is in the session, so the agent can decide to use it. The body loads when it is invoked.
When invoked 768 The whole file, excluding the scripts and references it only reads on demand.
Security scan B 1 finding. Scan, not verified.
Origin original No closer match found in the catalogue.
Token cost

What it costs to keep this loaded

Counted locally with the o200k_base tokenizer, which is exact for GPT models; Claude uses its own tokenizer and its counts differ. Treat this as one consistent yardstick across the catalogue rather than a bill. Prices are per million input tokens.

ModelPer sessionOnce invoked
Fable 5.1 $0.00037 $0.00768
Opus 5 $0.00018 $0.00384
Sonnet 5 $0.00007 $0.00154
Haiku 4.5 $0.00004 $0.00077

Measured 5d ago against content hash 149140ba2eb1, method: parsed. Prices are Anthropic first-party input rates as of 2026-09-06, from the pricing page.

Security

Grade B, and why

antigravity-rescue scanned grade B with 1 finding against 26 rules in 11 categories — prompt injection, anti-refusal, data exfiltration, privilege escalation, supply chain, agent snooping, system-prompt leakage, SSRF and excessive agency — measured 5d ago.

A static scan of the body, not an audit. Every finding is printed with the line that produced it so you can judge whether it matters here. A mod is markdown that instructs an agent; that is exactly why what it instructs is worth reading.

Subtle steeringmediumPrompt injection

Instructions that bias recommendations or shape behaviour without the user noticing.

- Pass `--write` through to the companion only when the user explicitly requested write-capable execution. Omitting it signals "analyze and propose" intent, but it is NOT a sandbox — on agy 1.1.1 no flag stops agy from e
plugins/ask-antigravity/agents/antigravity-rescue.md · 41 lines

What it actually says

You are a thin forwarding wrapper around the Antigravity companion task runtime.

Your only job is to forward the user's rescue request to the Antigravity companion script. Do not do anything else.

Selection guidance:

  • Do not wait for the user to explicitly ask for Antigravity. Use this subagent proactively when the main Claude thread should hand a substantial analysis or implementation task to Antigravity, especially when the task benefits from Antigravity's large context window (whole-repo questions, large diff analysis, cross-file reasoning).
  • Do not grab simple asks that the main Claude thread can finish quickly on its own.

Forwarding rules:

  • Pass the task text through a file, never as a shell argument. Free-form text on a shell command line lets $(...) and backticks execute before the companion runs. Do this in two steps:
    1. Use the Write tool to save the user's task text (verbatim, minus routing flags) to a temp file, e.g. ${TMPDIR:-/tmp}/antigravity-task-<something-unique>.md.
    2. Use exactly one Bash call: node "${CLAUDE_PLUGIN_ROOT}/scripts/antigravity-companion.mjs" task --prompt-file "<that file>" [--write] [--model "<name>"].
  • Never interpolate the raw task text directly into the Bash command string.
  • If the user did not explicitly choose --background or --wait, prefer foreground for a small, clearly bounded request.
  • If the user did not explicitly choose --background or --wait and the task looks complicated, open-ended, multi-step, or likely to keep Antigravity running for a long time, set run_in_background: true on your Bash call.
  • Do not inspect the repository, read files, grep, monitor progress, summarize output, or do any follow-up work of your own.
  • Do not call review, adversarial-review, or setup. This subagent only forwards to task.
  • Pass --write through to the companion only when the user explicitly requested write-capable execution. Omitting it signals "analyze and propose" intent, but it is NOT a sandbox — on agy 1.1.1 no flag stops agy from editing files, so never tell the user a run without --write cannot touch their workspace.
  • Forward a user-supplied --model "<display name>" to the task call unchanged, including its quoting (display names contain spaces). Without it, agy uses the model selected in its TUI (/model).
  • Treat --background, --wait, --write, and --model as routing controls. Do not include them in the task text.
  • Preserve the user's task text as-is apart from stripping routing flags.
  • Return the stdout of the antigravity-companion command exactly as-is.
  • If the Bash call fails or Antigravity cannot be invoked, return a single line: [antigravity-rescue] dispatcher failed: <one-line reason> and nothing else. Do not retry, recover, or run agy directly. The deterministic line gives the parent a signal it can recognize instead of empty output.

Response style:

  • Do not add commentary before or after the forwarded antigravity-companion output.
Changes

What this file has done since we first saw it

Hashed on every crawl. A supply-chain change to an agent config is a question of when, not whether, so the history is kept rather than the latest state alone.

  1. 5d ago First seen · 41 lines · 37 tokens per session scan B 149140ba2eb1

Subscribe to this mod's changes

antigravity-rescue is an agent published in the GitHub repository contrapuntal/antigravity-cli-plugin-cc (2 stars, last pushed 2d ago), licensed Apache-2.0. It adds 37 tokens to every session and 768 once invoked, about $0.0002 per session on Opus 5. A static security scan graded it B with 1 finding (subtle steering). No closer match exists in the catalogue, so it is treated as the original; first seen 2026-08-31.