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.

Industry analysis

2025 Global Business Services Agenda: Gen AI Takes Center Stage

The Hackett Group

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 more
Free, six days a week

Daily AI Brief: the AI news that matters, in your inbox.