Repository navigation
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
Open
jbolivar19 wants to merge 1 commit into
jbolivar19 wants to merge 1 commit into
Conversation
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
What changes
Adds
jbolivar19/gemini-cli-bridge, a Plugin that makes Google's Gemini CLI usable frominside MiniMax Code in two ways:
scripts/bridge.mjs)translates
POST /v1/chat/completionsinto a CLI invocation, andscripts/register-provider.mjsregisters agemini-cli-bridgeprovider inconfig.yamlso the CLI models appear as selectable models.gemini-bridgeMCP server exposesgemini_status,gemini_models,gemini_promptandgemini_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 permodel 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.jsonwith theSessionStarthook inlined. The original MiniMaxmanifest 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:
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.
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
plugins/<github-owner>/<plugin-name>.plugin.jsonname matches the Plugin directory.README.mdincludes a real example prompt and expected result.LICENSEandplugin.jsondeclare an open-source license.TODOhas been replaced.npm run checkpasses.Evidence
npm run validatefrom the repository root:npm testfrom the repository root: 1148 tests, 1129 pass, 14 fail, 5 skipped. All 14failures are
EPERM: operation not permitted, symlinkraised while creating test fixturesin
plugins/weekbin/mcode-trajectory-studio/test/containment*.test.mjsandtest/hosted-plugins.test.mjs. They are unrelated to this Plugin: this machine cannotcreate 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 thesame
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, socore.autocrlf=trueconverted thechecked-out
SKILL.mdfiles of other Plugins to CRLF, and the smoke tests parsefrontmatter with a
\n-anchored pattern. Withcore.autocrlf=falsethose six pass. ThisPlugin'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/listreturninggemini_status, gemini_models, gemini_prompt, gemini_usage; a real Gemini round tripreturning
BRIDGE_OK; the picker route answering overPOST /v1/chat/completionswithgemini-4-hydrogen; SSE streaming delivering realtext_deltachunks; and the guardverified 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
geminisubagent apply only through theMiniMax manifest. A copy installed from this repository gets the two Skills, the MCP
server, and the
SessionStarthook.Open in [code]smith · Need help on this PR? Tag
@codesmith-botwith what you need.