Perplexity CEO explains Code Mode: moving deterministic glue work out of the context window

AravSrinivas · x · 2026-12-04

AravSrinivas lays out the Code Mode thesis: standard tool calling treats the LLM like a slow, expensive for-loop — every search, fetch, or API call costs a full model round-trip and dumps raw payloads (HTML, transcripts, JSON) into the context window.

Code Mode instead runs deterministic glue work (parallel fan-out, branching, deduplication, filtering, writing raw files to disk) as code outside the context window. Example: an agent researching quarterly segments and earnings transcripts for 6 tickers fires 12 concurrent calls, writes raw JSON to disk, and returns only file paths or a compact summary — none of the raw filings pass through the model's context unless it chooses to inspect a specific file.

Related event: Perplexity CEO Explains Code Mode Design Philosophy(4 posts)→

Original post →

More from coding & agent

coding & agent channel →