Skip to content

Add jbolivar19/gemini-cli-bridge plugin: use the Gemini CLI as a chat model in MiniMax Code - #95

Open
jbolivar19 wants to merge 1 commit into
MiniMax-AI:mainfrom
jbolivar19:add-gemini-cli-bridge
Open

jbolivar19 wants to merge 1 commit into
MiniMax-AI:mainfrom
jbolivar19:add-gemini-cli-bridge

Conversation

@jbolivar19

@jbolivar19 jbolivar19 commented Dec 2, 2026 •

Copy link
Copy Markdown

What changes

Adds jbolivar19/gemini-cli-bridge, a Plugin that makes Google's Gemini CLI usable from
inside MiniMax Code in two ways:

  • As a model in the picker. A local OpenAI-compatible proxy (scripts/bridge.mjs)
    translates POST /v1/chat/completions into a CLI invocation, and
    scripts/register-provider.mjs registers a gemini-cli-bridge provider in
    config.yaml so the CLI models appear as selectable models.
  • As MCP tools. The gemini-bridge MCP server exposes gemini_status,
    gemini_models, gemini_prompt and gemini_usage.

Two Skills ship with the package:

  • gemini-bridge — the business workflow: when to query Gemini, when to plan a change,
    when to let it edit files.
  • gemini-bridge-visualizer — an optional GenUI panel that renders cost and latency per
    model and effort, derived from the aggregated usage the MCP server already records.

The package ships both runtime layouts: the portable Agent Plugins 1.0 files at the root
(plugin.json, mcp.json, skills/) and the v0.4.0+ manifest in
.claude-plugin/plugin.json with the SessionStart hook inlined. The original MiniMax
manifest is preserved under .minimax-plugin/.

User value

MiniMax Code cannot talk to the Gemini CLI today: the CLI is a local binary, not an HTTP
API, so its models are unavailable as chat models. This Plugin bridges the two, so a
developer can pick a Gemini model in the model picker or delegate a review to Gemini
without leaving the conversation.

Example prompt:

Usa Gemini para revisar este archivo PHP y dime qué falla.

Expected result: Gemini receives the prompt through the CLI, reads the file for context if
it needs to, and returns a written answer. The MCP tools return the same result when the
request is delegated explicitly instead of via the picker.

Muéstrame el coste y la latencia de cada nivel de esfuerzo de Gemini.

Expected result: a panel comparing each model and effort combination by calls, average
latency and tokens, so the effort level is chosen with data instead of by guess.

Plugin submission checklist

  • Plugin lives at plugins/<github-owner>/<plugin-name>.
  • plugin.json name matches the Plugin directory.
  • README.md includes a real example prompt and expected result.
  • LICENSE and plugin.json declare an open-source license.
  • Required executables, accounts, paid services, and supported platforms are disclosed.
  • Network destinations and data handled by the plugin are disclosed.
  • No credentials, private endpoints, hidden telemetry, installers, symlinks, or native binaries are included.
  • Every scaffold TODO has been replaced.
  • npm run check passes.

Evidence

npm run validate from the repository root:

OK   plugin jbolivar19/gemini-cli-bridge
Validated 32 hosted Plugins and all examples.

npm test from the repository root: 1148 tests, 1129 pass, 14 fail, 5 skipped. All 14
failures are EPERM: operation not permitted, symlink raised while creating test fixtures
in plugins/weekbin/mcode-trajectory-studio/test/containment*.test.mjs and
test/hosted-plugins.test.mjs. They are unrelated to this Plugin: this machine cannot
create symlinks (Windows requires Developer Mode or an elevated shell), so the fixtures
cannot be set up. A plain node -e "fs.symlinkSync(...)" on this machine fails with the
same EPERM. The failures are environmental and reproduce independently of this branch.

Six further failures appeared only on the first Windows checkout and were not caused by
this Plugin: the repository has no .gitattributes, so core.autocrlf=true converted the
checked-out SKILL.md files of other Plugins to CRLF, and the smoke tests parse
frontmatter with a \n-anchored pattern. With core.autocrlf=false those six pass. This
Plugin's own files are committed with LF endings.

Manual test: the Plugin was installed locally as a MiniMax Plugin, recognised by Desktop
without scan diagnostics, and exercised end to end — tools/list returning
gemini_status, gemini_models, gemini_prompt, gemini_usage; a real Gemini round trip
returning BRIDGE_OK; the picker route answering over POST /v1/chat/completions with
gemini-4-hydrogen; SSE streaming delivering real text_delta chunks; and the guard
verified to let Gemini read a file while refusing to create one.

Declarations that do not carry over to an install directly from GitHub: the icon,
dark icon, category, example queries, and the gemini subagent apply only through the
MiniMax manifest. A copy installed from this repository gets the two Skills, the MCP
server, and the SessionStart hook.


See it in action
Open in [code]smith · Need help on this PR? Tag @codesmith-bot with what you need.

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.

1 participant