Skip to content

Max Mode 无法开启 #741

@Lu2O3GaN

Description

@Lu2O3GaN

Description

官方博客(mimo.xiaomi.com/blog/mimo-code-long-horizon)
Max Mode 的核心机制:

  • 每轮并行生成 N 个候选方案(默认 N=5)
  • 每个候选独立完成推理和工具调用规划,不实际执行
  • 用同一个模型作为 judge 比较所有候选,选出最优方案执行
  • 默认 temperature=1,确保候选方案多样化
  • SWE-Bench Pro 上比单次采样提升 10-20%,token 消耗约 4-5 倍
  • 博客原文:"Max Mode is currently an experimental feature and must be enabled manually through configuration."

官方 README(npm + GitHub)

Max Mode (parallel best-of-N reasoning with judge selection) can be enabled via experimental.maxMode in the config.


矛盾之处

问题在于:官方 config schema(opencode.ai/config.json)中的 experimental 对象不包含 maxMode 字段,且设置了 additionalProperties: false,所以写入 maxMode: true 会导致验证失败。

结论
这是 文档与实现不同步 的 bug。README 和博客说可以通过 experimental.maxMode 启用,但实际 schema 不支持。

Plugins

No response

OpenCode version

No response

Steps to reproduce

No response

Screenshot and/or share link

No response

Operating System

No response

Terminal

No response

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugSomething isn't working

    Type

    No type
    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions