Perplexity Adds Code Mode to Agent API for Parallel Tool Calls

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…

Leave a Reply

Your email address will not be published. Required fields are marked *

Back To Top