-
Notifications
You must be signed in to change notification settings - Fork 9
Expand file tree
/
Copy pathindex.html
More file actions
1039 lines (1011 loc) · 37.7 KB
/
index.html
File metadata and controls
1039 lines (1011 loc) · 37.7 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" />
<title>deepx-code — DeepSeek 原生的终端编程 agent</title>
<meta
name="description"
content="deepx-code 是 Go 写的 DeepSeek 原生终端编码 agent:单二进制、长会话 ~99% 缓存命中省钱、内置代码图谱与本地离线 OCR。"
/>
<link rel="preconnect" href="https://fonts.googleapis.com" />
<link rel="preconnect" href="https://fonts.gstatic.com" crossorigin />
<link
href="https://fonts.googleapis.com/css2?family=JetBrains+Mono:ital,wght@0,400;0,500;0,600;0,700;0,800;1,400&family=Noto+Sans+SC:wght@400;500;600;700&display=swap"
rel="stylesheet"
/>
<style>
/* ── Reset & Vars ── */
*,
*::before,
*::after {
box-sizing: border-box;
margin: 0;
padding: 0;
}
:root {
--bg: #080808;
--bg-card: #0e0e0e;
--bg-elevated: #141414;
--fg: #c8c8c8;
--fg-dim: #686868;
--fg-muted: #505050;
--green: #00e541;
--green-dim: #00b832;
--green-subtle: rgba(0, 229, 65, 0.08);
--amber: #f0a000;
--red: #ff4444;
--cyan: #00d4d4;
--blue: #4080ff;
--border: #1a1a1a;
--border-hover: #2a2a2a;
--font-mono: "JetBrains Mono", monospace;
--font-sans: "Noto Sans SC", system-ui, sans-serif;
--max-w: 1100px;
--radius: 8px;
}
html {
scroll-behavior: smooth;
background: var(--bg);
color: var(--fg);
font-family: var(--font-sans);
-webkit-font-smoothing: antialiased;
}
body {
min-height: 100vh;
overflow-x: hidden;
}
/* ── CRT Overlay ── */
body::before {
content: "";
position: fixed;
inset: 0;
z-index: 9999;
pointer-events: none;
opacity: 0.025;
background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 256 256' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.7' numOctaves='5' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
}
/* ── Scanlines ── */
.scanlines {
position: fixed;
inset: 0;
z-index: 9998;
pointer-events: none;
background: repeating-linear-gradient(
0deg,
transparent,
transparent 2px,
rgba(0, 0, 0, 0.04) 2px,
rgba(0, 0, 0, 0.04) 4px
);
}
/* ── Layout ── */
.container {
max-width: var(--max-w);
margin: 0 auto;
padding: 0 24px;
}
section {
padding: 100px 0;
position: relative;
}
.section-label {
font-family: var(--font-mono);
font-size: 12px;
font-weight: 500;
color: var(--green);
letter-spacing: 0.12em;
text-transform: uppercase;
margin-bottom: 12px;
display: block;
}
h2 {
font-family: var(--font-mono);
font-size: clamp(28px, 4vw, 40px);
font-weight: 700;
letter-spacing: -0.02em;
margin-bottom: 16px;
color: #fff;
}
.section-sub {
color: var(--fg-dim);
font-size: 15px;
line-height: 1.7;
max-width: 600px;
margin-bottom: 48px;
}
.grid-bg {
position: absolute;
inset: 0;
overflow: hidden;
pointer-events: none;
z-index: 0;
opacity: 0.03;
background-image:
linear-gradient(rgba(255, 255, 255, 0.04) 1px, transparent 1px),
linear-gradient(90deg, rgba(255, 255, 255, 0.04) 1px, transparent 1px);
background-size: 60px 60px;
}
/* ── Typography ── */
h1, h2, h3, .mono {
font-family: var(--font-mono);
}
p {
line-height: 1.75;
color: var(--fg-dim);
font-size: 15px;
}
/* ── Buttons ── */
.btn {
display: inline-flex;
align-items: center;
gap: 8px;
padding: 12px 28px;
border-radius: var(--radius);
font-family: var(--font-mono);
font-size: 14px;
font-weight: 600;
text-decoration: none;
cursor: pointer;
transition: all 0.2s;
border: 1px solid transparent;
}
.btn-primary {
background: var(--green);
color: #000;
border-color: var(--green);
}
.btn-primary:hover {
background: var(--green-dim);
border-color: var(--green-dim);
}
.btn-ghost {
background: transparent;
color: var(--fg);
border-color: var(--border);
}
.btn-ghost:hover {
background: var(--bg-elevated);
border-color: var(--border-hover);
}
/* ── Hero ── */
.hero {
padding: 140px 0 100px;
text-align: center;
position: relative;
overflow: hidden;
min-height: 100vh;
display: flex;
align-items: center;
}
.hero .grid-bg {
opacity: 0.05;
background-size: 80px 80px;
}
.hero-badge {
display: inline-flex;
align-items: center;
gap: 8px;
background: var(--green-subtle);
border: 1px solid rgba(0, 229, 65, 0.15);
border-radius: 100px;
padding: 6px 18px;
font-family: var(--font-mono);
font-size: 12px;
color: var(--green);
margin-bottom: 36px;
}
.hero-badge .dot {
width: 6px;
height: 6px;
background: var(--green);
border-radius: 50%;
animation: pulse-dot 2s infinite;
}
@keyframes pulse-dot {
0%, 100% { opacity: 1; }
50% { opacity: 0.3; }
}
.hero h1 {
font-size: clamp(36px, 6.5vw, 68px);
font-weight: 800;
letter-spacing: -0.03em;
color: #fff;
line-height: 1.1;
margin-bottom: 20px;
}
.hero h1 .accent {
background: linear-gradient(135deg, var(--green), var(--cyan));
-webkit-background-clip: text;
-webkit-text-fill-color: transparent;
background-clip: text;
}
.hero .tagline {
font-family: var(--font-mono);
font-size: clamp(14px, 1.8vw, 17px);
color: var(--fg-dim);
max-width: 640px;
margin: 0 auto 40px;
line-height: 1.7;
}
.hero .tagline .cursor {
display: inline-block;
width: 8px;
height: 1.2em;
background: var(--green);
vertical-align: text-bottom;
margin-left: 2px;
animation: blink 1s step-end infinite;
}
@keyframes blink {
0%, 100% { opacity: 1; }
50% { opacity: 0; }
}
.hero-actions {
display: flex;
gap: 12px;
justify-content: center;
flex-wrap: wrap;
margin-bottom: 64px;
}
/* ── Terminal ── */
.term-wrap {
max-width: 720px;
margin: 0 auto;
position: relative;
z-index: 1;
}
.term {
background: #060606;
border: 1px solid var(--border);
border-radius: 10px;
overflow: hidden;
text-align: left;
box-shadow:
0 20px 60px rgba(0, 0, 0, 0.6),
0 0 0 1px rgba(255, 255, 255, 0.02) inset,
0 0 100px rgba(0, 229, 65, 0.02);
}
.term-bar {
display: flex;
align-items: center;
gap: 6px;
padding: 14px 18px;
background: rgba(255, 255, 255, 0.02);
border-bottom: 1px solid var(--border);
}
.term-bar span {
width: 12px;
height: 12px;
border-radius: 50%;
}
.term-bar .t-red { background: var(--red); }
.term-bar .t-amber { background: var(--amber); }
.term-bar .t-green { background: var(--green); }
.term-bar .t-title {
flex: 1;
text-align: center;
font-family: var(--font-mono);
font-size: 11px;
color: var(--fg-muted);
letter-spacing: 0.06em;
margin-right: 30px;
}
.term-body {
padding: 20px 22px;
font-family: var(--font-mono);
font-size: 12.5px;
line-height: 1.7;
overflow-x: auto;
}
.term-body .l {
white-space: pre;
min-height: 1em;
}
.term-body .l .prompt { color: var(--green); }
.term-body .l .dim { color: var(--fg-dim); }
.term-body .l .muted { color: var(--fg-muted); }
.term-body .l .cyan { color: var(--cyan); }
.term-body .l .amber { color: var(--amber); }
.term-body .l .red { color: var(--red); }
.term-body .l .green { color: var(--green); }
.term-body .l .white { color: #e0e0e0; }
.cursor-line::after {
content: "▊";
display: inline-block;
animation: blink 1s step-end infinite;
color: var(--green);
}
/* ── Pain Points (对比) ── */
.pain-section {
background: var(--bg-card);
}
.pain-table {
width: 100%;
border-collapse: separate;
border-spacing: 0;
font-family: var(--font-mono);
font-size: 13px;
position: relative;
z-index: 1;
}
.pain-table th {
text-align: left;
padding: 16px 18px;
font-weight: 600;
color: #fff;
border-bottom: 1px solid var(--border);
font-size: 12px;
letter-spacing: 0.05em;
}
.pain-table th:first-child {
width: 36%;
color: var(--fg-dim);
}
.pain-table th:nth-child(2) {
color: var(--fg-dim);
}
.pain-table th:last-child {
color: var(--green);
}
.pain-table td {
padding: 16px 18px;
border-bottom: 1px solid rgba(255, 255, 255, 0.03);
line-height: 1.5;
}
.pain-table tr:last-child td {
border-bottom: none;
}
.pain-table .vs-old {
color: var(--fg-dim);
}
.pain-table .vs-new {
color: #e0e0e0;
}
.pain-table .vs-badge {
display: inline-block;
font-size: 10px;
font-weight: 700;
padding: 2px 8px;
border-radius: 4px;
letter-spacing: 0.05em;
margin-right: 6px;
}
.vs-badge-old {
background: rgba(255, 68, 68, 0.1);
color: var(--red);
}
.vs-badge-new {
background: var(--green-subtle);
color: var(--green);
}
/* ── Features Grid ── */
.features-grid {
display: grid;
grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
gap: 20px;
position: relative;
z-index: 1;
}
.feat-card {
background: var(--bg-card);
border: 1px solid var(--border);
border-radius: var(--radius);
padding: 32px 28px;
transition: border-color 0.3s, transform 0.3s, box-shadow 0.3s;
position: relative;
overflow: hidden;
}
.feat-card:hover {
border-color: var(--border-hover);
transform: translateY(-3px);
box-shadow: 0 8px 30px rgba(0, 0, 0, 0.3);
}
.feat-card::after {
content: "";
position: absolute;
top: 0;
left: 0;
right: 0;
height: 1px;
background: linear-gradient(90deg, transparent, rgba(0, 229, 65, 0.3), transparent);
opacity: 0;
transition: opacity 0.3s;
}
.feat-card:hover::after {
opacity: 1;
}
.feat-icon {
width: 44px;
height: 44px;
display: flex;
align-items: center;
justify-content: center;
background: var(--green-subtle);
border-radius: var(--radius);
font-size: 22px;
margin-bottom: 18px;
}
.feat-card h3 {
font-size: 16px;
font-weight: 700;
color: #fff;
margin-bottom: 10px;
}
.feat-card p {
font-size: 14px;
line-height: 1.7;
color: var(--fg-dim);
}
/* ── Tools Grid ── */
.tools-grid {
display: grid;
grid-template-columns: repeat(auto-fill, minmax(160px, 1fr));
gap: 12px;
position: relative;
z-index: 1;
}
.tool-chip {
font-family: var(--font-mono);
font-size: 12px;
padding: 10px 16px;
border: 1px solid var(--border);
border-radius: var(--radius);
background: var(--bg-card);
color: var(--fg-dim);
display: flex;
align-items: center;
gap: 8px;
transition: border-color 0.2s, color 0.2s, background 0.2s;
}
.tool-chip:hover {
border-color: var(--green);
color: #e0e0e0;
background: var(--green-subtle);
}
.tool-chip .chip-icon {
font-size: 15px;
width: 20px;
text-align: center;
}
.tool-chip .chip-modes {
margin-left: auto;
font-size: 9px;
color: var(--fg-muted);
letter-spacing: 0.05em;
}
/* ── Architecture Flow ── */
.arch-flow {
display: flex;
align-items: center;
justify-content: center;
flex-wrap: wrap;
gap: 10px;
position: relative;
z-index: 1;
font-family: var(--font-mono);
font-size: 12px;
}
.arch-node {
padding: 14px 22px;
border: 1px solid var(--border);
border-radius: var(--radius);
background: var(--bg);
text-align: center;
white-space: nowrap;
transition: border-color 0.3s;
}
.arch-node:hover {
border-color: var(--green);
}
.arch-node .n-title {
color: #fff;
font-weight: 600;
font-size: 13px;
margin-bottom: 4px;
}
.arch-node .n-sub {
color: var(--fg-dim);
font-size: 11px;
}
.arch-arrow {
color: var(--green);
font-size: 16px;
font-weight: 600;
}
/* ── Install ── */
.install-tabs {
display: flex;
gap: 4px;
margin-bottom: 0;
flex-wrap: wrap;
position: relative;
z-index: 1;
}
.install-tab {
padding: 10px 24px;
font-family: var(--font-mono);
font-size: 13px;
cursor: pointer;
border: 1px solid var(--border);
border-bottom: none;
border-radius: 8px 8px 0 0;
background: var(--bg);
color: var(--fg-dim);
transition: all 0.2s;
}
.install-tab.active {
background: var(--bg-elevated);
color: var(--green);
border-color: var(--border-hover) var(--border-hover) var(--bg-elevated);
}
.install-tab:hover:not(.active) {
color: var(--fg);
}
.code-block {
background: var(--bg-elevated);
border: 1px solid var(--border-hover);
border-radius: 0 8px 8px 8px;
padding: 24px;
font-family: var(--font-mono);
font-size: 13px;
line-height: 1.8;
position: relative;
overflow-x: auto;
display: none;
z-index: 1;
}
.code-block.active {
display: block;
}
.code-block .c1 { color: var(--green); }
.code-block .c2 { color: var(--cyan); }
.code-block .c3 { color: var(--amber); }
.code-block .comment { color: var(--fg-muted); }
.copy-btn {
position: absolute;
top: 12px;
right: 12px;
padding: 6px 14px;
font-family: var(--font-mono);
font-size: 11px;
background: var(--bg);
border: 1px solid var(--border);
color: var(--fg-dim);
border-radius: 4px;
cursor: pointer;
transition: all 0.2s;
}
.copy-btn:hover {
color: var(--green);
border-color: var(--green);
}
/* ── Footer ── */
footer {
border-top: 1px solid var(--border);
padding: 48px 0;
text-align: center;
font-family: var(--font-mono);
font-size: 12px;
color: var(--fg-muted);
}
footer a {
color: var(--fg-dim);
text-decoration: none;
transition: color 0.2s;
}
footer a:hover {
color: var(--green);
}
footer .footer-links {
display: flex;
gap: 24px;
justify-content: center;
flex-wrap: wrap;
margin-bottom: 16px;
}
footer .footer-credit {
font-size: 11px;
color: var(--fg-muted);
}
/* ── Reveal ── */
.reveal {
opacity: 0;
transform: translateY(30px);
transition: opacity 0.6s ease, transform 0.6s ease;
}
.reveal.visible {
opacity: 1;
transform: translateY(0);
}
.reveal-d1 { transition-delay: 0.08s; }
.reveal-d2 { transition-delay: 0.16s; }
.reveal-d3 { transition-delay: 0.24s; }
.reveal-d4 { transition-delay: 0.32s; }
.reveal-d5 { transition-delay: 0.40s; }
.reveal-d6 { transition-delay: 0.48s; }
.reveal-d7 { transition-delay: 0.56s; }
.reveal-d8 { transition-delay: 0.64s; }
/* ── Responsive ── */
@media (max-width: 768px) {
section { padding: 60px 0; }
.hero { padding: 100px 0 60px; min-height: auto; }
.hero h1 { font-size: 32px; }
.term-body { font-size: 11px; padding: 16px; }
.arch-flow { flex-direction: column; gap: 6px; }
.arch-arrow { transform: rotate(90deg); }
.features-grid { grid-template-columns: 1fr; }
.pain-table th, .pain-table td { padding: 12px 14px; font-size: 12px; }
.pain-table th:first-child { width: auto; }
.pain-table { font-size: 11px; }
.tools-grid { grid-template-columns: repeat(auto-fill, minmax(140px, 1fr)); }
}
/* ── Section alt bg ── */
.bg-alt { background: var(--bg-card); }
/* ── Glow ── */
.glow-green {
text-shadow: 0 0 20px rgba(0, 229, 65, 0.3);
}
</style>
</head>
<body>
<div class="scanlines"></div>
<!-- ═══════════════════ HERO ═══════════════════ -->
<section class="hero">
<div class="grid-bg"></div>
<div class="container">
<div class="hero-badge reveal">
<span class="dot"></span> Go 单二进制 · DeepSeek 原生 · 开源 MIT
</div>
<h1 class="reveal reveal-d1">
<span class="accent glow-green">deepx-code</span><br />
DeepSeek 原生的终端编程 agent
</h1>
<p class="tagline reveal reveal-d2">
单二进制 · 内置代码图谱 · 本地 OCR · 零延迟关键词路由<br />
长会话实测 ~99% 缓存命中,几乎不为重复的上下文付费<span class="cursor"></span>
</p>
<div class="hero-actions reveal reveal-d3">
<a href="#install" class="btn btn-primary">快速安装</a>
<a href="https://github.com/itmisx/deepx-code" class="btn btn-ghost" target="_blank">GitHub →</a>
<a href="#compare" class="btn btn-ghost">为什么选 deepx-code</a>
</div>
<!-- Terminal Mockup -->
<div class="term-wrap reveal reveal-d4">
<div class="term">
<div class="term-bar">
<span class="t-red"></span><span class="t-amber"></span><span class="t-green"></span>
<span class="t-title">deepx — ~/my-project</span>
</div>
<div class="term-body">
<div class="l"><span class="prompt">$</span> <span class="dim">cd ~/my-project</span></div>
<div class="l"><span class="prompt">$</span> deepx</div>
<div class="l">当前模式: <span class="cyan">auto</span>, 模型: <span class="amber">flash</span></div>
<div class="l"> </div>
<div class="l"><span class="white">> Greet 在哪定义、被谁调用?用 codegraph 查</span></div>
<div class="l"> </div>
<div class="l"><span class="green">🧭 CodeGraph</span> <span class="dim">(def Greet)</span></div>
<div class="l"><span class="green">🧭 CodeGraph</span> <span class="dim">(callers Greet)</span></div>
<div class="l"><span class="dim"> 定义: greet.go:6 func Greet(name string) string</span></div>
<div class="l"><span class="dim"> 被调用: main.go:6 ← main</span></div>
<div class="l"> </div>
<div class="l"><span class="white">🐋 简单直接,1 处定义、1 处调用。</span></div>
<div class="l"> </div>
<div class="l"><span class="green">✓ 完成</span> <span class="dim">· 2.4s · 2 次工具调用</span></div>
<div class="l cursor-line"><span class="prompt">$</span></div>
</div>
</div>
</div>
</div>
</section>
<!-- ═══════════════════ PAIN POINTS ═══════════════════ -->
<section class="bg-alt" id="compare">
<div class="grid-bg"></div>
<div class="container">
<span class="section-label reveal">对比</span>
<h2 class="reveal reveal-d1">主流 agent 的痛点,deepx-code 的解法</h2>
<p class="section-sub reveal reveal-d2">
传统方案在上下文恢复、缓存利用、路由延迟上各有妥协。deepx-code 从底层重新设计。
</p>
<table class="pain-table reveal reveal-d3">
<thead>
<tr>
<th>痛点</th>
<th>主流 agent</th>
<th>deepx-code</th>
</tr>
</thead>
<tbody>
<tr>
<td>重启上下文恢复</td>
<td class="vs-old"><span class="vs-badge vs-badge-old">仅纯文本</span>JSONL 只存 user/assistant content,tool_calls、tool results、reasoning_content 全部丢失</td>
<td class="vs-new"><span class="vs-badge vs-badge-new">完整 fidelity</span>gob 二进制持久化,LLM 无缝续接,重启后跟没断过一样</td>
</tr>
<tr>
<td>模型路由延迟 & 成本</td>
<td class="vs-old"><span class="vs-badge vs-badge-old">LLM 分类</span>每次用户输入先调一次 LLM 决定路由,额外消耗 token + 延迟</td>
<td class="vs-new"><span class="vs-badge vs-badge-new">零延迟</span>纯本地关键词匹配 + 长度判定,5 语言覆盖,路由零 token 消耗</td>
</tr>
<tr>
<td>DeepSeek 硬盘缓存</td>
<td class="vs-old"><span class="vs-badge vs-badge-old">频繁 miss</span>tools 数组随模式切换而变,system prompt 版本不一致导致前缀漂移</td>
<td class="vs-new"><span class="vs-badge vs-badge-new">前缀稳定</span>tools 全模式恒定;system prompt 版本感知,gob 恢复时自动替换为当前版本</td>
</tr>
<tr>
<td>复杂任务调度</td>
<td class="vs-old"><span class="vs-badge vs-badge-old">串行等待</span>多步任务步步等待,无法利用并发加速</td>
<td class="vs-new"><span class="vs-badge vs-badge-new">DAG 并发</span>LLM 拆 DAG → deepx 按依赖并行跑子 agent,节点独立选模型</td>
</tr>
<tr>
<td>代码导航 & 理解</td>
<td class="vs-old"><span class="vs-badge vs-badge-old">满仓 grep</span>逐个翻文件、烧 token;Go 隐式接口实现、调用关系、影响面都查不准</td>
<td class="vs-new"><span class="vs-badge vs-badge-new">代码图谱</span>内置 codegraph:符号级 def / callers / implementers / impact,Go 经 go/types 精确</td>
</tr>
<tr>
<td>图片输入</td>
<td class="vs-old"><span class="vs-badge vs-badge-old">依赖云端</span>读图要走云端多模态 API,额外成本,离线不可用</td>
<td class="vs-new"><span class="vs-badge vs-badge-new">本地 OCR</span>粘贴图片 → PaddleOCR 离线识别,不依赖多模态 API</td>
</tr>
<tr>
<td>写操作防护</td>
<td class="vs-old"><span class="vs-badge vs-badge-old">要么全自动,要么全禁</span>无细粒度审核粒度</td>
<td class="vs-new"><span class="vs-badge vs-badge-new">三模式分级</span>review(默认:写/Shell 确认)/ auto(全自动)/ plan(只读)</td>
</tr>
</tbody>
</table>
</div>
</section>
<!-- ═══════════════════ FEATURES ═══════════════════ -->
<section>
<div class="container">
<span class="section-label reveal">核心能力</span>
<h2 class="reveal reveal-d1">七大设计亮点</h2>
<p class="section-sub reveal reveal-d2">
每个特性都在解决一个实际问题,不是堆功能。
</p>
<div class="features-grid">
<div class="feat-card reveal reveal-d1">
<div class="feat-icon">💾</div>
<h3>gob 二进制持久化</h3>
<p>
完整保存 tool_calls、tool results、reasoning_content。重启后 LLM
无缝续接,零计算恢复。同时保留 JSONL 供 Memory 搜索。system prompt
版本感知,build 升级 / skill 变化时自动替换。
</p>
</div>
<div class="feat-card reveal reveal-d2">
<div class="feat-icon">⚡</div>
<h3>双模型零延迟路由</h3>
<p>
flash 接机械单步、pro 处理复杂任务。关键词 + 长度判定,纯本地执行,
覆盖中/英/日/韩。路由不花一分 token,起手就是正确答案。
</p>
</div>
<div class="feat-card reveal reveal-d3">
<div class="feat-icon">🗂️</div>
<h3>顺序 Todo + 并发 Plan DAG</h3>
<p>
多步顺序任务用可见待办清单逐步勾选,进度实时可见;可并行的独立子任务
拆成 DAG,deepx 按依赖并发跑子 agent,每个节点独立选 flash / pro。
</p>
</div>
<div class="feat-card reveal reveal-d4">
<div class="feat-icon">🛡️</div>
<h3>三级模式管理</h3>
<p>
review(默认):Write / Update / Bash 人工确认,其余自动。auto:
全自动。plan:只读。细粒度可控,不因安全牺牲效率。
</p>
</div>
<div class="feat-card reveal reveal-d5">
<div class="feat-icon">📷</div>
<h3>本地离线 OCR</h3>
<p>
粘贴图片或给出路径 → OCR 工具(PaddleOCR PP-OCRv5)识别其中文字。
不依赖多模态 API 也能读图。首次下载 OCR 模型(~37MB)与 ONNX runtime,之后离线秒级。
</p>
</div>
<div class="feat-card reveal reveal-d6">
<div class="feat-icon">🧠</div>
<h3>会话压缩 & KV cache 友好</h3>
<p>
超窗口 70% 自动触发,尾部保留 ~20K token,旧内容 LLM 压缩为连贯摘要。
旧摘要合并而非丢弃。tools 数组全模式恒定,system prompt 版本感知,
DeepSeek 硬盘缓存命中率最大化。
</p>
</div>
<div class="feat-card reveal reveal-d7">
<div class="feat-icon">🧭</div>
<h3>内置代码图谱(codegraph)</h3>
<p>
符号级跳定义 / 找调用 / 接口实现 / 影响面分析。Go 经 go/types 精确解析,
覆盖 16+ 语言。替代满仓库 grep + 逐个翻文件,从根上省 read/glob/grep 的 token。
</p>
</div>
</div>
</div>
</section>
<!-- ═══════════════════ TOOLS ═══════════════════ -->
<section class="bg-alt">
<div class="grid-bg"></div>
<div class="container">
<span class="section-label reveal">工具箱</span>
<h2 class="reveal reveal-d1">一套原生工具,随需调用</h2>
<p class="section-sub reveal reveal-d2">
LLM 自主按需调用,不预注入不占 token。三分级模式控制写操作。
</p>
<div class="tools-grid">
<div class="tool-chip reveal reveal-d1"><span class="chip-icon">📄</span> Read</div>
<div class="tool-chip reveal reveal-d2"><span class="chip-icon">📝</span> Write</div>
<div class="tool-chip reveal reveal-d1"><span class="chip-icon">📝</span> Update</div>
<div class="tool-chip reveal reveal-d2"><span class="chip-icon">📂</span> List</div>
<div class="tool-chip reveal reveal-d1"><span class="chip-icon">🌲</span> Tree</div>
<div class="tool-chip reveal reveal-d2"><span class="chip-icon">🔎</span> Glob</div>
<div class="tool-chip reveal reveal-d1"><span class="chip-icon">🔍</span> Grep</div>
<div class="tool-chip reveal reveal-d2"><span class="chip-icon">🧭</span> CodeGraph</div>
<div class="tool-chip reveal reveal-d1"><span class="chip-icon">🐚</span> Bash</div>
<div class="tool-chip reveal reveal-d1"><span class="chip-icon">🌐</span> Search</div>
<div class="tool-chip reveal reveal-d2"><span class="chip-icon">📡</span> Fetch</div>
<div class="tool-chip reveal reveal-d1"><span class="chip-icon">👀</span> OCR</div>
<div class="tool-chip reveal reveal-d2"><span class="chip-icon">🧠</span> Memory</div>
<div class="tool-chip reveal reveal-d1"><span class="chip-icon">📜</span> LoadSkill</div>
<div class="tool-chip reveal reveal-d2"><span class="chip-icon">🚀</span> SwitchModel</div>
<div class="tool-chip reveal reveal-d1"><span class="chip-icon">📋</span> CreatePlan</div>
<div class="tool-chip reveal reveal-d2"><span class="chip-icon">📌</span> Todo</div>
</div>
</div>
</section>
<!-- ═══════════════════ ARCHITECTURE ═══════════════════ -->
<section>
<div class="grid-bg"></div>
<div class="container">
<span class="section-label reveal">架构</span>
<h2 class="reveal reveal-d1">单轮对话与持久化流程</h2>
<p class="section-sub reveal reveal-d2">
从用户输入到工具执行,每一步都围绕 token 经济和缓存优化设计。
</p>
<div class="arch-flow reveal reveal-d3" style="margin-bottom: 40px;">
<div class="arch-node">
<div class="n-title">用户输入</div>
<div class="n-sub">自然语言 / 图片粘贴</div>
</div>
<span class="arch-arrow">→</span>
<div class="arch-node" style="border-color: rgba(0, 229, 65, 0.3);">
<div class="n-title">Keyword Router</div>
<div class="n-sub">本地零延迟 → flash / pro</div>
</div>
<span class="arch-arrow">→</span>
<div class="arch-node">
<div class="n-title">LLM 工具循环</div>
<div class="n-sub">直接答 / 调工具 / Todo / CreatePlan</div>
</div>
<span class="arch-arrow">→</span>
<div class="arch-node">
<div class="n-title">Review 拦截</div>
<div class="n-sub">Write / Bash 人工确认</div>
</div>
<span class="arch-arrow">→</span>
<div class="arch-node">
<div class="n-title">Executor</div>
<div class="n-sub">并发调度 · 结果回灌</div>
</div>
</div>
<div class="arch-flow reveal reveal-d4" style="gap: 8px;">
<div class="arch-node">
<div class="n-title">HistoryUpdate</div>
<div class="n-sub">SaveGob (完整 fidelity)</div>
</div>
<span class="arch-arrow">→</span>
<div class="arch-node">
<div class="n-title">history.gob</div>
<div class="n-sub">重启恢复 · 零计算</div>
</div>
<span class="arch-arrow" style="color: var(--fg-muted);">│</span>
<div class="arch-node" style="border-color: var(--fg-muted);">
<div class="n-title">StreamDone</div>
<div class="n-sub">Append JSONL (Memory 搜索)</div>
</div>
<span class="arch-arrow" style="color: var(--fg-muted);">→</span>
<div class="arch-node" style="border-color: var(--fg-muted);">
<div class="n-title">YYYY-MM-DD.jsonl</div>
<div class="n-sub">纯文本日志</div>
</div>
</div>
</div>
</section>
<!-- ═══════════════════ INSTALL ═══════════════════ -->
<section class="bg-alt" id="install">
<div class="container">
<span class="section-label reveal">开始使用</span>
<h2 class="reveal reveal-d1">一行命令,即刻安装</h2>
<p class="section-sub reveal reveal-d2">
首次启动弹窗引导填 API key,自动写入 <span class="mono">~/.deepx/model.yaml</span>。
</p>
<div class="install-tabs reveal reveal-d3">
<button class="install-tab active" data-tab="tab-mac">macOS / Linux</button>
<button class="install-tab" data-tab="tab-win">Windows</button>
<button class="install-tab" data-tab="tab-src">从源码构建</button>
</div>
<div class="code-block active reveal reveal-d4" id="tab-mac">
<button class="copy-btn" data-copy="curl -fsSL https://raw.githubusercontent.com/itmisx/deepx-code/main/scripts/install.sh | bash">复制</button>
<span class="c1">curl</span> <span class="c2">-fsSL</span>
<span class="c3">https://raw.githubusercontent.com/itmisx/deepx-code/main/scripts/install.sh</span>
| <span class="c1">bash</span>
</div>
<div class="code-block reveal reveal-d4" id="tab-win">
<button class="copy-btn" data-copy="irm https://raw.githubusercontent.com/itmisx/deepx-code/main/scripts/install.ps1 | iex">复制</button>
<span class="c1">irm</span>
<span class="c3">https://raw.githubusercontent.com/itmisx/deepx-code/main/scripts/install.ps1</span>
| <span class="c1">iex</span>
</div>
<div class="code-block reveal reveal-d4" id="tab-src">
<button class="copy-btn" data-copy="git clone https://github.com/itmisx/deepx-code.git && cd deepx-code && go build .">复制</button>
<span class="c1">git</span> clone <span class="c3">https://github.com/itmisx/deepx-code.git</span><br />
<span class="c1">cd</span> deepx-code<br />
<span class="c1">go</span> build . <span class="comment"># 需要 Go 1.25+</span>
</div>
</div>
</section>
<!-- ═══════════════════ FOOTER ═══════════════════ -->
<footer>
<div class="container">
<div class="footer-links">
<a href="https://github.com/itmisx/deepx-code" target="_blank">GitHub</a>
<a href="https://github.com/itmisx/deepx-code/blob/main/LICENSE" target="_blank">MIT License</a>
<a href="https://github.com/itmisx/deepx-code/releases" target="_blank">Releases</a>
</div>
<p class="footer-credit">
Made with Go · Powered by DeepSeek · OCR by PaddleOCR · TUI by Charm<br />
© 2026 itmisx
</p>
</div>
</footer>
<script>
// ── Tab switching ──
document.querySelectorAll(".install-tab").forEach((tab) => {
tab.addEventListener("click", () => {
document.querySelectorAll(".install-tab").forEach((t) => t.classList.remove("active"));
document.querySelectorAll(".code-block").forEach((b) => b.classList.remove("active"));
tab.classList.add("active");
document.getElementById(tab.dataset.tab).classList.add("active");
});
});
// ── Copy button ──