feat(provider): add MiniMax Code CLI (mcode) engine preset - #414
Open
Vasilispapg wants to merge 2 commits into
Open
feat(provider): add MiniMax Code CLI (mcode) engine preset#414Vasilispapg wants to merge 2 commits into
Vasilispapg wants to merge 2 commits into
Conversation
Register MiniMax Code (`mcode`, npm @minimax-ai/code) as a first-class provider so workers and Michael can run on MiniMax's M-series models (issue chaitanyagiri#387). Interactive TUI in a PTY, oriented by a positional first prompt — the codex shape, verified against v0.2.7's `--help` and the vendor quick-start. - preset: positional protocol seed, `--session <id>` resume, empty auto flag (the TUI exposes no permission flag; Alt+M / /permission inside — `--permission smart|full|off` is exec-only), no model splice (`--model` is exec-only; /model in-TUI), npm + vendor-bootstrap install rungs, docs link - inferAgentProvider/isAgentProvider recognize the mcode binary - model catalog: single honest "CLI default" entry (nothing to splice) - providerAutomation: no compact/clear keystrokes — v0.2.7 documents /status, /model, /plan, /permission, /sessions; no compaction verb - ProviderLogo: official Simple Icons MiniMax mark - voice hire mapping + realtime tool description include minimax - onboarding engine roster (en/ar/zh-CN) now counts twelve - registry, install-ladder, provider-config, automation and catalog tests Closes chaitanyagiri#387
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 & why
MiniMax Code (
mcode) is MiniMax's terminal coding agent, and today the only way to run it in the office is the hooklesscustomprovider — it sits at a desk but can't be oriented, resumed, or self-heal-installed. This registersmcodeas a first-class engine preset: positional hive-protocol seeding (the codex shape),--session <id>resume, npm + vendor-bootstrap install rungs, the official brand mark, and honest gaps where the v0.2.7 TUI has no surface (no permission flag and no--modelflag at launch — both areexec-only, so auto mode appends nothing and the model picker holds a single "CLI default" entry instead of splicing a flag the TUI would reject). Every flag in the preset was verified againstmcode --help/mcode exec --helpat v0.2.7 and the vendor quick-start docs, not guessed. No hook bridge yet — mail delivery uses the same terminal work-order / idle-nudge fallback as Cursor, andmcode acp(ACP v1 over stdio) is noted in the preset as the obvious surface for a future bridge.Closes #387
Type of change
Evidence
Before
Onboarding step 2 (Your clone's engine) on
main, list scrolled to the bottom — the roster ends at Cursor;mcodecan only be a hookless custom command:After
The same screen, same window size and theme, with this branch: MiniMax Code is a selectable engine with its brand mark and an "installs on first run" badge (npm rung:
@minimax-ai/code), and its Model picker offers the honest "CLI default" entry:How I tested it
npx -y @minimax-ai/code@0.2.7 --helpandexec --help(positional[prompt]on the TUI,--session [id]/-c --continue,--permissionand--modelexist onexeconly), plus the vendor install scripts referenced by the quick-start docs.node test/agent-provider.test.cjsandnpm run test:focused— 746/746 pass.npm run typecheck(node + web) passes;npm run buildsucceeds.npm run dev, walked onboarding to the engine step and selected MiniMax Code (screenshots above); confirmed the god-eligibility filter includes it and the Model select shows "CLI default".Note for reviewers: the onboarding roster string was updated in all three locales (en / ar / zh-CN) to count twelve engines. While editing it I noticed the roster sentence doesn't mention Gemini CLI (present since its preset landed) — left untouched here to keep this PR one change, happy to follow up.
Discord (optional)
Discord:
Checklist
npm run typecheckpasses.npm run test:focusedpasses.npm run buildsucceeds.DESIGN.md/tokens.ts— no ad-hoc colors, spacing, or fonts.ATTRIBUTION.md. (The MiniMax mark is the canonical single-path glyph from the Simple Icons set — the same source and pattern as the existing Anthropic/OpenAI/Gemini/Qwen marks inProviderLogo.tsx.)