Skip to content

Commit 2a48c29

Browse files
author
PR Bot
committed
feat: upgrade MiniMax default model to M2.7
- Add MiniMax-M2.7 and MiniMax-M2.7-highspeed to ModelName type - Set MiniMax-M2.7 as default model for all agents (base2-free, editor-lite, code-reviewer-lite, librarian, tmux-cli) - Update FREE_MODE_AGENT_MODELS allowlist to M2.7 - Keep all previous models (M2.5) as available alternatives - Update documentation (what-models, modes, FAQ, how-does-it-work, freebuff README/SPEC) - Update related unit tests
1 parent bb39143 commit 2a48c29

File tree

17 files changed

+26
-20
lines changed

17 files changed

+26
-20
lines changed

.agents/types/agent-definition.ts

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -429,6 +429,8 @@ export type ModelName =
429429
| 'z-ai/glm-4.7:nitro'
430430
| 'z-ai/glm-4.7-flash'
431431
| 'z-ai/glm-4.7-flash:nitro'
432+
| 'minimax/minimax-m2.7'
433+
| 'minimax/minimax-m2.7-highspeed'
432434
| 'minimax/minimax-m2.5'
433435
| (string & {})
434436

agents/__tests__/editor.test.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -64,7 +64,7 @@ describe('editor agent', () => {
6464

6565
test('creates minimax editor', () => {
6666
const minimaxEditor = createCodeEditor({ model: 'minimax' })
67-
expect(minimaxEditor.model).toBe('minimax/minimax-m2.5')
67+
expect(minimaxEditor.model).toBe('minimax/minimax-m2.7')
6868
})
6969

7070
test('gpt-5 editor does not include think tags in instructions', () => {

agents/base2/base2.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -28,7 +28,7 @@ export function createBase2(
2828

2929
return {
3030
publisher,
31-
model: isFree ? 'minimax/minimax-m2.5' : 'anthropic/claude-opus-4.6',
31+
model: isFree ? 'minimax/minimax-m2.7' : 'anthropic/claude-opus-4.6',
3232
providerOptions: isFree ? {
3333
data_collection: 'deny',
3434
} : {

agents/editor/editor.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,7 @@ export const createCodeEditor = (options: {
1313
options.model === 'gpt-5'
1414
? 'openai/gpt-5.1'
1515
: options.model === 'minimax'
16-
? 'minimax/minimax-m2.5'
16+
? 'minimax/minimax-m2.7'
1717
: 'anthropic/claude-opus-4.6',
1818
...(options.model === 'opus' && {
1919
providerOptions: {

agents/librarian/librarian.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,7 @@ const librarian: AgentDefinition = {
99
id: 'librarian',
1010
publisher,
1111
displayName: 'Librarian',
12-
model: 'minimax/minimax-m2.5',
12+
model: 'minimax/minimax-m2.7',
1313

1414
spawnerPrompt:
1515
'Spawn the librarian agent to shallow-clone a GitHub repository into /tmp and answer questions about its code, structure, or documentation. The agent returns structured output with `answer`, `relevantFiles` (absolute paths in the cloned repo), and `cloneDir`. You can use `run_terminal_command` with `cat` to read the returned `relevantFiles` paths. Clean up `cloneDir` with `rm -rf` when done.',

agents/reviewer/code-reviewer-lite.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@ import { createReviewer } from './code-reviewer'
55
const definition: SecretAgentDefinition = {
66
id: 'code-reviewer-lite',
77
publisher,
8-
...createReviewer('minimax/minimax-m2.5'),
8+
...createReviewer('minimax/minimax-m2.7'),
99
}
1010

1111
export default definition

agents/tmux-cli.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -71,7 +71,7 @@ const outputSchema = {
7171
const definition: AgentDefinition = {
7272
id: 'tmux-cli',
7373
displayName: 'Tmux CLI Agent',
74-
model: 'minimax/minimax-m2.5',
74+
model: 'minimax/minimax-m2.7',
7575
// Provider options are tightly coupled to the model choice above.
7676
// If you change the model, update these accordingly.
7777
providerOptions: {

agents/types/agent-definition.ts

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -429,6 +429,8 @@ export type ModelName =
429429
| 'z-ai/glm-4.7:nitro'
430430
| 'z-ai/glm-4.7-flash'
431431
| 'z-ai/glm-4.7-flash:nitro'
432+
| 'minimax/minimax-m2.7'
433+
| 'minimax/minimax-m2.7-highspeed'
432434
| 'minimax/minimax-m2.5'
433435
| (string & {})
434436

common/src/constants/free-agents.ts

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -18,7 +18,7 @@ export const FREE_COST_MODE = 'free' as const
1818
*/
1919
export const FREE_MODE_AGENT_MODELS: Record<string, Set<string>> = {
2020
// Root orchestrator
21-
'base2-free': new Set(['minimax/minimax-m2.5']),
21+
'base2-free': new Set(['minimax/minimax-m2.7']),
2222

2323
// File exploration agents
2424
'file-picker': new Set(['google/gemini-2.5-flash-lite']),
@@ -33,10 +33,10 @@ export const FREE_MODE_AGENT_MODELS: Record<string, Set<string>> = {
3333
'basher': new Set(['google/gemini-3.1-flash-lite-preview']),
3434

3535
// Editor for free mode
36-
'editor-lite': new Set(['minimax/minimax-m2.5']),
36+
'editor-lite': new Set(['minimax/minimax-m2.7']),
3737

3838
// Code reviewer for free mode
39-
'code-reviewer-lite': new Set(['minimax/minimax-m2.5']),
39+
'code-reviewer-lite': new Set(['minimax/minimax-m2.7']),
4040
}
4141

4242
/**
@@ -103,7 +103,7 @@ export function isFreeModeAllowedAgentModel(
103103
// Exact match first
104104
if (allowedModels.has(model)) return true
105105

106-
// OpenRouter may return dated variants (e.g. "minimax/minimax-m2.5-20260211")
106+
// OpenRouter may return dated variants (e.g. "minimax/minimax-m2.7-20260318")
107107
// so also check if the returned model starts with any allowed model prefix.
108108
for (const allowed of allowedModels) {
109109
if (model.startsWith(allowed + '-')) return true

common/src/templates/initial-agents-dir/types/agent-definition.ts

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -429,6 +429,8 @@ export type ModelName =
429429
| 'z-ai/glm-4.7:nitro'
430430
| 'z-ai/glm-4.7-flash'
431431
| 'z-ai/glm-4.7-flash:nitro'
432+
| 'minimax/minimax-m2.7'
433+
| 'minimax/minimax-m2.7-highspeed'
432434
| 'minimax/minimax-m2.5'
433435
| (string & {})
434436

0 commit comments

Comments
 (0)