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://t.co/ut6GGWQTVO https://t.co/jrF2nQE3bC
Perplexity launches Search as Code for programmable agentic search orchestration
Perplexity· Updated
Perplexity released Search as Code, a new architecture that lets AI agents orchestrate search primitives through generated Python code. By moving from serial tool-calling to parallel execution, agents can now perform hundreds of retrieval operations in a single turn to improve research accuracy.
- DSQA Accuracy
- 0.871
- WANDR Accuracy
- 0.386
- Token Reduction
- Up to 85.1 percent
- Architecture Layers
- Models, Sandboxes, and Agentic Search SDK
- Availability
- Perplexity Computer and Agent API
Traditional search is often too rigid for agents, causing high latency and context pollution where irrelevant data fills a model's memory. By exposing the search stack as an SDK, SaC lets agents fan out queries and filter results before they hit the context window. This architecture establishes a new cost-performance frontier, outperforming frontier models on knowledge-intensive research benchmarks.
SaC is now the default for Perplexity Computer and available via the Perplexity Agent API. It uses Agent Skills to teach models how to compose search blocks into complex patterns. All execution is secured through hardware-isolated sandboxes, allowing agents to navigate the web and process data without compromising the host system.
Still wondering? A few quick answers below.
Every HeadsUpAI update is written based on its original source and reviewed before it's published. Read our editorial standards →


