Perplexity CEO explains Code Mode as moving the agent loop closer to an OS kernel
AravSrinivas · x · 2026-12-04
In a follow-up to the Code Mode announcement, Arav Srinivas frames the design: treat the LLM as CPU, context as scarce RAM, disk as storage, tools as I/O — one-by-one JSON tool calling is basically synchronous blocking I/O copying every raw byte into RAM. Code Mode + embedded QuickJS + execwait moves the agent loop closer to an OS kernel: deterministic loops and filtering run outside the neural net, raw state sits on disk, slow I/O runs async. Cutting redundant round-trips improves both accuracy and cost with the same models.
More from coding & agent
- 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
- Modal bets on ephemeral cloud machines for AI agents, one per command — graceisford · 2026-12-04