6h agoPerplexity launches Search as Code to replace sequential tool calling and MCP loops with agent-generated PythonThe architecture is available now through the Perplexity Agent API.SentimentSentimentPos88%Neg12%Many users praised Perplexity's Search as Code architecture for AI agents because it lets models dynamically write their own data-gathering scripts, yielding faster, simpler, and more scalable workflows than static APIs.14 comments with sentiment. View comments.