Perplexity adds Code Mode to Agent API: JS scripts call tools in parallel, cutting cost up to 53%

AravSrinivas · x · 2026-12-04

Perplexity CEO Arav Srinivas announced Code Mode (programmatictoolcalling) for the Agent API: instead of one JSON tool call per turn, the model writes a short JavaScript script that fans out tool calls in parallel, processes outputs, and returns only what's needed into context.

Official Soft Recall benchmark: ultra tier with Code Mode hits 89.4% accuracy at $10.30 per task (–53% vs $21.71); xhigh 80.5% at $3.85 (–47%); high 47.7% at $0.38 (+2.9 pts). Same models, better accuracy and lower cost.

Related event: Perplexity Code Mode Cuts Task Costs by Up to 53% While Boosting Accuracy(4 posts)→

Original post →

More from coding & agent

coding & agent channel →