Perplexity's "Search as Code" lets AI models write their own search pipelines instead of calling fixed APIs
Source published ·Modelwire updated
Original coverage: The Decoder ↗·How Modelwire adds context

The development
Perplexity has shifted from fixed API-based search to a model-driven architecture where AI agents compose their own search logic in Python within a sandboxed environment. This architectural pivot addresses a fundamental inefficiency in current agentic systems: rigid pipelines force models to make suboptimal calls and waste tokens on redundant operations. The reported 85 percent token reduction and benchmark wins over OpenAI and Anthropic suggest the approach unlocks material efficiency gains, signaling a broader industry move toward flexible, agent-controlled data retrieval rather than predefined tool interfaces.
Modelwire’s AI-generated summary of coverage from The Decoder.
Modelwire analysis
Analyst takeOur AI-generated reading of the wider context and the next developments to watch.
The 85 percent token reduction figure is doing a lot of work here, but Perplexity hasn't disclosed which benchmarks, what task distribution, or whether the comparison baselines reflect current OpenAI and Anthropic production configurations. That number needs independent replication before it anchors any competitive narrative.
This move lands directly on top of the argument Hugging Face made in 'Beyond LLMs: Why Scalable Enterprise AI Adoption Depends on Agent Logic' (June 1): the bottleneck in production AI is shifting from model quality to how well agents orchestrate tools and data retrieval. Perplexity is essentially operationalizing that thesis at the infrastructure layer, betting that model-composed pipelines beat fixed APIs before the larger labs can respond. The K-BrowseComp benchmark story from the same week is also relevant context: it showed that agentic web interaction is brittle even for frontier models, which raises a real question about whether Perplexity's sandbox approach holds up across languages and query types beyond its reported test set.
Watch whether OpenAI or Anthropic ships a comparable agent-controlled retrieval interface within the next two quarters. If neither responds and Perplexity's token efficiency claims get third-party validation on a public agentic benchmark, the architectural bet is confirmed. If the claims stay proprietary, treat them as unverified.
This interpretation is generated from the summary above and the archive coverage cited below. Our methodology · Report an error
Coverage behind this analysis
These archive entries ground the connection in our analysis. They are ordered by source publication date, with links to our coverage and the original sources.
·Hugging Face
Beyond LLMs: Why Scalable Enterprise AI Adoption Depends on Agent Logic
Hugging Face argues that enterprise AI maturity hinges on agent-based reasoning rather than raw language model scale. The piece signals a strategic inflection point: as organizations move beyond chatbot deployments, autonomous agents capable of multi-step logic and tool orchestration are becoming table stakes for production systems. This reflects a broader industry shift from model-centric to…
MentionsPerplexity · OpenAI · Anthropic · Search as Code
How this coverage is produced
Modelwire uses AI to generate summaries and context from source headlines, snippets, and selected archive coverage. Automated checks do not verify every claim, and items are not routinely reviewed by a person before publication. Zacaria Solis operates the site. Read the linked source for the full evidence and report errors through our corrections process.
Modelwire summarizes, we don’t republish. The full content lives on the-decoder.com. If you’re a publisher and want a different summarization policy for your work, see our takedown page.