How AI coding tools implement code mode: node:vm vs v8 vs quickjs, plus a subprocess design
YashasGunderia · x · 2026-11-15
Rhys Sullivan notes code mode implementations vary widely across AI coding tools: Claude Code runs node:vm in-process on Bun, Codex uses v8, OpenCode a custom interpreter, Pi quickjs.
Anymo's Yashas Gunderia shares his take: each call runs Bash/Python 3 in a fresh Linux subprocess, where the model writes one script calling tools via an injected anymocall() helper. Calls return over a private Unix socket through the same permission checks as direct tool calls. A script can read ten files, filter locally, and only printed matches re-enter the model's context — saving tokens. Built two months ago, experimental on win/mac, default-on on his Linux VPS.