Codex cuts app server memory 25% at P50, 40% at P95 by sharing stateless MCP processes
charliermarsh · x · 2026-12-01
Charlie Marsh (creator of Ruff, on the Codex team) announced that the Codex app server now uses 25% less memory at P50 and 40% less at P95, calling it the most significant performance improvement the team has shipped recently.
The gains come from reworking MCP server management:
- Stateless sharing: the latest MCP spec makes the protocol stateless and explicitly allows one process to be shared across threads. Previously each thread spawned its own stdio process per MCP server (3 servers × 10 threads = 30 processes). The Desktop app's app-tools MCP alone used to cost 45 MB per helper — about 1 GB for 20 active threads.
- Lazy startup: tool discovery previously required starting the MCP process just to read its tool catalog; now servers only start when actually invoked.
Marsh notes the denominator includes the app server itself and everything it launches (e.g. Cargo builds), so even a 5% reduction would be meaningful — especially for high-volume use cases with many threads and subagents.
Related event: Codex App Server Memory Drops 25% at P50, 40% at P95(2 posts)→
More from coding & agent
- LangChain CEO Amplifies Debate: Do Agents Need Granular RBAC-Style Permissions? — hwchase17 · 2026-12-01
- Codex now caches MCP tool lists across threads and lazily starts servers — charliermarsh · 2026-12-01
- Codex app server cuts memory 25% at P50 and 40% at P95 — charliermarsh · 2026-12-01
- Full AI workflow tours Middle-earth: 3D blockout, Magnific MCP, Seedance video — techhalla · 2026-12-01
- Sentry to open-source its in-house MCP feedback tool with trace-connected user feedback — zeeg · 2026-12-01
- Microsoft CTO open-sources Demo Simulator: prerecorded demos with pause-and-Q&A control — WirelessLife · 2026-12-01