Re:What Is Codemode
by otikik on Thursday October 08, 2026 @09:07AM
(#50005377)
Yes and no.
Yes part: LLMs have had the capability to generate code, including glue code, to do several steps in a single program.
No part: until some months ago, MCP servers were not prepared to use that glue code at all.
Your LLM could generate the code it wanted, and you could execute that code wherever you wanted, including letting the LLM run it. but every call to any of the tools exposed by the LLM is meant to be consumed by your LLM in the old paradigm. If said program makes 80 tool calls, your LLm would still have to send them, and parse their responses, consuming tokens.
In code mode the glue code is sent to the server, which executes it, and returns the final result. It’s a single invocation and a single response, instead of 80 like before
Yes part: LLMs have had the capability to generate code, including glue code, to do several steps in a single program.
No part: until some months ago, MCP servers were not prepared to use that glue code at all.
Your LLM could generate the code it wanted, and you could execute that code wherever you wanted, including letting the LLM run it. but every call to any of the tools exposed by the LLM is meant to be consumed by your LLM in the old paradigm. If said program makes 80 tool calls, your LLm would still have to send them, and parse their responses, consuming tokens.
In code mode the glue code is sent to the server, which executes it, and returns the final result. It’s a single invocation and a single response, instead of 80 like before