Perplexity adds Code Mode to its Agent API for parallel tool calls
Models can now write JavaScript that runs search, fetch and other tools in parallel and filters results before they reach the context window.
2 Dec 2026
Perplexity has added Code Mode to its Agent API, letting models replace repeated tool-call round trips with short JavaScript programs, Unite.AI reported.
Daily AI Brief covers stories like this, six days a week. Free.
The programs run in an embedded WebAssembly runtime inside the agent loop and can call enabled tools such as web search, URL fetching, finance search, MCP servers and sandbox shells in parallel, then remove duplicates and filter raw results before passing a summary back to the model. On Perplexity's WANDR research benchmark, the company reported cost reductions of up to 53% against its earlier presets, and its high-effort setting with Code Mode reached 47.7% soft recall at $0.38 per task, 2.9 points above baseline.
Where this comes from
unite.ai Perplexity Adds Code Mode to Agent API for Parallel Tool CallsIn this story
Industry analysis
2025 Global Business Services Agenda: Gen AI Takes Center Stage
This industry analysis by The Hackett Group explores the transformative impact of generative artificial intelligence (Gen AI) on global business services (GBS) in 2025. The study highlights the shift from exploration to acceleration of Gen AI initiatives, with 89% of executives advancing these projects to improve customer satisfaction, innovate products, and reduce costs. The report also discusses the challenges and strategies for successful Gen AI adoption, emphasizing the need for a technology-enabled operating model and the importance of reskilling the workforce.
Read moreYou may also like
Perplexity adds Multiagent mode that runs up to 16 AI agents that check each other's work 18 Nov 2026 Perplexity launches Teammates, agents that own ongoing work inside Computer 8 Nov 2026 Perplexity launches Monitor API to alert AI agents when the web changes 17 Nov 2026 Perplexity launches Frontier Research to build an automated scientist 16 Nov 2026 Perplexity Adds Gemini 4 Carbon to Computer 11 Nov 2026 Perplexity Launches Persistent AI Teammates for Max Subscribers 5 Nov 2026Daily AI Brief: the AI news that matters, in your inbox.