OpenCode 的 codemode 让模型发送可执行工具调用的小程序;内部测试已在单次调用中通过 codemode 运行全部工具
一条 X 帖子重点介绍了 codemode:该功能在 OpenCode 中可用(Codex 也通过 Node REPL MCP 提供类似能力),它允许模型发送一段包含循环和条件判断的小程序来执行工具调用,而不是发出单个或并行的工具调用。
帖文称该功能在 Codex 中的使用不及 OpenCode 广泛。OpenCode 维护者 dax (@thdxr) 表示团队已在内部测试让所有工具都通过 codemode 运行,并分享了一次工具调用就在该模式下完成了全部任务。
对开发者而言,这种方式可以把逻辑与多次调用打包进一个可执行程序,从而减少模型与工具层之间的往返。该信息来自社交媒体帖子,未提供文档、基准测试或发布细节。
OpenCode's 'codemode' lets models send programs that execute tool calls; internal test runs all tools via codemode in a single call
A post on X highlights codemode, a feature available in OpenCode (and also in Codex via a Node REPL MCP) that lets a model send a small program with loops and conditionals that execute tool calls, rather than issuing one tool call or parallel tool calls.
According to the thread, the feature is less used in Codex than in OpenCode. OpenCode maintainer dax (@thdxr) said the team has been internally testing running all tools through codemode, and shared that a single tool call completed an entire task in that mode.
For developers, the approach could reduce round trips between the model and the tool layer by batching logic and calls into one executed program. The information comes from social media posts and no documentation, benchmarks, or release details were provided.
猎鹰不保存原文正文。标题与摘要用于快速发现信息,事实细节请以来源原文为准。