{"id":50915939,"url":"https://github.com/rsecss/gemini-plugin-cc","last_synced_at":"2026-06-16T15:01:13.284Z","repository":{"id":349514806,"uuid":"1202169213","full_name":"rsecss/gemini-plugin-cc","owner":"rsecss","description":"Use Gemini from Claude Code to review code or delegate tasks.","archived":false,"fork":false,"pushed_at":"2026-04-06T11:04:37.000Z","size":113,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":0,"default_branch":"main","last_synced_at":"2026-04-06T11:17:20.100Z","etag":null,"topics":["claude-code","claude-code-plugin","code-review","developer-tools","gemini","gemini-cli","google-gemini"],"latest_commit_sha":null,"homepage":"","language":"JavaScript","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"apache-2.0","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/rsecss.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null,"zenodo":null,"notice":"NOTICE","maintainers":null,"copyright":null,"agents":null,"dco":null,"cla":null}},"created_at":"2026-04-05T17:30:53.000Z","updated_at":"2026-04-06T11:04:42.000Z","dependencies_parsed_at":null,"dependency_job_id":null,"html_url":"https://github.com/rsecss/gemini-plugin-cc","commit_stats":null,"previous_names":["rsecss/gemini-plugin-cc"],"tags_count":2,"template":false,"template_full_name":null,"purl":"pkg:github/rsecss/gemini-plugin-cc","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/rsecss%2Fgemini-plugin-cc","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/rsecss%2Fgemini-plugin-cc/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/rsecss%2Fgemini-plugin-cc/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/rsecss%2Fgemini-plugin-cc/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/rsecss","download_url":"https://codeload.github.com/rsecss/gemini-plugin-cc/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/rsecss%2Fgemini-plugin-cc/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":34410784,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-05-26T15:22:16.424Z","status":"online","status_checked_at":"2026-06-16T02:00:06.860Z","response_time":126,"last_error":null,"robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":true,"can_crawl_api":true,"host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":["claude-code","claude-code-plugin","code-review","developer-tools","gemini","gemini-cli","google-gemini"],"created_at":"2026-06-16T15:01:11.497Z","updated_at":"2026-06-16T15:01:13.261Z","avatar_url":"https://github.com/rsecss.png","language":"JavaScript","funding_links":[],"categories":[],"sub_categories":[],"readme":"\u003cdiv align=\"center\"\u003e\n\n# Gemini Plugin for Claude Code\n\nBring Google Gemini into your Claude Code workflow — code review, adversarial review, and task delegation, all from slash commands.\n\n[![License](https://img.shields.io/badge/License-Apache%202.0-blue.svg)](LICENSE) [![Node.js](https://img.shields.io/badge/Node.js-%3E%3D18.18.0-339933?logo=node.js\u0026logoColor=white)](https://nodejs.org/) [![Claude Code](https://img.shields.io/badge/Claude%20Code-Plugin-7C3AED?logo=anthropic\u0026logoColor=white)](https://docs.anthropic.com/en/docs/claude-code) [![Gemini CLI](https://img.shields.io/badge/Gemini%20CLI-Integration-4285F4?logo=google\u0026logoColor=white)](https://github.com/google-gemini/gemini-cli)\n\n[English](README.md) | [简体中文](README.zh-CN.md)\n\n\u003c/div\u003e\n\n---\n\n## Why This Plugin?\n\nClaude Code is great. Gemini is great. This plugin lets you use both without leaving your terminal.\n\n- Get a **second opinion** on your code from Gemini before shipping\n- **Challenge your design** with adversarial review — pressure-test assumptions, tradeoffs, and failure modes\n- **Delegate tasks** to Gemini and keep working in Claude Code while it runs in the background\n\n## Quick Start\n\n### Prerequisites\n\n- [Gemini CLI](https://github.com/google-gemini/gemini-cli) — `npm install -g @google/gemini-cli`\n- Node.js 18.18+\n\n### Install\n\n```shell\n/plugin marketplace add rsecss/gemini-plugin-cc\n/plugin install gemini@gemini-plugin\n/reload-plugins\n/gemini:setup\n```\n\n### First Run\n\n```shell\n/gemini:review                    # review uncommitted changes\n/gemini:review --base main        # review branch diff against main\n/gemini:adversarial-review        # challenge your design decisions\n/gemini:rescue investigate the bug  # hand a task to Gemini\n```\n\n## Commands\n\n| Command | Description |\n|---------|-------------|\n| `/gemini:review` | Structured code review (read-only) |\n| `/gemini:adversarial-review` | Steerable challenge review targeting design and tradeoffs |\n| `/gemini:rescue` | Delegate a task to Gemini via subagent |\n| `/gemini:setup` | Check readiness, manage review gate |\n| `/gemini:status` | Show running and recent jobs |\n| `/gemini:result` | Show output of a finished job |\n| `/gemini:cancel` | Cancel an active background job |\n\nAll commands support `--background`, `--wait`, and `-m \u003cmodel\u003e` (aliases: `auto`, `pro`, `flash`, `flash-lite`).\n\n### Code Review\n\n```shell\n/gemini:review                          # working tree changes\n/gemini:review --base main              # branch diff\n/gemini:review --background             # run in background\n```\n\n### Adversarial Review\n\nGoes beyond code correctness — challenges design choices, hidden assumptions, and alternative approaches.\n\n```shell\n/gemini:adversarial-review\n/gemini:adversarial-review --base main challenge the caching design\n/gemini:adversarial-review --background look for race conditions\n```\n\n### Task Delegation\n\n```shell\n/gemini:rescue investigate why tests are failing\n/gemini:rescue -m flash fix the flaky integration test\n/gemini:rescue --background redesign the connection pool\n```\n\nCheck progress with `/gemini:status`, get results with `/gemini:result`, cancel with `/gemini:cancel`.\n\n## Review Gate (Optional)\n\nWhen enabled, a `Stop` hook triggers a targeted Gemini review on each Claude response. If issues are found, the stop is blocked so Claude can address them first.\n\n```shell\n/gemini:setup --enable-review-gate\n/gemini:setup --disable-review-gate\n```\n\n\u003e **Warning:** This can create a long-running Claude/Gemini loop and may drain usage limits quickly. Only enable when actively monitoring.\n\n## Architecture\n\nThin-forwarder pattern — no broker, no daemon:\n\n```\nSlash command → gemini-companion.mjs → lib/gemini.mjs → gemini -o stream-json (stdin)\n```\n\n- **File-lock concurrency** instead of a broker process\n- **Three-layer JSON extraction**: prompt engineering → JSON block → plain-text fallback\n- **Activity-based timeout**: resets on each stream event, 30min hard ceiling\n- **Full Windows support**: shell spawning, UNC paths, taskkill, EAGAIN-safe reads\n\n## FAQ\n\n**Do I need a separate account?**\nNo. The plugin uses your local Gemini CLI authentication. Run `gemini` interactively to sign in, or set `GEMINI_API_KEY`.\n\n**Can I choose a different model?**\nYes. Pass `-m \u003cmodel\u003e` to any command. If a model is unavailable, the plugin suggests alternatives.\n\n## Community\n\nThis project is shared with the [LINUX DO](https://linux.do/) community.\n\n## Acknowledgments\n\nBuilt on the architecture of [openai/codex-plugin-cc](https://github.com/openai/codex-plugin-cc). Key adaptations: direct Gemini CLI invocation via file-lock concurrency, three-layer JSON extraction for free-form output, and comprehensive Windows compatibility fixes.\n\n## Contributing\n\nSee [CONTRIBUTING.md](CONTRIBUTING.md) for development setup, code style, and pull request guidelines.\n\n## License\n\n[Apache License 2.0](LICENSE)\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Frsecss%2Fgemini-plugin-cc","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Frsecss%2Fgemini-plugin-cc","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Frsecss%2Fgemini-plugin-cc/lists"}