/agy-delegate:agy-delegatefrom agy-delegate
Delegates grounded web search with citations, large-context analysis, and cross-model review to Google Antigravity CLI (agy). Useful when source URLs, multi-file reads, or an independent Gemini critique are needed.
Ships in agy-delegate. 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.
agy (Google Antigravity CLI) provides grounded web search with citations plus Gemini 4 models (Hydrogen, Neon, Carbon) from one subprocess call. For general web search, prefer the native WebSearch tool. Reach for agy-bridge when you need real source URLs, multi-file extended-context reads, or an independent model critique.
Never pipe content that contains credentials, API keys, or PII.
Bash, not via subagent. Run agy-bridge directly with your Bash tool. Spawning agy-delegate-code or agy-delegate-search adds ~18k-50k Claude tokens of subagent overhead for a single shell command; reserve subagents only for isolated background work or explicit subagent requests.Bash, not foreground ctx_shell, for long runs. agy calls often exceed 100s; foreground ctx_shell auto-detaches around ~110s without waking. Use Bash (and launch independent queries in parallel Bash calls).--add-dir PATH before reading files into Claude. Let agy read files directly inside its --sandbox instead of loading large files into Claude context to pipe over stdin.WebSearch (skip agy): Simple factual lookups or general web queries without strict cross-model or URL-citation requirements.agy): Small focused reads/edits (<100 lines) or iterative edits that depend on local test runs.agy-bridge via Bash: Grounded cited web search (--type search), whole-module or multi-file analysis (--type code / --type analysis), adversarial second-opinion critiques (--type review), or structured extraction (--json-schema).Bridge command: agy-bridge (symlink in ~/.local/bin/; run /agy-setup once after plugin install). It writes your assembled prompt into a per-run 0600 GEMINI.md (TASK: block), keeps prompts off argv/ps, pins per-type tool policies, and normalizes exit codes. Set AGY_SKIP_PERMISSIONS=1 only when --dangerously-skip-permissions is explicitly required.
agy-bridge --type search -- "latest Anthropic pricing and rate limits"
--add-dir--sandbox confines agy to an ephemeral workdir plus paths granted via repeatable --add-dir PATH flags. Pass the narrowest directory that covers the target files (/ and $HOME exit 2 unless AGY_ALLOW_BROAD_GRANT=1). Add --digest for key findings plus file:line references without file echoes.
agy-bridge --type code --add-dir ./src --digest -- \
"Trace auth token refresh races in src/auth and return file:line findings only."
When scoping to a git diff or avoiding directory exposure, pipe directly in Bash:
{ git diff main...HEAD; echo; echo "Review the diff above critically. Focus only on correctness bugs."; } \
| agy-bridge --type review --digest
--effort) and Structured Output (--json-schema)--effort low|medium|high|xhigh|max: Tunes reasoning budget (default high). For Gemini 4 auto-routing, maps directly to the matching tier (low/medium/high/xhigh). Forwards --effort to agy only on unsuffixed non-Orchestrator IDs; rejects mismatched suffixed --model or orchestrator models with exit 2.--json-schema JSON|PATH: Forces --output-format json on agy and unwraps structured_output directly (or merges structured_output cleanly when combined with --json).agy-bridge --type review --effort medium --add-dir ./scripts \
--json-schema '{"type":"object","properties":{"issues":{"type":"array"}}}' \
-- "Audit scripts/agy_bridge.sh for argument validation bugs."
agy-bridge --type search --json -- "latest dplyr release"
# -> {"success":true,"model_used":"...","type":"search","duration_seconds":9,"response":"..."}
--type | Primary class | Account-tier fallback | Timeout |
|---|---|---|---|
search | hydrogen-high | flash-high | 300s |
code | neon-high | carbon-high -> pro-high -> hydrogen-high | 600s |
analysis | neon-high | carbon-high -> pro-high -> hydrogen-high | 600s |
review | carbon-high | neon-high -> pro-high -> hydrogen-high | 600s |
implement | neon-high | carbon-high -> pro-high -> hydrogen-high | 600s |
Default --type is code. --model accepts exact live IDs (gemini-4-neon-high), display names ("Gemini 4 Carbon (High)"), or config/model-map.json aliases (hydrogen, neon, carbon, argon, orchestrator, flash, pro). Run agy models to inspect live IDs on your account.
| Symptom | Fix |
|---|---|
| Response lacks source URLs | Re-run with --type search (search_web prefix enforced) |
| Exit 124 | Timeout; raise --timeout 900, lower --effort, or narrow --add-dir |
--model rejected | Run agy models; use a live ID, display name, or supported alias |
--effort exits 2 | Do not combine --effort with orchestrator or a different model tier suffix |
agy-bridge: command not found (exit 127) | Run /agy-setup. Stop, explain fallback uses native Claude quota, and ask before proceeding |
| Empty response (exit 3) | Hidden failure: check error_class (quota = 429/RESOURCE_EXHAUSTED, auth = re-auth, empty_output = check stderr) |
| Slow subagent runs or detached shell | Run agy-bridge directly in Bash (avoid foreground ctx_shell >100s and skip wrapper subagents) |
references/prompting.md (and gemini-3-prompting)config/provider.mdWhat SKILL.md sets; muted values are Claude Code's defaults
Three short reads, in order
npx claudepluginhub davdittrich/delegate-agy --plugin agy-delegate2 skills in this plugin
Other plugins' skills for the same job