Code mode vs. REPL
Code mode – the agent writes scripts instead of making tool calls. Operations compose naturally. 50-line scripts are common.
REPL = code mode + persistent state — variables survive across calls. The agent writes shorter scripts, reasons between them, builds understanding incrementally.
const revenue = await xlsx.findCells(wb, "Revenue", { context: 1 });
Result: accuracy gain on harder tasks — the agent can course-correct mid-exploration.
AI text/layout recreation from video frame; verify against source image.