collaborating-with-gemini

Delegate coding tasks to the Gemini CLI via a Python bridge script.

398|36|Updated Mar 18, 2025
One-click install
npx skills add https://github.com/renocrypt/latex-arxiv-SKILL --skill collaborating-with-gemini-renocrypt
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: collaborating-with-gemini
Source: https://github.com/renocrypt/latex-arxiv-SKILL/tree/main/.codex/skills/collaborating-with-gemini
Command: npx skills add https://github.com/renocrypt/latex-arxiv-SKILL --skill collaborating-with-gemini-renocrypt

SYSTEM DOCUMENTATION & REQUIREMENTS

💡 This Skill includes scripts (resource) and references (resource) and assets (resource) components.

What problem does it solve?

This skill provides a lightweight bridge to the Gemini CLI, enabling you to consult Gemini and delegate coding tasks while Codex remains the primary implementer, with structured session handling via SESSION_ID and JSON-formatted outputs.

Core Features & Use Cases

  • Bridge script at scripts/gemini_bridge.py returns JSON outputs and supports multi-turn sessions via SESSION_ID.
  • Ensures collaboration state is tracked via a short Collaboration Capsule and enforces safe, file/line-based handoffs.
  • Works as an integration bridge in prototyping, debugging, and code-review tasks with Gemini, without direct CLI invocation.

Quick Start

Use the Gemini bridge to analyze a simple prompt and request a patch. Run: python3 .codex/skills/collaborating-with-gemini/scripts/gemini_bridge.py --cd "." --PROMPT "Review a routine function and propose fixes. OUTPUT: Unified Diff Patch ONLY."

Frequently Asked Questions about collaborating-with-gemini

High-intent search queries and answers about installing and using this skill.

FAQPage Schema
How do I delegate coding tasks to Gemini CLI while keeping Codex as the primary implementer?

You can delegate coding tasks to the Gemini CLI using a lightweight bridge script that returns structured JSON outputs, ensuring Codex remains the implementation authority while Gemini provides consultation.

Can I maintain multi-turn sessions with Gemini for debugging and code review?

Yes, multi-turn sessions with Gemini are supported via the SESSION_ID configuration option, allowing continuous collaboration state tracking for debugging and code review workflows.

How do I get structured JSON output from Gemini for integration into development workflows?

The bridge script enforces safe output handling and returns structured JSON formats, enabling easy integration of Gemini's responses into automated development workflows and pipelines.

What configuration options are available when bridging prompts to the Gemini CLI?

The bridge exposes configuration options including --PROMPT for queries, --SESSION_ID for multi-turn context, --cd for directory targeting, and --sandbox to control the Gemini interaction environment.

Does the Gemini bridge script support safe file and line-based handoffs?

Yes, the bridge enforces safe, file and line-based handoffs by tracking collaboration state through a short Collaboration Capsule, ensuring secure task delegation without direct CLI invocation.

What's the best way to use Gemini for code review without direct CLI invocation?

Use the bridge script to request unified diff patches by passing a review prompt, which returns a structured JSON response containing the proposed fixes without needing direct CLI interaction.