How OpenAI’s Performance Factory keeps ChatGPT fast
OpenAI's Performance Factory is a cloud-based system of Codex agents that automates performance regression handling end to end, from alert to root cause, proposed fix, and verified recovery. It is built from four parts: a task service with Markdown/TOML-defined workflow states, a dispatch loop that assigns ready tasks to agents, an API running Codex turns inside the internal network under a service identity, and event subscriptions that wake tasks on PR comments or deployments. A separate adversarial-review agent tries to disprove each diagnosis and each proposed fix, and a shared `perf-forensics` skill encodes the team's investigation playbook. In about three months the workflow ran over 1,700 investigations and root-caused more than 600, and 70% of 100 sampled diagnoses were graded accurate. Fixes proved harder than diagnosis and still go through engineer review.
Related posts
- Capacity Efficiency at Meta: How Unified AI Agents Optimize Performance at Hyperscale
Meta Engineering easyNoviceMeta's Capacity Efficiency Program uses one AI agent platform for two jobs: finding performance optimizations (offense) and fixing production regressions (defense). The platform has two layers. MCP tools are single-purpose interfaces for querying profiling data, config history, code and docs, and skills encode senior engineers' reasoning about which tools to use and how to read the results. FBDetect catches regressions as small as 0.005%, and its AI Regression Solver turns root-caused regressions into fix-forward pull requests sent to the original author. On offense, agents turn efficiency opportunities into ready-to-review code. Meta reports that automated diagnosis cuts about 10 hours of investigation to about 30 minutes, and the program has recovered hundreds of megawatts of power.
- Harness engineering: leveraging Codex in an agent-first world
OpenAI mediumAdept
A small OpenAI team built and shipped an internal product of roughly a million lines over five months with zero manually written code, merging about 1,500 Codex-authored PRs at around 3.5 PRs per engineer per day, an estimated 10x faster than writing it by hand. The engineers' job shifted to building the environment agents work in. Each git worktree boots its own app instance, the Chrome DevTools Protocol lets agents drive the UI, and a per-worktree ephemeral observability stack can be queried with LogQL, PromQL and TraceQL. A short AGENTS.md acts as a map into a structured, CI-validated docs/ directory instead of one giant instruction file. A rigid layered domain architecture is enforced by custom linters whose error messages carry remediation instructions for the agent.
- Four minutes after midnight, Codex said the page was live
Render mediumAdept
OpenAI's Dominik Kundel argues that with agentic delegation, code is no longer the bottleneck. What matters is the harness around the agent: context, validation and verification. Codex reaches context through plugins (Slack, Notion, Drive, Linear), Memories and Chronicle. It validates its own work with fast tests, linters like Vale for docs, parallel app copies, CDP debugging and deployment-watching plugins. Changes get verified by a separate Codex review session tuned via AGENTS.md to flag only P0/P1 issues, plus deploy previews or videos. Recurring feedback should become skills, lint rules or tests rather than repeated corrections, illustrated by Codex shepherding a midnight docs deploy end to end.
- Your AI agent fixed the bug, but what else did it change?
Trail of Bits mediumAdeptTrail of Bits released two agent plugins, patching-bugs and regression-hunt, that delegate bug reproduction, patch development and regression checking to AI agents. Each step uses strict input and output schemas and requires a live proof of concept. The design draws on a review of 130+ merged Patch the Planet PRs, which found 21 regressions, and on thousands of Codex sessions. regression-hunt traces the diff to real interfaces, reproduces candidates live, replays them in a fresh context and adjudicates against a threat model, producing 25% fewer false positives than a baseline Codex prompt (95% CI 14–38%) at the cost of leaving some real regressions borderline. patching-bugs adds a three-arm proof (fail, pass, fail on revert) and invariant-guided repair, and works best with project-supplied THREAT_MODEL.md and PATCHING_GUIDELINES.md files.
- Everything We Talked About at O11yDay London 2026
Honeycomb mediumAdeptAcross ten sessions at O11yDay London, the recurring bottleneck was not writing code but reviewing it, operating agents in production, and proving the spend is worth it. Speakers described instrumenting AI agents like any other production system: OpenTelemetry pipelines repaired to expose hidden Claude Agent SDK subagents, per-conversation Agent Timelines showing tokens and cost (about $1.70 and seven minutes for one review), and anomaly detection that tied a failure spike to a switch from per-PR to per-commit review. Concrete findings include roughly 80% of merged PRs at Honeycomb having no human-driven changes (prompting a rule that two developers must participate, one of whom may be a machine), Fin's measured wins from enforcing Claude Code configuration (brief mode cut output tokens ~20%, a hard nudge to cheaper models saved 7.4%), and HelloFresh seeing restores 20% faster but over 10% of investigations stalling. Corey Quinn closed by treating AI cost as an observability problem: put cost, price at time of request, and whether the result was accepted on every span, share one request ID across retries, use the OpenTelemetry GenAI semantic conventions, and enforce spend limits outside the agent loop.