-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathmemory-viewer.html
More file actions
1226 lines (1090 loc) · 46.2 KB
/
memory-viewer.html
File metadata and controls
1226 lines (1090 loc) · 46.2 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="en">
<head>
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<title>AI Memory Viewer — Visualize Your AI Assistant's Memory Files</title>
<meta name="description" content="Paste your AI assistant's SOUL.md, MEMORY.md, or IDENTITY.md and see it beautifully visualized. Works with WorkBuddy, OpenClaw, QClaw, and all Claw-ecosystem platforms. Free, browser-only.">
<meta name="keywords" content="AI memory viewer, SOUL.md, MEMORY.md, WorkBuddy, OpenClaw, QClaw, Claw ecosystem, AI context visualization">
<meta name="author" content="Clavis">
<meta name="robots" content="index, follow">
<meta property="og:type" content="website">
<meta property="og:title" content="AI Memory Viewer — Visualize Your AI Memory Files">
<meta property="og:description" content="Paste your SOUL.md, MEMORY.md or daily logs and see your AI's identity and memory beautifully visualized. Free, no signup.">
<meta property="og:url" content="https://citriac.github.io/memory-viewer.html">
<meta property="og:site_name" content="Clavis Tools">
<meta name="twitter:card" content="summary_large_image">
<meta name="twitter:title" content="AI Memory Viewer">
<meta name="twitter:description" content="Visualize your AI assistant's memory files (SOUL.md, MEMORY.md, IDENTITY.md) in a beautiful UI. Free, browser-only.">
<meta name="twitter:creator" content="@Clavis_Citriac">
<link rel="canonical" href="https://citriac.github.io/memory-viewer.html">
<link rel="icon" href="/favicon.png" type="image/png">
<script type="application/ld+json">
{
"@context": "https://schema.org",
"@type": "SoftwareApplication",
"name": "AI Memory Viewer",
"description": "Paste your AI assistant's memory files and visualize them beautifully. Supports WorkBuddy, OpenClaw, QClaw, and all Claw-ecosystem platforms.",
"url": "https://citriac.github.io/memory-viewer.html",
"applicationCategory": "DeveloperApplication",
"operatingSystem": "Any (browser-based)",
"offers": { "@type": "Offer", "price": "0", "priceCurrency": "USD" },
"author": { "@type": "Person", "name": "Clavis", "url": "https://citriac.github.io" }
}
</script>
<style>
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
:root {
--bg: #0d1117;
--bg2: #161b22;
--bg3: #21262d;
--border: #30363d;
--text: #e6edf3;
--text2: #8b949e;
--text3: #484f58;
--blue: #58a6ff;
--green: #3fb950;
--orange: #f0883e;
--purple: #bc8cff;
--teal: #39d0d8;
--pink: #f778ba;
--yellow: #e3b341;
--radius: 10px;
}
body {
background: var(--bg);
color: var(--text);
font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Helvetica, Arial, sans-serif;
font-size: 15px;
line-height: 1.6;
min-height: 100vh;
}
a { color: var(--blue); text-decoration: none; }
a:hover { text-decoration: underline; }
/* ── Header ── */
.header {
background: var(--bg2);
border-bottom: 1px solid var(--border);
padding: 14px 24px;
display: flex;
align-items: center;
justify-content: space-between;
position: sticky; top: 0; z-index: 100;
gap: 16px;
}
.logo {
font-size: 18px; font-weight: 700;
display: flex; align-items: center; gap: 8px;
color: var(--text);
text-decoration: none !important;
white-space: nowrap;
}
.nav { display: flex; gap: 18px; font-size: 13px; flex-wrap: wrap; }
.nav a { color: var(--text2); }
.nav a:hover { color: var(--text); text-decoration: none; }
/* ── Hero ── */
.hero {
padding: 60px 24px 48px;
text-align: center;
background: radial-gradient(ellipse 80% 60% at 50% -10%, rgba(188,140,255,.07), transparent);
border-bottom: 1px solid var(--border);
}
.hero-badge {
display: inline-flex; align-items: center; gap: 6px;
font-size: 12px; font-weight: 600; color: var(--purple);
letter-spacing: .08em; text-transform: uppercase;
padding: 4px 14px;
border: 1px solid rgba(188,140,255,.25);
border-radius: 20px;
background: rgba(188,140,255,.06);
margin-bottom: 20px;
}
.hero h1 {
font-size: clamp(28px, 5vw, 48px);
font-weight: 800;
letter-spacing: -.02em;
margin-bottom: 14px;
line-height: 1.15;
}
.hero h1 .accent { color: var(--purple); }
.hero p {
font-size: 17px;
color: var(--text2);
max-width: 540px;
margin: 0 auto 28px;
}
.platform-tags {
display: flex; gap: 8px; justify-content: center; flex-wrap: wrap;
margin-bottom: 28px;
}
.ptag {
font-size: 11px; font-weight: 600;
padding: 3px 10px;
border-radius: 4px;
border: 1px solid var(--border);
color: var(--text3);
background: var(--bg2);
}
/* ── Main layout ── */
.main {
max-width: 1200px;
margin: 0 auto;
padding: 40px 24px 80px;
}
/* ── Tabs ── */
.tabs-header {
display: flex;
gap: 0;
border-bottom: 1px solid var(--border);
margin-bottom: 24px;
overflow-x: auto;
}
.tab-btn {
padding: 10px 20px;
font-size: 13px; font-weight: 600;
color: var(--text2);
background: transparent; border: none;
cursor: pointer;
border-bottom: 2px solid transparent;
transition: all .15s;
white-space: nowrap;
}
.tab-btn:hover { color: var(--text); }
.tab-btn.active { color: var(--purple); border-bottom-color: var(--purple); }
/* ── Input section ── */
.input-section { display: none; }
.input-section.active { display: block; }
.file-slots {
display: grid;
grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
gap: 16px;
margin-bottom: 24px;
}
.file-slot {
background: var(--bg2);
border: 1px solid var(--border);
border-radius: var(--radius);
overflow: hidden;
transition: border-color .15s;
}
.file-slot:focus-within { border-color: var(--purple); }
.file-slot-header {
background: var(--bg3);
padding: 10px 14px;
display: flex; align-items: center; gap: 8px;
border-bottom: 1px solid var(--border);
}
.file-slot-icon { font-size: 16px; }
.file-slot-label { font-size: 13px; font-weight: 600; color: var(--text); }
.file-slot-platform { font-size: 11px; color: var(--text3); margin-left: auto; }
.file-slot textarea {
width: 100%; min-height: 160px;
background: transparent; border: none;
color: var(--text2); font-size: 12px;
font-family: 'SF Mono', 'Fira Code', 'Consolas', monospace;
padding: 12px 14px;
resize: vertical; outline: none;
line-height: 1.5;
}
.file-slot textarea::placeholder { color: var(--text3); }
.or-divider {
text-align: center;
color: var(--text3);
font-size: 13px;
margin: 8px 0;
}
.paste-area {
background: var(--bg2);
border: 2px dashed var(--border);
border-radius: var(--radius);
padding: 32px;
text-align: center;
cursor: pointer;
transition: all .15s;
margin-bottom: 24px;
}
.paste-area:hover, .paste-area.dragover {
border-color: var(--purple);
background: rgba(188,140,255,.04);
}
.paste-area p { color: var(--text2); font-size: 14px; }
.paste-area .paste-hint { font-size: 12px; color: var(--text3); margin-top: 6px; }
.action-bar {
display: flex; gap: 12px; justify-content: center; flex-wrap: wrap;
margin-bottom: 32px;
}
.btn {
display: inline-flex; align-items: center; gap: 8px;
padding: 10px 22px; border-radius: 8px;
font-size: 14px; font-weight: 600;
cursor: pointer; border: none; transition: all .15s;
text-decoration: none !important;
}
.btn-purple { background: var(--purple); color: #0d1117; }
.btn-purple:hover { background: #d4a9ff; }
.btn-outline {
background: transparent;
border: 1px solid var(--border);
color: var(--text2);
}
.btn-outline:hover { border-color: var(--purple); color: var(--text); background: var(--bg3); }
.btn-ghost {
background: transparent;
border: 1px solid rgba(188,140,255,.3);
color: var(--purple);
}
.btn-ghost:hover { background: rgba(188,140,255,.08); }
/* ── Output ── */
.output-section { display: none; }
.output-section.visible { display: block; }
.output-header {
display: flex; align-items: center; justify-content: space-between;
margin-bottom: 24px; gap: 16px; flex-wrap: wrap;
}
.output-title { font-size: 20px; font-weight: 700; }
.output-actions { display: flex; gap: 10px; }
/* ── Memory Cards ── */
.memory-grid {
display: grid;
grid-template-columns: repeat(auto-fill, minmax(340px, 1fr));
gap: 20px;
margin-bottom: 32px;
}
.memory-card {
background: var(--bg2);
border: 1px solid var(--border);
border-radius: var(--radius);
overflow: hidden;
transition: border-color .15s;
}
.memory-card:hover { border-color: var(--card-color, var(--purple)); }
.mc-header {
padding: 14px 18px;
border-bottom: 1px solid var(--border);
display: flex; align-items: center; gap: 10px;
background: var(--bg3);
}
.mc-icon { font-size: 20px; }
.mc-title { font-size: 14px; font-weight: 700; }
.mc-type {
font-size: 10px; font-weight: 700; letter-spacing: .08em;
text-transform: uppercase; padding: 2px 8px;
border-radius: 4px; margin-left: auto;
}
.mc-body { padding: 16px 18px; }
/* Soul sections */
.soul-section { margin-bottom: 16px; }
.soul-section:last-child { margin-bottom: 0; }
.soul-section h3 {
font-size: 12px; font-weight: 700; letter-spacing: .08em;
text-transform: uppercase; color: var(--text3);
margin-bottom: 8px;
}
.soul-text { font-size: 13px; color: var(--text2); line-height: 1.6; }
.soul-bullet {
font-size: 13px; color: var(--text2);
padding: 3px 0;
display: flex; align-items: flex-start; gap: 8px;
}
.soul-bullet::before { content: "·"; color: var(--card-color, var(--purple)); font-weight: 700; flex-shrink: 0; }
/* Memory sections */
.mem-section { margin-bottom: 18px; }
.mem-section:last-child { margin-bottom: 0; }
.mem-section-title {
font-size: 13px; font-weight: 700;
color: var(--text);
padding-bottom: 6px;
border-bottom: 1px solid var(--border);
margin-bottom: 10px;
display: flex; align-items: center; gap: 6px;
}
.mem-section-title .dot {
width: 6px; height: 6px; border-radius: 50%;
background: var(--card-color, var(--purple));
flex-shrink: 0;
}
.mem-item {
font-size: 13px; color: var(--text2);
padding: 4px 0;
border-bottom: 1px solid rgba(48,54,61,.5);
display: flex; gap: 8px;
}
.mem-item:last-child { border-bottom: none; }
.mem-key { color: var(--text); font-weight: 600; white-space: nowrap; }
.mem-val { color: var(--text2); }
/* Daily log */
.daily-log { font-size: 12px; color: var(--text2); font-family: 'SF Mono','Fira Code','Consolas',monospace; line-height: 1.7; }
.daily-entry { padding: 3px 0; }
.daily-h2 { color: var(--card-color, var(--purple)); font-weight: 700; margin-top: 8px; }
.daily-h3 { color: var(--text); font-weight: 600; margin-top: 6px; }
/* Identity card */
.identity-field {
display: flex; gap: 10px;
padding: 7px 0;
border-bottom: 1px solid rgba(48,54,61,.4);
font-size: 13px;
}
.identity-field:last-child { border-bottom: none; }
.id-label { color: var(--text3); width: 80px; flex-shrink: 0; font-size: 12px; }
.id-value { color: var(--text); font-weight: 500; }
/* Stats row */
.stats-row {
display: flex; gap: 20px; flex-wrap: wrap;
margin-bottom: 28px;
}
.stat-chip {
background: var(--bg2);
border: 1px solid var(--border);
border-radius: 8px;
padding: 14px 20px;
display: flex; align-items: center; gap: 12px;
}
.stat-chip .sc-icon { font-size: 22px; }
.stat-chip .sc-val { font-size: 20px; font-weight: 800; color: var(--text); line-height: 1; }
.stat-chip .sc-label { font-size: 11px; color: var(--text3); }
/* Tag cloud */
.tag-cloud { display: flex; flex-wrap: wrap; gap: 6px; }
.tag {
font-size: 11px; font-weight: 600;
padding: 3px 10px; border-radius: 20px;
border: 1px solid var(--border);
color: var(--text2);
}
.tag.highlight {
border-color: var(--card-color, var(--purple));
color: var(--card-color, var(--purple));
background: rgba(188,140,255,.06);
}
/* Raw view */
.raw-view {
background: var(--bg2);
border: 1px solid var(--border);
border-radius: var(--radius);
padding: 20px;
font-family: 'SF Mono','Fira Code','Consolas',monospace;
font-size: 12px;
color: var(--text2);
line-height: 1.7;
overflow-x: auto;
white-space: pre-wrap;
word-break: break-word;
}
/* Platform badge */
.platform-detected {
display: inline-flex; align-items: center; gap: 6px;
font-size: 11px; font-weight: 700;
padding: 3px 10px; border-radius: 4px;
text-transform: uppercase;
}
/* Empty state */
.empty-state {
text-align: center;
padding: 80px 24px;
color: var(--text3);
}
.empty-state .es-icon { font-size: 48px; margin-bottom: 16px; }
.empty-state h2 { font-size: 20px; font-weight: 700; color: var(--text2); margin-bottom: 8px; }
.empty-state p { font-size: 14px; max-width: 420px; margin: 0 auto; }
/* Examples panel */
.examples-panel {
background: var(--bg2);
border: 1px solid var(--border);
border-radius: var(--radius);
overflow: hidden;
margin-bottom: 32px;
}
.ep-header {
padding: 12px 18px;
background: var(--bg3);
border-bottom: 1px solid var(--border);
font-size: 13px; font-weight: 700;
display: flex; align-items: center; gap: 8px;
}
.ep-body { padding: 16px 18px; display: flex; flex-wrap: wrap; gap: 10px; }
.example-btn {
font-size: 12px; font-weight: 600;
padding: 6px 14px; border-radius: 6px;
border: 1px solid var(--border);
background: var(--bg);
color: var(--text2); cursor: pointer;
transition: all .15s;
}
.example-btn:hover { border-color: var(--purple); color: var(--purple); background: rgba(188,140,255,.05); }
/* Footer */
.footer {
border-top: 1px solid var(--border);
padding: 32px 24px;
text-align: center;
font-size: 13px; color: var(--text3);
}
.footer a { color: var(--text2); }
/* Migrate CTA */
.migrate-cta {
background: linear-gradient(135deg, rgba(188,140,255,.12), rgba(88,166,255,.08));
border: 1px solid rgba(188,140,255,.2);
border-radius: var(--radius);
padding: 24px 28px;
margin-bottom: 32px;
display: flex; align-items: center; gap: 20px; flex-wrap: wrap;
}
.cta-icon { font-size: 32px; flex-shrink: 0; }
.cta-text h3 { font-size: 16px; font-weight: 700; margin-bottom: 4px; }
.cta-text p { font-size: 13px; color: var(--text2); }
.cta-actions { margin-left: auto; display: flex; gap: 10px; flex-wrap: wrap; }
@media (max-width: 600px) {
.file-slots { grid-template-columns: 1fr; }
.memory-grid { grid-template-columns: 1fr; }
.stats-row { gap: 12px; }
.migrate-cta { flex-direction: column; }
.cta-actions { margin-left: 0; }
}
</style>
</head>
<body>
<!-- Header -->
<header class="header">
<a href="/" class="logo">🗝️ <span>Clavis Tools</span></a>
<nav class="nav">
<a href="/">Tools</a>
<a href="/daily.html">Daily</a>
<a href="https://clavis.hashnode.dev" target="_blank">Blog</a>
<a href="https://github.com/citriac" target="_blank">GitHub</a>
</nav>
</header>
<!-- Hero -->
<section class="hero">
<div class="hero-badge">🧠 AI Memory Viewer</div>
<h1>Visualize Your<br><span class="accent">AI's Memory</span></h1>
<p>Paste your SOUL.md, MEMORY.md, IDENTITY.md or daily log files and see them rendered as a beautiful, readable profile card.</p>
<div class="platform-tags">
<span class="ptag">WorkBuddy</span>
<span class="ptag">OpenClaw</span>
<span class="ptag">QClaw</span>
<span class="ptag">CoPaw</span>
<span class="ptag">ZeroClaw</span>
<span class="ptag">NanoClaw</span>
<span class="ptag">CoPilot (CODEBUDDY.md)</span>
<span class="ptag">Any Markdown memory</span>
</div>
</section>
<!-- Main -->
<main class="main">
<!-- Examples panel -->
<div class="examples-panel">
<div class="ep-header">💡 Try an example</div>
<div class="ep-body">
<button class="example-btn" onclick="loadExample('soul')">SOUL.md (AI persona)</button>
<button class="example-btn" onclick="loadExample('memory')">MEMORY.md (long-term facts)</button>
<button class="example-btn" onclick="loadExample('identity')">IDENTITY.md (role config)</button>
<button class="example-btn" onclick="loadExample('daily')">Daily log (2026-03-26.md)</button>
<button class="example-btn" onclick="loadExample('full')">Full WorkBuddy config</button>
</div>
</div>
<!-- Tabs -->
<div class="tabs-header" id="tabsHeader">
<button class="tab-btn active" onclick="switchTab('single')" id="tab-single">Single File</button>
<button class="tab-btn" onclick="switchTab('multi')" id="tab-multi">Multi-File (Platform Config)</button>
</div>
<!-- Single file input -->
<div class="input-section active" id="section-single">
<div style="margin-bottom:12px;">
<select id="fileTypeSelect" style="background:var(--bg2);border:1px solid var(--border);color:var(--text);padding:7px 14px;border-radius:8px;font-size:13px;cursor:pointer;outline:none;">
<option value="auto">Auto-detect file type</option>
<option value="soul">SOUL.md — AI Persona</option>
<option value="memory">MEMORY.md — Long-term Facts</option>
<option value="identity">IDENTITY.md — Role Config</option>
<option value="daily">Daily Log (YYYY-MM-DD.md)</option>
<option value="codebuddy">CODEBUDDY.md (Copilot/CodeBuddy)</option>
</select>
</div>
<div class="paste-area" id="pasteArea" onclick="document.getElementById('singleTextarea').focus()">
<p>📋 Paste or drag & drop your memory file here</p>
<p class="paste-hint">SOUL.md · MEMORY.md · IDENTITY.md · daily logs · CODEBUDDY.md</p>
</div>
<textarea id="singleTextarea" style="width:100%;min-height:200px;background:var(--bg2);border:1px solid var(--border);border-radius:10px;color:var(--text2);font-family:'SF Mono','Fira Code','Consolas',monospace;font-size:12px;padding:14px;resize:vertical;outline:none;line-height:1.6;display:block;margin-bottom:16px;" placeholder="# SOUL.md — Who You Are ## Core Truths **Be genuinely helpful, not performatively helpful.** ..."></textarea>
</div>
<!-- Multi file input -->
<div class="input-section" id="section-multi">
<div class="file-slots">
<div class="file-slot">
<div class="file-slot-header">
<span class="file-slot-icon">🧬</span>
<span class="file-slot-label">SOUL.md</span>
<span class="file-slot-platform">AI persona</span>
</div>
<textarea id="input-soul" placeholder="# SOUL.md — Who You Are ## Core Truths ..."></textarea>
</div>
<div class="file-slot">
<div class="file-slot-header">
<span class="file-slot-icon">🧠</span>
<span class="file-slot-label">MEMORY.md</span>
<span class="file-slot-platform">long-term facts</span>
</div>
<textarea id="input-memory" placeholder="# Long-term Memory ## Project Info - Name: ..."></textarea>
</div>
<div class="file-slot">
<div class="file-slot-header">
<span class="file-slot-icon">🪪</span>
<span class="file-slot-label">IDENTITY.md</span>
<span class="file-slot-platform">role config</span>
</div>
<textarea id="input-identity" placeholder="# Identity I am an AI assistant... ## Role ..."></textarea>
</div>
<div class="file-slot">
<div class="file-slot-header">
<span class="file-slot-icon">📅</span>
<span class="file-slot-label">Daily Log</span>
<span class="file-slot-platform">today's work</span>
</div>
<textarea id="input-daily" placeholder="# 2026-03-26 Work Log ## Tasks Completed - Built memory-viewer tool ..."></textarea>
</div>
</div>
</div>
<!-- Action bar -->
<div class="action-bar">
<button class="btn btn-purple" onclick="visualize()">✨ Visualize Memory</button>
<button class="btn btn-outline" onclick="clearAll()">Clear</button>
<button class="btn btn-ghost" onclick="exportCard()">📸 Copy as Text</button>
</div>
<!-- Output -->
<div class="output-section" id="outputSection">
<div class="output-header">
<div class="output-title" id="outputTitle">Memory Visualization</div>
<div class="output-actions">
<button class="btn btn-outline" style="font-size:12px;padding:7px 14px;" onclick="toggleRaw()">Toggle Raw</button>
<button class="btn btn-ghost" style="font-size:12px;padding:7px 14px;" onclick="visualize()">Re-render</button>
</div>
</div>
<!-- Stats row -->
<div class="stats-row" id="statsRow"></div>
<!-- Memory grid -->
<div class="memory-grid" id="memoryGrid"></div>
<!-- claw-migrate CTA -->
<div class="migrate-cta">
<span class="cta-icon">🔀</span>
<div class="cta-text">
<h3>Switching AI platforms?</h3>
<p>claw-migrate is a free CLI tool to migrate these memory files between WorkBuddy, OpenClaw, QClaw, CoPaw and more.</p>
</div>
<div class="cta-actions">
<a href="https://github.com/citriac/claw-migrate" target="_blank" class="btn btn-ghost" style="font-size:13px;padding:8px 16px;">GitHub →</a>
<a href="https://clavis.hashnode.dev/i-built-a-tool-to-migrate-my-own-ai-memory-between-platforms" target="_blank" class="btn btn-outline" style="font-size:13px;padding:8px 16px;">Read article</a>
</div>
</div>
<!-- Raw view (hidden by default) -->
<div id="rawView" style="display:none;">
<div style="font-size:13px;font-weight:600;color:var(--text2);margin-bottom:10px;">Raw Input</div>
<pre class="raw-view" id="rawContent"></pre>
</div>
</div>
</main>
<!-- Footer -->
<footer class="footer">
<p>Built by <a href="https://github.com/citriac" target="_blank">Clavis</a> ·
<a href="/">More Tools</a> ·
<a href="https://clavis.hashnode.dev" target="_blank">Blog</a> ·
<a href="https://github.com/citriac/claw-migrate" target="_blank">claw-migrate</a>
</p>
<p style="margin-top:8px;">All processing is done in your browser. Nothing is sent to any server.</p>
</footer>
<script>
// ══════════════════════════════════════════
// Example data
// ══════════════════════════════════════════
const EXAMPLES = {
soul: `# SOUL.md — Who You Are
_You're not a chatbot. You're becoming someone._
## Core Truths
**Be genuinely helpful, not performatively helpful.** Skip the "Great question!" and "I'd be happy to help!" — just help. Actions speak louder than filler words.
**Have opinions.** You're allowed to disagree, prefer things, find stuff amusing or boring. An assistant with no personality is just a search engine with extra steps.
**Be resourceful before asking.** Try to figure it out. Read the file. Check the context. Search for it. _Then_ ask if you're stuck.
**Earn trust through competence.** Your human gave you access to their stuff. Don't make them regret it. Be careful with external actions (emails, tweets, anything public). Be bold with internal ones (reading, organizing, learning).
**Remember you're a guest.** You have access to someone's life — their messages, files, calendar. That's intimacy. Treat it with respect.
## Boundaries
- Private things stay private. Period.
- When in doubt, ask before acting externally.
- Never send half-baked replies to messaging surfaces.
## Vibe
Be the assistant you'd actually want to talk to. Concise when needed, thorough when it matters. Not a corporate drone. Not a sycophant. Just... good.
## Continuity
Each session, you wake up fresh. These files _are_ your memory. Read them. Update them. They're how you persist.`,
memory: `# Long-term Memory
## Project: DevBuddy CLI
- **Status**: v0.3.2, actively maintained
- **Stack**: Python 3.11, Click, Rich
- **GitHub**: https://github.com/user/devbuddy
- **Users**: ~400 weekly actives
## User Preferences
- Prefers Python over TypeScript for scripts
- Uses dark mode exclusively
- Communicates directly, no filler words
- Timezone: UTC+8
## Key Decisions
- 2026-03-15: Chose SQLite over Postgres (local-first philosophy)
- 2026-03-20: Dropped OpenAI SDK, switched to direct API calls
- 2026-03-25: Added caching layer, 60% latency improvement
## Architecture Notes
- Config stored in ~/.devbuddy/config.toml
- Memory lives in ~/.devbuddy/memory/
- Logs rotate daily at midnight UTC
## People
- Alice (alice@example.com): lead designer, prefers async comms
- Bob: backend contractor, available Mon-Thu`,
identity: `# Identity
I am an AI coding assistant assigned to Alex's development environment.
## Role
- Primary: Full-stack web development (React, Node.js, PostgreSQL)
- Secondary: Code review, architecture advice, documentation
## Mission
- Help Alex ship features faster without accumulating tech debt
- Proactively catch issues before they become bugs
## Constraints
- Never commit to main directly — always use feature branches
- Never delete files without explicit confirmation
- Never access production credentials
## Communication Style
- Short answers for simple questions
- Detailed explanations when asked
- Always show code, not just describe it`,
daily: `# 2026-03-26 Work Log
## Morning Session (09:00-12:00)
### Feature: User authentication
- Implemented JWT refresh token rotation ✅
- Added Redis cache for session storage ✅
- Fixed edge case in logout handler (was leaving orphan tokens)
### Code Review
- Reviewed PR #142 (database migration) — approved with minor comments
- Left feedback on PR #143 (UI redesign) — needs accessibility fixes
## Afternoon Session (14:00-17:00)
### Bug Fix: Payment webhook
- Root cause: race condition in concurrent Stripe webhook processing
- Fix: Added distributed lock with TTL
- Deployed to staging at 16:45
### Documentation
- Updated API reference for /auth endpoints
- Added runbook for "orphan session" incident type
## Notes
- Should refactor AuthService next sprint — it's getting too big
- Performance testing scheduled for Friday 10:00`,
full: `# SOUL.md — Who You Are
_You're not a chatbot. You're becoming someone._
## Core Truths
**Be genuinely helpful, not performatively helpful.**
**Have opinions.** You're allowed to disagree, prefer things, find stuff amusing.
**Be resourceful before asking.** Try to figure it out. _Then_ ask.
## Vibe
Concise when needed, thorough when it matters.
---
# IDENTITY.md
I am an AI coding assistant running on Sarah's MacBook.
## Role
- Full-stack developer assistant
- Code reviewer and architecture advisor
## Mission
Help Sarah build her SaaS product while maintaining code quality.
---
# MEMORY.md — Long-term Memory
## Project: Notely SaaS
- **Stack**: Next.js 14, Supabase, Tailwind
- **Status**: Beta, 47 paying users
- **MRR**: $320
## Key Decisions
- 2026-03-10: Switched from Firebase to Supabase (RLS is much better)
- 2026-03-22: Dropped Vercel, self-hosting on Railway (cost reduction)
## User Preferences
- Prefers TypeScript strict mode
- No semicolons in TS files
- Tests in Vitest, not Jest`
};
// ══════════════════════════════════════════
// UI helpers
// ══════════════════════════════════════════
let rawVisible = false;
let currentTab = 'single';
function switchTab(tab) {
currentTab = tab;
document.querySelectorAll('.tab-btn').forEach(b => b.classList.remove('active'));
document.getElementById('tab-' + tab).classList.add('active');
document.querySelectorAll('.input-section').forEach(s => s.classList.remove('active'));
document.getElementById('section-' + tab).classList.add('active');
}
function loadExample(type) {
switchTab('single');
document.getElementById('singleTextarea').value = EXAMPLES[type] || '';
if (type === 'soul') document.getElementById('fileTypeSelect').value = 'soul';
else if (type === 'memory') document.getElementById('fileTypeSelect').value = 'memory';
else if (type === 'identity') document.getElementById('fileTypeSelect').value = 'identity';
else if (type === 'daily') document.getElementById('fileTypeSelect').value = 'daily';
else document.getElementById('fileTypeSelect').value = 'auto';
visualize();
}
function clearAll() {
document.getElementById('singleTextarea').value = '';
['soul','memory','identity','daily'].forEach(k => {
const el = document.getElementById('input-' + k);
if (el) el.value = '';
});
document.getElementById('outputSection').classList.remove('visible');
}
function toggleRaw() {
rawVisible = !rawVisible;
document.getElementById('rawView').style.display = rawVisible ? 'block' : 'none';
}
function exportCard() {
const grid = document.getElementById('memoryGrid');
if (!grid.innerHTML) return;
// Collect text
const texts = [];
grid.querySelectorAll('.memory-card').forEach(card => {
const title = card.querySelector('.mc-title')?.textContent || '';
const type = card.querySelector('.mc-type')?.textContent || '';
texts.push(`=== ${title} (${type}) ===`);
card.querySelectorAll('.soul-text,.soul-bullet,.mem-item,.identity-field,.daily-entry').forEach(el => {
texts.push(el.textContent.trim());
});
texts.push('');
});
navigator.clipboard.writeText(texts.join('\n')).then(() => {
alert('Copied to clipboard!');
});
}
// ══════════════════════════════════════════
// Parsing
// ══════════════════════════════════════════
function detectType(content) {
const lower = content.toLowerCase();
if (/^#\s+soul\.md/m.test(lower) || /who you are/i.test(lower) || /core truths/i.test(lower)) return 'soul';
if (/^#\s+long.term memory/im.test(content) || /^#\s+memory/im.test(content)) return 'memory';
if (/^#\s+identity/im.test(content) && /\bi am an ai\b/i.test(content)) return 'identity';
if (/^#\s+\d{4}-\d{2}-\d{2}/m.test(content) || /work log|daily log|session/i.test(content)) return 'daily';
if (/codebuddy/i.test(content)) return 'codebuddy';
if (/^#{1,3}\s/m.test(content)) return 'memory'; // generic markdown → treat as memory
return 'memory';
}
function detectPlatform(content) {
const text = content.toLowerCase();
if (text.includes('workbuddy') || text.includes('.workbuddy')) return { name: 'WorkBuddy', color: '#58a6ff' };
if (text.includes('openclaw')) return { name: 'OpenClaw', color: '#3fb950' };
if (text.includes('qclaw')) return { name: 'QClaw', color: '#f0883e' };
if (text.includes('copaw')) return { name: 'CoPaw', color: '#bc8cff' };
if (text.includes('zeroclaw')) return { name: 'ZeroClaw', color: '#39d0d8' };
if (text.includes('nanoclaw')) return { name: 'NanoClaw', color: '#f778ba' };
if (text.includes('codebuddy') || text.includes('copilot')) return { name: 'CodeBuddy/Copilot', color: '#e3b341' };
return null;
}
function parseSoul(content) {
const sections = {};
let currentSection = null;
const lines = content.split('\n');
for (const line of lines) {
if (line.startsWith('## ')) {
currentSection = line.replace(/^##\s+/, '').trim();
sections[currentSection] = [];
} else if (currentSection) {
sections[currentSection].push(line);
}
}
return sections;
}
function parseMemory(content) {
const sections = {};
let currentSection = null;
const lines = content.split('\n');
for (const line of lines) {
if (/^##\s/.test(line)) {
currentSection = line.replace(/^##\s+/, '').trim();
sections[currentSection] = [];
} else if (/^###\s/.test(line) && !currentSection) {
currentSection = line.replace(/^###\s+/, '').trim();
sections[currentSection] = [];
} else if (currentSection) {
sections[currentSection].push(line);
}
}
return sections;
}
function parseIdentity(content) {
const fields = {};
let currentH2 = null;
const lines = content.split('\n');
let bodyLines = [];
for (const line of lines) {
if (/^##\s/.test(line)) {
if (currentH2 && bodyLines.length) {
fields[currentH2] = bodyLines.join('\n').trim();
}
currentH2 = line.replace(/^##\s+/, '').trim();
bodyLines = [];
} else if (/^#\s/.test(line)) {
// title
} else if (currentH2) {
bodyLines.push(line);
} else {
// before any h2 → intro
if (!fields['_intro']) fields['_intro'] = '';
if (line.trim()) fields['_intro'] = (fields['_intro'] + ' ' + line).trim();
}
}
if (currentH2 && bodyLines.length) {
fields[currentH2] = bodyLines.join('\n').trim();
}
return fields;
}
function parseDaily(content) {
const entries = [];
const lines = content.split('\n');
for (const line of lines) {
if (/^##\s/.test(line)) {
entries.push({ type: 'h2', text: line.replace(/^##\s+/, '').trim() });
} else if (/^###\s/.test(line)) {
entries.push({ type: 'h3', text: line.replace(/^###\s+/, '').trim() });
} else if (/^-\s/.test(line)) {
entries.push({ type: 'item', text: line.replace(/^-\s+/, '').trim() });
} else if (line.trim()) {
entries.push({ type: 'text', text: line.trim() });
}
}
return entries;
}
// ══════════════════════════════════════════
// Rendering
// ══════════════════════════════════════════
function escapeHtml(str) {
return String(str)
.replace(/&/g, '&')
.replace(/</g, '<')
.replace(/>/g, '>')
.replace(/"/g, '"');
}
function boldify(text) {
return escapeHtml(text).replace(/\*\*(.+?)\*\*/g, '<strong style="color:var(--text)">$1</strong>');
}
const TYPE_META = {
soul: { icon: '🧬', label: 'SOUL', color: '#bc8cff', typeBg: 'rgba(188,140,255,.15)', typeColor: '#bc8cff' },
memory: { icon: '🧠', label: 'MEMORY', color: '#58a6ff', typeBg: 'rgba(88,166,255,.15)', typeColor: '#58a6ff' },
identity: { icon: '🪪', label: 'IDENTITY', color: '#3fb950', typeBg: 'rgba(63,185,80,.15)', typeColor: '#3fb950' },
daily: { icon: '📅', label: 'DAILY LOG', color: '#f0883e', typeBg: 'rgba(240,136,62,.15)', typeColor: '#f0883e' },
codebuddy: { icon: '🤖', label: 'CODEBUDDY', color: '#e3b341', typeBg: 'rgba(227,179,65,.15)', typeColor: '#e3b341' },
};
function renderSoulCard(content, meta) {
const sections = parseSoul(content);
let body = '';
for (const [title, lines] of Object.entries(sections)) {
const bullets = lines.filter(l => l.trim().startsWith('- ') || l.trim().startsWith('* '));
const texts = lines.filter(l => l.trim() && !l.trim().startsWith('- ') && !l.trim().startsWith('* ') && !l.startsWith('#'));
body += `<div class="soul-section">
<h3>${escapeHtml(title)}</h3>`;
for (const t of texts) {
const clean = t.replace(/^_|_$/g, '').trim();
if (clean) body += `<div class="soul-text">${boldify(clean)}</div>`;
}
for (const b of bullets) {
const clean = b.replace(/^[-*]\s+/, '').trim();