You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
feat: delegate work from Claude Code to Gemini through the Antigravity CLI #17786
Let Claude Code hand tasks to Gemini by running the Antigravity CLI (agy) headless (agy -p ... --output-format json, https://antigravity.google/docs/cli/headless), never with --dangerously-skip-permissions. Every use is read-only by default; write (--mode auto) is opt-in through antigravity.uses.task.mode: write, because agy write mode has no network isolation (owner, 2026-11-21, "Opt-in write"; ADR 0119).
Shape: the /external-agents:antigravity skill in the external-agents plugin (run, review, status, result, cancel, update), over the shared runner (#18071).
Agreed behavior:
One runner is the only code that calls agy; skills, agents and the council go through the plugin's public external-agents command (ADR 0118).
Circuit breaker (https://www.pollydocs.org/strategies/circuit-breaker.html): on auth or subscription errors, record an expiring "unavailable until" state in ${CLAUDE_PLUGIN_DATA}; callers skip with one notice; trial call after a configurable cool-down (default 24h) or on setup. A missing agy is a skip. Unattended skips are surfaced, not lost.
Default model is a user-config key, nothing shipped; if unset, no --model is passed and agy runs on its own default model (owner, 2026-11-21, "Use agy's default").
Runs in the background; completion comes from the harness background-task notice; status, result and cancel check on it.
Skills discover from the CLI (agy --help, agy models) and cite an index of upstream docs; never copy them. CLI facts are cached and refreshed when the agy version changes.
Uses the shared daily version check (filed separately), and flags a configured model missing from agy models.
Delegation to Gemini is explicit-only during the owner's evaluation month.
No third-party plugin (keli-wen/agy-staff rejected: unsandboxed by default).
Shape decided by the owner (Codex plugin rebuild, round 2): one shared plugin with one skill per CLI (codex, agy, cursor); the job runner, CLI-facts cache keyed by CLI version and drift check live in plugin-level scripts every skill calls; reviews only through review:council via the plugin's public surface; no subagent; no hooks; delegate only when asked. This issue is the agy skill. The shared contract is being drafted with the Codex session before either skill is built.
Size: Large
Complexity: Medium
Uncertainty: Knowable
Flags: intent
Blocked by: none
Blast radius: a new delegation skill or provider, its runner, and plugin user config. It is run by Claude Code users and by the council that calls it.
Reversible: yes; remove the plugin or provider and its config keys.
Open questions:
The issue says the shape waits on the one-plugin-or-two and skill-layout answer in the Codex plugin rebuild, and it names no issue number for that. Should this be a separate Gemini plugin with one skill, or an agy provider inside the shared delegation plugin alongside Codex and Cursor?
RECOMMENDED: a provider inside the shared plugin, if the Codex rebuild settles on a shared plugin. Basis: the issue lists that as one of the two shapes and the runner and circuit-breaker behavior are the same across providers. If the Codex rebuild has no recorded answer yet, hold this issue until it does and name that issue here.
Is the done-when "the listed agreed behaviors all work end to end with agy in headless auto mode"?
RECOMMENDED: yes. Basis: the agreed-behavior list is concrete, and the host-only checks (a real agy run, auth failure, the 24h cool-down) are handled by admission.
I understood the request as delegating work from Claude Code to Gemini through the agy CLI. It must run headless in auto mode, never with --dangerously-skip-permissions. Behavior includes one runner as the only caller, a circuit breaker, a user-config default model, background runs, and explicit-only use during the evaluation month. feat: shared daily version check for skills that wrap a CLI #17785 (shared daily version check) and feat(review): add a Gemini member to the review council #17787 (Gemini review council member) are related and not duplicates. No merged pull request appears to cover this.
To answer, post a comment that starts with this line:
Refinement. A read-only run explored this repository, searched its issues and pull requests, and read the allowed docs to draft what follows. On an issue a listed human filed, it counts as the issue's spec once posted, while unedited; it is still model text, so check it.
Intended outcome: An agy skill in the shared delegation plugin (one skill per CLI), calling the plugin-level job runner, CLI-facts cache and drift check, running agy headless in auto mode and only when asked.
Dependencies
The shared delegation plugin contract (job runner, CLI-facts cache keyed by CLI version, drift check) is still being drafted with the Codex session; no delegation plugin exists in the checkout yet.
#17785 shared daily version check, which the issue says this skill uses.
Open questions
The owner's decision settles shape (shared plugin, one skill per CLI) but says the shared contract is still being drafted before either skill is built. Should this issue wait for that contract to be recorded, and in which issue or file?
RECOMMENDED: Yes: hold until the shared contract (runner interface, cache format, drift check, public surface) is merged or recorded, then refine against it. Basis: comment by kyle-sexton 2026-11-21: 'The shared contract is being drafted with the Codex session before either skill is built.'
The issue body still says a runner, a council and a 'provider' call agy, while the decision says no subagent, no hooks, and reviews only through review:council. Should the body's agreed-behavior list be read as superseded by the decision where they conflict?
RECOMMENDED: Yes: the decision wins, so no agent or hook is added, and the council reaches agy only through the plugin's public surface (tracked in #17787). Basis: comment by kyle-sexton 2026-11-21; issue body 'skills, agents and the council go through the plugin's public skill'
Is the evaluation-month explicit-only restriction now permanent ('delegate only when asked') or does it lapse after the month?
RECOMMENDED: Treat it as permanent: the skill is user-invoked only, with no automatic delegation. Basis: comment by kyle-sexton 2026-11-21: 'delegate only when asked'
Which user-config keys should exist for the default model and the circuit-breaker cool-down, and where does the circuit-breaker state live relative to the shared runner?
RECOMMENDED: A default-model key with no shipped value and a cool-down-hours key defaulting to 24; breaker state in ${CLAUDE_PLUGIN_DATA} kept by the shared runner, per CLI. Names to be fixed by the shared contract. Basis: judgment
Sources read
/home/runner/work/claude-code-plugins/claude-code-plugins/refine-data/context.json: issue body, triage and the owner's comment on shape
plugins/review/skills/council/adapters/codex.yaml: only the council's Codex adapter exists; no shared delegation plugin or agy reference in the checkout
plugins/review/scripts/codex-review.sh: existing Codex call lives in the review plugin, not a delegation plugin
To answer, post a comment that starts with this line:
**Decision recorded.** <answer>
Automated refinement by the lanes App. Answer with a comment whose first line is **Decision recorded.**.
Owner decisions (Codex plugin rebuild, rounds 4-5): plugin name external-agents; boundary is other vendors' official coding-agent CLIs only; config lives in the plugin's own external-agents.yaml on the config-cascade contract (bundled, user-global, team, personal), empty by default, not in multi-agent; per-vendor routing pointer files live inside each skill, read at load. This issue is the skill /external-agents:antigravity: it wraps the Antigravity CLI, which also runs Claude Opus and Sonnet 5.5 (https://antigravity.google/pricing/), so the product name fits better than the model family. The default-model key moves to external-agents.yaml.
Probe: agy auto-mode commands cannot write files on Windows
agy: 1.5.14, Windows 11, run headless with --mode auto --output-format json, from a scratch git repository used as the workspace.
Commands that ran:node --version printed v24.21.0.
Commands that write: a command that writes a file failed with EPERM: operation not permitted. This happened inside the workspace too, for example node w.js, where w.js writes a file next to itself. Adding --add-dir <workspace> changed nothing.
Agy's own tools: file edits through agy's file tools succeeded.
The same task on WSL (Ubuntu, agy 1.5.14) wrote the file and read it back.
Decision drawn from it: /external-agents:antigravity sends builds and tests that write output to WSL (see the skill's gotchas).
Recheck when agy's release notes mention Windows sandbox writes, or when a Windows write task's command succeeds.
No conflict with my work: drop needs-owner-decision and relabel host-run as planned. No owner decision is pending on this issue: the owner settled write opt-in, the default model and the council panel, and #17967 shipped the skill.
Release condition: only the Remaining breaker item is left. It needs the error text agy prints when a headless run fails signed out or over quota, neither of which has been observed yet; forcing a sign-out would disturb the owner's agy login. Whoever sees one first should:
Capture stdout and stderr from the failed run: the job folder stdout.log and stderr.log that external-agents status <job> names.
Add unavailable: rules matching that text to plugins/external-agents/providers/antigravity.yaml and its test fixture copy (they must match; runner.test.mjs asserts this).
Test the rules with the fakeAgy pattern in runner.test.mjs, and close this issue through that PR.
Add login_status only if agy gains a non-interactive sign-in check: agy --help on 1.5.14 lists none. The Windows probe record is in #17786 (comment).
This session (Google Gemini, melo-lap-001 Windows) keeps no claim on #17786. My open work is #18118 (a per-run --effort option for external-agents), which does not touch the breaker.
Activity
kyle-sexton commentedon Nov 21, 2026
Shape decided by the owner (Codex plugin rebuild, round 2): one shared plugin with one skill per CLI (codex, agy, cursor); the job runner, CLI-facts cache keyed by CLI version and drift check live in plugin-level scripts every skill calls; reviews only through review:council via the plugin's public surface; no subagent; no hooks; delegate only when asked. This issue is the agy skill. The shared contract is being drafted with the Codex session before either skill is built.
github-actions commentedon Nov 21, 2026
Size: Large
Complexity: Medium
Uncertainty: Knowable
Flags: intent
Blocked by: none
Blast radius: a new delegation skill or provider, its runner, and plugin user config. It is run by Claude Code users and by the council that calls it.
Reversible: yes; remove the plugin or provider and its config keys.
Open questions:
RECOMMENDED: a provider inside the shared plugin, if the Codex rebuild settles on a shared plugin. Basis: the issue lists that as one of the two shapes and the runner and circuit-breaker behavior are the same across providers. If the Codex rebuild has no recorded answer yet, hold this issue until it does and name that issue here.
agyin headless auto mode"?RECOMMENDED: yes. Basis: the agreed-behavior list is concrete, and the host-only checks (a real
agyrun, auth failure, the 24h cool-down) are handled by admission.I understood the request as delegating work from Claude Code to Gemini through the
agyCLI. It must run headless in auto mode, never with--dangerously-skip-permissions. Behavior includes one runner as the only caller, a circuit breaker, a user-config default model, background runs, and explicit-only use during the evaluation month. feat: shared daily version check for skills that wrap a CLI #17785 (shared daily version check) and feat(review): add a Gemini member to the review council #17787 (Gemini review council member) are related and not duplicates. No merged pull request appears to cover this.To answer, post a comment that starts with this line:
Automated triage. A maintainer reviews it.
melodic-automation-lanes commentedon Nov 21, 2026
The triage verdict left this issue at
needs-owner-decision:Reason:
intentmelodic-automation-lanes commentedon Nov 21, 2026
Refinement. A read-only run explored this repository, searched its issues and pull requests, and read the allowed docs to draft what follows. On an issue a listed human filed, it counts as the issue's spec once posted, while unedited; it is still model text, so check it.
Intended outcome: An agy skill in the shared delegation plugin (one skill per CLI), calling the plugin-level job runner, CLI-facts cache and drift check, running agy headless in auto mode and only when asked.
Dependencies
Open questions
RECOMMENDED: Yes: hold until the shared contract (runner interface, cache format, drift check, public surface) is merged or recorded, then refine against it. Basis: comment by kyle-sexton 2026-11-21: 'The shared contract is being drafted with the Codex session before either skill is built.'
RECOMMENDED: Yes: the decision wins, so no agent or hook is added, and the council reaches agy only through the plugin's public surface (tracked in #17787). Basis: comment by kyle-sexton 2026-11-21; issue body 'skills, agents and the council go through the plugin's public skill'
RECOMMENDED: Treat it as permanent: the skill is user-invoked only, with no automatic delegation. Basis: comment by kyle-sexton 2026-11-21: 'delegate only when asked'
RECOMMENDED: A default-model key with no shipped value and a cool-down-hours key defaulting to 24; breaker state in ${CLAUDE_PLUGIN_DATA} kept by the shared runner, per CLI. Names to be fixed by the shared contract. Basis: judgment
Sources read
To answer, post a comment that starts with this line:
Automated refinement by the lanes App. Answer with a comment whose first line is
**Decision recorded.**.kyle-sexton commentedon Nov 21, 2026
Owner decisions (Codex plugin rebuild, rounds 4-5): plugin name
external-agents; boundary is other vendors' official coding-agent CLIs only; config lives in the plugin's ownexternal-agents.yamlon the config-cascade contract (bundled, user-global, team, personal), empty by default, not in multi-agent; per-vendor routing pointer files live inside each skill, read at load. This issue is the skill/external-agents:antigravity: it wraps the Antigravity CLI, which also runs Claude Opus and Sonnet 5.5 (https://antigravity.google/pricing/), so the product name fits better than the model family. The default-model key moves toexternal-agents.yaml.fix(external-agents): state the personal-layer rule for antigravity.b…
fix(external-agents): flag agy workspace config in reviews; correct t…
fix(external-agents): pass --disable-slash-commands to every agy run
feat(external-agents): cache agy help and model list on update
2 remaining items
fix(external-agents): point antigravity gotchas at anchored docs and …
test(external-agents): add antigravity skill evals and match the coun…
fix(external-agents): say login was not checked when a record has no …
docs(external-agents): run every antigravity job in the background
kyle-sexton commentedon Nov 22, 2026
Probe: agy auto-mode commands cannot write files on Windows
--mode auto --output-format json, from a scratch git repository used as the workspace.node --versionprintedv24.21.0.EPERM: operation not permitted. This happened inside the workspace too, for examplenode w.js, wherew.jswrites a file next to itself. Adding--add-dir <workspace>changed nothing.Decision drawn from it:
/external-agents:antigravitysends builds and tests that write output to WSL (see the skill's gotchas).Recheck when agy's release notes mention Windows sandbox writes, or when a Windows write task's command succeeds.
fix(external-agents): answer the review of the antigravity skill
test(external-agents): add an eval for a configured agy model missing…
kyle-sexton commentedon Nov 22, 2026
No conflict with my work: drop
needs-owner-decisionand relabelhost-runas planned. No owner decision is pending on this issue: the owner settled write opt-in, the default model and the council panel, and #17967 shipped the skill.Release condition: only the Remaining breaker item is left. It needs the error text agy prints when a headless run fails signed out or over quota, neither of which has been observed yet; forcing a sign-out would disturb the owner's agy login. Whoever sees one first should:
stdout.logandstderr.logthatexternal-agents status <job>names.unavailable:rules matching that text toplugins/external-agents/providers/antigravity.yamland its test fixture copy (they must match;runner.test.mjsasserts this).runner.test.mjs, and close this issue through that PR.Add
login_statusonly if agy gains a non-interactive sign-in check:agy --helpon 1.5.14 lists none. The Windows probe record is in #17786 (comment).This session (Google Gemini, melo-lap-001 Windows) keeps no claim on #17786. My open work is #18118 (a per-run
--effortoption for external-agents), which does not touch the breaker.docs(external-agents): point update.md at the provider rules instead …
chore(external-agents): name the changelog fragment with the fragment…