-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathindex.html
More file actions
805 lines (755 loc) · 34.3 KB
/
index.html
File metadata and controls
805 lines (755 loc) · 34.3 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
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<title>AI Inline Learning - Persistent AI Agent Learning Through Code</title>
<meta name="description" content="A novel pattern for persistent AI agent learning through inline code comments. Reduces repeated AI errors by 60%+ with zero infrastructure. Created by Michael Rawls Jr.">
<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:wght@300;400;500;600;700&family=Outfit:wght@300;400;500;600;700;800;900&display=swap" rel="stylesheet">
<style>
:root {
--bg-primary: #0a0e17;
--bg-secondary: #111827;
--bg-card: #151d2e;
--bg-code: #0c1018;
--accent-green: #22d3a7;
--accent-green-dim: #22d3a715;
--accent-green-mid: #22d3a730;
--accent-blue: #3b82f6;
--accent-blue-dim: #3b82f620;
--accent-orange: #f59e0b;
--accent-orange-dim: #f59e0b20;
--accent-red: #ef4444;
--accent-red-dim: #ef444415;
--accent-purple: #a78bfa;
--text-primary: #e2e8f0;
--text-secondary: #94a3b8;
--text-dim: #64748b;
--border: #1e293b;
--border-light: #293548;
}
* { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
font-family: 'Outfit', sans-serif;
background: var(--bg-primary);
color: var(--text-primary);
line-height: 1.7;
overflow-x: hidden;
}
.bg-grid {
position: fixed; inset: 0; z-index: 0;
background-image:
linear-gradient(rgba(34,211,167,0.02) 1px, transparent 1px),
linear-gradient(90deg, rgba(34,211,167,0.02) 1px, transparent 1px);
background-size: 60px 60px;
mask-image: radial-gradient(ellipse 80% 50% at 50% 0%, black 40%, transparent 100%);
}
.orb { position: fixed; border-radius: 50%; filter: blur(80px); opacity: 0.07; z-index: 0; animation: drift 25s ease-in-out infinite; }
.orb-1 { width: 500px; height: 500px; background: var(--accent-green); top: -150px; right: -100px; }
.orb-2 { width: 350px; height: 350px; background: var(--accent-blue); bottom: -80px; left: -80px; animation-delay: -8s; }
.orb-3 { width: 250px; height: 250px; background: var(--accent-purple); top: 40%; left: 60%; animation-delay: -16s; }
@keyframes drift {
0%, 100% { transform: translate(0,0); }
33% { transform: translate(20px,-15px); }
66% { transform: translate(-15px,10px); }
}
.wrap { position: relative; z-index: 1; }
/* --- NAV --- */
nav {
position: fixed; top: 0; width: 100%; z-index: 100;
padding: 0.9rem 2rem;
backdrop-filter: blur(20px);
background: rgba(10,14,23,0.85);
border-bottom: 1px solid var(--border);
display: flex; align-items: center; justify-content: space-between;
}
nav .logo {
font-family: 'JetBrains Mono', monospace;
font-weight: 700; font-size: 1rem;
color: var(--text-primary); letter-spacing: -0.5px;
}
nav .logo span { color: var(--accent-green); }
nav ul { list-style: none; display: flex; gap: 1.8rem; }
nav ul li a {
color: var(--text-secondary); text-decoration: none;
font-size: 0.85rem; font-weight: 500; transition: color 0.3s;
}
nav ul li a:hover { color: var(--accent-green); }
.nav-cta {
font-family: 'JetBrains Mono', monospace;
font-size: 0.78rem; font-weight: 600;
padding: 0.4rem 1rem; border-radius: 6px;
background: var(--accent-green); color: var(--bg-primary);
text-decoration: none; transition: all 0.3s;
}
.nav-cta:hover { background: #1ab892; transform: translateY(-1px); }
/* --- HERO --- */
.hero {
min-height: 100vh;
display: flex; flex-direction: column; justify-content: center;
padding: 8rem 2rem 4rem;
max-width: 1000px; margin: 0 auto;
}
.hero-badge {
display: inline-block; width: fit-content;
font-family: 'JetBrains Mono', monospace;
font-size: 0.72rem; font-weight: 600;
letter-spacing: 1.5px; text-transform: uppercase;
color: var(--accent-green);
background: var(--accent-green-dim);
border: 1px solid var(--accent-green-mid);
padding: 0.3rem 0.9rem; border-radius: 20px;
margin-bottom: 2rem;
animation: fadeUp 0.6s ease-out;
}
.hero h1 {
font-size: clamp(2.8rem, 6vw, 4.8rem);
font-weight: 900; line-height: 1.05;
letter-spacing: -2.5px;
margin-bottom: 1.5rem;
animation: fadeUp 0.6s ease-out 0.08s both;
}
.hero h1 .dim { color: var(--text-dim); font-weight: 300; }
.hero .subtitle {
font-size: 1.15rem; color: var(--text-secondary);
max-width: 580px; font-weight: 300;
margin-bottom: 2.5rem;
animation: fadeUp 0.6s ease-out 0.16s both;
}
.hero-actions {
display: flex; gap: 0.8rem; flex-wrap: wrap;
animation: fadeUp 0.6s ease-out 0.24s both;
}
.btn {
display: inline-flex; align-items: center; gap: 0.5rem;
padding: 0.7rem 1.4rem; border-radius: 10px;
font-family: 'Outfit', sans-serif;
font-weight: 600; font-size: 0.9rem;
text-decoration: none; transition: all 0.3s; border: none; cursor: pointer;
}
.btn-primary { background: var(--accent-green); color: var(--bg-primary); }
.btn-primary:hover { background: #1ab892; transform: translateY(-2px); box-shadow: 0 4px 20px rgba(34,211,167,0.3); }
.btn-outline { border: 1px solid var(--border); color: var(--text-primary); background: transparent; }
.btn-outline:hover { border-color: var(--accent-green); color: var(--accent-green); }
@keyframes fadeUp {
from { opacity: 0; transform: translateY(18px); }
to { opacity: 1; transform: translateY(0); }
}
/* --- STATS --- */
.stats-bar {
max-width: 1000px; margin: 0 auto;
display: grid; grid-template-columns: repeat(4, 1fr);
border-top: 1px solid var(--border);
border-bottom: 1px solid var(--border);
}
.stat-cell {
padding: 2rem 1.5rem;
text-align: center;
border-right: 1px solid var(--border);
}
.stat-cell:last-child { border-right: none; }
.stat-val {
font-family: 'JetBrains Mono', monospace;
font-size: 2.2rem; font-weight: 700;
color: var(--accent-green);
line-height: 1;
}
.stat-lbl {
font-size: 0.78rem; color: var(--text-dim);
margin-top: 0.4rem; letter-spacing: 0.3px;
}
/* --- SECTIONS --- */
section {
max-width: 1000px; margin: 0 auto;
padding: 5rem 2rem;
}
.section-label {
font-family: 'JetBrains Mono', monospace;
font-size: 0.78rem; color: var(--accent-green);
text-transform: uppercase; letter-spacing: 2px;
margin-bottom: 0.8rem;
}
.section-title {
font-size: clamp(1.8rem, 3.5vw, 2.6rem);
font-weight: 800; letter-spacing: -1px; margin-bottom: 1rem;
}
.section-desc {
color: var(--text-secondary); font-size: 1.05rem;
max-width: 620px; font-weight: 300; margin-bottom: 2.5rem;
}
.divider {
max-width: 1000px; margin: 0 auto;
height: 1px;
background: linear-gradient(90deg, transparent, var(--border), transparent);
}
/* --- CODE COMPARISON --- */
.compare-grid {
display: grid; grid-template-columns: 1fr 1fr;
gap: 1rem; margin: 2rem 0;
}
.compare-panel {
background: var(--bg-code);
border: 1px solid var(--border);
border-radius: 12px; overflow: hidden;
}
.compare-label {
padding: 0.7rem 1.2rem;
font-family: 'JetBrains Mono', monospace;
font-size: 0.7rem; font-weight: 700;
letter-spacing: 1px; text-transform: uppercase;
}
.compare-label.bad {
background: var(--accent-red-dim);
border-bottom: 1px solid rgba(239,68,68,0.15);
color: var(--accent-red);
}
.compare-label.good {
background: var(--accent-green-dim);
border-bottom: 1px solid rgba(34,211,167,0.15);
color: var(--accent-green);
}
.compare-code {
padding: 1.2rem 1.4rem;
font-family: 'JetBrains Mono', monospace;
font-size: 0.78rem; line-height: 1.7;
overflow-x: auto;
}
.c-cmt { color: #6b7a8d; }
.c-warn { color: var(--accent-orange); }
.c-kw { color: #f472b6; }
.c-str { color: #7dd3fc; }
.c-fn { color: #c4b5fd; }
.c-grn { color: var(--accent-green); }
/* --- PATTERN FORMAT BLOCK --- */
.pattern-block {
background: var(--bg-code);
border: 1px solid var(--border);
border-left: 3px solid var(--accent-green);
border-radius: 0 12px 12px 0;
padding: 1.8rem 2rem;
margin: 2rem 0;
}
.pattern-block .code-content {
font-family: 'JetBrains Mono', monospace;
font-size: 0.82rem; line-height: 2;
}
.pattern-block .tag { color: var(--accent-orange); font-weight: 600; }
.pattern-block .desc { color: var(--text-dim); }
/* --- DIRECTION SHIFT --- */
.direction-grid {
display: grid; grid-template-columns: 1fr auto 1fr;
gap: 1.5rem; align-items: center;
margin: 2.5rem 0;
}
.direction-box {
background: var(--bg-card);
border: 1px solid var(--border);
border-radius: 12px; padding: 2rem;
text-align: center;
}
.direction-box .dir-label {
font-family: 'JetBrains Mono', monospace;
font-size: 0.7rem; font-weight: 600;
color: var(--text-dim); letter-spacing: 1.5px;
text-transform: uppercase; margin-bottom: 1rem;
}
.direction-box .dir-flow {
font-size: 1.1rem; font-weight: 600;
line-height: 1.8;
}
.direction-box .dir-flow .hl { color: var(--accent-green); }
.direction-box .dir-flow .dm { color: var(--text-dim); }
.direction-arrow {
font-family: 'JetBrains Mono', monospace;
font-size: 1.5rem; color: var(--text-dim);
}
.direction-box.active { border-color: var(--accent-green-mid); }
/* --- FEATURE CARDS --- */
.feature-grid {
display: grid; grid-template-columns: 1fr 1fr;
gap: 1rem; margin: 2rem 0;
}
.feature-card {
background: var(--bg-card);
border: 1px solid var(--border);
border-radius: 14px; padding: 1.8rem;
transition: all 0.3s;
}
.feature-card:hover {
border-color: var(--accent-green-mid);
transform: translateY(-3px);
box-shadow: 0 6px 30px rgba(0,0,0,0.25);
}
.feature-icon {
width: 36px; height: 36px; border-radius: 8px;
display: flex; align-items: center; justify-content: center;
font-family: 'JetBrains Mono', monospace;
font-weight: 700; font-size: 0.75rem;
margin-bottom: 1rem;
}
.fi-green { background: linear-gradient(135deg, #134e3a, #0a2a20); color: var(--accent-green); }
.fi-blue { background: linear-gradient(135deg, #1e3a5f, #0d1b2a); color: var(--accent-blue); }
.fi-orange { background: linear-gradient(135deg, #3a2a1e, #1b140d); color: var(--accent-orange); }
.fi-purple { background: linear-gradient(135deg, #2a1e3a, #140d1b); color: var(--accent-purple); }
.feature-card h3 {
font-size: 1rem; font-weight: 700;
letter-spacing: -0.3px; margin-bottom: 0.4rem;
}
.feature-card p {
color: var(--text-secondary); font-size: 0.88rem;
font-weight: 300; line-height: 1.6;
}
/* --- STEPS --- */
.steps { margin: 2rem 0; }
.step-row {
display: flex; gap: 1.5rem; align-items: flex-start;
margin-bottom: 2rem;
}
.step-num {
flex-shrink: 0;
width: 40px; height: 40px;
border-radius: 10px;
display: flex; align-items: center; justify-content: center;
font-family: 'JetBrains Mono', monospace;
font-weight: 700; font-size: 0.9rem;
background: var(--accent-green-dim);
border: 1px solid var(--accent-green-mid);
color: var(--accent-green);
}
.step-body h3 {
font-size: 1.05rem; font-weight: 700;
margin-bottom: 0.3rem; letter-spacing: -0.3px;
}
.step-body p {
color: var(--text-secondary); font-size: 0.9rem; font-weight: 300;
}
/* --- RESEARCH GRID --- */
.research-grid {
display: grid; grid-template-columns: 1fr 1fr;
gap: 1rem; margin: 2rem 0;
}
.research-card {
background: var(--bg-card);
border: 1px solid var(--border);
border-radius: 12px; padding: 1.5rem;
}
.research-card .rc-name {
font-family: 'JetBrains Mono', monospace;
font-size: 0.85rem; font-weight: 600;
color: var(--accent-blue); margin-bottom: 0.3rem;
}
.research-card .rc-year {
font-size: 0.72rem; color: var(--text-dim); margin-bottom: 0.6rem;
}
.research-card .rc-desc {
font-size: 0.85rem; color: var(--text-secondary);
font-weight: 300; margin-bottom: 0.5rem;
}
.research-card .rc-diff {
font-family: 'JetBrains Mono', monospace;
font-size: 0.72rem; color: var(--accent-green);
padding: 0.25rem 0.6rem; border-radius: 4px;
background: var(--accent-green-dim);
border: 1px solid var(--accent-green-mid);
display: inline-block;
}
/* --- RESOURCE LINKS --- */
.resource-grid {
display: grid; grid-template-columns: repeat(3, 1fr);
gap: 0.8rem; margin: 2rem 0;
}
.resource-link {
display: flex; align-items: center; gap: 0.8rem;
background: var(--bg-card);
border: 1px solid var(--border);
border-radius: 10px; padding: 1rem 1.2rem;
text-decoration: none; color: var(--text-primary);
font-size: 0.9rem; font-weight: 500;
transition: all 0.3s;
}
.resource-link:hover {
border-color: var(--accent-green-mid);
transform: translateY(-2px);
}
.resource-link .r-icon {
width: 32px; height: 32px; border-radius: 8px;
display: flex; align-items: center; justify-content: center;
font-family: 'JetBrains Mono', monospace;
font-size: 0.7rem; font-weight: 700;
background: var(--bg-secondary); border: 1px solid var(--border);
color: var(--text-dim);
}
/* --- ABOUT --- */
.about-row {
display: grid; grid-template-columns: 1fr 1fr;
gap: 2.5rem; align-items: start;
margin: 2rem 0;
}
.about-text p {
color: var(--text-secondary); font-size: 0.95rem;
font-weight: 300; margin-bottom: 1rem; line-height: 1.8;
}
.about-links {
display: flex; gap: 0.8rem; margin-top: 1.5rem; flex-wrap: wrap;
}
.about-details {
display: grid; grid-template-columns: 1fr 1fr;
gap: 0.7rem;
}
.detail-card {
background: var(--bg-card);
border: 1px solid var(--border);
border-radius: 10px; padding: 1rem;
}
.detail-card .d-label {
font-family: 'JetBrains Mono', monospace;
font-size: 0.6rem; color: var(--text-dim);
text-transform: uppercase; letter-spacing: 1.5px;
margin-bottom: 0.2rem;
}
.detail-card .d-value { font-size: 0.9rem; font-weight: 600; }
.detail-card .d-sub { color: var(--text-dim); font-size: 0.75rem; margin-top: 0.1rem; }
/* --- FOOTER --- */
footer {
max-width: 1000px; margin: 0 auto;
padding: 2.5rem 2rem;
border-top: 1px solid var(--border);
display: flex; justify-content: space-between; align-items: center;
color: var(--text-dim); font-size: 0.82rem;
}
footer a { color: var(--text-secondary); text-decoration: none; transition: color 0.3s; }
footer a:hover { color: var(--accent-green); }
/* --- RESPONSIVE --- */
@media (max-width: 768px) {
nav ul { display: none; }
.stats-bar { grid-template-columns: 1fr 1fr; }
.stat-cell { border-right: none; border-bottom: 1px solid var(--border); }
.compare-grid, .feature-grid, .research-grid, .about-row { grid-template-columns: 1fr; }
.resource-grid { grid-template-columns: 1fr; }
.direction-grid { grid-template-columns: 1fr; }
.direction-arrow { transform: rotate(90deg); text-align: center; }
.about-details { grid-template-columns: 1fr; }
footer { flex-direction: column; gap: 0.5rem; text-align: center; }
}
</style>
</head>
<body>
<div class="bg-grid"></div>
<div class="orb orb-1"></div>
<div class="orb orb-2"></div>
<div class="orb orb-3"></div>
<div class="wrap">
<!-- NAV -->
<nav>
<div class="logo"><span>AI</span> Inline Learning</div>
<ul>
<li><a href="#problem">Problem</a></li>
<li><a href="#pattern">Pattern</a></li>
<li><a href="#research">Research</a></li>
<li><a href="#quickstart">Quick Start</a></li>
<li><a href="#about">About</a></li>
</ul>
<a href="https://github.com/MRJR0101/AI-Inline-Learning" class="nav-cta">GitHub</a>
</nav>
<!-- HERO -->
<div class="hero">
<div class="hero-badge">Open Source Innovation</div>
<h1>
Teach AI agents<br>
<span class="dim">through the code itself.</span>
</h1>
<p class="subtitle">
A novel pattern for persistent AI learning using inline code comments.
No databases. No APIs. No infrastructure. The codebase becomes the memory.
</p>
<div class="hero-actions">
<a href="https://github.com/MRJR0101/AI-Inline-Learning" class="btn btn-primary">View Repository</a>
<a href="#quickstart" class="btn btn-outline">Quick Start</a>
</div>
</div>
<!-- STATS -->
<div class="stats-bar">
<div class="stat-cell">
<div class="stat-val">60%+</div>
<div class="stat-lbl">Error reduction</div>
</div>
<div class="stat-cell">
<div class="stat-val">30+</div>
<div class="stat-lbl">Papers researched</div>
</div>
<div class="stat-cell">
<div class="stat-val">0</div>
<div class="stat-lbl">Infrastructure needed</div>
</div>
<div class="stat-cell">
<div class="stat-val">56+</div>
<div class="stat-lbl">Projects using pattern</div>
</div>
</div>
<!-- PROBLEM -->
<section id="problem">
<div class="section-label">// The Problem</div>
<h2 class="section-title">AI assistants forget everything between sessions.</h2>
<p class="section-desc">
Claude, ChatGPT, and Copilot make the same mistakes repeatedly. Every new
session starts from zero. Traditional solutions require external memory databases,
complex protocols, and significant infrastructure. There had to be a simpler way.
</p>
<div class="compare-grid">
<div class="compare-panel">
<div class="compare-label bad">Before -- Same mistake, every session</div>
<div class="compare-code">
<span class="c-cmt"># Generate output file</span><br>
output = <span class="c-str">"report->summary[OK].txt"</span><br>
<span class="c-kw">with</span> <span class="c-fn">open</span>(output, <span class="c-str">'w'</span>) <span class="c-kw">as</span> f:<br>
f.<span class="c-fn">write</span>(data)<br>
<br>
<span class="c-cmt"># ERROR: UnicodeEncodeError</span><br>
<span class="c-cmt"># AI used special chars in filename.</span><br>
<span class="c-cmt"># Again. Third time today.</span>
</div>
</div>
<div class="compare-panel">
<div class="compare-label good">After -- AI reads warning, avoids mistake</div>
<div class="compare-code">
<span class="c-warn"># HEY CLAUDE: Unicode disaster!</span><br>
<span class="c-warn"># MISTAKE: Special chars in filename</span><br>
<span class="c-warn"># LESSON: Windows breaks on Unicode paths</span><br>
<span class="c-warn"># RULE: ASCII-only filenames. Always.</span><br>
output = <span class="c-str">"report-summary-OK.txt"</span><br>
<span class="c-kw">with</span> <span class="c-fn">open</span>(output, <span class="c-str">'w'</span>) <span class="c-kw">as</span> f:<br>
f.<span class="c-fn">write</span>(data)<br>
<span class="c-cmt"># Works every time.</span>
</div>
</div>
</div>
</section>
<div class="divider"></div>
<!-- PATTERN -->
<section id="pattern">
<div class="section-label">// The Pattern</div>
<h2 class="section-title">Four lines. Any language. Instant results.</h2>
<p class="section-desc">
Every inline learning comment follows the same structure. Place it at the exact
line where the mistake would occur -- not in a README, not in a log file.
</p>
<div class="pattern-block">
<div class="code-content">
<span class="tag"># HEY [AI_NAME]:</span> <span class="desc">Attention grabber -- make it memorable</span><br>
<span class="tag"># MISTAKE:</span> <span class="desc">Specific error that occurred, with date</span><br>
<span class="tag"># LESSON:</span> <span class="desc">Root cause -- why it happened</span><br>
<span class="tag"># RULE:</span> <span class="desc">Actionable directive -- exactly what to do instead</span><br>
<span class="tag"># CONTEXT:</span> <span class="desc">Optional -- when or where this applies</span>
</div>
</div>
<!-- Direction reversal -->
<div class="direction-grid">
<div class="direction-box">
<div class="dir-label">Traditional Approach</div>
<div class="dir-flow">
<span class="dm">Human writes comments</span><br>
<span class="dm">AI reads comments</span><br>
<span class="dm">AI generates code</span>
</div>
</div>
<div class="direction-arrow">-></div>
<div class="direction-box active">
<div class="dir-label">AI Inline Learning</div>
<div class="dir-flow">
<span class="hl">AI makes mistake</span><br>
<span class="hl">AI writes warning inline</span><br>
<span class="hl">Future AI reads + avoids</span>
</div>
</div>
</div>
<p style="color: var(--text-dim); font-size: 0.9rem; text-align: center; font-weight: 300;">
The direction reversed. AI is not just consuming comments -- it is writing them to teach future sessions.
</p>
</section>
<div class="divider"></div>
<!-- WHY IT WORKS -->
<section>
<div class="section-label">// Why It Works</div>
<h2 class="section-title">Simple beats complex. Every time.</h2>
<p class="section-desc">
REST replaced SOAP. Markdown won over LaTeX. Git dominated centralized VCS.
The simplest viable solution tends to win.
</p>
<div class="feature-grid">
<div class="feature-card">
<div class="feature-icon fi-green">CP</div>
<h3>Contextual Placement</h3>
<p>Warning lives at the exact decision point. The AI reads surrounding code naturally and cannot miss the lesson.</p>
</div>
<div class="feature-card">
<div class="feature-icon fi-blue">A2A</div>
<h3>Agent-to-Agent Learning</h3>
<p>One AI session writes the warning. Every future session -- Claude, ChatGPT, Copilot -- reads and learns from it automatically.</p>
</div>
<div class="feature-card">
<div class="feature-icon fi-orange">ZI</div>
<h3>Zero Infrastructure</h3>
<p>No database. No API. No external memory system. The codebase is the memory. Copy the file and the knowledge travels with it.</p>
</div>
<div class="feature-card">
<div class="feature-icon fi-purple">HR</div>
<h3>Human Readable</h3>
<p>Developers benefit too. Inline warnings document real failures at the exact location where they matter most.</p>
</div>
</div>
</section>
<div class="divider"></div>
<!-- RESEARCH -->
<section id="research">
<div class="section-label">// Research Validation</div>
<h2 class="section-title">Validated against 30+ academic papers.</h2>
<p class="section-desc">
Before publishing, we reviewed existing approaches to AI agent memory and learning.
Sophisticated systems exist. None use inline code comments as the primary mechanism.
</p>
<div class="research-grid">
<div class="research-card">
<div class="rc-name">Spark Framework</div>
<div class="rc-year">November 2024</div>
<div class="rc-desc">Self-adaptive LLM agents with external experience memory. Proven to improve code quality through experiential traces.</div>
<div class="rc-diff">Requires infrastructure</div>
</div>
<div class="research-card">
<div class="rc-name">MemGPT</div>
<div class="rc-year">October 2023</div>
<div class="rc-desc">Virtual context management modeled after operating system memory paging. Extends effective context length.</div>
<div class="rc-diff">Complex overhead</div>
</div>
<div class="research-card">
<div class="rc-name">USC SKILL System</div>
<div class="rc-year">May 2023</div>
<div class="rc-desc">AI agents share learned task capabilities across a network. Knowledge transfer through structured task representations.</div>
<div class="rc-diff">Shares tasks, not failure points</div>
</div>
<div class="research-card">
<div class="rc-name">Google A2A Protocol</div>
<div class="rc-year">2024</div>
<div class="rc-desc">Standardized agent-to-agent communication protocol for runtime coordination between AI systems.</div>
<div class="rc-diff">Runtime only, not persistent</div>
</div>
</div>
<p style="color: var(--text-secondary); font-size: 0.92rem; font-weight: 300; margin-top: 1rem;">
AI Inline Learning fills a gap none of these address: persistent, zero-infrastructure
learning embedded directly in source code at exact decision points.
</p>
</section>
<div class="divider"></div>
<!-- QUICK START -->
<section id="quickstart">
<div class="section-label">// Quick Start</div>
<h2 class="section-title">Up and running in three steps.</h2>
<p class="section-desc">No install. No config. Works with any AI assistant on any codebase.</p>
<div class="steps">
<div class="step-row">
<div class="step-num">1</div>
<div class="step-body">
<h3>Let your AI make a mistake</h3>
<p>When your AI assistant makes the same error twice, that is your trigger. Do not just fix it and move on.</p>
</div>
</div>
<div class="step-row">
<div class="step-num">2</div>
<div class="step-body">
<h3>Have it document the lesson inline</h3>
<p>Tell your AI: "Add an inline learning comment at the line where you made that mistake." It writes the HEY / MISTAKE / LESSON / RULE block and places it at the exact failure point.</p>
</div>
</div>
<div class="step-row">
<div class="step-num">3</div>
<div class="step-body">
<h3>Watch the error disappear</h3>
<p>Start a new session. Open the same file. The AI reads the warning and avoids the mistake without any prompting. The code taught it.</p>
</div>
</div>
</div>
</section>
<div class="divider"></div>
<!-- RESOURCES -->
<section>
<div class="section-label">// Resources</div>
<h2 class="section-title">Everything you need.</h2>
<div class="resource-grid">
<a href="https://github.com/MRJR0101/AI-Inline-Learning/tree/main/examples" class="resource-link">
<div class="r-icon">EX</div> Examples
</a>
<a href="https://github.com/MRJR0101/AI-Inline-Learning/tree/main/patterns" class="resource-link">
<div class="r-icon">PT</div> Pattern Library
</a>
<a href="https://github.com/MRJR0101/AI-Inline-Learning/tree/main/templates" class="resource-link">
<div class="r-icon">TM</div> Templates
</a>
<a href="https://github.com/MRJR0101/AI-Inline-Learning/blob/main/docs/METHODOLOGY.md" class="resource-link">
<div class="r-icon">MT</div> Methodology
</a>
<a href="https://github.com/MRJR0101/AI-Inline-Learning/blob/main/docs/RESEARCH.md" class="resource-link">
<div class="r-icon">RS</div> Research
</a>
<a href="https://github.com/MRJR0101/AI-Inline-Learning/blob/main/CONTRIBUTING.md" class="resource-link">
<div class="r-icon">CO</div> Contribute
</a>
</div>
</section>
<div class="divider"></div>
<!-- ABOUT -->
<section id="about">
<div class="section-label">// Origin</div>
<h2 class="section-title">Born from frustration, not research.</h2>
<div class="about-row">
<div class="about-text">
<p>
This pattern was not planned. In December 2024, after watching an AI make the
same Unicode encoding mistake three times in a single afternoon, the fix became
obvious: put the warning where the mistake happened.
</p>
<p>
After validating against 30+ academic papers on AI memory systems and confirming
no prior art existed for inline comments as the primary learning mechanism, the
pattern was published openly. The code is MIT licensed -- free to use, share,
and build on.
</p>
<div class="about-links">
<a href="https://github.com/MRJR0101" class="btn btn-primary">GitHub</a>
<a href="https://www.linkedin.com/in/michael-rawls-jr" class="btn btn-outline">LinkedIn</a>
<a href="https://mrjr0101.github.io" class="btn btn-outline">Portfolio</a>
</div>
</div>
<div class="about-details">
<div class="detail-card">
<div class="d-label">Creator</div>
<div class="d-value">Michael Rawls, Jr.</div>
<div class="d-sub">Python Developer</div>
</div>
<div class="detail-card">
<div class="d-label">Location</div>
<div class="d-value">Houston, TX</div>
<div class="d-sub">Open to remote</div>
</div>
<div class="detail-card">
<div class="d-label">Education</div>
<div class="d-value">A.A.S. Cybersecurity</div>
<div class="d-sub">Alvin Community College</div>
</div>
<div class="detail-card">
<div class="d-label">Certifications</div>
<div class="d-value">CompTIA A+ & N+</div>
<div class="d-sub">Industry recognized</div>
</div>
</div>
</div>
</section>
<!-- FOOTER -->
<footer>
<span>Discovered December 2024 by Michael Rawls Jr. MIT License.</span>
<a href="https://mrjr0101.github.io">mrjr0101.github.io</a>
</footer>
</div>
</body>
</html>