Perplexity adds Code Mode, letting models write JavaScript that runs tools in parallel
Perplexity says Code Mode lets models write JavaScript that runs tools in parallel and filters outputs before they enter context.
Perplexity has added a Code Mode to its agent API, in which the model writes JavaScript that calls tools in parallel.
It appears in a list of agent API changes alongside a Gemini API step that alters instructions or tools mid-session without invalidating the cache, and an Anthropic Terraform provider now in public beta.
What changed
Perplexity added Code Mode to its agent API, in which the model writes JavaScript that calls tools in parallel.
Type: New capability
Why it matters
Filtering tool output before it reaches the model can cut context costs for agents that call many tools.
What you can do
If you build agents on Perplexity's API, test whether Code Mode lowers token use on your multi-tool workflows.
Original source
We have no link to the original source for this story yet.
Where we saw it
Latent Space
AI wrote this summary from the sources listed, and nobody reviewed it individually before publication. Check the original source before you rely on it. How it works