Perplexity Adds Code Mode to Agent API for Programmatic Tool Calling

x.com1 min read

Perplexity is adding Code Mode to its Agent API, allowing models to write and execute scripts that call tools directly, run in parallel, and filter raw payloads outside the context window. The company reports that Code Mode improves accuracy while lowering task costs across its high, xhigh, and ultra effort levels. Additionally, a new exec_wait feature helps reduce long-running job durations by allowing agent loops to continue working on other tasks while background scripts finish. Open article →

More on this topic