/mays:gemini-subagentsfrom mays
Runs planning, research, review, or implementation tasks on a Gemini model as a background subagent via the Antigravity CLI (`agy`). Includes a wrapper that kills stalled runs and salvages partial output.
Ships in mays. Installing the plugin adds it to Claude Code.
What the skill costs in Claude's context, stage by stage
Name and description: Claude knows it exists.
SKILL.md joins the conversation and stays.
Read when SKILL.md points to them; scripts run unread.
Run a task on a Gemini model as a background subagent through the Antigravity CLI, agy. This skill mirrors external-subagents: the same flags, exit codes, and --out file, without --engine and --effort.
Always invoke agy through scripts/gemini-run.sh, never agy -p directly. agy has no per-run switch for its network-reaching tools: search_web, read_url_content, call_mcp_tool, open_browser_url, and browser_*. A run that reaches for one can hang. The wrapper passes --print-timeout at the hard budget, and its idle watchdog kills a run that stops emitting events. Then it salvages whatever arrived before the kill.
Not for generating images: gemini-image-generator covers those.
command -v agy; jq --version; agy models
agy models must list the Gemini slugs in the Models table. Whether a listing also proves the login is unverified.agy once interactively (unverified).agy or no Gemini slug in the listing: say so and stop. The caller decides any fallback.jq: the wrapper cannot extract findings from the event stream. Install it or expect raw JSONL."${CLAUDE_SKILL_DIR}/scripts/gemini-run.sh" \
--prompt <scratch>/gemini-<role>-prompt.md --out <scratch>/gemini-<role>.md \
--label <role> \
[--model SLUG] [--sandbox read-only|workspace-write] [--idle 300] [--hard 1800] [--cd <repo>]
Bash(run_in_background: true) and read the exit code when it returns. Never poll a run by hand, and never wait on one in the foreground.--out a .md name. The wrapper writes the raw events and stderr next to it as .jsonl and .stderr.--label names the run in the --out header. It defaults to run.--cd sets the working directory. It defaults to the current one. agy has no such flag, so the wrapper starts agy inside that directory.--cd. The wrapper passes no --add-dir, and reads outside the working directory are unverified.getconf ARG_MAX). Split a diff that large.The wrapper always pins the model. An unpinned run would take agy's own default, which can drift between runs without notice, the same risk as an unpinned Codex run.
--model | Use for |
|---|---|
Omitted: gemini-4-neon-high | Strong work: planning, review, a second implementation |
gemini-4-neon-xhigh | The hardest plan or review, when the user asks for maximum effort |
gemini-3.8-flash-high | Strong work when speed matters more than depth |
gemini-3.8-flash-medium | Work a deterministic check verifies: a test, lint, compile, or known-target grep |
gemini-3.8-flash-low | Trivial work |
gemini-4-argon-high | Any role, when the user or the calling workflow names Argon |
--model beats GEMINI_SUBAGENT_MODEL, which beats the default.-low, -medium, -high, or -xhigh suffix for the provenance line, else records model default.gemini-4-neon comes in -low, -medium, -high, and -xhigh. gemini-4-argon and gemini-3.8-flash stop at -high.agy has its own --effort flag. The wrapper never passes it, because its interaction with the slug suffix is unverified.gemini. agy also serves 7 other slugs: claude-opus-5-5-* and claude-sonnet-5-5-* in -low, -medium, and -high, and gpt-oss-120b-medium.| Role | --sandbox | Budget | What comes back |
|---|---|---|---|
| Plan / research | read-only | --idle 300 --hard 900 | The final message is the deliverable |
| Review | read-only | --idle 300 --hard 1800 | Findings in the brief's output format |
| Implementation | workspace-write | --idle 300 --hard 3600 | Edits in the working tree |
gemini-4-argon-high uses --idle 600 in every role. A live Argon run went silent for over 300s while it wrote its answer. Reruns with --idle 600 finished in 486s and 542s.gemini-4-neon-high run goes silent like Argon is unverified. If a Neon run exits 125, rerun it once with --idle 600.read-only is the default. The run can view and search files, but it cannot write a file or run a command, git included.workspace-write can write files but still cannot run a command. An implementation run cannot run its tests, a build, or git. The caller runs the tests and reads git diff afterwards.response makes the wrapper fall back to the streamed text. That text can put the run's commentary above the deliverable. Strip everything before the first heading.--out is the run's own account of what it did, not evidence. Read git diff and git status --porcelain --untracked-files=all yourself, then run the tests.A run can read image and video files, but it cannot make a video. Live runs verified this table:
| Media | What a run does through agy | Verified on |
|---|---|---|
| Image in | Reads a PNG under --cd and describes its pixels | gemini-4-argon-high |
| Video in | Reads an MP4 under --cd and describes its segments in order, with timing | gemini-4-argon-high, gemini-3.8-flash-high |
| Image out | Hands the request to the built-in image-generator subagent, which calls generate_image | gemini-4-argon-high |
| Video out | None. agy has no video-generation tool, and the run says so | gemini-4-argon-high |
--cd. The event stream names the read tool read_file, although the init tool list says view_file.~/.gemini/antigravity-cli/brain/<conversation_id>/ as a timestamped JPEG, not at the path the prompt asks for. The run cannot move it, because it cannot run a command. Use gemini-image-generator instead, which copies the image out and checks it.Headless agy cannot ask for permission, so it auto-denies any tool that needs one. A live run verified this matrix, apart from the cell marked unverified:
| Tool | read-only (no --mode) | workspace-write (--mode accept-edits) |
|---|---|---|
view_file and file search (grep, list, find) | Allowed | Allowed (unverified) |
write_to_file | Denied | Allowed |
run_command | Denied | Denied |
search_web, read_url_content, call_mcp_tool, open_browser_url, browser_* | No per-run switch | No per-run switch |
--mode plan denies the same tools as no --mode. The wrapper never passes it.--dangerously-skip-permissions, which would lift every denial. The user's policy forbids it.agy still exits 0 with status SUCCESS and lists the tool in denied_actions. The response can come back empty.Denied in headless mode: command. agy also writes a line that starts jetski: no output produced to .stderr.| Exit | Meaning | What to do |
|---|---|---|
| 0 | Completed | Use the output normally. Check for a Denied in headless mode line |
| 125 | Stalled: no events for --idle seconds | Retry once with a narrower scope. Still stalling means use the partial output and say so |
| 124 | Hard timeout at --hard seconds | Same as 125. The input is probably too large for one pass, so split it |
| 126 | agy failed: a nonzero exit, or a result event whose status is not SUCCESS | Read the .stderr file next to the output. Do not retry blindly |
| 2 | Bad usage, agy not on PATH, or a non-Gemini model | Fix the call |
--out file always exists. Its second line names the engine, model, and effort, such as Engine: gemini · Model: gemini-4-neon-high · effort high.init event reports a different model, the second line names that model too.PARTIAL in its first line and names the last tool call before the kill. Findings salvaged from a stalled run are still findings: use them, and mark them partial.--print-timeout makes agy stop itself at --hard too. The wrapper reports that stop as exit 124.gemini-4-argon-high runs use --idle 600, as the Roles section says. Raise --hard for a large diff. Do not raise --idle above 600 for any model: silence that long is a hang, not thinking.Write the prompt to a file in a scratch directory outside the repo: the session scratchpad if the harness gave you one, else mktemp -d. Nothing generated gets committed.
The Gemini model cannot see the conversation. Do not count on it loading any CLAUDE.md. By Antigravity convention, agy reads ~/.gemini/GEMINI.md and any AGENTS.md or GEMINI.md in the workspace. That loading is unverified, so verify which files it reads before relying on it. Carry the rules that apply in the prompt, and name the project CLAUDE.md path for the run to read.
Every prompt carries the same items as the prompt list in claude-subagents. That includes the decisions already made and the judgment calls the run owns. Add these:
claude-subagents, except that the run cannot run its tests. It writes the change and its tests, then stops, and the caller runs them.run_command can end with an empty response.--idle, and the watchdog kills it with no findings.What SKILL.md sets; muted values are Claude Code's defaults
Three short reads, in order
gemini-subagent, antigravity-cli, background-task, multi-model
npx claudepluginhub stevenmays/dotfiles --plugin mays14 skills in this plugin
/adversarial-reviewTwo-family adversarial review of a plan or a diff — one fresh Claude subagent and one external run (GPT through Codex, or Grok through Cursor) on identical briefs, launched concurrently, then triaged into verified blockers, concerns, and rejected findings. Use before approving a plan, before shipping a change, or whenever a workflow asks for an adversarial review./claims-verificationCheck the factual claims a plan makes about existing code against the repo — extract atomic claims, have a fresh subagent answer neutral questions without seeing the plan, then score each claim. Use after a plan is drafted and before adversarial review, or whenever a workflow asks to verify a plan's claims./claude-subagentsDispatch planning, review, implementation, or a scoped question to a fresh Claude subagent with the Agent tool — which subagent type and model to pick, what the prompt must carry, and how to check what comes back. Use whenever a workflow hands work to a Claude subagent, including the Claude half of adversarial-review./codex-image-generatorDefault image generation path. Generate or edit raster images (hero images, illustrations, textures, product shots, mockups, transparent cutouts) through the Codex CLI's built-in image_gen tool, run in a subagent. Use whenever the user asks for an image, picture, illustration, or visual asset and does not name a provider. Not for SVG, icons, or diagrams that belong in code./deslopClean up AI slop in existing code — measure complexity with real tools, delete dead and redundant code, refactor the worst hotspots first, and prove behavior is unchanged. Use when the user asks to clean up slop, deslop, reduce complexity, untangle spaghetti, simplify a god function, or make AI-generated code maintainable. Not a review skill — extreme-code-quality-review covers review; this one changes the code./external-subagentsRun a planning, research, review, or implementation task on a second model family as a background subagent that cannot hang the session — GPT through the Codex CLI, or the newest Grok through the Cursor CLI where Codex is missing. A wrapper kills stalled runs and salvages partial output. Use whenever a workflow sends work to Codex, Cursor, GPT, Grok, a second model, or a non-Claude subagent, including the external half of adversarial-review. Not for images.Other plugins' skills for the same job