Skip to content

Add Google Gemini CLI agent integration#9

Draft
pelikhan with Copilot wants to merge 2 commits into
mainfrom
copilot/add-google-gemini-cli-agent-integration
Draft

Add Google Gemini CLI agent integration#9
pelikhan with Copilot wants to merge 2 commits into
mainfrom
copilot/add-google-gemini-cli-agent-integration

Conversation

Copilot AI commented Jul 22, 2026

Copy link
Copy Markdown
Contributor

Adds a Gemini CLI-backed Rig engine with persistent multi-turn sessions.

Changes

  • Engine

    • Runs an installed, authenticated gemini CLI in headless JSON mode.
    • Preserves conversations with --session-id and --resume.
    • Supports custom command, working directory, arguments, environment, and approval mode.
  • Lifecycle

    • Propagates cancellation to the CLI process.
    • Rejects pre-aborted and concurrent turns.
    • Waits for process exit, escalating to SIGKILL when necessary.
  • API

    • Exports geminiEngine from rig/engines/gemini.
    • Rejects Rig tools because the CLI does not expose custom tool registration.
import { configureAgent } from "rig";
import { geminiEngine } from "rig/engines/gemini";

configureAgent(geminiEngine({ approvalMode: "plan" }));

Copilot AI and others added 2 commits July 22, 2026 23:47
Co-authored-by: pelikhan <4175913+pelikhan@users.noreply.github.com>
Co-authored-by: pelikhan <4175913+pelikhan@users.noreply.github.com>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants