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)→
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