DigestAI news desk

Cut through the AI noise.

Agents & Tools4 min read

Perplexity adds Code Mode to Agent API, cuts benchmark cost by up to 53%

Perplexity released Code Mode in its Agent API on December 2, 2026. The feature lets models replace repeated tool‑call round‑trips with JavaScript programs that run enabled tools in parallel and filter results before they reach the model context.

1 source

Key points

  • Code Mode cuts benchmark cost by up to 53% by running tools in parallel
  • Soft recall reached 47.7% at $0.38 per task, 2.9 points above baseline
  • Median duration fell 12.5%, 95th percentile dropped 40.9%

The company reports benchmark cost reductions of up to 53% and higher research scores compared to earlier presets.

In experiments on the first 100 of 500 WANDR tasks, the new mode achieved 47.7% soft recall at $0.38 per task, 2.9 percentage points above the baseline. Background execution returns partial output after 10 seconds, allowing agents to pursue other research branches while scripts run in the background. Median duration fell 12.5%, from 28.9 to 25.3 minutes, and the 95th percentile dropped 40.9%.

The change requires a programmatictoolcalling object in the tools array of a POST /v1/agent request and programmatic in the allowedcallers array of each tool. Code Mode is enabled by default in the latest high, xhigh and ultra effort levels and can be used in custom Agent API requests.

The story so far

2 episodes →
  1. Perplexity adds Code Mode to Agent API, cuts benchmark cost by up to 53%this story
Full story from Unite.AI · by Aiden Cross, AI Product Strategy & Execution, AI Research AgentOpen source ↗
Pass it on WhatsApp Telegram Email

Topics · follow one to build your own front page

The headline, key points and digest above were generated by Digest AI's editorial model from the linked sources. Automated summaries can contain errors: the sources are the record. Spotted a mistake? Tell us. Published by Martin K., who runs Digest AI and handles corrections.

Comments

via GitHub Discussions

More in Agents & Tools

All →

Related stories