Codemode

The model can send codemode({code}): the body of an async function, run in a fresh isolate. The isolate has no filesystem or network access, a 64 MB heap cap, and a 60 s wall-clock deadline that also counts time spent awaiting tools:

const files = (await tools.bash({ command: "git ls-files '*.ts'" })).split("\n");
for (const f of files.slice(0, 20)) console.log(f, (await tools.read({ path: f })).length);
return await tools.mcp__github__list_issues({ state: "open" });

Each inner call is gated individually and recorded as an inner_tool_call event. The script receives raw results, and the Codemode output as a whole is taint-framed on its way back to the model.