Rethinking search as code generation
Blog post from Perplexity
Perplexity introduces Search as Code (SaC), an agent-oriented search architecture that replaces fixed, monolithic search pipelines with modular retrieval, ranking, filtering, fan-out, and rendering primitives exposed through a Python-based Agentic Search SDK. Rather than issuing serial function calls and receiving preprocessed result sets, models generate and execute task-specific code in secure sandboxes, enabling asynchronous workflows, thousands of retrieval operations, deterministic processing, and more selective use of context. SaC combines models as planning and control layers, sandboxes for code execution and state management, and an SDK built from atomized search components; Perplexity reports favoring filesystem-based state serialization over persistent REPL environments for long-running tasks. A CVE-advisory case study illustrates how agents can generate targeted vendor searches, adapt coverage strategies, and verify evidence linking vulnerabilities to product fixes. Across five benchmarks, including DSQA, BrowseComp, HLE, WideSearch, and the new WANDR benchmark, Perplexity reports that its SaC implementation outperformed competing evaluated systems on four benchmarks and was effectively tied on HLE, while also showing favorable cost-performance results. The company frames SaC as a hybrid computing model in which language-model reasoning determines research strategies while deterministic code handles parallelism, filtering, aggregation, and other operational tasks.
| Trend | Post Mentions | Total Month Mentions | Posts | Companies | MoM |
|---|---|---|---|---|---|
| LLM | 6 | 6,946 | 1,313 | 268 | -34% |
| Cost per task | 5 | 45 | 29 | 25 | +67% |
| MCP | 3 | 11,103 | 967 | 228 | -17% |
| AI Agents | 1 | 7,519 | 1,601 | 288 | +9% |
Use this post, company, and trend context to find content marketing opportunities, perform competitive analysis, or address product feature gaps via the Plushcap MCP server or the Plushcap API.