{"id":4214,"date":"2026-07-13T11:42:34","date_gmt":"2026-07-13T11:42:34","guid":{"rendered":"https:\/\/umaax.com\/codexpluginccjiaochengbaclaudecodejierucodexdeqiaojiechajian\/"},"modified":"2026-07-13T11:42:34","modified_gmt":"2026-07-13T11:42:34","slug":"codexpluginccjiaochengbaclaudecodejierucodexdeqiaojiechajian","status":"publish","type":"post","link":"https:\/\/umaax.com\/en\/codexpluginccjiaochengbaclaudecodejierucodexdeqiaojiechajian\/","title":{"rendered":"codex-plugin-cc \u6559\u7a0b \u2013 \u628a Claude Code \u63a5\u5165 Codex \u7684\u6865\u63a5\u63d2\u4ef601. \u9879\u76ee\u7b80\u4ecb02. \u9879\u76ee\u5b9e\u6d4b03. \u6316\u4e00\u6316"},"content":{"rendered":"<p>\u4eca\u5929\u53d1\u70b9\u9002\u5408\u53cc\u5251\u5408\u74a7\u7684\u4e1c\u897f\u3002<\/p>\n<p>\u5728Claude Code \u548c Codex \u4e4b\u95f4\u4e00\u76f4\u5b58\u5728\u8c01\u66f4\u597d\u7528\u7684\u4e89\u8bae\uff0c\u4f46\u662f\u90fd\u6210\u5e74\u4eba\u4e86\u8fd8\u505a\u4ec0\u4e48\u9009\u62e9\uff0c\u6211\u90fd\u8981\u3002<\/p>\n<p>\u8fd9\u4e2a GitHub \u7684 codex-plugin-cc \u9879\u76ee\u5c31\u662f\u4e3a\u4e86\u89e3\u51b3\u8fd9\u4e2a\u4e89\u8bae\u800c\u751f\u7684\uff0c\u88c5\u4e0a\u53ef\u4ee5\u5728 Claude Code \u5185\u90e8\u8fd0\u884c Codex \u4e86\u3002<\/p>\n<p> <img fetchpriority=\"high\" decoding=\"async\" class=\"wp-image-81600 aligncenter\" src=\"https:\/\/ai-bot.cn\/wp-content\/uploads\/2026\/07\/\u672a\u547d\u540d24-19.png\"  alt=\"\" width=\"683\" height=\"480\" \/> <\/p>\n<p>\u00a0<\/p>\n<h1 style=\"text-align: center;\"><span style=\"font-size: 24pt;\">01. \u9879\u76ee\u7b80\u4ecb<\/span><\/h1>\n<p>\u00a0<\/p>\n<p>codex-plugin-cc \u53ef\u4ee5\u7406\u89e3\u6210\uff1a\u628a OpenAI Codex \u63a5\u8fdb Claude Code \u7684\u6865\u63a5\u63d2\u4ef6\u3002<\/p>\n<blockquote>\n<p>\u9879\u76ee\u5730\u5740\uff1ahttps:\/\/github.com\/openai\/codex-plugin-cc<\/p>\n<\/blockquote>\n<p>\u4f7f\u7528\u8fc7\u7a0b\u4e2d Claude Code \u8fd8\u662f\u4e3b\u7a97\u53e3\uff0cCodex \u4f5c\u4e3a\u7b2c\u4e8c\u4e2a\u7f16\u7801\u4ee3\u7406\u88ab Claude \u8c03\u7528\uff0c\u7528\u6765\u505a\u4ee3\u7801\u5ba1\u67e5\u3001\u6311\u6218\u5f0f\u5ba1\u67e5\u3001\u4efb\u52a1\u59d4\u6258\u3001\u4f1a\u8bdd\u8fc1\u79fb\u3002<\/p>\n<p>\u63d2\u4ef6\u8c03\u7528\u7684\u662f\u4f60\u673a\u5668\u4e0a\u7684\u5168\u5c40 codex \u547d\u4ee4\uff0c\u4e5f\u5c31\u662f\u672c\u673a Codex CLI \u548c Codex app-server\u3002<\/p>\n<p><strong>\u6838\u5fc3\u529f\u80fd<\/strong>\uff1a<\/p>\n<p>\/codex:review\uff1a\u8ba9 Codex \u505a\u4ee3\u7801\u5ba1\u67e5<\/p>\n<p>\u6700\u5e38\u7528\u7684\u5ba1\u67e5\u6d41\u7a0b\u662f\u4e09\u6b65\uff1a<\/p>\n<pre class=\"language-plain\" data-v-efb858b9=\"\"><code class=\"language-plain\">\/codex:review --background  \/codex:status  \/codex:result<\/code><\/pre>\n<p>\u7b2c\u4e00\u6761\u547d\u4ee4\u4f1a\u542f\u52a8 Codex \u4ee3\u7801\u5ba1\u67e5\uff0c\u5e76\u653e\u5230\u540e\u53f0\u8fd0\u884c\u3002<\/p>\n<p>\/codex:status \u7528\u6765\u67e5\u770b\u5ba1\u67e5\u8fdb\u5ea6\u3002<\/p>\n<p>\u4efb\u52a1\u5b8c\u6210\u540e\uff0c\u518d\u7528 \/codex:result \u67e5\u770b\u7ed3\u679c\u3002<\/p>\n<p>\u5982\u679c\u8981\u5ba1\u67e5\u5f53\u524d\u5206\u652f\u76f8\u5bf9 main \u7684\u5168\u90e8\u6539\u52a8\uff0c\u53ef\u4ee5\u8f93\u5165\uff1a<\/p>\n<pre class=\"language-plain\" data-v-efb858b9=\"\"><code class=\"language-plain\">\/codex:review --base main --background<\/code><\/pre>\n<ul>\n<li>\/codex:adversarial-review\uff1a\u8ba9 Codex \u6311\u6218\u65b9\u6848<\/li>\n<\/ul>\n<p>\u9002\u5408\u68c0\u67e5\u65b9\u6848\u662f\u5426\u7ad9\u5f97\u4f4f\u3002Codex \u4f1a\u91cd\u70b9\u68c0\u67e5\u8bbe\u8ba1\u53d6\u820d\u3001\u9690\u85cf\u5047\u8bbe\u3001\u8fb9\u754c\u6761\u4ef6\u548c\u5931\u8d25\u6a21\u5f0f\u3002<\/p>\n<ul>\n<li>\/codex:rescue\uff1a\u628a\u4efb\u52a1\u4ea4\u7ed9 Codex \u8c03\u67e5\u6216\u4fee\u590d<\/li>\n<\/ul>\n<p>\u628a\u4e00\u4e2a\u5177\u4f53\u95ee\u9898\u4ea4\u7ed9 Codex \u63a5\u624b\u3002\u9002\u5408\u5904\u7406\u6392\u67e5\u7c7b\u4efb\u52a1\uff1a\u6784\u5efa\u5931\u8d25\u3001\u6d4b\u8bd5\u5931\u8d25\u3001\u590d\u6742 bug\u3001\u65e7\u4efb\u52a1\u7ee7\u7eed\u63a8\u8fdb\u3002<\/p>\n<ul>\n<li>\u00a0\/codex:transfer\uff1a\u628a Claude \u4f1a\u8bdd\u8f6c\u5230 Codex \u7ee7\u7eed<\/li>\n<\/ul>\n<p>\u9002\u5408\u5df2\u7ecf\u5728 Claude Code \u91cc\u804a\u4e86\u5f88\u591a\u4e0a\u4e0b\u6587\uff0c\u540e\u9762\u60f3\u5207\u5230 Codex App \u6216 Codex CLI \u7ee7\u7eed\u3002<\/p>\n<p> <img decoding=\"async\" class=\"aligncenter wp-image-81615\" src=\"https:\/\/ai-bot.cn\/wp-content\/uploads\/2026\/07\/\u672a\u547d\u540d24-20.png\"  alt=\"\" width=\"678\" height=\"381\" \/> <\/p>\n<h1><\/h1>\n<h1 style=\"text-align: center;\"><span style=\"font-size: 24pt;\">02. \u9879\u76ee\u5b9e\u6d4b<\/span><\/h1>\n<p>\u00a0<\/p>\n<p>\u5b89\u88c5\u8d77\u6765\u5f88\u7b80\u5355\uff0c\u5927\u5bb6\u5148\u5728 Claude Code \u8f93\u5165\u6846\u8f93\u5165\uff1a<\/p>\n<pre class=\"language-plain\" data-v-efb858b9=\"\"><code class=\"language-plain\">\/plugin marketplace add<\/code><\/pre>\n<p>\u51fa\u73b0 Add Marketplace \u5f39\u7a97\u540e\uff0c\u7136\u540e\u586b\uff1a<\/p>\n<pre class=\"language-plain\" data-v-efb858b9=\"\"><code class=\"language-plain\">openai\/codex-plugin-cc<\/code><\/pre>\n<p>\u6dfb\u52a0\u6210\u529f\u540e\uff0c\u518d\u56de\u5230 Claude Code \u8f93\u5165\u6846\uff0c\u8f93\u5165\uff1a<\/p>\n<pre class=\"language-plain\" data-v-efb858b9=\"\"><code class=\"language-plain\">\/reload-plugins<\/code><\/pre>\n<p>\u6700\u540e\u8f93\u5165\uff1a<\/p>\n<pre class=\"language-plain\" data-v-efb858b9=\"\"><code class=\"language-plain\">\/codex:setup<\/code><\/pre>\n<p> <img decoding=\"async\" class=\"aligncenter wp-image-81616\" src=\"https:\/\/ai-bot.cn\/wp-content\/uploads\/2026\/07\/\u672a\u547d\u540d24-21.png\"  alt=\"\" width=\"678\" height=\"486\" \/> <\/p>\n<h3><strong>case 1 \u4ee3\u7801\u5ba1\u67e5<\/strong><\/h3>\n<p>\u5148\u8ba9 Claude Code \u505a\u4e00\u4e2a\u65b0\u529f\u80fd\uff1a<\/p>\n<blockquote>\n<p>\u63d0\u793a\u8bcd\uff1a\u7ed9\u5f53\u524d\u767b\u5f55\u9875\u589e\u52a0\u529f\u80fd\uff1a\u8fde\u7eed\u8ba4\u8bc1\u5931\u8d25 3 \u6b21\u540e\u7981\u7528\u767b\u5f55\u6309\u94ae 30 \u79d2\uff0c\u5e76\u663e\u793a\u5269\u4f59\u79d2\u6570\u3002\u53ea\u6709\u7528\u6237\u540d\u6216\u5bc6\u7801\u9519\u8bef\u624d\u8ba1\u5165\u5931\u8d25\u6b21\u6570\uff0c\u7f51\u7edc\u9519\u8bef\u548c\u670d\u52a1\u5668\u9519\u8bef\u4e0d\u80fd\u8ba1\u5165\u3002\u8981\u6c42\u8865\u6d4b\u8bd5\u3002\u53ea\u4fee\u6539\u5fc5\u8981\u6587\u4ef6\uff0c\u5148\u4e0d\u8981\u63d0\u4ea4\u3002<\/p>\n<\/blockquote>\n<p>\u7136\u540e\u6211\u4eec\u8fd0\u884c\uff1a<\/p>\n<pre class=\"language-plain\" data-v-efb858b9=\"\"><code class=\"language-plain\">\/codex:review --background<\/code><\/pre>\n<p> <img loading=\"lazy\" decoding=\"async\" class=\"aligncenter wp-image-81617\" src=\"https:\/\/ai-bot.cn\/wp-content\/uploads\/2026\/07\/\u672a\u547d\u540d24-22.png\"  alt=\"\" width=\"678\" height=\"127\" \/> <\/p>\n<p>Codex\u5ba1\u67e5\u51fa\u4e24\u6761\u95ee\u9898\uff1a<\/p>\n<p>1.claude\/settings.local.json \u6743\u9650\u95ee\u9898<\/p>\n<p>.claude\/settings.local.json:11Bash(node *) \u6388\u4e88\u4e86\u4efb\u610f Node \u811a\u672c\u7684\u65e0\u5ba1\u6279\u6267\u884c\u6743\u9650<\/p>\n<p>2.\u767b\u5f55\u9501\u5b9a\u5012\u8ba1\u65f6\u95ee\u9898<\/p>\n<p>src\/components\/LoginForm.tsx:14\u7b2c\u4e09\u6b21\u8ba4\u8bc1\u5931\u8d25\u524d\u9875\u9762\u5df2\u6253\u5f00\u4e00\u6bb5\u65f6\u95f4\uff0cnow \u4ecd\u4fdd\u6301\u6302\u8f7d\u65f6\u7684\u503c\uff0c\u7b2c\u4e00\u6b21\u9501\u5b9a\u6e32\u67d3\u53ef\u80fd\u663e\u793a\u865a\u9ad8\u5012\u8ba1\u65f6\u3002<\/p>\n<p>\u6211\u4eec\u53ef\u4ee5\u8ba9 Claude Code \u7ee7\u7eed\u6539\uff1a<\/p>\n<blockquote>\n<p>\u63d0\u793a\u8bcd\uff1a<\/p>\n<p>\u6839\u636e Codex review \u4fee\u590d\u4e0b\u9762\u7684\u95ee\u9898\u3002\u53ea\u6539\u5fc5\u8981\u6587\u4ef6\uff0c\u8865\u5145\u6216\u8c03\u6574\u6d4b\u8bd5\uff0c\u4fee\u5b8c\u540e\u8fd0\u884c npm test \u548c npm run build\uff0c\u4e0d\u8981\u63d0\u4ea4\u3002<\/p>\n<p>\u00a0<\/p>\n<p>\u4e0d\u8981\u628a .claude\/settings.local.json \u4f5c\u4e3a\u672c\u6b21\u529f\u80fd\u6539\u52a8\u63d0\u4ea4\u3002\u5982\u679c\u53ea\u662f\u672c\u5730\u6743\u9650\u8bbe\u7f6e\uff0c\u8bf7\u6062\u590d\u8be5\u6587\u4ef6\u5230\u672c\u6b21\u4efb\u52a1\u524d\u72b6\u6001\u3002<\/p>\n<p>\u00a0<\/p>\n<p>\u4fee\u590d src\/components\/LoginForm.tsx \u7684\u9501\u5b9a\u5012\u8ba1\u65f6\u95ee\u9898\uff1a\u89e6\u53d1\u7b2c\u4e09\u6b21\u8ba4\u8bc1\u5931\u8d25\u5e76\u8bbe\u7f6e lockoutUntil \u65f6\uff0c\u8981\u540c\u6b65\u5237\u65b0 now\uff0c\u786e\u4fdd\u9501\u5b9a\u5f00\u59cb\u540e\u7684\u9996\u6b21\u6e32\u67d3\u5012\u8ba1\u65f6\u4ece 30 \u79d2\u5f00\u59cb\uff0c\u800c\u4e0d\u662f\u4f7f\u7528\u9875\u9762\u6302\u8f7d\u65f6\u7684\u65e7 now \u503c\u3002<\/p>\n<\/blockquote>\n<p> <img loading=\"lazy\" decoding=\"async\" class=\"aligncenter wp-image-81618\" src=\"https:\/\/ai-bot.cn\/wp-content\/uploads\/2026\/07\/\u672a\u547d\u540d24-23.png\"  alt=\"\" width=\"678\" height=\"755\" \/> <\/p>\n<p>\u7136\u540e\u518d review \u4e00\u6b21\uff1a<\/p>\n<p> <img loading=\"lazy\" decoding=\"async\" class=\"aligncenter wp-image-81619\" src=\"https:\/\/ai-bot.cn\/wp-content\/uploads\/2026\/07\/\u672a\u547d\u540d24-24.png\"  alt=\"\" width=\"678\" height=\"111\" \/> <\/p>\n<p>\u6539\u5b8c\u53c8\u5ba1\u67e5\u51fa\u4ee3\u7801\u53ef\u80fd\u4f1a\u628a\u6700\u540e\u4e00\u6b21\u8ba4\u8bc1\u5931\u8d25\u7b97\u6210\u7b2c 3 \u6b21\u8fde\u7eed\u8ba4\u8bc1\u5931\u8d25\u3002<\/p>\n<p>\u7ee7\u7eed\u518d\u8ba9 Claude Code \u6539\uff1a<\/p>\n<blockquote>\n<p>\u63d0\u793a\u8bcd\uff1a<\/p>\n<p>\u6839\u636e Codex review \u4fee\u590d\u4e0b\u9762\u7684\u95ee\u9898\u3002\u53ea\u6539\u5fc5\u8981\u6587\u4ef6\uff0c\u8865\u5145\u6216\u8c03\u6574\u6d4b\u8bd5\uff0c\u4fee\u5b8c\u540e\u8fd0\u884c npm test \u548c npm run build\uff0c\u4e0d\u8981\u63d0\u4ea4\u3002<\/p>\n<p>[P2] \u975e\u8ba4\u8bc1\u9519\u8bef\u540e\u5e94\u91cd\u7f6e\u8ba1\u6570\u5668 \u2014 src\/components\/LoginForm.tsx:55<\/p>\n<p>\u5f53\u524d network \u6216 server \u9519\u8bef\u5206\u652f\u4e0d\u4f1a\u91cd\u7f6e failCount\u3002\u5e8f\u5217 auth \u2192 auth \u2192 network \u2192 auth \u4f1a\u9519\u8bef\u89e6\u53d1\u9501\u5b9a\uff0c\u5c3d\u7ba1\u8fd9\u56db\u6b21\u8ba4\u8bc1\u5931\u8d25\u5e76\u975e\u8fde\u7eed\u3002\u5982\u679c\u9700\u6c42\u662f\u201c\u8fde\u7eed\u8ba4\u8bc1\u5931\u8d25 3 \u6b21\u201d\uff0c\u5219\u5e94\u5728\u975e\u8ba4\u8bc1\u9519\u8bef\u65f6\u91cd\u7f6e\u8ba1\u6570\u5668\uff0c\u6253\u65ad\u8fde\u7eed\u94fe\u6761\u3002<\/p>\n<\/blockquote>\n<p> <img loading=\"lazy\" decoding=\"async\" class=\"aligncenter wp-image-81620\" src=\"https:\/\/ai-bot.cn\/wp-content\/uploads\/2026\/07\/\u672a\u547d\u540d24-25.png\"  alt=\"\" width=\"678\" height=\"695\" \/> <\/p>\n<p>\u518d review \u4e00\u6b21\uff1a<\/p>\n<p> <img loading=\"lazy\" decoding=\"async\" class=\"aligncenter wp-image-81695\" src=\"https:\/\/ai-bot.cn\/wp-content\/uploads\/2026\/07\/\u672a\u547d\u540d24-35.png\"  alt=\"\" width=\"678\" height=\"108\" \/> <\/p>\n<p>\u597d\u7684\uff0c\u4ee3\u7801\u5ba1\u67e5\u8fc7\u5173\uff01<\/p>\n<h3><strong>case 2 \u6311\u6218\u65b9\u6848<\/strong><\/h3>\n<p>\u6211\u4eec\u5148\u8ba9Claude Code\u505a\u4e2a\u7ed9\u767b\u5f55\u9875\u589e\u52a0\u8bb0\u4f4f\u7528\u6237\u540d\u529f\u80fd\uff1a<\/p>\n<blockquote>\n<p>\u63d0\u793a\u8bcd\uff1a\u7ed9\u5f53\u524d\u767b\u5f55\u9875\u589e\u52a0\u201c\u8bb0\u4f4f\u7528\u6237\u540d\u201d\u529f\u80fd\uff1a\u7528\u6237\u52fe\u9009\u540e\uff0c\u4e0b\u6b21\u6253\u5f00\u9875\u9762\u81ea\u52a8\u586b\u5145\u4e0a\u6b21\u6210\u529f\u767b\u5f55\u7684\u7528\u6237\u540d\uff1b\u53d6\u6d88\u52fe\u9009\u540e\u6e05\u9664\u5df2\u4fdd\u5b58\u7528\u6237\u540d\u3002\u8981\u6c42\u8003\u8651 localStorage \u4e0d\u53ef\u7528\u7684\u60c5\u51b5\uff0c\u8865\u6d4b\u8bd5\u3002\u53ea\u4fee\u6539\u5fc5\u8981\u6587\u4ef6\uff0c\u5148\u4e0d\u8981\u63d0\u4ea4\u3002<\/p>\n<\/blockquote>\n<p> <img loading=\"lazy\" decoding=\"async\" class=\"aligncenter wp-image-81694\" src=\"https:\/\/ai-bot.cn\/wp-content\/uploads\/2026\/07\/\u5fae\u4fe1\u56fe\u7247_20260710173828_33_1124.png\"  alt=\"\" width=\"678\" height=\"3227\" \/> <\/p>\n<p>\u7136\u540e\u8ba9 Codex \u6311\u6218\u65b9\u6848\uff0c\u770b\u65b9\u6848\u662f\u5426\u9760\u8c31\uff1a<\/p>\n<pre class=\"language-plain\" data-v-efb858b9=\"\"><code class=\"language-plain\">\/codex:adversarial-review<\/code><\/pre>\n<p> <img loading=\"lazy\" decoding=\"async\" class=\"aligncenter wp-image-81621\" src=\"https:\/\/ai-bot.cn\/wp-content\/uploads\/2026\/07\/\u672a\u547d\u540d24-26.png\"  alt=\"\" width=\"678\" height=\"196\" \/> <\/p>\n<p>Codex \u5bf9\u4e8eClaude Code \u7684\u65b9\u6848\u6311\u6218\u6027\u5ba1\u67e5\u51fa\u4e86\u8fd9\u4e9b\u95ee\u9898\uff1a<\/p>\n<ul>\n<li>safeRemoveStorage \u541e\u6389\u5220\u9664\u5931\u8d25<\/li>\n<li>\u7528\u6237\u540d\u957f\u671f\u4fdd\u5b58\u5728 localStorage<\/li>\n<li>claude\/settings.local.json \u6df7\u8fdb\u529f\u80fd\u6539\u52a8<\/li>\n<li>\u521d\u59cb\u5316\u65f6\u8bfb\u53d6 localStorage \u4e24\u6b21<\/li>\n<li>safeSetStorage \u7684\u4fdd\u5b58\u5931\u8d25\u88ab\u5ffd\u7565<\/li>\n<li>\u7eaf\u7a7a\u683c\u7528\u6237\u540d\u4f1a\u901a\u8fc7\u6821\u9a8c<\/li>\n<li>saved_username \u8fd9\u4e2a key \u592a\u901a\u7528<\/li>\n<li>\u6ca1\u6d4b removeItem \u629b\u5f02\u5e38\u65f6\u7684\u884c\u4e3a<\/li>\n<li>\u6ca1\u6d4b setItem \u4fdd\u5b58\u5931\u8d25\u65f6\u662f\u5426\u7ed9\u7528\u6237\u53cd\u9988<\/li>\n<li>\u6ca1\u6d4b\u201c\u52fe\u9009\u8bb0\u4f4f\u7528\u6237\u540d + \u767b\u5f55\u5931\u8d25\u201d\u65f6\u4e0d\u5e94\u4fdd\u5b58\u7528\u6237\u540d<\/li>\n<li>\u6ca1\u6d4b\u5b58\u50a8\u503c\u662f\u7eaf\u7a7a\u683c\u65f6\u4e0d\u5e94\u521d\u59cb\u5316\u4e3a\u5df2\u8bb0\u4f4f\u7528\u6237\u540d<\/li>\n<li>vi.stubGlobal(\u2018localStorage\u2019, \u2026) \u6ca1\u6709\u5728 afterEach \u6e05\u7406\uff0c\u53ef\u80fd\u6c61\u67d3\u5176\u4ed6\u6d4b\u8bd5<\/li>\n<\/ul>\n<p>\u6211\u4eec\u53ef\u4ee5\u5c31\u8fd9\u4e9b\u95ee\u9898\u7ee7\u7eed\u8ba9 Claude Code \u6539\u8fdb\uff1a<\/p>\n<blockquote>\n<p>\u63d0\u793a\u8bcd\uff1a<\/p>\n<p>\u6839\u636e Codex \u6311\u6218\u5f0f\u5ba1\u67e5\u7ed3\u679c\u4fee\u590d\u660e\u786e\u95ee\u9898\u3002\u53ea\u6539\u5fc5\u8981\u6587\u4ef6\uff0c\u8865\u5145\u6216\u8c03\u6574\u6d4b\u8bd5\uff0c\u4fee\u5b8c\u540e\u8fd0\u884c npm test \u548c npm run build\uff0c\u4e0d\u8981\u63d0\u4ea4\u3002<\/p>\n<p>\u9700\u8981\u4fee\u590d\uff1a<\/p>\n<ol start=\"7\">\n<li>\u4e0d\u8981\u628a .claude\/settings.local.json \u6df7\u5165\u672c\u6b21 feature diff\u3002\u5982\u679c\u53ea\u662f\u672c\u5730\u6743\u9650\u53d8\u5316\uff0c\u8bf7\u6062\u590d\u8be5\u6587\u4ef6\u5230\u672c\u6b21\u4efb\u52a1\u524d\u72b6\u6001\u3002<\/li>\n<li>\u4fee\u590d\u53d6\u6d88\u201c\u8bb0\u4f4f\u7528\u6237\u540d\u201d\u65f6\u7684\u9690\u79c1\u95ee\u9898\uff1asafeRemoveStorage \u4e0d\u8981\u541e\u6389 removeItem \u5931\u8d25\u3002removeItem \u5931\u8d25\u65f6\uff0c\u754c\u9762\u4e0d\u80fd\u5047\u88c5\u5df2\u7ecf\u6e05\u9664\u6210\u529f\uff1b\u9700\u8981\u5411\u7528\u6237\u5c55\u793a\u660e\u786e\u9519\u8bef\u72b6\u6001\uff0c\u6216\u4fdd\u6301\u8bb0\u4f4f\u7528\u6237\u540d\u52fe\u9009\u72b6\u6001\u3002<\/li>\n<li>\u4fee\u590d\u4fdd\u5b58\u5931\u8d25\u7684\u95ee\u9898\uff1asafeSetStorage \u4e0d\u8981\u88ab\u5ffd\u7565\u3002\u7528\u6237\u52fe\u9009\u201c\u8bb0\u4f4f\u7528\u6237\u540d\u201d\u5e76\u6210\u529f\u767b\u5f55\uff0c\u4f46 localStorage.setItem \u5931\u8d25\u65f6\uff0c\u8981\u6709\u7528\u6237\u53ef\u89c1\u53cd\u9988\u3002<\/li>\n<li>\u521d\u59cb\u5316\u8bfb\u53d6 localStorage \u65f6\u53ea\u8bfb\u4e00\u6b21\uff0c\u8ba9 username \u521d\u59cb\u503c\u548c rememberUsername \u72b6\u6001\u90fd\u4ece\u540c\u4e00\u4e2a\u8bfb\u53d6\u7ed3\u679c\u6d3e\u751f\uff0c\u907f\u514d\u4e0d\u4e00\u81f4\u3002<\/li>\n<li>\u5b58\u50a8\u91cc\u7684\u7528\u6237\u540d\u9700\u8981 trim \u540e\u6821\u9a8c\u3002\u7eaf\u7a7a\u683c\u4e0d\u5e94\u8be5\u521d\u59cb\u5316\u4e3a\u5df2\u8bb0\u4f4f\u7528\u6237\u540d\u3002<\/li>\n<li>\u628a localStorage key \u4ece saved_username \u6539\u6210\u5e94\u7528\u5185\u547d\u540d\u7a7a\u95f4\uff0c\u4f8b\u5982 codex_login_lab.saved_username\u3002<\/li>\n<li>\u7ed9\u201c\u8bb0\u4f4f\u7528\u6237\u540d\u201d\u589e\u52a0\u8fc7\u671f\u65f6\u95f4\uff0c\u4f8b\u5982 7 \u5929 TTL\u3002\u4fdd\u5b58\u65f6\u5199\u5165 { value, expiresAt }\uff0c\u8bfb\u53d6\u65f6\u8fc7\u671f\u5c31\u6e05\u9664\u5e76\u89c6\u4e3a\u65e0\u4fdd\u5b58\u503c\u3002<\/li>\n<li>\u8865\u6d4b\u8bd5\u8986\u76d6\uff1a<\/li>\n<\/ol>\n<p>\u2013 removeItem \u629b\u5f02\u5e38\u65f6\u7684\u884c\u4e3a<\/p>\n<p>\u2013 setItem \u5931\u8d25\u65f6\u7684\u7528\u6237\u53ef\u89c1\u53cd\u9988<\/p>\n<p>\u2013 \u52fe\u9009\u8bb0\u4f4f\u7528\u6237\u540d\u4f46\u767b\u5f55\u5931\u8d25\u65f6\uff0c\u4e0d\u5e94\u4fdd\u5b58\u5c1d\u8bd5\u7684\u7528\u6237\u540d<\/p>\n<p>\u2013 localStorage \u5b58\u50a8\u7eaf\u7a7a\u683c\u65f6\uff0c\u4e0d\u5e94\u521d\u59cb\u5316\u4e3a\u5df2\u8bb0\u4f4f\u7528\u6237\u540d<\/p>\n<p>\u2013 localStorage mock\/stub \u9700\u8981 afterEach \u6e05\u7406\uff0c\u907f\u514d\u6c61\u67d3\u5176\u4ed6\u6d4b\u8bd5<\/p>\n<\/blockquote>\n<p> <img loading=\"lazy\" decoding=\"async\" class=\"aligncenter wp-image-81622\" src=\"https:\/\/ai-bot.cn\/wp-content\/uploads\/2026\/07\/\u672a\u547d\u540d24-27.png\"  alt=\"\" width=\"678\" height=\"444\" \/> <\/p>\n<p>\u5b8c\u7f8e\u89e3\u51b3\uff0c12\u4e2a\u95ee\u9898\u5168\u4fee\u590d\u4e86\u3002<\/p>\n<h3><strong>case 3 \u95ee\u9898\u4ea4\u4ed8<\/strong><\/h3>\n<p>\u5f53 Claude Code \u5199\u7684\u4ee3\u7801\u6709\u95ee\u9898\u65f6\u4e5f\u53ef\u4ee5\u4ea4\u7ed9 Codex\u6765\u4fee\u590d\u3002<\/p>\n<p>\u6211\u4eec\u8ba9 Claude Code \u5236\u4f5c\u4e00\u4e2a\u5c0f bug \u6765\u4f53\u73b0\u8fd9\u4e2a\u529f\u80fd\uff1a<\/p>\n<blockquote>\n<p>\u63d0\u793a\u8bcd\uff1a\u4e3a\u4e86\u6d4b\u8bd5 Codex rescue \u6d41\u7a0b\uff0c\u8bf7\u5728\u5f53\u524d\u767b\u5f55\u9875\u91cc\u6545\u610f\u5236\u9020\u4e00\u4e2a\u5c0f bug\uff1a\u8ba9\u767b\u5f55\u6210\u529f\u540e\u4e0d\u518d\u6e05\u7a7a\u5bc6\u7801\u8f93\u5165\u6846\u3002\u53ea\u6539\u4e1a\u52a1\u4ee3\u7801\uff0c\u4e0d\u6539\u6d4b\u8bd5\uff0c\u4e0d\u8981\u63d0\u4ea4\u3002<\/p>\n<\/blockquote>\n<p> <img loading=\"lazy\" decoding=\"async\" class=\"aligncenter wp-image-81623\" src=\"https:\/\/ai-bot.cn\/wp-content\/uploads\/2026\/07\/\u672a\u547d\u540d24-28.png\"  alt=\"\" width=\"678\" height=\"243\" \/> <\/p>\n<p>bug\u5df2\u7ecf\u5236\u9020\u597d\u4e86\uff0c\u6211\u4eec\u8865\u4e2a\u6d4b\u8bd5\u7ed9\u4ed6\u6d4b\u51fa\u6765\uff1a<\/p>\n<pre class=\"language-plain\" data-v-efb858b9=\"\"><code class=\"language-plain\">\u4e3a\"\u767b\u5f55\u6210\u529f\u540e\u6e05\u7a7a\u5bc6\u7801\u8f93\u5165\u6846\"\u8865\u4e00\u4e2a\u6d4b\u8bd5\u3002\u53ea\u52a0\u6d4b\u8bd5\uff0c\u4e0d\u6539\u4e1a\u52a1\u4ee3\u7801\uff0c\u4e0d\u8981\u63d0\u4ea4\u3002<\/code><\/pre>\n<p> <img loading=\"lazy\" decoding=\"async\" class=\"aligncenter wp-image-81624\" src=\"https:\/\/ai-bot.cn\/wp-content\/uploads\/2026\/07\/\u672a\u547d\u540d24-29.png\"  alt=\"\" width=\"678\" height=\"498\" \/> <\/p>\n<p>\u63a5\u4e0b\u6765\u8ba9 Codex \u6765\u4fee\u590d\uff1a<\/p>\n<div class=\"segment-code\" data-v-8d822fd1=\"\" data-v-3b9ae98b=\"\">\n<div class=\"syntax-highlighter light segment-code-content\" data-v-efb858b9=\"\" data-v-8d822fd1=\"\">\n<pre class=\"language-plain\" data-v-efb858b9=\"\"><code class=\"language-plain\">1  \/codex:rescue --background fix the failing test with the smallest safe patch<\/code><\/pre>\n<\/p><\/div>\n<\/p><\/div>\n<p> <img loading=\"lazy\" decoding=\"async\" class=\"aligncenter wp-image-81625\" src=\"https:\/\/ai-bot.cn\/wp-content\/uploads\/2026\/07\/\u672a\u547d\u540d24-30.png\"  alt=\"\" width=\"678\" height=\"335\" \/> <\/p>\n<p>Codex \u505a\u4e86\u6b63\u786e\u7684\u6700\u5c0f\u4fee\u590d\uff0c\u5f88\u4e0d\u9519\uff1a<\/p>\n<pre class=\"language-javascript\" data-v-efb858b9=\"\"><code class=\"language-javascript\"><span class=\"token keyword\">const<\/span> result <span class=\"token operator\">=<\/span> <span class=\"token keyword control-flow\">await<\/span> <span class=\"token function\">login<\/span><span class=\"token punctuation\">(<\/span>username<span class=\"token punctuation\">.<\/span><span class=\"token method function property-access\">trim<\/span><span class=\"token punctuation\">(<\/span><span class=\"token punctuation\">)<\/span><span class=\"token punctuation\">,<\/span> password<span class=\"token punctuation\">)<\/span><span class=\"token punctuation\">;<\/span>  <span class=\"token function\">setPassword<\/span><span class=\"token punctuation\">(<\/span><span class=\"token string\">''<\/span><span class=\"token punctuation\">)<\/span><span class=\"token punctuation\">;<\/span>  <span class=\"token function\">setSuccessMessage<\/span><span class=\"token punctuation\">(<\/span><span class=\"token template-string\"><span class=\"token template-punctuation string\">`<\/span><span class=\"token string\">\u6b22\u8fce\u56de\u6765\uff0c<\/span><span class=\"token interpolation\"><span class=\"token interpolation-punctuation punctuation\">${<\/span>result<span class=\"token punctuation\">.<\/span><span class=\"token property-access\">displayName<\/span><span class=\"token interpolation-punctuation punctuation\">}<\/span><\/span><span class=\"token template-punctuation string\">`<\/span><\/span><span class=\"token punctuation\">)<\/span><span class=\"token punctuation\">;<\/span><\/code><\/pre>\n<h3><strong>case 4 \u4f1a\u8bdd\u8f6c\u79fb<\/strong><\/h3>\n<p>\u6211\u4eec\u521a\u624d\u5728 Claude Code \u91cc\u505a\u4e86\u5f88\u591a\u4e8b\uff0c\u6b63\u597d\u9002\u5408 transfer\uff0c\u5728 Claude Code \u91cc\u8f93\u5165\uff1a<\/p>\n<pre class=\"language-plain\" data-v-efb858b9=\"\"><code class=\"language-plain\">\/codex:transfer<\/code><\/pre>\n<p> <img loading=\"lazy\" decoding=\"async\" class=\"aligncenter wp-image-81626\" src=\"https:\/\/ai-bot.cn\/wp-content\/uploads\/2026\/07\/\u672a\u547d\u540d24-31.png\"  alt=\"\" width=\"678\" height=\"245\" \/> <\/p>\n<p>\u4f1a\u7ed9\u6211\u4eec\u4e00\u4e2a\u4f1a\u8bdd ID \uff0c\u6211\u4eec\u53ef\u4ee5\u76f4\u63a5\u5728 Codex \u91cc\u7ee7\u7eed\u8fd9\u4e2a\u5bf9\u8bdd\uff0c\u5728PowerShell \u91cc\u8f93\u5165\uff1a<\/p>\n<pre class=\"language-plain\" data-v-efb858b9=\"\"><code class=\"language-plain\">codex resume 019f402e-3ff0-7d42-975d-c88c8bf1e45f<\/code><\/pre>\n<p> <img loading=\"lazy\" decoding=\"async\" class=\"aligncenter wp-image-81642\" src=\"https:\/\/ai-bot.cn\/wp-content\/uploads\/2026\/07\/\u5fae\u4fe1\u56fe\u7247_20260710173838_34_1124.png\"  alt=\"\" width=\"678\" height=\"4266\" \/> <\/p>\n<p>\u53ef\u4ee5\u770b\u5230\uff0c\u6211\u4eec\u4e0e Claude Code \u7684\u5bf9\u8bdd\u5168\u90fd\u4f20\u8fc7\u6765\u4e86\uff0c\u63a5\u4e0b\u6765\u5c31\u53ef\u4ee5\u7528 Codex \u6765\u7ee7\u7eed\u8fd9\u4e2a\u9879\u76ee\u4e86\u3002<\/p>\n<h1><\/h1>\n<h1 style=\"text-align: center;\"><span style=\"font-size: 24pt;\">03. \u6316\u4e00\u6316<\/span><\/h1>\n<p>\u00a0<\/p>\n<p>AI \u7f16\u7a0b\u4e0d\u4f1a\u6536\u655b\u6210\u4e00\u4e2a all-in-one \u5de5\u5177\u3002<\/p>\n<p>\u56e0\u4e3a\u771f\u5b9e\u5f00\u53d1\u66f4\u50cf\u4e00\u6761\u4e1a\u52a1\u6d41\uff1a\u5ba1\u67e5\u3001\u4fee\u590d\u3001\u4e0a\u7ebf\uff0c\u6bcf\u4e00\u6b65\u90fd\u53ef\u80fd\u9002\u5408\u4e0d\u540c AI\u3002<\/p>\n<p>GitLab 2026 AI Accountability Report\uff1a91% \u7ec4\u7ec7\u5df2\u7ecf\u540c\u65f6\u4f7f\u7528 2 \u4e2a\u4ee5\u4e0a AI \u7f16\u7801\u5de5\u5177\uff0c54% \u4f7f\u7528 3 \u4e2a\u4ee5\u4e0a\u3002<\/p>\n<p>\u8bf4\u660e\u4f7f\u7528\u75db\u70b9\u5df2\u7ecf\u4ece\u6709\u6ca1\u6709 AI \u5de5\u5177\u7528\uff0c\u53d8\u6210\u80fd\u4e0d\u80fd\u4e32\u8d77\u6765\u7528\u3002<\/p>\n<p> <img loading=\"lazy\" decoding=\"async\" class=\"aligncenter wp-image-81627\" src=\"https:\/\/ai-bot.cn\/wp-content\/uploads\/2026\/07\/\u672a\u547d\u540d24-32.png\"  alt=\"\" width=\"678\" height=\"346\" \/> <\/p>\n<p>Claude Code \u548c Codex \u4e32\u8d77\u6765\u7528\uff0c\u4e0d\u662f\u4e3a\u4e86\u70ab\u6280\uff0c\u800c\u662f\u4e3a\u4e86 AI \u5199\u5b8c\uff0c\u518d\u7531\u53e6\u4e00\u4e2a AI \u5ba1\u4e00\u904d\u3002<\/p>\n<p><strong>codex-plugin-cc<\/strong> \u8ba9Claude Code \u8d1f\u8d23\u4e3b\u5bf9\u8bdd\u548c\u5b9e\u73b0\uff0cCodex \u8d1f\u8d23\u7b2c\u4e8c\u89c6\u89d2\u5ba1\u67e5\u3001\u65b9\u6848\u6311\u6218\u3001\u95ee\u9898\u63a5\u624b\u548c\u4f1a\u8bdd\u5ef6\u7eed\u3002\u8fd9\u4e2a\u7ec4\u5408\u80fd\u51cf\u5c11\u5f88\u591a\u771f\u5b9e\u5f00\u53d1\u91cc\u7684\u9690\u6027\u6210\u672c\uff1a\u53cd\u590d\u5207\u5de5\u5177\u3001\u91cd\u590d\u4ea4\u4ee3\u4e0a\u4e0b\u6587\u3001\u4eba\u5de5\u8865\u5ba1\u67e5\u3001\u6d4b\u8bd5\u5931\u8d25\u540e\u91cd\u65b0\u5b9a\u4f4d\u95ee\u9898\u3002<\/p>\n<p>\u5bf9\u6211\u4eec\u6765\u8bf4\uff0c<strong>codex-plugin-cc<\/strong> \u53ef\u4ee5\u5f53\u6210\u4e00\u4e2a\u968f\u53eb\u968f\u5230\u7684\u4ee3\u7801 reviewer\u3002\u5199\u5b8c\u529f\u80fd\u540e\uff0c\u8ba9 Codex \u770b\u4e00\u904d\u8fb9\u754c\u6761\u4ef6\u3001\u6d4b\u8bd5\u7f3a\u53e3\u548c\u9690\u85cf\u98ce\u9669\uff0c\u6bd4\u81ea\u5df1\u76ef\u7740 diff \u786c\u770b\u66f4\u5bb9\u6613\u53d1\u73b0\u95ee\u9898\u3002<\/p>\n<p><strong>codex-plugin-cc<\/strong> \u4e0d\u662f\u8ba9\u5f00\u53d1\u8005\u518d\u591a\u88c5\u4e00\u4e2a\u5de5\u5177\uff0c\u800c\u662f\u628a\u4e24\u4e2a AI \u7f16\u7a0b\u52a9\u624b\u63a5\u8fdb\u540c\u4e00\u4e2a\u5de5\u4f5c\u73b0\u573a\u3002<\/p>\n<p>\u672a\u6765 AI \u5199\u4ee3\u7801\u4f1a\u8d8a\u6765\u8d8a\u5e38\u89c1\uff0c\u771f\u6b63\u62c9\u5f00\u5dee\u8ddd\u7684\uff0c\u4f1a\u662f\u600e\u4e48\u7ec4\u7ec7\u8fd9\u4e9b AI \u52a9\u624b\uff0c\u8ba9\u4ee3\u7801\u66f4\u7a33\u3001\u5ba1\u67e5\u66f4\u65e9\u3001\u4ea4\u4ed8\u66f4\u5feb\u3002<\/p>\n<p>\u539f\u6587\u94fe\u63a5\uff1a<span class=\"js_title_inner\">GitHub \u72c2\u63fd 27K Stars\uff0c\u628aClaude Code \u548c Codex \u4e32\u8d77\u6765\u7528<\/span><\/p>\n","protected":false},"excerpt":{"rendered":"<p>\u4eca\u5929\u53d1\u70b9\u9002\u5408\u53cc\u5251\u5408\u74a7\u7684\u4e1c\u897f\u3002 \u5728Claude Code \u548c Codex \u4e4b\u95f4\u4e00\u76f4\u5b58\u5728\u8c01\u66f4\u597d\u7528\u7684\u4e89\u8bae\uff0c\u4f46\u662f\u90fd\u6210\u5e74<\/p>","protected":false},"author":1,"featured_media":4215,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"site-sidebar-layout":"default","site-content-layout":"","ast-site-content-layout":"default","site-content-style":"default","site-sidebar-style":"default","ast-global-header-display":"","ast-banner-title-visibility":"","ast-main-header-display":"","ast-hfb-above-header-display":"","ast-hfb-below-header-display":"","ast-hfb-mobile-header-display":"","site-post-title":"","ast-breadcrumbs-content":"","ast-featured-img":"","footer-sml-layout":"","ast-disable-related-posts":"","theme-transparent-header-meta":"","adv-header-id-meta":"","stick-header-meta":"","header-above-stick-meta":"","header-main-stick-meta":"","header-below-stick-meta":"","astra-migrate-meta-layouts":"default","ast-page-background-enabled":"default","ast-page-background-meta":{"desktop":{"background-color":"var(--ast-global-color-4)","background-image":"","background-repeat":"repeat","background-position":"center center","background-size":"auto","background-attachment":"scroll","background-type":"","background-media":"","overlay-type":"","overlay-color":"","overlay-opacity":"","overlay-gradient":""},"tablet":{"background-color":"","background-image":"","background-repeat":"repeat","background-position":"center center","background-size":"auto","background-attachment":"scroll","background-type":"","background-media":"","overlay-type":"","overlay-color":"","overlay-opacity":"","overlay-gradient":""},"mobile":{"background-color":"","background-image":"","background-repeat":"repeat","background-position":"center center","background-size":"auto","background-attachment":"scroll","background-type":"","background-media":"","overlay-type":"","overlay-color":"","overlay-opacity":"","overlay-gradient":""}},"ast-content-background-meta":{"desktop":{"background-color":"var(--ast-global-color-5)","background-image":"","background-repeat":"repeat","background-position":"center center","background-size":"auto","background-attachment":"scroll","background-type":"","background-media":"","overlay-type":"","overlay-color":"","overlay-opacity":"","overlay-gradient":""},"tablet":{"background-color":"var(--ast-global-color-5)","background-image":"","background-repeat":"repeat","background-position":"center center","background-size":"auto","background-attachment":"scroll","background-type":"","background-media":"","overlay-type":"","overlay-color":"","overlay-opacity":"","overlay-gradient":""},"mobile":{"background-color":"var(--ast-global-color-5)","background-image":"","background-repeat":"repeat","background-position":"center center","background-size":"auto","background-attachment":"scroll","background-type":"","background-media":"","overlay-type":"","overlay-color":"","overlay-opacity":"","overlay-gradient":""}},"_tocer_settings":[],"footnotes":""},"categories":[85],"tags":[86],"class_list":["post-4214","post","type-post","status-publish","format-standard","has-post-thumbnail","hentry","category-ai","tag-aijiaocheng"],"_links":{"self":[{"href":"https:\/\/umaax.com\/en\/wp-json\/wp\/v2\/posts\/4214","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/umaax.com\/en\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/umaax.com\/en\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/umaax.com\/en\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/umaax.com\/en\/wp-json\/wp\/v2\/comments?post=4214"}],"version-history":[{"count":0,"href":"https:\/\/umaax.com\/en\/wp-json\/wp\/v2\/posts\/4214\/revisions"}],"wp:featuredmedia":[{"embeddable":true,"href":"https:\/\/umaax.com\/en\/wp-json\/wp\/v2\/media\/4215"}],"wp:attachment":[{"href":"https:\/\/umaax.com\/en\/wp-json\/wp\/v2\/media?parent=4214"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/umaax.com\/en\/wp-json\/wp\/v2\/categories?post=4214"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/umaax.com\/en\/wp-json\/wp\/v2\/tags?post=4214"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}