@AYi_AInotes: In my early years, I remember a type of person silently admired in the codebase — they could spot N+1 through ten layers of call stack, and point out in a flame graph which function was called three extra times. Today, the Codex Skill that Greg Brockman retweeted makes this no longer a privilege of the few…
Summary
A Chinese developer discusses a new Codex Skill called Complexity Optimizer that automatically detects performance issues like O(n²) in codebases, making advanced optimization skills accessible to more developers.
View Cached Full Text
Cached at: 05/16/26, 11:23 PM
In my early years in the industry, I remember there was a type of person silently admired in the codebase—someone who could spot an N+1 query at a glance in a dozen levels of call stack, or point out in a flame graph which function was called three times too many.
Today, the Codex Skill that Greg Brockman shared makes this no longer a privilege for the few.
Why was performance optimization so scarce in the past? You had to know how to pull a flame graph from Chrome DevTools, run a profile with Node –prof, read a perf report. You needed an almost instinctive sensitivity to asymptotic complexity, able to recognize O(n²) hiding in deeply nested code. And you had to have been burned by hundreds of real production incidents, knowing which patterns explode under millions of records. Stack these three skills together, and it’s work that only a decade of project experience can reliably deliver—a scarce resource on any team, and where the salary premium comes from.
The Complexity Optimizer Greg shared is a Codex Skill built by a community developer. Install it with a single line: npx --yes codex-complexity-optimizer, then in your project root tell Codex “analyze my codebase”, and it finishes in seconds. It specifically hunts for hidden pitfalls like O(n²), O(n*m), N+1, loops within loops, full-table scans on every render—each finding comes with exact file + line number + current complexity + optimized complexity + suggested fix + risk level. The most important design decision: it reports by default without modifying code, tags each issue as low or medium risk, and tells you what tests to add before going live. In other words, the AI doesn’t bypass human decision-making—it prepares all the information needed for a human to decide.
But what really interests me about this Skill isn’t what it can do—it’s what it signifies. For the past two years, the story of AI writing code has focused on making code write faster. Yet writing speed was never the real bottleneck for developers. The real bottleneck has always been seeing what you can’t see—architectural risks, performance pitfalls, security vulnerabilities, dependency traps. These things rely heavily on accumulated personal experience and are concentrated in a few senior developers. The real signal from Complexity Optimizer is that this kind of capability, which required a decade of experience to produce, has for the first time been compressed into a Skill you can invoke with a single command. Once this path is proven, the next wave of Skills won’t be far behind—security audits, dependency risk scanning, architecture decay detection, memory leak inspection—they’ll all come flooding in.
In summary, the moat for senior developers won’t disappear, but its definition is changing. The old moat was the eye for spotting issues. The future moat is the judgment to decide whether an AI-proposed solution can actually land in your business context. Ten years of experience is being compressed into a single npx command. And maybe that’s already starting today.
Greg Brockman (@gdb): codex for improving computational complexity
Similar Articles
@gdb: codex for improving computational complexity
A Codex skill that analyzes codebases to identify performance hotspots such as loops, repeated lookups, and N+1 patterns.
@LinearUncle: Software development at this stage has entered the skill era. Matt Pocock skills, superpowers, oh-my-opencode, gstack, lazycodex, etc.—these geniuses' skills are the libraries worth deeply studying, improving, and then using for yourself. Don't…
Matt Pocock has released a set of agent skills designed for coding agents like Claude Code, Codex, etc., including skills like grill-me and grill-with-docs, aimed at improving alignment and reducing verbose output, emphasizing small size, adaptability, and composability.
@QingQ77: A Codex skill for systematically finding solutions on GitHub. When stuck on an engineering problem, instead of randomly searching, follow a process: search issues, PRs, code, release notes, compare projects, and finally land on a local solution.
A Codex-based skill that helps developers systematically search for solutions to engineering problems on GitHub—including issues, PRs, code, release notes—compare projects, and ultimately land on a local solution.
@goan999999: Codex 5.6 – Install This Skill to Write 90% Less Useless Code. Many people use Codex; once they input a requirement, the AI starts piling on components, installing dependencies, and writing a ton of code that isn't needed at all. Tokens get burned up, but the code becomes harder to maintain. This GitHub project is called pony…
This article introduces a GitHub project named ponytail, which acts as a plugin for Codex, forcing the AI to assess whether code truly needs to be written before coding, thereby reducing 90% of useless code, lowering token consumption, and improving code quality.
@ai_super_niko: 1/5 Use Claude Code to write code, switch to Codex for review, then switch back to fix. Every switch is a murder of your train of thought. You're not writing code, you're running yourself ragged. Until OpenAI released an official plugin for their competitor Claude Code: `code…
OpenAI launched an official plugin codex-plugin-cc for their competitor Claude Code, used to integrate Codex into Claude Code for code review, sparking discussion about workflow switching efficiency.