Getting it into your agent
One page per mod, every tool's command on it. A separate URL per tool would split the same page into five that compete with each other.
npx agentmods add commands/yuting0624/antigravity-for-claude-code/cloud-run-debuggit clone --depth 1 https://github.com/yuting0624/antigravity-for-claude-codeWhat 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.
| Model | Per session | Once invoked |
|---|---|---|
| Fable 5 | $0.00049 | $0.01050 |
| Opus 5 | $0.00024 | $0.00525 |
| Sonnet 5 | $0.00010 | $0.00210 |
| Haiku 4.5 | $0.00005 | $0.00105 |
Grade A, and why
cloud-run-debug scanned grade A with 0 findings 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 3d 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.
Nothing flagged
None of the 26 patterns this scan looks for appear in this file: no shell pipes, no recursive deletes, no credential paths, no hidden text, no instruction-override or anti-refusal phrasing, no agent-config snooping. That is not a guarantee, it is the absence of the things that are checkable.
What it actually says
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:
-
Resolve scope. Parse the flags above.
--serviceis required. If it's missing, ask the user which Cloud Run service to diagnose (AskUserQuestion) — there is no "default service".--regionis optional; if omitted, logs across all regions are queried. If the user'sgcloud confighas a default region you can offer it.--projectis optional; when omitted the engine falls back togcloud config's default project. Multi-project users can easily read the wrong project's logs this way, so when--projectisn'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.- Never ask for or handle credentials/tokens — the engine uses the existing
gcloudADC.
-
Fetch + digest (delegate to agy — one batch, not parallel). Run the plugin's read-only engine, which pulls
severity>=ERRORlogs viagcloud logging readand 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>]- Ingest only the digest it prints — do not re-fetch or paste the raw logs into your context (that lean handoff is where the cost saving comes from).
- If it exits 3 (permission denied), relay the
roles/logging.viewerguidance it printed and stop — the user must grant access first. Exit 4 meansgcloudisn't installed. - If it reports no matching logs, widen
--since/ lower severity, or re-confirm the service/region with the user.
-
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.
-
Apply only if
--applywas passed. Default is diagnosis-only; do not modify anything without--apply.- Check the working tree first: run
git status --short. If it's not clean, stop and confirm with the user — branching now would fold their uncommitted changes into your fix's diff (and any commit). Offer togit stashthem, or to work in a separate branch/worktree. Only proceed from a clean base. - Work on a dedicated branch (create/switch to one; never the user's working branch).
- Apply the proposed fix, then show the diff and stop. Do not deploy and do not merge — a human reviews and merges.
- Confirm before any destructive or hard-to-reverse step.
- Check the working tree first: run
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).
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.
- 3d ago First seen · 64 lines · 49 tokens per session scan A 6695503630b7
cloud-run-debug is a command published in the GitHub repository yuting0624/antigravity-for-claude-code (296 stars, last pushed 6d ago), licensed MIT. It adds 49 tokens to every session and 1,050 once invoked, about $0.0002 per session on Opus 5. A static security scan graded it A with 0 findings. No closer match exists in the catalogue, so it is treated as the original; first seen 2026-08-30.
Other commands, from other repositories
agy
Delegate any task to agy (Google Antigravity CLI) — auto-selects model by task type.
agy-review
Adversarial critique via agy using Gemini Pro — independent second opinion on code, plans, or arguments.
agy-search
Web search via agy (Google Antigravity CLI) — agy grounded web search with source citations (for general search prefer the WebSearch tool).
agy-setup
Print the plugin's install path and the command to install agy-delegate's launcher wrappers (agy-bridge + gemini shim).
OPSX: Bulk Archive
Archive multiple completed changes at once.
consensus
Fan out, then run one arbiter pass that synthesizes a single verdict.