-
Notifications
You must be signed in to change notification settings - Fork 5
Expand file tree
/
Copy pathcodex-tutorial.html
More file actions
3577 lines (3181 loc) · 133 KB
/
codex-tutorial.html
File metadata and controls
3577 lines (3181 loc) · 133 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
303
304
305
306
307
308
309
310
311
312
313
314
315
316
317
318
319
320
321
322
323
324
325
326
327
328
329
330
331
332
333
334
335
336
337
338
339
340
341
342
343
344
345
346
347
348
349
350
351
352
353
354
355
356
357
358
359
360
361
362
363
364
365
366
367
368
369
370
371
372
373
374
375
376
377
378
379
380
381
382
383
384
385
386
387
388
389
390
391
392
393
394
395
396
397
398
399
400
401
402
403
404
405
406
407
408
409
410
411
412
413
414
415
416
417
418
419
420
421
422
423
424
425
426
427
428
429
430
431
432
433
434
435
436
437
438
439
440
441
442
443
444
445
446
447
448
449
450
451
452
453
454
455
456
457
458
459
460
461
462
463
464
465
466
467
468
469
470
471
472
473
474
475
476
477
478
479
480
481
482
483
484
485
486
487
488
489
490
491
492
493
494
495
496
497
498
499
500
501
502
503
504
505
506
507
508
509
510
511
512
513
514
515
516
517
518
519
520
521
522
523
524
525
526
527
528
529
530
531
532
533
534
535
536
537
538
539
540
541
542
543
544
545
546
547
548
549
550
551
552
553
554
555
556
557
558
559
560
561
562
563
564
565
566
567
568
569
570
571
572
573
574
575
576
577
578
579
580
581
582
583
584
585
586
587
588
589
590
591
592
593
594
595
596
597
598
599
600
601
602
603
604
605
606
607
608
609
610
611
612
613
614
615
616
617
618
619
620
621
622
623
624
625
626
627
628
629
630
631
632
633
634
635
636
637
638
639
640
641
642
643
644
645
646
647
648
649
650
651
652
653
654
655
656
657
658
659
660
661
662
663
664
665
666
667
668
669
670
671
672
673
674
675
676
677
678
679
680
681
682
683
684
685
686
687
688
689
690
691
692
693
694
695
696
697
698
699
700
701
702
703
704
705
706
707
708
709
710
711
712
713
714
715
716
717
718
719
720
721
722
723
724
725
726
727
728
729
730
731
732
733
734
735
736
737
738
739
740
741
742
743
744
745
746
747
748
749
750
751
752
753
754
755
756
757
758
759
760
761
762
763
764
765
766
767
768
769
770
771
772
773
774
775
776
777
778
779
780
781
782
783
784
785
786
787
788
789
790
791
792
793
794
795
796
797
798
799
800
801
802
803
804
805
806
807
808
809
810
811
812
813
814
815
816
817
818
819
820
821
822
823
824
825
826
827
828
829
830
831
832
833
834
835
836
837
838
839
840
841
842
843
844
845
846
847
848
849
850
851
852
853
854
855
856
857
858
859
860
861
862
863
864
865
866
867
868
869
870
871
872
873
874
875
876
877
878
879
880
881
882
883
884
885
886
887
888
889
890
891
892
893
894
895
896
897
898
899
900
901
902
903
904
905
906
907
908
909
910
911
912
913
914
915
916
917
918
919
920
921
922
923
924
925
926
927
928
929
930
931
932
933
934
935
936
937
938
939
940
941
942
943
944
945
946
947
948
949
950
951
952
953
954
955
956
957
958
959
960
961
962
963
964
965
966
967
968
969
970
971
972
973
974
975
976
977
978
979
980
981
982
983
984
985
986
987
988
989
990
991
992
993
994
995
996
997
998
999
1000
<!DOCTYPE html>
<html lang="zh-CN">
<head>
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<meta name="description" content="OpenAI Codex 新手教程、Codex 入门教程、Codex 初级教程 - 从入门到精通的完整中文教程。涵盖 CLI 和桌面端使用方法、Skills 技能库、插件系统、自动化工作流等高级功能,包含详细的模型对比和最佳实践。">
<meta name="keywords" content="Codex 新手教程, Codex 入门教程, Codex 初级教程, Codex 中文教程, OpenAI Codex, AI 编程助手, GPT-5.3-Codex, CLI 编程, Skills, 插件, 自动化, 2026">
<meta name="author" content="磊哥哥科技拆解室">
<meta name="robots" content="index, follow">
<meta property="og:title" content="Codex 新手教程 - OpenAI AI 编程助手完整指南">
<meta property="og:description" content="从入门到精通的 Codex 中文教程,涵盖 CLI 和桌面端、Skills、插件、自动化等高级功能">
<meta property="og:type" content="article">
<meta property="og:locale" content="zh_CN">
<meta name="twitter:card" content="summary_large_image">
<meta name="twitter:title" content="Codex 新手教程 - OpenAI AI 编程助手完整指南">
<meta name="twitter:description" content="从入门到精通的 Codex 中文教程,涵盖 CLI 和桌面端、Skills、插件、自动化等高级功能">
<link rel="canonical" href="https://leigegehaha.github.io/codex-chinese-tutorial/">
<title>Codex 新手教程 - OpenAI AI 编程助手完整指南 | 入门到精通</title>
<!-- Structured Data for SEO -->
<script type="application/ld+json">
{
"@context": "https://schema.org",
"@type": "TechArticle",
"headline": "Codex 新手教程 - OpenAI AI 编程助手完整指南",
"description": "从入门到精通的 Codex 中文教程,涵盖 CLI 和桌面端、Skills、插件、自动化等高级功能",
"author": {
"@type": "Organization",
"name": "磊哥哥科技拆解室"
},
"datePublished": "2026-04-03",
"dateModified": "2026-04-03",
"keywords": "Codex 新手教程, Codex 入门教程, Codex 初级教程, Codex 中文教程"
}
</script>
<style>
:root {
--bg: #0a0a0f;
--surface: #12121a;
--card: #1a1a25;
--border: #2a2a3a;
--text: #e8e8f0;
--muted: #8888a0;
--accent: #10a37f;
--accent-light: #1db88e;
--code-bg: #0d0d15;
--sidebar-width: 280px;
}
* {
margin: 0;
padding: 0;
box-sizing: border-box;
}
html {
scroll-padding-top: 80px;
scroll-behavior: smooth;
}
body {
font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
background: var(--bg);
color: var(--text);
line-height: 1.7;
overflow-x: hidden;
}
/* Sidebar */
.sidebar {
position: fixed;
left: 0;
top: 0;
width: var(--sidebar-width);
height: 100vh;
background: var(--surface);
border-right: 1px solid var(--border);
padding: 24px;
overflow-y: auto;
z-index: 1000;
}
.sidebar-logo {
font-size: 24px;
font-weight: 700;
color: var(--accent);
margin-bottom: 8px;
display: flex;
align-items: center;
gap: 10px;
}
.sidebar-logo span {
font-size: 14px;
background: var(--accent);
color: white;
padding: 2px 8px;
border-radius: 12px;
}
.sidebar-desc {
font-size: 13px;
color: var(--muted);
margin-bottom: 16px;
}
.project-links {
display: grid;
grid-template-columns: repeat(2, 1fr);
gap: 8px;
margin-bottom: 32px;
padding: 12px;
background: var(--card);
border-radius: 8px;
border: 1px solid var(--border);
}
.project-link {
display: flex;
align-items: center;
gap: 8px;
padding: 8px 10px;
background: var(--surface);
border-radius: 6px;
text-decoration: none;
color: var(--text);
font-size: 12px;
transition: all 0.2s;
border: 1px solid transparent;
}
.project-link:hover {
background: var(--bg);
border-color: var(--accent);
}
.project-link.active {
background: var(--accent);
color: white;
font-weight: 600;
}
.project-link img {
width: 18px;
height: 18px;
border-radius: 4px;
}
.project-link-icon {
width: 18px;
height: 18px;
display: flex;
align-items: center;
justify-content: center;
font-size: 14px;
}
.nav-section {
margin-bottom: 24px;
}
.nav-title {
font-size: 11px;
text-transform: uppercase;
letter-spacing: 1px;
color: var(--muted);
margin-bottom: 12px;
font-weight: 600;
}
.nav-item {
display: block;
padding: 8px 12px;
color: var(--text);
text-decoration: none;
border-radius: 6px;
font-size: 14px;
transition: all 0.2s;
margin-bottom: 4px;
}
.nav-item:hover {
background: var(--card);
color: var(--accent-light);
}
.nav-item.active {
background: var(--accent);
color: white;
}
/* Progress bar */
.progress-bar {
position: fixed;
top: 0;
left: var(--sidebar-width);
right: 0;
height: 3px;
background: var(--surface);
z-index: 999;
}
.progress-fill {
height: 100%;
background: var(--accent);
width: 0%;
transition: width 0.3s;
}
/* Main content */
.main {
margin-left: var(--sidebar-width);
min-height: 100vh;
position: relative;
z-index: 999;
}
.content {
max-width: 900px;
margin: 0 auto;
padding: 60px 40px;
}
/* Hero */
.hero {
text-align: center;
padding: 80px 0 60px;
background: linear-gradient(135deg, rgba(16, 163, 127, 0.1) 0%, transparent 100%);
border-radius: 16px;
margin-bottom: 60px;
position: relative;
overflow: hidden;
}
.hero::before {
content: '';
position: absolute;
top: -50%;
left: -50%;
width: 200%;
height: 200%;
background: radial-gradient(circle, rgba(16, 163, 127, 0.05) 0%, transparent 70%);
animation: rotate 20s linear infinite;
}
@keyframes rotate {
from { transform: rotate(0deg); }
to { transform: rotate(360deg); }
}
.hero-content {
position: relative;
z-index: 1;
}
.hero h1 {
font-size: 56px;
font-weight: 800;
margin-bottom: 16px;
background: linear-gradient(135deg, var(--text) 0%, var(--accent) 100%);
-webkit-background-clip: text;
-webkit-text-fill-color: transparent;
background-clip: text;
}
.hero p {
font-size: 20px;
color: var(--muted);
margin-bottom: 32px;
}
.hero-tags {
display: flex;
justify-content: center;
gap: 12px;
flex-wrap: wrap;
}
.hero-tag {
background: var(--card);
border: 1px solid var(--border);
padding: 8px 16px;
border-radius: 20px;
font-size: 14px;
display: flex;
align-items: center;
gap: 6px;
}
/* Sections */
.section {
margin-bottom: 80px;
padding-top: 20px;
}
.section h2 {
font-size: 32px;
font-weight: 700;
margin-bottom: 24px;
padding-bottom: 16px;
border-bottom: 2px solid var(--border);
position: relative;
}
.section h2::before {
content: '';
position: absolute;
bottom: -2px;
left: 0;
width: 60px;
height: 2px;
background: var(--accent);
}
.section h3 {
font-size: 24px;
font-weight: 600;
margin: 32px 0 16px;
color: var(--accent-light);
}
.section h4 {
font-size: 18px;
font-weight: 600;
margin: 24px 0 12px;
}
.section p {
margin-bottom: 16px;
color: var(--text);
}
/* Cards */
.card {
background: var(--card);
border: 1px solid var(--border);
border-radius: 12px;
padding: 24px;
margin: 20px 0;
transition: all 0.3s;
}
.card:hover {
border-color: var(--accent);
box-shadow: 0 4px 12px rgba(16, 163, 127, 0.1);
}
.card-title {
font-size: 18px;
font-weight: 600;
margin-bottom: 12px;
display: flex;
align-items: center;
gap: 8px;
}
.card-icon {
font-size: 24px;
}
/* Code blocks */
.code-block {
background: var(--code-bg);
border: 1px solid var(--border);
border-radius: 8px;
overflow: hidden;
margin: 16px 0;
}
.code-header {
background: var(--surface);
padding: 8px 16px;
font-size: 12px;
color: var(--muted);
border-bottom: 1px solid var(--border);
display: flex;
justify-content: space-between;
align-items: center;
}
.code-lang {
font-weight: 600;
color: var(--accent);
}
.code-body {
padding: 16px;
overflow-x: auto;
font-family: 'Fira Code', 'Monaco', 'Consolas', monospace;
font-size: 14px;
line-height: 1.6;
white-space: pre;
}
/* Lists */
ul, ol {
margin: 16px 0;
padding-left: 24px;
}
li {
margin: 8px 0;
}
li strong {
color: var(--accent-light);
}
/* Tables */
.table-wrap {
overflow-x: auto;
margin: 20px 0;
}
table {
width: 100%;
border-collapse: collapse;
background: var(--card);
border-radius: 8px;
overflow: hidden;
}
th, td {
padding: 12px 16px;
text-align: left;
border-bottom: 1px solid var(--border);
}
th {
background: var(--surface);
font-weight: 600;
color: var(--accent);
}
tr:hover {
background: rgba(16, 163, 127, 0.05);
}
/* Badge */
.badge {
display: inline-block;
padding: 4px 12px;
border-radius: 12px;
font-size: 12px;
font-weight: 600;
margin-left: 8px;
}
.badge-new {
background: #ff6b6b;
color: white;
}
.badge-hot {
background: #ffa94d;
color: white;
}
.badge-pro {
background: var(--accent);
color: white;
}
/* Callout */
.callout {
background: rgba(16, 163, 127, 0.1);
border-left: 4px solid var(--accent);
padding: 16px 20px;
margin: 20px 0;
border-radius: 0 8px 8px 0;
}
.callout-title {
font-weight: 600;
margin-bottom: 8px;
color: var(--accent);
}
/* SVG wraps */
.svg-wrap {
background: var(--surface);
border: 1px solid var(--border);
border-radius: 12px;
padding: 28px;
margin: 24px 0;
text-align: center;
overflow-x: auto;
max-width: 100%;
}
.svg-wrap svg {
max-width: 100%;
width: 100%;
height: auto;
display: block;
}
/* Feature grid */
.feature-grid {
display: grid;
grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
gap: 20px;
margin: 24px 0;
}
.feature-item {
background: var(--card);
border: 1px solid var(--border);
border-radius: 12px;
padding: 20px;
text-align: center;
transition: all 0.3s;
}
.feature-item:hover {
border-color: var(--accent);
transform: translateY(-2px);
}
.feature-icon {
font-size: 48px;
margin-bottom: 12px;
}
.feature-title {
font-size: 18px;
font-weight: 600;
margin-bottom: 8px;
}
.feature-desc {
font-size: 14px;
color: var(--muted);
}
/* Image container */
.image-container {
margin: 24px 0;
border-radius: 12px;
overflow: hidden;
border: 1px solid var(--border);
}
.image-container img {
width: 100%;
height: auto;
display: block;
}
.image-caption {
background: var(--surface);
padding: 12px 16px;
font-size: 14px;
color: var(--muted);
text-align: center;
}
/* Footer */
.footer {
text-align: center;
padding: 40px 0;
border-top: 1px solid var(--border);
margin-top: 60px;
color: var(--muted);
}
.footer-links {
display: flex;
justify-content: center;
gap: 24px;
margin-bottom: 16px;
}
.footer-links a {
color: var(--muted);
text-decoration: none;
transition: color 0.3s;
}
.footer-links a:hover {
color: var(--accent);
}
/* Responsive */
@media (max-width: 768px) {
.sidebar {
transform: translateX(-100%);
transition: transform 0.3s;
}
.sidebar.open {
transform: translateX(0);
}
.main {
margin-left: 0;
}
.content {
padding: 40px 20px;
}
.hero h1 {
font-size: 36px;
}
.hero p {
font-size: 16px;
}
}
/* Scrollbar */
::-webkit-scrollbar {
width: 8px;
height: 8px;
}
::-webkit-scrollbar-track {
background: var(--bg);
}
::-webkit-scrollbar-thumb {
background: var(--border);
border-radius: 4px;
}
::-webkit-scrollbar-thumb:hover {
background: var(--muted);
}
</style>
</head>
<body>
<!-- Sidebar Navigation -->
<nav class="sidebar">
<div class="sidebar-logo">
Codex <span>v2026</span>
</div>
<p class="sidebar-desc">OpenAI AI 编程助手完整指南<br>作者:磊哥哥科技拆解室</p>
<!-- Project Links -->
<div class="project-links">
<a href="https://leigegehaha.github.io/codex-chinese-tutorial/" class="project-link active" title="Codex 新手教程">
<div class="project-link-icon">🤖</div>
<span>Codex</span>
</a>
<a href="https://leigegehaha.github.io/claude-code-chinese-tutorial/" class="project-link" title="Claude Code 新手教程">
<div class="project-link-icon">🧠</div>
<span>Claude Code</span>
</a>
<a href="https://leigegehaha.github.io/opencode-chinese-tutorial/" class="project-link" title="OpenCode 新手教程">
<div class="project-link-icon">💻</div>
<span>OpenCode</span>
</a>
<a href="https://leigegehaha.github.io/crush-chinese-tutorial/" class="project-link" title="Crush 新手教程">
<div class="project-link-icon">🎯</div>
<span>Crush</span>
</a>
</div>
<div class="nav-section">
<div class="nav-title">快速开始</div>
<a href="#intro" class="nav-item">什么是 Codex</a>
<a href="#comparison" class="nav-item">工具对比</a>
<a href="#install" class="nav-item">安装与配置</a>
<a href="#first-use" class="nav-item">第一次使用</a>
</div>
<div class="nav-section">
<div class="nav-title">CLI 端使用</div>
<a href="#cli-basic" class="nav-item">初级:基础命令</a>
<a href="#cli-intermediate" class="nav-item">中级:项目协作</a>
<a href="#cli-advanced" class="nav-item">高级:自动化工作流</a>
</div>
<div class="nav-section">
<div class="nav-title">桌面端使用</div>
<a href="#desktop-basic" class="nav-item">初级:界面与设置</a>
<a href="#desktop-intermediate" class="nav-item">中级:项目管理</a>
<a href="#desktop-advanced" class="nav-item">高级:团队协作</a>
</div>
<div class="nav-section">
<div class="nav-title">进阶功能</div>
<a href="#skills" class="nav-item">热门 Skills</a>
<a href="#plugins" class="nav-item">插件系统</a>
<a href="#automation" class="nav-item">自动化</a>
</div>
<div class="nav-section">
<div class="nav-title">深入理解</div>
<a href="#models" class="nav-item">模型优缺点</a>
<a href="#best-practices" class="nav-item">最佳实践</a>
<a href="#faq" class="nav-item">常见问题</a>
</div>
</nav>
<!-- Progress Bar -->
<div class="progress-bar">
<div class="progress-fill" id="progress"></div>
</div>
<!-- Main Content -->
<main class="main">
<div class="content">
<!-- Hero Section -->
<div class="hero">
<div class="hero-content">
<h1>Codex 中文教程</h1>
<p>OpenAI 官方 AI 编程助手 · CLI + 桌面端完整指南 · 从入门到精通</p>
<div class="hero-tags">
<div class="hero-tag">🇨🇳 中文教程</div>
<div class="hero-tag">⚡ 快速上手</div>
<div class="hero-tag">🎯 实战案例</div>
<div class="hero-tag">🆕 2026 最新</div>
</div>
</div>
</div>
<!-- Introduction -->
<section id="intro" class="section">
<h2>什么是 Codex?</h2>
<p><strong>Codex</strong> 是 OpenAI 官方推出的 AI 编程助手工具,基于最新的 GPT-5 系列模型构建。它能够理解自然语言指令,自动生成代码、重构项目、修复 Bug,甚至执行复杂的编程任务。</p>
<!-- Architecture SVG -->
<div class="svg-wrap">
<svg viewBox="0 0 800 400" xmlns="http://www.w3.org/2000/svg">
<!-- Background -->
<defs>
<linearGradient id="grad1" x1="0%" y1="0%" x2="100%" y2="0%">
<stop offset="0%" style="stop-color:#10a37f;stop-opacity:0.2" />
<stop offset="100%" style="stop-color:#1db88e;stop-opacity:0.1" />
</linearGradient>
</defs>
<!-- User -->
<g transform="translate(50, 150)">
<rect x="0" y="0" width="120" height="100" rx="10" fill="#1a1a25" stroke="#10a37f" stroke-width="2"/>
<text x="60" y="35" text-anchor="middle" fill="#e8e8f0" font-size="14" font-weight="bold">开发者</text>
<text x="60" y="60" text-anchor="middle" fill="#8888a0" font-size="12">自然语言指令</text>
<text x="60" y="80" text-anchor="middle" fill="#8888a0" font-size="12">代码文件</text>
</g>
<!-- Arrow -->
<path d="M 180 200 L 230 200" stroke="#10a37f" stroke-width="3" fill="none" marker-end="url(#arrowhead)"/>
<defs>
<marker id="arrowhead" markerWidth="10" markerHeight="10" refX="9" refY="3" orient="auto">
<polygon points="0 0, 10 3, 0 6" fill="#10a37f" />
</marker>
</defs>
<!-- Codex Core -->
<g transform="translate(240, 100)">
<rect x="0" y="0" width="180" height="200" rx="15" fill="url(#grad1)" stroke="#10a37f" stroke-width="3"/>
<text x="90" y="40" text-anchor="middle" fill="#10a37f" font-size="18" font-weight="bold">Codex 核心</text>
<!-- Components -->
<rect x="20" y="60" width="140" height="35" rx="5" fill="#0d0d15" stroke="#2a2a3a"/>
<text x="90" y="82" text-anchor="middle" fill="#e8e8f0" font-size="12">代码理解引擎</text>
<rect x="20" y="105" width="140" height="35" rx="5" fill="#0d0d15" stroke="#2a2a3a"/>
<text x="90" y="127" text-anchor="middle" fill="#e8e8f0" font-size="12">项目分析器</text>
<rect x="20" y="150" width="140" height="35" rx="5" fill="#0d0d15" stroke="#2a2a3a"/>
<text x="90" y="172" text-anchor="middle" fill="#e8e8f0" font-size="12">多模型调度</text>
</g>
<!-- Arrow -->
<path d="M 430 200 L 480 200" stroke="#10a37f" stroke-width="3" fill="none" marker-end="url(#arrowhead)"/>
<!-- Models -->
<g transform="translate(490, 50)">
<text x="0" y="0" fill="#10a37f" font-size="16" font-weight="bold">GPT-5 模型</text>
<rect x="0" y="15" width="260" height="45" rx="8" fill="#1a1a25" stroke="#2a2a3a"/>
<text x="130" y="43" text-anchor="middle" fill="#e8e8f0" font-size="13">GPT-5.4-mini-codex (快速)</text>
<rect x="0" y="70" width="260" height="45" rx="8" fill="#1a1a25" stroke="#10a37f"/>
<text x="130" y="98" text-anchor="middle" fill="#e8e8f0" font-size="13">GPT-5.3-Codex (推荐)</text>
<rect x="0" y="125" width="260" height="45" rx="8" fill="#1a1a25" stroke="#2a2a3a"/>
<text x="130" y="153" text-anchor="middle" fill="#e8e8f0" font-size="13">GPT-5.4 (平衡)</text>
</g>
<!-- Output -->
<g transform="translate(490, 260)">
<rect x="0" y="0" width="260" height="80" rx="10" fill="#1a1a25" stroke="#10a37f" stroke-width="2"/>
<text x="130" y="30" text-anchor="middle" fill="#10a37f" font-size="14" font-weight="bold">输出结果</text>
<text x="130" y="55" text-anchor="middle" fill="#8888a0" font-size="12">代码文件 · 重构方案 · Bug 修复</text>
</g>
<!-- Connection -->
<path d="M 620 230 L 620 260" stroke="#10a37f" stroke-width="2" fill="none" marker-end="url(#arrowhead)"/>
</svg>
</div>
<div class="card">
<div class="card-title">
<span class="card-icon">🎯</span>
核心能力
</div>
<ul>
<li><strong>代码生成</strong>:根据自然语言描述生成高质量代码,支持 50+ 编程语言</li>
<li><strong>项目理解</strong>:分析整个代码库,理解架构和依赖关系,支持 1M+ tokens 上下文</li>
<li><strong>自动修复</strong>:智能识别并修复代码中的 Bug,提供详细的修复说明</li>
<li><strong>重构优化</strong>:改进代码结构、性能和可维护性,遵循最佳实践</li>
<li><strong>多模型支持</strong>:GPT-5.3-Codex、GPT-5.4、GPT-5.4-mini 等多种模型可选</li>
<li><strong>双端支持</strong>:CLI(命令行)+ Desktop(桌面应用),适应不同工作流</li>
</ul>
</div>
<!-- Feature Grid -->
<h3>为什么选择 Codex?</h3>
<div class="feature-grid">
<div class="feature-item">
<div class="feature-icon">🏢</div>
<div class="feature-title">官方出品</div>
<div class="feature-desc">OpenAI 直接支持<br/>模型更新及时</div>
</div>
<div class="feature-item">
<div class="feature-icon">🖥️</div>
<div class="feature-title">双端支持</div>
<div class="feature-desc">CLI + Desktop<br/>灵活切换</div>
</div>
<div class="feature-item">
<div class="feature-icon">⚡</div>
<div class="feature-title">Rust 性能</div>
<div class="feature-desc">速度快<br/>内存安全</div>
</div>
<div class="feature-item">
<div class="feature-icon">🔌</div>
<div class="feature-title">丰富生态</div>
<div class="feature-desc">Skills、Plugins<br/>MCP 支持</div>
</div>
<div class="feature-item">
<div class="feature-icon">🤖</div>
<div class="feature-title">自动化</div>
<div class="feature-desc">Triggers<br/>Multi-Agent</div>
</div>
<div class="feature-item">
<div class="feature-icon">🔒</div>
<div class="feature-title">企业级</div>
<div class="feature-desc">团队协作<br/>安全审计</div>
</div>
</div>
<h3>Codex 的不同用法</h3>
<div class="card">
<div class="card-title">
<span class="card-icon">💻</span>
1. 交互式编程助手
</div>
<p>在终端或桌面应用中与 Codex 对话,逐步完成编程任务:</p>
<ul>
<li>提问代码问题,获取详细解释</li>
<li>描述需求,生成代码片段</li>
<li>粘贴错误信息,获得修复建议</li>
<li>请求代码审查,获取改进意见</li>
</ul>
</div>
<div class="card">
<div class="card-title">
<span class="card-icon">🔧</span>
2. 项目级重构工具
</div>
<p>让 Codex 理解整个项目,执行大规模重构:</p>
<ul>
<li>升级框架版本(如 React 17 → 18)</li>
<li>迁移语言(如 JavaScript → TypeScript)</li>
<li>重构架构(如单体 → 微服务)</li>
<li>优化性能(如识别瓶颈、减少打包体积)</li>
</ul>
</div>
<div class="card">
<div class="card-title">
<span class="card-icon">🤖</span>
3. 自动化 CI/CD 助手
</div>
<p>将 Codex 集成到开发流程中:</p>
<ul>
<li>自动代码审查(PR review)</li>
<li>自动生成文档</li>
<li>自动修复简单 Bug</li>
<li>自动生成测试用例</li>
</ul>
</div>
<div class="card">
<div class="card-title">
<span class="card-icon">👥</span>
4. 团队协作平台
</div>
<p>使用桌面端的团队功能:</p>
<ul>
<li>共享项目和代码库</li>
<li>协作编辑和审查</li>
<li>知识库建设(Skills、AGENTS.md)</li>
<li>统一的代码规范和质量标准</li>
</ul>
</div>
</section>
<!-- Tool Comparison -->
<section id="comparison" class="section">
<h2>AI 编程工具对比 <span class="badge badge-hot">必读</span></h2>
<p>市面上主流的 AI 编程工具对比,帮助你选择最适合的工具。</p>
<!-- Workflow Comparison SVG -->
<div class="svg-wrap">
<svg viewBox="0 0 800 500" xmlns="http://www.w3.org/2000/svg">
<text x="400" y="30" text-anchor="middle" fill="#10a37f" font-size="20" font-weight="bold">AI 编程工具工作流对比</text>
<!-- Cursor -->
<g transform="translate(50, 60)">
<rect x="0" y="0" width="160" height="120" rx="10" fill="#1a1a25" stroke="#ffa94d" stroke-width="2"/>
<text x="80" y="30" text-anchor="middle" fill="#ffa94d" font-size="16" font-weight="bold">Cursor</text>
<text x="80" y="55" text-anchor="middle" fill="#8888a0" font-size="11">AI 原生 IDE</text>
<text x="80" y="75" text-anchor="middle" fill="#8888a0" font-size="11">实时补全</text>
<text x="80" y="95" text-anchor="middle" fill="#8888a0" font-size="11">多文件编辑</text>
<text x="80" y="115" text-anchor="middle" fill="#8888a0" font-size="10">$20/月</text>
</g>
<!-- Claude Code -->
<g transform="translate(230, 60)">
<rect x="0" y="0" width="160" height="120" rx="10" fill="#1a1a25" stroke="#a855f7" stroke-width="2"/>
<text x="80" y="30" text-anchor="middle" fill="#a855f7" font-size="16" font-weight="bold">Claude Code</text>
<text x="80" y="55" text-anchor="middle" fill="#8888a0" font-size="11">终端 Agent</text>
<text x="80" y="75" text-anchor="middle" fill="#8888a0" font-size="11">长上下文</text>
<text x="80" y="95" text-anchor="middle" fill="#8888a0" font-size="11">深度分析</text>
<text x="80" y="115" text-anchor="middle" fill="#8888a0" font-size="10">$20/月</text>
</g>
<!-- Codex -->
<g transform="translate(410, 60)">
<rect x="0" y="0" width="160" height="120" rx="10" fill="url(#grad1)" stroke="#10a37f" stroke-width="3"/>
<text x="80" y="30" text-anchor="middle" fill="#10a37f" font-size="16" font-weight="bold">Codex</text>
<text x="80" y="55" text-anchor="middle" fill="#e8e8f0" font-size="11">CLI + Desktop</text>
<text x="80" y="75" text-anchor="middle" fill="#e8e8f0" font-size="11">双端支持</text>
<text x="80" y="95" text-anchor="middle" fill="#e8e8f0" font-size="11">自动化强</text>
<text x="80" y="115" text-anchor="middle" fill="#e8e8f0" font-size="10">按使用量</text>
</g>
<!-- GitHub Copilot -->
<g transform="translate(590, 60)">
<rect x="0" y="0" width="160" height="120" rx="10" fill="#1a1a25" stroke="#6b7280" stroke-width="2"/>
<text x="80" y="30" text-anchor="middle" fill="#6b7280" font-size="16" font-weight="bold">Copilot</text>
<text x="80" y="55" text-anchor="middle" fill="#8888a0" font-size="11">IDE 插件</text>
<text x="80" y="75" text-anchor="middle" fill="#8888a0" font-size="11">代码补全</text>
<text x="80" y="95" text-anchor="middle" fill="#8888a0" font-size="11">深度集成</text>
<text x="80" y="115" text-anchor="middle" fill="#8888a0" font-size="10">$10/月</text>
</g>
<!-- Comparison Matrix -->
<g transform="translate(50, 220)">
<text x="350" y="0" text-anchor="middle" fill="#e8e8f0" font-size="16" font-weight="bold">功能对比矩阵</text>
<!-- Headers -->
<rect x="0" y="20" width="140" height="40" fill="#12121a" stroke="#2a2a3a"/>
<text x="70" y="45" text-anchor="middle" fill="#10a37f" font-size="12" font-weight="bold">功能维度</text>
<rect x="140" y="20" width="120" height="40" fill="#12121a" stroke="#2a2a3a"/>
<text x="200" y="45" text-anchor="middle" fill="#ffa94d" font-size="12">Cursor</text>
<rect x="260" y="20" width="120" height="40" fill="#12121a" stroke="#2a2a3a"/>
<text x="320" y="45" text-anchor="middle" fill="#a855f7" font-size="12">Claude Code</text>
<rect x="380" y="20" width="120" height="40" fill="#12121a" stroke="#10a37f" stroke-width="2"/>
<text x="440" y="45" text-anchor="middle" fill="#10a37f" font-size="12" font-weight="bold">Codex</text>
<rect x="500" y="20" width="120" height="40" fill="#12121a" stroke="#2a2a3a"/>
<text x="560" y="45" text-anchor="middle" fill="#6b7280" font-size="12">Copilot</text>
<!-- Row 1: Real-time completion -->
<rect x="0" y="60" width="140" height="35" fill="#1a1a25" stroke="#2a2a3a"/>
<text x="70" y="82" text-anchor="middle" fill="#e8e8f0" font-size="11">实时补全</text>
<rect x="140" y="60" width="120" height="35" fill="#1a1a25" stroke="#2a2a3a"/>
<text x="200" y="82" text-anchor="middle" fill="#ffa94d" font-size="18">⭐⭐⭐⭐⭐</text>
<rect x="260" y="60" width="120" height="35" fill="#1a1a25" stroke="#2a2a3a"/>
<text x="320" y="82" text-anchor="middle" fill="#8888a0" font-size="18">⭐⭐</text>
<rect x="380" y="60" width="120" height="35" fill="#1a1a25" stroke="#2a2a3a"/>
<text x="440" y="82" text-anchor="middle" fill="#8888a0" font-size="18">⭐⭐⭐</text>
<rect x="500" y="60" width="120" height="35" fill="#1a1a25" stroke="#2a2a3a"/>
<text x="560" y="82" text-anchor="middle" fill="#6b7280" font-size="18">⭐⭐⭐⭐</text>
<!-- Row 2: Project-level editing -->
<rect x="0" y="95" width="140" height="35" fill="#1a1a25" stroke="#2a2a3a"/>
<text x="70" y="117" text-anchor="middle" fill="#e8e8f0" font-size="11">项目级编辑</text>
<rect x="140" y="95" width="120" height="35" fill="#1a1a25" stroke="#2a2a3a"/>
<text x="200" y="117" text-anchor="middle" fill="#ffa94d" font-size="18">⭐⭐⭐⭐</text>
<rect x="260" y="95" width="120" height="35" fill="#1a1a25" stroke="#2a2a3a"/>
<text x="320" y="117" text-anchor="middle" fill="#a855f7" font-size="18">⭐⭐⭐⭐⭐</text>
<rect x="380" y="95" width="120" height="35" fill="#1a1a25" stroke="#10a37f" stroke-width="2"/>