How Code Mode is implemented in Claude Code - they use node:vm running in process in Bun
Codex does their code mode in v8, OpenCode does theirs in a custom interpreter, Pi uses quickjs
Interesting how much variance there is in the implementations https://t.co/uM0RV15PVU
@pggalavizClaude Code shipped an experimental Code Mode.
Instead of calling tools one at a time and reading each result, Claude writes a bit of JavaScript that runs the calls in parallel and hands back only the output it needs.
So the fix for chatty agents turned out to be batching, just like fixing every N+1 query I've reviewed in 10 years.
There's this one line in the docs worth reading twice: auto mode's classifier reviews the code, not each tool call.
Trying it this weekend, anyone already tested it?
http://code.claude.com/docs/en/code-mode