Skip to content

feat(adapter/gemini): Google Gemini CLI skill runtime #314

Closed

Description

@potiuk

Goal: Bring Google's Gemini CLI to feature parity with Claude Code as a skill runtime. Grounds: RFC-AI-0004 Principle 3 — Vendor neutrality, which names Gemini CLI by name.

Why Gemini CLI: Open-source, Apache 2.0, official Google offering with a growing extension ecosystem. Strong reach into the Google-Cloud and Workspace adopter universe. Gemini CLI also has first-class MCP support, which means many of the framework's MCP-shaped integrations (Gmail, Slack, Google Drive, GitHub) should "just work" once the skill-format adapter lands.

What "parity" means:

  • Skills under .claude/skills/<name>/SKILL.md are invokable from Gemini CLI
  • The tools/* bridges are reachable (language-agnostic — port directly)
  • Sandbox parity: Gemini CLI has a --sandbox mode; document the mapping to the framework's bubblewrap + network-allowlist baseline
  • HITL primitives: Gemini CLI's "approve before run" mode is the native fit — verify and document

Suggested approach:

  • Map SKILL.md → Gemini CLI's .gemini/extensions/ extension format (or GEMINI.md for project-level instructions)
  • Reuse the framework's MCP servers where Gemini supports them
  • Document the skill-invocation pattern: how a maintainer runs a framework skill end-to-end via Gemini
  • Map the setup-isolated-* sandbox baseline to Gemini's sandbox flags

Reference:

Activity

  1. added
    enhancement
    good first issue
    capability:platform
    on May 26, 2026
  2. maheshsv commented on May 31, 2026

    @maheshsv

    I will work this issue

  3. added
    good first issue
    and removed
    good first issue
    on Jul 27, 2026
  4. justinmclean commented on Jul 27, 2026

    @justinmclean
    Member

    @maheshsv do you still want to work on this?

  5. sjyangkevin commented on Sep 9, 2026

    @sjyangkevin
    Contributor

    I'd like to work on this as my first contribution if it's still available.

  6. potiuk commented on Sep 10, 2026

    @potiuk
    MemberAuthor

    Feel free.

  7. sjyangkevin commented on Sep 11, 2026

    @sjyangkevin
    Contributor

    Edited 2026-09-12:

    Reading the following two guides, and I feel it provides the answer.


    I have a partial implementation for the Gemini CLI, including parsing the skills from the existing canonical .agents/skills/ path, a Gemini BeforeTool adapter for agent-guard registered in .gemini/settings.json, structured output in the existing spec-loop profile, and a runtime contract documenting the implemented support (some of these seems already been configured).

    However, after looking into the Gemini CLI documentation, I wanted to discuss the following and look for a direction.

    1. Policy distribution: automatic workspace TOML loading is disabled, but an actual CLI startup loaded the directory when a trusted project's settings.json named it through policyPaths, or explicit start up command gemini --policy <path>. Explicit paths work, but replace default user-policy discovery unless that directory is also included. Extension policies are another documented option, with lower priority and restrictions on allow/YOLO-scoped rules. the current implementation uses policyPaths with existing user policies preserved in .gemini/settings.json. Does that fit the intended installation contract?
    2. Isolation: --sandbox alone might not meet Magpie's baseline. Gemini CLI (version 0.59.0) launcher defaults to network access and mounts Gemini settings, temporary files, and existing gcloud configuration. A reviewed mount policy, enforced egress allowlist, native-tool permissions, and interactive approval tests are still needed. Would a configured Gemini container/proxy profile fit the intended scope?

    Google has also announced a consumer transition to Antigravity CLI, while retaining Gemini CLI for enterprise and paid API-key use (now authenticate through Vertex AI). Antigravity's documented sandbox looks closer to the baseline, but I have not validated it.

    Thanks,

    Draft PR: #1199

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

    capability:platformenhancementfamily:toolsgood first issue

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions