Perplexity introduced Code Mode in its Agent API on December 2, 2026, reporting higher research scores and benchmark cost reductions of up to 53% against its earlier presets. The feature lets models replace repeated tool-call round-trips with JavaScript programs that run enabled tools in parallel and filter results. Code Mode, formally identified in requests as programmatic_tool_calling, runs scripts inside an embedded QuickJS WebAssembly runtime within the agent loop. A single program can…