/AI6h ago

Perplexity launches Search as Code, letting AI agents bypass multi-turn tool calling by generating Python pipelines directly

It is the default search for Perplexity's Computer tool

--0--
Original postSuper Dario#1776
Perplexity@perplexity_ai

Introducing Search as Code, our new search architecture for AI agents.

It writes Python that calls our search stack directly, instead of looping through function calls one at a time.

Available in the Perplexity Agent API, and now default in Computer.

https://research.perplexity.ai/articles/rethinking-search-as-code-generation

10:53 AM · Jun 1, 2026 · 113.2K Views
Sentiment
Sentiment unavailable for this story.
Cluster Engagement
-
Views
-
Comments
-
Reposts
-
Bookmarks
Expand data
Posts from X
Most Activity
Most ActivityTimeline
VIEWS20.1KBOOKMARKS90LIKES174RETWEETS11REPLIES21
Aravind Srinivas@AravSrinivas

We’re moving away from search as a web fetch tool call to search as codegen to be future proof in a world where code execution inside agent harnesses is the way to do almost all of our knowledge work.

Doing this lets you compose multi-step primitives far more naturally and be much more adaptable to changes made to the agent harness, as well as benefit from improvements in coding capabilities that are guaranteed to come from the next generation of frontier models.

Perplexity@perplexity_ai

Introducing Search as Code, our new search architecture for AI agents.

It writes Python that calls our search stack directly, instead of looping through function calls one at a time.

Available in the Perplexity Agent API, and now default in Computer.

https://research.perplexity.ai/articles/rethinking-search-as-code-generation

1hViews 20.1KLikes 174Bookmarks 90
Perplexity launches Search as Code, letting AI agents bypass multi-turn tool calling by generating Python pipelines directly · Digg