Skip to content

feat: delegate work from Claude Code to Gemini through the Antigravity CLI #17786

Description

@kyle-sexton

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).

Activity

  1. added
    needs-triage
    on Nov 21, 2026
  2. kyle-sexton commented on Nov 21, 2026

    @kyle-sexton
    MemberAuthor

    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.

  3. github-actions commented on Nov 21, 2026

    @github-actions
    Contributor

    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:

    1. 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.
    2. 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:
    **Decision recorded.** <answer>
    

    Automated triage. A maintainer reviews it.

  4. added
    needs-owner-decision
    on Nov 21, 2026
  5. melodic-automation-lanes commented on Nov 21, 2026

    @melodic-automation-lanes
    Contributor

    The triage verdict left this issue at needs-owner-decision:

    • flagged: intent
    • held by needs-owner-decision
    • no lanes App verdict comment shows whether an earlier verdict was flagged

    Reason: intent

  6. melodic-automation-lanes commented on Nov 21, 2026

    @melodic-automation-lanes
    Contributor

    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

    1. 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.'
    2. 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'
    3. 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'
    4. 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.**.

  7. kyle-sexton commented on Nov 21, 2026

    @kyle-sexton
    MemberAuthor

    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.

  8. 2 remaining items

  9. kyle-sexton commented on Nov 22, 2026

    @kyle-sexton
    MemberAuthor

    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.

  10. kyle-sexton commented on Nov 22, 2026

    @kyle-sexton
    MemberAuthor

    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:

    1. Capture stdout and stderr from the failed run: the job folder stdout.log and stderr.log that external-agents status <job> names.
    2. 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).
    3. 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.

  11. added
    host-run
    and removed
    needs-owner-decision
    needs-triage
    on Nov 22, 2026
  12. removed
    host-run
    on Nov 22, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Fields

    Work status

    needs-owner-decision

    Priority

    medium

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions