Perplexity's Code Mode evolution: from Python containers to embedded QuickJS in the agent loop
AravSrinivas · x · 2026-12-04
Srinivas details the iteration: a June experiment (Search as Code, pplxsdk) had agents run Python inside Linux sandbox containers to fan out retrieval queries. The new version runs JavaScript via an embedded QuickJS WebAssembly runtime directly in the agent loop — no container to boot, no separate search-only library. Example: for quarterly segments and earnings transcripts across 6 tickers, the agent fires 12 concurrent calls, writes raw JSON to disk, and returns only file paths or a compact summary.
Related event: Perplexity CEO Explains Code Mode Design Philosophy(4 posts)→
More from coding & agent
- Perplexity CEO explains Code Mode as moving the agent loop closer to an OS kernel — AravSrinivas · 2026-12-04
- Code Mode exposes all Agent API tools through a single typed tools.* interface — AravSrinivas · 2026-12-04
- Developer's 2026 AI workflow review: personal agent caught his hotel booking mistake — tdhopper · 2026-12-04
- Sentry exec: agents aren't self-improving, humans must gate every decision — zeeg · 2026-12-04
- Sentry engineer: our MCP-server feedback optimization has run in prod for a while, and it self-reports problems — zeeg · 2026-12-04
- Harness as a Language: JAZ's minimal agent loop beats specialized harnesses on recall and self-improvement — a1zhang · 2026-12-04