Repository navigation
minimax 0.2.7: opt-in compactTools advertises only the four dispatcher tools - #1014
Merged
Merged
Conversation
…r tools (magpie-community#1005) Adds a plugin option compactTools, default false. When true, the sixteen named Matrix tools are left out of tools/list, and list_tools, tool_schema, call_tool and web_search stay with their descriptions unchanged. call_tool still validates against the live catalog. No new prompt text. This is option A from magpie-community#1005, which yetone accepted for the catalog-size drop in magpie-community#989. Measured advertised tools/list (agy's count: mcp__magpie__minimax__<name> + newline + description + newline + compact input JSON Schema): - off (today): 20 tools, 32179 chars, ~8045 tokens (chars/4) - on: 4 tools, 3865 chars, ~966 tokens - saved: 28314 chars, ~7079 tokens Ran: - bun test packages/minimax: 165 pass, 0 fail - bun scripts/check.mjs: exit 0 magpie-community#1008 also targets 0.2.7; the later merge can bump if both land.
Contributor
|
Harm scan: nothing stops this one (no new address, dependency or install script). One thing before merge: #1008 also takes minimax to 0.2.7, so whichever of the two lands second needs 0.2.8, or publish.yml sees a version npm already has and the second change never ships. |
This was referenced Nov 11, 2026
Open
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.
Implements maintainer-approved option A from #1005, for the catalog-size drop described in #989.
What this does
Adds a plugin option
compactTools, defaultfalse(package.jsonmagpie.options). Users who do not set it keep today's named tools exactly as they are.When
compactTools: true:tools/listlist_tools,tool_schema,call_tool, andweb_searchstay, with their descriptions and schemas unchangedcall_toolstill validates against the live catalog and refuses bad arguments before the call leavesNo new prompt text. Nothing in the advertised tools names magpie or a vendor's limits. Option B (slim named tools / rewritten descriptions) is not in this PR.
Enable with:
magpie plugin options @magpie-community/opencode-minimax-auth '{"compactTools": true}'Measured advertised
tools/listsizeCounted as agy does:
mcp__magpie__minimax__<name>+ newline + description + newline + the advertised input JSON Schema (compact JSON, including thesite/accountrouting fields the plugin merges in). Character counts are exact. Token figures are approximate (chars/4); agy uses its own tokenizer, so treat tokens as indicative against the 20k customization budget.compactTools: truelist_tools,tool_schema,call_tool,web_search)The four remaining tools are byte-for-byte the same as today's. These character totals match the estimates in #1005 (32179 / 3865).
Tests
{ compactTools: false }, and non-truevalues) leaves the advertised list byte-for-byte as todaycall_toolstill refuses bad arguments against the live schema when compact mode is on, and the priced connector call never goes outRan:
bun test packages/minimax: 165 pass, 0 failbun scripts/check.mjs: exit 0Whether the #989 agy catalog gets its dropped tools back
Not verified end-to-end on the production agy-cli + Gemini 4 Carbon host used for #989, because this MiniMax plugin is not installed there (that host's plugin list is grok-auth, cursor-auth, and a local agy-cli checkout). Installing this build there would have added a new plugin rather than toggling an existing one, so it was left untouched. No backup was needed.
What was measured on existing conversations after the agy-cli 0.1.19 upgrade, from
gen_metadata/executor_metadata(tool names and counts only):gen_metadataand the same 13 only inexecutor_metadata(mcp_browser,mavis,task,ask_user,update_goal,website_deploy,bash,grep,mcp__agent-bridge__call_capability,mcp__agent-bridge__dispatch_task,mcp__memorix__memorix_knowledge,mcp__memorix__memorix_search,mcp__memorix__memorix_store). This catalog does not include MiniMax tools, socompactToolscannot bring those 13 back.gen_metadataand 34 only inexecutor_metadata. All 20 MiniMax tools were present in the client-declared catalog. The 14 smaller ones stayed ingen_metadata; the six largest were among the 34 dropped:generate_image,submit_video_generation,query_video_generation,synthesize_speech,batch_text_to_audio,batch_text_to_music. Those were advertised to the model asmcp__magpie__minimax__…(client-declared ide-tools), so shrinking them requires enablingcompactToolson the Magpie that serves the MiniMax MCP tools, not on the agy-cli host. Saving ~7079 tokens would not by itself absorb the rest of that 34 (memorix, autoplay, and other large tools remain).So: this option shrinks MiniMax's own advertised text as designed. It should help a crowded catalog that includes these sixteen named tools, but it does not, by itself, restore
bash/grep/task/ask_useron the usual #989 catalog.Version
Package version is 0.2.6 → 0.2.7. #1008 also targets 0.2.7; the later merge can bump if both land.