Greg Brockman releases codex-complexity-optimizer for performance analysis
OpenAI co-founder Greg Brockman created an open-source Codex skill to detect algorithmic complexity and suggest safe performance optimizations in codebases.
OpenAI co-founder Greg Brockman has released , an open-source skill for Codex designed to analyze codebases and identify areas where performance can be safely improved. The tool scans projects to find algorithmic bottlenecks and provides reports on how to reduce complexity without altering the existing behavior of the software.
The tool identifies specific performance hotspots, including N+1 patterns, heavy rendering sections, and redundant calls. It specifically detects complexity patterns such as O(n²) and O(n*m), as well as repeated passes through data. This allows developers to pinpoint exactly where the codebase is inefficient.
Each optimization suggestion includes an assessment of the complexity before and after the proposed change. To ensure stability, the skill provides a risk level for every recommendation and specifies the necessary tests or benchmarks required to verify the change. By default, the tool operates in a report-only mode that does not modify any files.
The skill is written in Python and distributed under the MIT license. It integrates with the Codex ecosystem, allowing users to trigger analysis and implementation through natural language prompts. Users can request a general report or explicitly ask the tool to implement the lowest-risk optimization and run the associated tests.
Installing and running the complexity optimizer
The tool can be installed globally via npm or executed directly using npx. The global installation places the skill into the ${CODEX_HOME:-~/.codex}/skills/complexity-optimizer directory.
npm install -g codex-complexity-optimizernpx codex-complexity-optimizernpx --yes codex-complexity-optimizerOnce installed, the skill is activated within Codex using the $complexity-optimizer command. This follows the pattern of other Codex CLI enhancements aimed at improving developer workflow and system efficiency.
Sources
Related news
AI ModelsOpenAI launches Ultrafast mode for GPT-6.1 Sol and AstraOpenAI introduces Ultrafast mode for GPT-6.1 Sol and GPT-6 Astra, offering speeds up to 8 times faster than standard Sol for API, Codex, and ChatGPT Work users.·by shared tag
- OpenAIOpenAI Tests New Models by Rewriting Codex in Rust and GPUIAndrew Ambrosino reveals OpenAI's benchmark: each new model must rebuild the desktop Codex as a cross-platform native app.·by shared tag
AI ToolsOpenAI announces performance update for CodexA forthcoming Codex update aims to accelerate the loading of long dialogues while reducing memory consumption and request volume.·by shared tag
- Open SourceCodex-Orchestration plugin enables multi-model workflows in CodexThe open-source Codex-Orchestration plugin allows users to assign specific roles like Planner, Advisor, and Executor to different AI models within a single Codex task.·by shared tag
Comments
Weekly digest
The best of vibe coding, AI agents and open source — once a week, no spam.