跳到正文
Greg Brockman· @gdb · X·· 2026-05-16AI 评分45
AI 导读

Codex技能能够分析代码库,识别计算复杂性高的区域,如O(n²)、O(n*m)模式和重复扫描检测。它提供前后复杂性估计和安全优化建议,包括风险级别和所需测试,默认以报告模式运行,支持一键安装。该工具专注于检测循环、重复查找和N+1模式等,旨在在不破坏行为的前提下减少复杂性,且完全开源。

正文 · 原文

codex for improving computational complexity

引用Kappaemme@Kappaemme1926
CODEX SKILL THAT FINDS COMPLEXITY HOTSPOTS IN YOUR CODEBASE! I made a Codex skill that analyzes your codebase and reports where performance can be improved safely. Scan your project while Codex checks loops, repeated lookups, render-heavy code, N+1 patterns, and places where complexity can potentially be reduced without breaking behavior. -> codebase complexity analysis -> O(n²), O(n*m), repeated scan detection -> before/after complexity estimates -> safe optimization suggestions -> risk level + tests needed -> report-only mode by default -> one-command install Install: npx --yes codex-complexity-optimizer 100% open source. Repo in Bio.
在 X 查看被引用的帖子

来源:Greg Brockman · x.com