cancel
CommandCancel a running background Antigravity (agy) delegation job.
Diagnose a failing Cloud Run service — Antigravity (agy/Gemini) digests the error logs cheaply, Claude infers the root cause and proposes a fix. Read-only by default; --apply writes the fix to a branch.
> /plugin marketplace add yuting0624/antigravity-for-claude-code> /plugin install antigravity@antigravity-for-claude-code
description: Diagnose a failing Cloud Run service — Antigravity (agy/Gemini) digests the error logs cheaply, Claude infers the root cause and proposes a fix. Read-only by default; --apply writes the fix to a branch. argument-hint: "[--service <name>] [--region <r>] [--project <id>] [--since 1h] [--limit 200] [--apply]"
Diagnose a broken Cloud Run service. This is a **Conductor / Executor** split: **you (Claude) conduct** — confirm scope, reason about the root cause, and propose the fix — while the cheap, high-volume work (pulling and clustering potentially hundreds of error log lines) is **offloaded to agy (Gemini)** so your context stays lean. You ingest only agy's digest, never the raw logs.
Flags: $ARGUMENTS
Defaults: `--since 1h`, `--limit 200`, **read-only** (diagnosis only). `--apply` is the only thing that writes anything, and only ever onto a branch for human review. For a chatty service, narrowing `--since` tightens the digest (and cost) further.
Advanced (engine) flags also exist and can be passed through if the user asks: `--severity` (minimum severity, default `ERROR`) and `--tier` (agy tier for the digest, default `flash`).
Do this:
1. **Resolve scope.** Parse the flags above.
(AskUserQuestion) — there is no "default service".
`gcloud config` has a default region you can offer it.
project. Multi-project users can easily read the **wrong** project's logs this way, so when `--project` isn't given, **surface the project the engine will use** (`gcloud config get-value project`) and confirm it before reading — or have the user pass `--project <id>` explicitly.
2. **Fetch + digest (delegate to agy — one batch, not parallel).** Run the plugin's read-only engine, which pulls `severity>=ERROR` logs via `gcloud logging read` and hands them to agy for a structured digest (error clusters / representative stack traces / time distribution / likely root-cause candidates): `cloud-debug --service <name> [--region <r>] [--project <id>] [--since <dur>] [--limit <n>]`
context (that lean handoff is where the cost saving comes from).
and stop — the user must grant access first. Exit **4** means `gcloud` isn't installed.
service/region with the user.
3. **Diagnose (you).** From the digest, infer the most likely root cause (e.g. a missing env var, an unhandled exception, bad config, a dependency timeout). State the reasoning and the evidence (which cluster / trace supports it). Then propose a **concrete fix** — the exact code, config, or environment change — and how to verify it.
4. **Apply only if `--apply` was passed.** Default is diagnosis-only; do **not** modify anything without `--apply`.
confirm with the user — branching now would fold their uncommitted changes into your fix's diff (and any commit). Offer to `git stash` them, or to work in a separate branch/worktree. Only proceed from a **clean base**.
merge — a human reviews and merges.
Keep it tight: the demo is Claude conducting the diagnosis while a cheaper model does the log grunt-work. Report what you delegated, the root cause you landed on, and the fix (plus the diff if `--apply`).
Run the Antigravity CLI (Gemini) as a collaborating sub-agent, right inside Claude Code. Claude conducts the judgement; Gemini does the heavy lifting — intelligent model routing across the SDLC.
Cancel a running background Antigravity (agy) delegation job.
Delegate a well-scoped subtask to Antigravity (agy/Gemini) under cost discipline, then verify.
Hand a whole, test-covered task to Antigravity (agy/Gemini) and verify it only by running the tests — the one delegation shape…
Understand an audio / video / image file — Antigravity (agy/Gemini) transcribes and analyzes it, returning a timestamped digest…
Migrate an existing Claude Code setup (skills, memory, CLAUDE.md, MCP, plugins, permissions) to the Antigravity CLI.
Claude-orchestrated deep research — Antigravity (agy/Gemini) does the grounded web legwork; Claude plans, verifies the citations,…
Implement tasks incrementally — build, test, verify, commit. Add "auto" to run the whole plan in one approved pass.