-
-
Notifications
You must be signed in to change notification settings - Fork 16
Expand file tree
/
Copy pathopenclaw.plugin.json
More file actions
6588 lines (6588 loc) · 247 KB
/
Copy pathopenclaw.plugin.json
File metadata and controls
6588 lines (6588 loc) · 247 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
{
"id": "openclaw-remnic",
"name": "Remnic OpenClaw Plugin",
"version": "9.3.671",
"kind": "memory",
"description": "Local semantic memory for OpenClaw with bundled Remnic core runtime. Requires plugins.slots.memory set to this plugin id for hooks to fire.",
"setup": {
"requiresRuntime": false,
"providers": [
{
"id": "openai",
"authMethods": [
"api-key"
],
"envVars": [
"OPENAI_API_KEY"
]
}
]
},
"providerAuthChoices": [
{
"provider": "openai",
"method": "api-key",
"choiceId": "remnic-openai-api-key",
"choiceLabel": "Optional OpenAI API key for Remnic plugin-mode extraction",
"choiceHint": "Not needed when Remnic uses the OpenClaw gateway model source. Set only if you intentionally use plugin mode with OpenAI or an OpenAI-compatible endpoint.",
"groupId": "remnic-memory",
"groupLabel": "Remnic memory",
"optionKey": "openaiApiKey",
"cliFlag": "--openai-api-key",
"cliOption": "--openai-api-key <key>",
"cliDescription": "Optional OpenAI API key used by Remnic plugin-mode extraction, consolidation, and embedding flows.",
"onboardingScopes": [
"text-inference"
]
}
],
"providerAuthEnvVars": {
"openai": [
"OPENAI_API_KEY"
]
},
"supports": {
"memorySlot": true,
"dreamingSlot": true,
"activeMemory": true,
"heartbeat": true,
"commandsList": true,
"beforeReset": true
},
"contracts": {
"tools": [
"compounding_promote_candidate",
"compounding_weekly_synthesize",
"compression_guidelines_activate",
"compression_guidelines_optimize",
"context_checkpoint",
"continuity_audit_generate",
"continuity_incident_close",
"continuity_incident_list",
"continuity_incident_open",
"continuity_loop_add_or_update",
"continuity_loop_review",
"conversation_index_update",
"engram_context_describe",
"engram_context_expand",
"engram_context_search",
"engram_profiling_report",
"identity_anchor_get",
"identity_anchor_update",
"memory_action_apply",
"memory_capture",
"memory_entities",
"memory_feedback",
"memory_feedback_last_recall",
"memory_get",
"memory_governance_run",
"memory_graph_explain_last_recall",
"memory_identity",
"memory_intent_debug",
"memory_last_recall",
"memory_profile",
"memory_promote",
"memory_qmd_debug",
"memory_questions",
"memory_search",
"memory_store",
"memory_summarize_hourly",
"remnic_context_describe",
"remnic_context_expand",
"remnic_context_search",
"remnic_profiling_report",
"shared_context_cross_signals_run",
"shared_context_curate_daily",
"shared_context_write_output",
"shared_feedback_record",
"shared_priorities_append",
"work_board",
"work_project",
"work_task"
]
},
"configSchema": {
"type": "object",
"additionalProperties": false,
"properties": {
"openaiApiKey": {
"anyOf": [
{
"type": "string"
},
{
"const": false
}
],
"description": "Optional OpenAI API key for plugin mode (or set OPENAI_API_KEY env var). Ignored by default gateway-mode installs; in plugin mode, Remnic may send conversation and memory content to OpenAI or the configured OpenAI-compatible endpoint for extraction, consolidation, summarization, and embeddings."
},
"openaiBaseUrl": {
"type": "string",
"description": "Set the OpenAI API base URL for OpenAI-compatible providers (Scryr, Together, OpenRouter, etc.)"
},
"model": {
"type": "string",
"default": "gpt-5.5",
"description": "OpenAI model for extraction/consolidation"
},
"reasoningEffort": {
"type": "string",
"enum": [
"none",
"low",
"medium",
"high"
],
"default": "low",
"description": "Reasoning effort for extraction"
},
"triggerMode": {
"type": "string",
"enum": [
"smart",
"every_n",
"time_based"
],
"default": "smart",
"description": "Buffer trigger mode"
},
"bufferMaxTurns": {
"type": "number",
"default": 5,
"description": "Max turns before forced extraction"
},
"bufferMaxMinutes": {
"type": "number",
"default": 15,
"description": "Max minutes before forced extraction"
},
"bufferSurpriseTriggerEnabled": {
"type": "boolean",
"default": false,
"description": "Issue #563 (D-MEM). When true, the smart buffer flushes immediately on turns whose embedding-based surprise score exceeds bufferSurpriseThreshold, in addition to the existing turn-count / signal / time triggers. Additive only — never suppresses existing flushes. Off by default."
},
"bufferSurpriseThreshold": {
"type": "number",
"default": 0.35,
"minimum": 0,
"maximum": 1,
"description": "Threshold in [0, 1] above which a surprise score flushes the buffer. Higher = require more novelty to flush. Ignored when bufferSurpriseTriggerEnabled is false."
},
"bufferSurpriseK": {
"type": "number",
"default": 5,
"minimum": 1,
"description": "Number of nearest-neighbor memories to average over when computing the surprise score. Clamped to the recent-memory window size."
},
"bufferSurpriseRecentMemoryCount": {
"type": "number",
"default": 20,
"minimum": 0,
"description": "Maximum number of recent memories sampled for surprise scoring. Bounds embedding cost per turn. Set to 0 to effectively disable the trigger even when the flag is on."
},
"bufferSurpriseProbeTimeoutMs": {
"type": "number",
"default": 2000,
"minimum": 1,
"description": "Hard timeout (ms) for the surprise probe. If the probe does not resolve within this window the buffer treats it as failed and falls through to the existing triggers — a slow or hung embedder cannot stall the turn-append path."
},
"consolidateEveryN": {
"type": "number",
"default": 3,
"description": "Run consolidation every N extractions"
},
"highSignalPatterns": {
"type": "array",
"items": {
"type": "string"
},
"description": "Custom regex patterns for immediate extraction"
},
"maxMemoryTokens": {
"type": "number",
"default": 2000,
"description": "Max memory-context tokens per turn"
},
"memoryOsPreset": {
"type": "string",
"enum": [
"conservative",
"balanced",
"research",
"research-max",
"local-llm-heavy"
],
"description": "Optional named preset that seeds Engram's advanced config surface before explicit per-setting settings are applied. `research` is accepted as a backward-compatible alias for `research-max`."
},
"qmdEnabled": {
"type": "boolean",
"default": true,
"description": "Use QMD for search"
},
"qmdCollection": {
"type": "string",
"default": "openclaw-engram",
"description": "QMD collection name"
},
"qmdMaxResults": {
"type": "number",
"default": 8,
"description": "Max QMD results per search"
},
"qmdColdTierEnabled": {
"type": "boolean",
"default": false,
"description": "Enable cold-tier QMD recall from a secondary collection when hot recall misses"
},
"qmdColdCollection": {
"type": "string",
"default": "openclaw-engram-cold",
"description": "Secondary QMD collection name used for cold-tier fallback recall"
},
"qmdColdMaxResults": {
"type": "number",
"default": 8,
"description": "Max cold-tier QMD results considered before final recall cap"
},
"qmdTierMigrationEnabled": {
"type": "boolean",
"default": false,
"description": "Enable value-aware migration between hot and cold QMD tiers"
},
"qmdTierDemotionMinAgeDays": {
"type": "number",
"default": 14,
"description": "Minimum hot-memory age in days before tier demotion is eligible"
},
"qmdTierDemotionValueThreshold": {
"type": "number",
"default": 0.35,
"description": "Value-score threshold at or below which hot memories are eligible for cold demotion"
},
"qmdTierPromotionValueThreshold": {
"type": "number",
"default": 0.7,
"description": "Value-score threshold at or above which cold memories are eligible for hot promotion"
},
"qmdTierParityGraphEnabled": {
"type": "boolean",
"default": true,
"description": "Apply graph-assist parity checks across hot and cold retrieval tiers"
},
"qmdTierParityHiMemEnabled": {
"type": "boolean",
"default": true,
"description": "Apply HiMem episode/note parity checks across hot and cold retrieval tiers"
},
"qmdTierAutoBackfillEnabled": {
"type": "boolean",
"default": false,
"description": "Allow automated cold-tier backfill jobs to repair parity gaps"
},
"qmdSupportedVersion": {
"type": "string",
"default": "2.5.3",
"description": "Highest QMD version this Remnic build will auto-install"
},
"qmdAutoUpgradeEnabled": {
"type": "boolean",
"default": false,
"description": "Opt-in auto-upgrade for PATH/fallback QMD installs"
},
"qmdAutoUpgradeCheckIntervalMs": {
"type": "number",
"minimum": 60000,
"default": 86400000,
"description": "Minimum interval between QMD auto-upgrade checks"
},
"qmdChunkStrategy": {
"type": "string",
"enum": [
"auto",
"regex"
],
"default": "auto",
"description": "QMD chunk strategy forwarded when the installed QMD supports it"
},
"qmdCandidateLimit": {
"type": "number",
"minimum": 1,
"description": "Optional candidate limit forwarded to supported QMD query paths"
},
"qmdQueryRerankEnabled": {
"type": "boolean",
"default": true,
"description": "When false, ask supported QMD versions to skip the built-in rerank step"
},
"qmdSearchStrategy": {
"type": "string",
"enum": [
"hybrid",
"lex-vec",
"lex"
],
"default": "hybrid",
"description": "Daemon search plan. 'hybrid' (default) runs lex+vec+hyde for best recall; 'lex-vec' drops the expensive HyDE generate leg; 'lex' is BM25-only (fastest). Lower tiers trade recall for latency on CPU-only models. Default preserves existing behavior (issue #1335)."
},
"qmdSubprocessStrategy": {
"type": "string",
"enum": [
"query",
"search"
],
"default": "query",
"description": "Command for the QMD CLI subprocess fallback, used only when the daemon is unavailable. 'query' (default) keeps LLM query expansion + rerank; 'search' is BM25-only and faster on very large collections but loses expansion/rerank. Default preserves existing behavior (issue #1335)."
},
"qmdDaemonTimeoutMs": {
"type": "number",
"minimum": 1000,
"maximum": 120000,
"default": 8000,
"description": "Per-call timeout (ms) for QMD daemon searches. Default 8000; raise (e.g. 20000) to give CPU-only HyDE queries more headroom before the daemon call times out (issue #1335)."
},
"qmdIndexName": {
"type": "string",
"description": "Optional QMD named index forwarded as qmd --index <name> when supported. Leave unset during upgrades unless existing QMD data already lives in that named index."
},
"qmdForceCpu": {
"type": "boolean",
"default": false,
"description": "Set QMD_FORCE_CPU=1 for QMD child processes to bypass GPU probing and run predictably on CPU"
},
"qmdGpuBackend": {
"type": [
"string",
"boolean"
],
"enum": [
"auto",
"metal",
"cuda",
"vulkan",
"false",
false
],
"description": "Optional QMD_LLAMA_GPU override for QMD child processes"
},
"qmdEmbedParallelism": {
"type": "number",
"minimum": 1,
"maximum": 8,
"description": "Optional QMD_EMBED_PARALLELISM override, clamped to 1-8"
},
"qmdEmbedModel": {
"type": "string",
"description": "Optional QMD_EMBED_MODEL override"
},
"qmdRerankModel": {
"type": "string",
"description": "Optional QMD_RERANK_MODEL override"
},
"qmdGenerateModel": {
"type": "string",
"description": "Optional QMD_GENERATE_MODEL override"
},
"embeddingFallbackEnabled": {
"type": "boolean",
"default": true,
"description": "Enable embedding-based semantic recall fallback when QMD is unavailable or returns no matches"
},
"embeddingFallbackProvider": {
"type": "string",
"enum": [
"auto",
"openai",
"local"
],
"default": "auto",
"description": "Embedding provider selection for semantic fallback"
},
"hostEmbeddingProviderEnabled": {
"type": "boolean",
"default": true,
"description": "Prefer OpenClaw host-registered embedding providers for Remnic's semantic fallback and embedded vector backends when the OpenClaw SDK exposes them. Falls back to Remnic's existing embedding provider path on older hosts or provider setup failures."
},
"hostEmbeddingProviderId": {
"type": "string",
"description": "Optional OpenClaw embedding provider adapter id to use. Leave unset for automatic selection from OpenClaw's memory/generic embedding provider registry."
},
"hostEmbeddingProviderModel": {
"type": "string",
"description": "Optional embedding model id passed to the selected OpenClaw host embedding provider."
},
"embeddingFallbackModel": {
"type": "string",
"description": "Optional model identifier for embedding fallback requests. Defaults to localLlmModel for legacy installs."
},
"qmdPath": {
"type": "string",
"description": "Optional absolute path to qmd binary (bypasses PATH/fallback discovery)"
},
"memoryDir": {
"type": "string",
"description": "Override memory storage directory"
},
"entitySchemas": {
"type": "object",
"description": "Optional per-entity-type structured section schema customizations.",
"additionalProperties": {
"type": "object",
"additionalProperties": false,
"properties": {
"sections": {
"type": "array",
"items": {
"type": "object",
"additionalProperties": false,
"properties": {
"key": {
"type": "string"
},
"title": {
"type": "string"
},
"description": {
"type": "string"
},
"aliases": {
"type": "array",
"items": {
"type": "string"
}
}
},
"anyOf": [
{
"required": [
"key"
]
},
{
"required": [
"title"
]
}
]
}
}
},
"required": [
"sections"
]
}
},
"dreaming": {
"type": "object",
"additionalProperties": false,
"default": {},
"properties": {
"enabled": {
"type": "boolean",
"default": false
},
"journalPath": {
"type": "string",
"default": "DREAMS.md"
},
"maxEntries": {
"anyOf": [
{
"type": "integer",
"const": 0
},
{
"type": "integer",
"minimum": 10,
"maximum": 10000
}
],
"default": 500
},
"injectRecentCount": {
"type": "integer",
"minimum": 0,
"maximum": 20,
"default": 3
},
"minIntervalMinutes": {
"type": "integer",
"minimum": 1,
"default": 120
},
"narrativeModel": {
"type": "string",
"default": "",
"description": "Model used to write dream-journal narratives. Under modelSource=plugin this must be an OpenAI model id used with the direct OpenAI key. Under modelSource=gateway it accepts a provider-qualified id (e.g. zai/glm-4.7-flash) routed through gateway providers — no direct OpenAI key required; leave empty to fall back to taskModelChain / the gateway default chain."
},
"narrativePromptStyle": {
"type": "string",
"enum": [
"reflective",
"diary",
"analytical"
],
"default": "reflective"
},
"watchFile": {
"type": "boolean",
"default": true
}
}
},
"dreams": {
"type": "object",
"additionalProperties": false,
"default": {},
"description": "Consolidation pipeline phases config (issue #678 PR 2). Groups existing lifecycle/REM/deep-sleep gates under a unified namespace. Values here WIN over equivalent legacy top-level keys when set. See docs/dreams.md. (Note: distinct from the `dreaming` diary-surface config.)",
"properties": {
"phases": {
"type": "object",
"additionalProperties": false,
"default": {},
"properties": {
"lightSleep": {
"type": "object",
"additionalProperties": false,
"default": {},
"description": "Light-sleep phase: recent activity scoring and clustering. Mirrors lifecyclePolicyEnabled and related thresholds when not set explicitly.",
"properties": {
"enabled": {
"type": "boolean",
"description": "Master switch for the light-sleep phase. Mirrors lifecyclePolicyEnabled when not set."
},
"cadenceMs": {
"type": "integer",
"minimum": 0,
"default": 0,
"description": "Minimum interval between light-sleep passes (ms). 0 = no override; orchestrator uses its internal cadence."
},
"promoteHeatThreshold": {
"type": "number",
"minimum": 0,
"maximum": 1,
"default": 0.55,
"description": "Value score above which a memory is treated as hot. Mirrors lifecyclePromoteHeatThreshold when not set."
},
"staleDecayThreshold": {
"type": "number",
"minimum": 0,
"maximum": 1,
"default": 0.65,
"description": "Value score below which a memory starts to decay. Mirrors lifecycleStaleDecayThreshold when not set."
},
"archiveDecayThreshold": {
"type": "number",
"minimum": 0,
"maximum": 1,
"default": 0.85,
"description": "Value score below which a memory is eligible for archive. Mirrors lifecycleArchiveDecayThreshold when not set."
},
"filterStaleEnabled": {
"type": "boolean",
"default": false,
"description": "Whether stale memories are filtered from recall. Mirrors lifecycleFilterStaleEnabled when not set."
}
}
},
"rem": {
"type": "object",
"additionalProperties": false,
"default": {},
"description": "REM phase: cross-session synthesis, supersession resolution, semantic consolidation. Mirrors semanticConsolidation* keys when not set explicitly.",
"properties": {
"enabled": {
"type": "boolean",
"description": "Master switch for the REM phase. Mirrors semanticConsolidationEnabled when not set."
},
"cadenceMs": {
"type": "integer",
"minimum": 0,
"description": "How often the REM pass runs (ms). Derived from semanticConsolidationIntervalHours when not set."
},
"similarityThreshold": {
"type": "number",
"minimum": 0,
"maximum": 1,
"default": 0.8,
"description": "Cosine-similarity threshold for cluster membership. Mirrors semanticConsolidationThreshold when not set."
},
"minClusterSize": {
"type": "integer",
"minimum": 2,
"default": 3,
"description": "Minimum cluster size before consolidation runs. Mirrors semanticConsolidationMinClusterSize when not set."
},
"maxPerRun": {
"type": "integer",
"minimum": 0,
"default": 100,
"description": "Max cluster operations per run. Mirrors semanticConsolidationMaxPerRun when not set."
},
"minIntervalMs": {
"type": "integer",
"minimum": 0,
"description": "Minimum gap between consolidation passes (ms). Mirrors consolidationMinIntervalMs when not set."
}
}
},
"deepSleep": {
"type": "object",
"additionalProperties": false,
"default": {},
"description": "Deep-sleep phase: promotion to durable memory, hot-to-cold tier migration, page-version snapshots, archive. Mirrors versioningEnabled and related keys when not set explicitly.",
"properties": {
"enabled": {
"type": "boolean",
"default": false,
"description": "Master switch for the deep-sleep phase. Defaults false unless legacy deep-sleep surfaces are explicitly enabled; set true to allow nightly governance, tier migration, and versioning surfaces."
},
"cadenceMs": {
"type": "integer",
"minimum": 0,
"default": 86400000,
"description": "Minimum interval between deep-sleep passes (ms). Default 86400000 (24h). Informational in PR 2; PR 4 wires this into the cron scheduler."
},
"versioningEnabled": {
"type": "boolean",
"description": "Enable page-version snapshots on every overwrite. Mirrors versioningEnabled when not set."
},
"versioningMaxPerPage": {
"type": "integer",
"minimum": 0,
"description": "Max snapshots per memory page. Mirrors versioningMaxPerPage when not set."
}
}
}
}
}
}
},
"heartbeat": {
"type": "object",
"additionalProperties": false,
"default": {},
"properties": {
"enabled": {
"type": "boolean",
"default": false
},
"journalPath": {
"type": "string",
"default": "HEARTBEAT.md"
},
"maxPreviousRuns": {
"type": "integer",
"minimum": 0,
"maximum": 20,
"default": 5
},
"watchFile": {
"type": "boolean",
"default": true
},
"detectionMode": {
"type": "string",
"enum": [
"runtime-signal",
"heuristic",
"auto"
],
"default": "auto"
},
"gateExtractionDuringHeartbeat": {
"type": "boolean",
"default": true
}
}
},
"codingMode": {
"type": "object",
"additionalProperties": false,
"default": {},
"description": "Coding-agent project/branch scoping (issue #569).",
"properties": {
"projectScope": {
"type": "boolean",
"default": true,
"description": "When true and the session has a resolved git context, memory routes to a project-scoped namespace (project:<id>). Set to false to restore pre-#569 behaviour exactly."
},
"branchScope": {
"type": "boolean",
"default": false,
"description": "When true, memory also overlays the current branch (project:<id>/branch:<name>). Opt-in — most development wants cross-branch recall. Wired in PR 3 of #569."
},
"globalFallback": {
"type": "boolean",
"default": true,
"description": "When true (default), project-scoped sessions include the root/default namespace in read fallbacks so globally useful memories remain visible. Set to false for strict project isolation."
}
}
},
"codingKnowledge": {
"type": "object",
"additionalProperties": false,
"default": {},
"description": "Durable coding-knowledge surface — Track A of issue #1548. Master gate + per-feature switches for decision records, architecture card, session delta, and structural-context provider. Off by default so pre-feature byte-identical behaviour is preserved when disabled.",
"properties": {
"enabled": {
"type": "boolean",
"default": false,
"description": "Master gate. Off (default) means no Track A surface fires and no new tools / briefing lines / state directories appear. On enables the switches below."
},
"decisionRecords": {
"type": "boolean",
"default": true,
"description": "Decision-record surfaces (list/record/supersede) + briefing titles of standing decisions. Effective only under the master gate."
},
"architectureCard": {
"type": "boolean",
"default": true,
"description": "Architecture-card build/refresh + briefing injection. Effective only under the master gate."
},
"sessionDelta": {
"type": "boolean",
"default": true,
"description": "Last-seen-head persistence + delta briefing line. Effective only under the master gate."
},
"architectureCardLlmSummary": {
"type": "boolean",
"default": false,
"description": "Opt-in LLM summary pass on the architecture card. Costs tokens; default off (rule 48). Effective only under the master and card gates."
},
"structuralProvider": {
"type": "string",
"enum": [
"none",
"subprocess",
"native"
],
"default": "none",
"description": "Structural-context provider selection: \"none\" (default) keeps review-context file-path-only, \"subprocess\" shells out to structuralProviderCommand via execFile (argv array), \"native\" adapts the in-family engine when @remnic/coding-graph is installed."
},
"structuralProviderCommand": {
"type": "string",
"default": "",
"description": "Absolute path to the subprocess binary when structuralProvider = \"subprocess\". Empty string = no command configured. The consumer validates existence at boot (rule 24)."
}
}
},
"procedural": {
"type": "object",
"additionalProperties": false,
"default": {},
"properties": {
"enabled": {
"type": "boolean",
"default": true,
"description": "Master gate for procedural memory: extraction, recall boost, and mining (issue #519). Default-on since issue #567 PR 4/5; set to `false` to opt out."
},
"minOccurrences": {
"type": "integer",
"minimum": 0,
"maximum": 1000,
"default": 3,
"description": "Minimum clustered trajectory occurrences before emitting a candidate procedure (0 disables mining)."
},
"successFloor": {
"type": "number",
"minimum": 0,
"maximum": 1,
"default": 0.75,
"description": "Minimum success-rate floor (from trajectory outcomes) for miner promotion."
},
"autoPromoteOccurrences": {
"type": "integer",
"minimum": 0,
"maximum": 10000,
"default": 8,
"description": "When auto-promotion is enabled, minimum occurrence count to move pending_review procedures to active (0 disables auto-promotion by count)."
},
"autoPromoteEnabled": {
"type": "boolean",
"default": false,
"description": "When true, miner may auto-promote trusted procedures to active after autoPromoteOccurrences."
},
"lookbackDays": {
"type": "integer",
"minimum": 1,
"maximum": 3650,
"default": 14,
"description": "Trajectory lookback window for procedural mining."
},
"recallMaxProcedures": {
"type": "integer",
"minimum": 1,
"maximum": 10,
"default": 2,
"description": "Maximum procedure memories to add on task-initiation recall."
},
"proceduralMiningCronAutoRegister": {
"type": "boolean",
"default": false,
"description": "When true, installer may register the nightly procedural mining cron job."
}
}
},
"wearables": {
"type": "object",
"additionalProperties": false,
"default": {},
"description": "Wearable transcript ingestion (Limitless / Bee / Omi). Connector packages install a la carte: @remnic/connector-limitless, @remnic/connector-bee, @remnic/connector-omi. See docs/wearables.md.",
"properties": {
"enabled": {
"type": "boolean",
"default": false,
"description": "Master gate for the wearables subsystem."
},
"timezone": {
"type": "string",
"description": "IANA timezone used to bucket transcripts into days. Defaults to the host timezone."
},
"redactionEnabled": {
"type": "boolean",
"default": true,
"description": "Redact SSN / payment-card patterns from transcripts before storage and extraction."
},
"redactionPatterns": {
"type": "array",
"items": {
"type": "string"
},
"default": [],
"description": "Additional user-supplied redaction regexes (validated at config load)."
},
"offTheRecordEnabled": {
"type": "boolean",
"default": true,
"description": "Honor a spoken 'off the record' marker by eliding segments until 'back on the record'."
},
"digestEnabled": {
"type": "boolean",
"default": true,
"description": "Write one compact daily-digest memory per synced source/day."
},
"autoSyncEnabled": {
"type": "boolean",
"default": true,
"description": "Periodically refresh transcripts in-process on long-lived hosts. Every tick re-syncs a rolling window ending today (existing day files included)."
},
"autoSyncIntervalMinutes": {
"type": "integer",
"minimum": 1,
"maximum": 1440,
"default": 15,
"description": "Minutes between auto-sync ticks."
},
"autoSyncDays": {
"type": "integer",
"minimum": 1,
"maximum": 90,
"default": 2,
"description": "Rolling window (days ending today) refreshed on each auto-sync tick."
},
"autoSyncDeepDays": {
"type": "integer",
"minimum": 0,
"maximum": 90,
"default": 7,
"description": "Once-per-local-day deep refresh window (days) for late uploads and provider re-processing. 0 disables; otherwise must be >= autoSyncDays."
},
"corrections": {
"type": "array",
"default": [],
"description": "User-specific transcript correction rules applied on every sync (merged with CLI-managed rules).",
"items": {
"type": "object",
"additionalProperties": false,
"required": [
"match",
"replace"
],
"properties": {
"match": {
"type": "string",
"description": "Text (or regex when regex=true) to match."
},
"replace": {
"type": "string",
"description": "Replacement text."
},
"regex": {
"type": "boolean",
"default": false,
"description": "Treat match as a regular expression."
},
"caseInsensitive": {
"type": "boolean",
"default": true,
"description": "Case-insensitive matching."
},
"sources": {
"type": "array",
"items": {
"type": "string"
},
"description": "Restrict the rule to specific source ids."
}
}
}
},
"sources": {
"type": "object",
"default": {},
"description": "Per-source settings keyed by connector id (limitless, bee, omi, or a custom connector id).",
"additionalProperties": {
"type": "object",
"additionalProperties": false,
"properties": {
"enabled": {
"type": "boolean",
"default": false,
"description": "Enable syncing from this wearable source."
},
"apiKey": {
"type": "string",
"description": "Provider API credential. Prefer the per-connector environment variable (e.g. ${LIMITLESS_API_KEY}); a config value takes precedence when both are set."
},
"baseUrl": {
"type": "string",
"description": "Override the provider base URL (self-hosted / local-proxy setups, e.g. the Bee local proxy)."
},
"appId": {
"type": "string",
"description": "Omi only: integration app id (the {app_id} path component of the Omi Integrations API)."
},
"userId": {
"type": "string",
"description": "Omi only: target user id supplied as the uid query parameter."
},
"memoryMode": {
"type": "string",
"enum": [
"off",
"review",
"auto",
"smart"
],
"default": "smart",
"description": "Memory creation trust gate: smart (default) = LLM-judge + per-source trust prior + cross-device corroboration decide active/review/drop automatically; off = transcripts only; review = every candidate lands pending_review; auto = deterministic gates only, survivors active."
},
"sourceTrust": {
"type": "number",
"minimum": 0,
"maximum": 1,
"default": 0.8,
"description": "Trust prior for this source's transcription quality (0..1). Multiplies extraction confidence in smart mode — lower it for a device that mis-transcribes often."
},
"autoApproveTrust": {
"type": "number",
"minimum": 0,
"maximum": 1,
"default": 0.7,
"description": "Smart mode: trust score at/above which facts are written active."
},
"reviewTrust": {
"type": "number",
"minimum": 0,
"maximum": 1,
"default": 0.45,
"description": "Smart mode: trust score at/above which borderline facts are queued for review instead of dropped. Must be below autoApproveTrust."
},
"minConfidence": {
"type": "number",
"minimum": 0,
"maximum": 1,
"default": 0.6,
"description": "Drop extracted facts below this confidence."
},
"minImportance": {
"type": "string",
"enum": [