Repository navigation
Expand file tree
/
Copy pathconfig-keys.json
More file actions
5669 lines (5669 loc) · 160 KB
/
Copy pathconfig-keys.json
File metadata and controls
5669 lines (5669 loc) · 160 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
{
"_meta": {
"purpose": "Machine-readable inventory of every setting autopilot reads: config.json keys, AUTOPILOT_* environment variables, the Claude Code settings it depends on, and project-level DI files. Checked in both directions by scripts/check-config-docs.js; the human reference for audience=user entries is docs/settings-reference.md.",
"fields": {
"name": "dotted path for a config key, the variable name for env/cc_setting, .claude/<file> for project_di",
"kind": "config_key | env | cc_setting | project_di",
"audience": "user | internal",
"class": "internal only: test_seam | path_seam | plumbing | experiment_flag | probe_toggle | band_source_switch",
"default": "null when there is no default",
"readers": "files that read it; each must contain the needle",
"needle": "optional literal the reader must contain (default: env name or prefix, last dotted segment, template basename)",
"prefix": "env family: any token starting with it is covered",
"relates": "settings that depend on or override this one",
"group": "user only: section of docs/settings-reference.md",
"template": "project_di only",
"doc": "where it is explained",
"type": "config_key only: boolean | number | string | array | object | enum, joined with | for alternatives; read by scripts/lib/config-audit.js",
"allowed": "config_key, type enum: the accepted values",
"invalid_effect": "config_key: what an out-of-range value does, quoted in the config-audit finding",
"changed_in": "config_key: list of {schema, from, to, note}. schema = the config_schema_version at which a default changed. Append one when you change a documented default; config-audit lists entries whose schema is above the user's config_schema_version (up to the current one). Bump CURRENT_SCHEMA in scripts/lib/config-audit.js when you add a schema number."
},
"audience_rule": "user = a human sets it to change what autopilot does (a documented knob with an effect they can observe). internal = autopilot sets it for its own child processes, it only redirects a path or injects a fault or clock for tests, or it is a maintainer/diagnostic switch. By name pattern, internal: AUTOPILOT_TEST_*, *_TEST_HOOK, *_FIXTURE, *_CRASH_AT, *_KILL_AFTER*, *_RACE_PATH, *_SEAMS, FAULT_INJECT*, *_NOW(_MS), *_SESSION_ID, *_RUN_ID, and path/binary overrides ending in _DIR/_FILE/_PATH/_BIN/_SH/_SCRIPT/_RESOLVER/_LEDGER/_RECEIPT/_INPUT/_ENV. Everything else is classified by hand and a user entry must appear in docs/settings-reference.md.",
"scan_rules": "env: AUTOPILOT_[A-Z0-9_]+ in .js .ts .tsx .mjs .sh .py under bin/ hooks/ scripts/ src/ mods/, excluding tests/ dirs, *.test.*, test-*, run-tests.sh, fixtures/, node_modules/ and the platforms/ and .opencode mirrors. config: property reads with a snake_case key in files that mention config-path / AUTOPILOT_CONFIG_FILE / .autopilot/config.json (best effort; keys without an underscore are only checked in the reverse direction). di: every file in project-config-template/."
},
"ignore": {
"env": {
"AUTOPILOT_HARNESS_ATTENTION": "output sentinel printed by src/harness/capabilities.js, not an environment variable",
"AUTOPILOT_HARNESS_OK": "output sentinel printed by src/harness/capabilities.js, not an environment variable",
"AUTOPILOT_REVIEW_LEDGER_COPY_TEST_DELAY_MS": "test-only delay seam in scripts/lib/review-ledger-copy.js; not a user knob. Honoured only with AUTOPILOT_TEST_ALLOW_REVIEW_LEDGER_COPY_DELAY=1",
"AUTOPILOT_TEST_ALLOW_REVIEW_LEDGER_COPY_DELAY": "test-only gate for the review-ledger copy delay. Exactly 1 enables AUTOPILOT_REVIEW_LEDGER_COPY_TEST_DELAY_MS; not a user knob",
"AUTOPILOT_TEST_ALLOW_REVIEW_LEDGER_ARCHIVE_NOW": "test-only gate for the review-ledger rotate clock. Exactly 1 enables AUTOPILOT_TEST_NOW; not a user knob",
"AUTOPILOT_TEST_ALLOW_REVIEW_LEDGER_ARCHIVE_PRUNE_TARGET": "test-only gate for review-ledger prune --target. Exactly 1 enables the hidden flag; not a user knob",
"AUTOPILOT_TEST_ALLOW_REVIEW_LEDGER_ARCHIVE_PRUNE_PAUSE": "test-only gate for the review-ledger prune pause between validation and delete. Exactly 1 enables the ready/release files; not a user knob",
"AUTOPILOT_REVIEW_LEDGER_ARCHIVE_PRUNE_READY_FILE": "test-only path the prune pause writes when it is waiting. Honoured only with AUTOPILOT_TEST_ALLOW_REVIEW_LEDGER_ARCHIVE_PRUNE_PAUSE=1",
"AUTOPILOT_REVIEW_LEDGER_ARCHIVE_PRUNE_RELEASE_FILE": "test-only path the prune pause waits for before deleting. Honoured only with AUTOPILOT_TEST_ALLOW_REVIEW_LEDGER_ARCHIVE_PRUNE_PAUSE=1",
"AUTOPILOT_TEST_NOW": "test-only ISO date for review-ledger rotate and status. Honoured only with AUTOPILOT_TEST_ALLOW_REVIEW_LEDGER_ARCHIVE_NOW=1"
},
"config": {
"artifact_type": "field of a qualification feed document, not an operator config key",
"baseline_event_id": "field of a scorecard event, not an operator config key",
"event_id": "field of a scorecard/feed event, not an operator config key",
"local_is_official_default": "field of a qualification feed row, not an operator config key",
"transcript_hash": "field of a qualification feed row, not an operator config key"
},
"templates": {
"hooks.json": "placeholder template: nothing in the repo reads a project-level .claude/hooks.json, so there is no setting to register"
}
},
"entries": [
{
"name": "autoCompactEnabled",
"kind": "cc_setting",
"audience": "user",
"group": "context",
"default": null,
"readers": [
"scripts/lib/autocompact-window.js"
],
"doc": "docs/settings-reference.md",
"relates": [
"autoCompactWindow"
],
"summary": "Claude Code setting (settings.json, else ~/.claude.json): false turns auto-compact off."
},
{
"name": "autoCompactWindow",
"kind": "cc_setting",
"audience": "user",
"group": "context",
"default": null,
"readers": [
"scripts/lib/autocompact-window.js"
],
"doc": "docs/settings-reference.md",
"relates": [
"context_budget.t2",
"context_budget.gap"
],
"summary": "Claude Code setting (user/project/local/policy settings.json; also modelSettings.<model>.autoCompactWindow): token window after which Claude Code compacts, at window minus a 33k buffer. Set via /autocompact or in settings.json."
},
{
"name": "CLAUDE_CODE_AUTO_COMPACT_WINDOW",
"kind": "cc_setting",
"audience": "user",
"group": "context",
"default": null,
"readers": [
"scripts/lib/autocompact-window.js"
],
"doc": "docs/settings-reference.md",
"relates": [
"context_budget.t2",
"context_budget.gap"
],
"summary": "Claude Code environment variable: auto-compact window in tokens (clamped to 100000-1000000). Beats every settings file."
},
{
"name": "DISABLE_AUTO_COMPACT",
"kind": "cc_setting",
"audience": "user",
"group": "context",
"default": null,
"readers": [
"scripts/lib/autocompact-window.js"
],
"doc": "docs/settings-reference.md",
"relates": [
"autoCompactWindow"
],
"summary": "Claude Code environment variable: 1, true, yes or on turns auto-compact off."
},
{
"name": "DISABLE_COMPACT",
"kind": "cc_setting",
"audience": "user",
"group": "context",
"default": null,
"readers": [
"scripts/lib/autocompact-window.js"
],
"doc": "docs/settings-reference.md",
"relates": [
"autoCompactWindow"
],
"summary": "Claude Code environment variable: 1, true, yes or on turns all compaction off."
},
{
"name": "<ENV_NAME>",
"kind": "config_key",
"audience": "internal",
"class": "band_source_switch",
"needle": "knobIsOff",
"default": null,
"readers": [
"src/status/sources-manifest.js"
],
"doc": null,
"relates": [],
"note": "config.json may carry {\"<ENV_NAME>\": \"off\"} for the knobs of the live band sources; only the band source manifest reads these, the hooks themselves honor the environment variable and their own keys."
},
{
"name": "advisory_bridge.<hook>",
"kind": "config_key",
"audience": "user",
"group": "context",
"needle": "advisory_bridge",
"default": null,
"readers": [
"hooks/_shared/advisory-sink.js"
],
"doc": "docs/settings-reference.md",
"relates": [
"AUTOPILOT_ADVISORY_BRIDGE_<HOOK>"
],
"summary": "Per-hook override of advisory_bridge.mode; <hook> is cost_tracker, version_drift, context_budget or suggest_compact.",
"type": "enum",
"allowed": [
"sink",
"inject"
]
},
{
"name": "advisory_bridge.mode",
"kind": "config_key",
"audience": "user",
"group": "context",
"needle": "advisory_bridge",
"default": "sink",
"readers": [
"hooks/_shared/advisory-sink.js"
],
"doc": "docs/settings-reference.md",
"relates": [
"AUTOPILOT_ADVISORY_BRIDGE",
"advisory_bridge.<hook>"
],
"summary": "Where hook advisories go: \"sink\" shows them as a band toast (default); \"inject\" puts them in the model context as before.",
"type": "enum",
"allowed": [
"sink",
"inject"
]
},
{
"name": "context_budget.gap",
"kind": "config_key",
"audience": "user",
"group": "context",
"default": 50000,
"readers": [
"scripts/lib/config-path.js"
],
"doc": "docs/settings-reference.md",
"relates": [
"AUTOPILOT_CONTEXT_BUDGET_GAP",
"context_budget.t2",
"autoCompactWindow"
],
"summary": "Tokens between the T2 reminder and the point where Claude Code compacts; used by the SessionStart check that T2 can fire before compaction.",
"type": "number"
},
{
"name": "context_budget.live_write",
"kind": "config_key",
"audience": "user",
"group": "context",
"default": true,
"readers": [
"scripts/lib/config-path.js"
],
"doc": "docs/settings-reference.md",
"relates": [
"AUTOPILOT_CONTEXT_BUDGET_LIVE_WRITE"
],
"summary": "false stops the hook writing the live context file the status band reads (the reminders keep firing).",
"type": "boolean"
},
{
"name": "context_budget.mode",
"kind": "config_key",
"audience": "user",
"group": "context",
"default": "warn",
"readers": [
"scripts/lib/config-path.js"
],
"doc": "docs/settings-reference.md",
"relates": [
"AUTOPILOT_CONTEXT_BUDGET_MODE"
],
"summary": "\"off\" silences the context-budget reminders and the SessionStart window check; \"warn\" keeps them; \"once\" keeps them but each tier (T1, T2) speaks at most once per session.",
"type": "enum",
"allowed": [
"off",
"warn",
"once"
],
"invalid_effect": "anything but off, warn or once is ignored, so the reminders stay on"
},
{
"name": "context_budget.per_model",
"kind": "config_key",
"audience": "user",
"group": "context",
"default": null,
"readers": [
"scripts/lib/config-path.js"
],
"doc": "docs/settings-reference.md",
"relates": [
"context_budget.t1",
"context_budget.t2",
"AUTOPILOT_CONTEXT_BUDGET_T1",
"AUTOPILOT_CONTEXT_BUDGET_T2"
],
"summary": "Per-model t1/t2 keyed by a model-id glob (matched against the statusline live file's model.id; the pattern with the most literal characters wins; no match uses the top-level tiers).",
"type": "object",
"invalid_effect": "keys other than t1 and t2, and values that are not positive integers, are ignored with a one-line warning"
},
{
"name": "context_budget.post_compact_warn",
"kind": "config_key",
"audience": "user",
"group": "context",
"default": 100000,
"readers": [
"hooks/context-budget.js"
],
"doc": "docs/settings-reference.md",
"relates": [
"AUTOPILOT_CONTEXT_BUDGET_POST_COMPACT_WARN"
],
"summary": "After compaction, one advisory when the live context still exceeds this many tokens. 0 disables. A value that is not an integer >= 0 is ignored, so with nothing valid set the threshold stays 100000. Advisory only.",
"type": "number",
"invalid_effect": "a value that is not an integer >= 0 is ignored, so with nothing valid set the threshold stays 100000"
},
{
"name": "context_budget.seat",
"kind": "config_key",
"audience": "user",
"group": "context",
"default": "session",
"readers": [
"hooks/context-budget.js"
],
"doc": "docs/settings-reference.md",
"relates": [
"AUTOPILOT_CONTEXT_BUDGET_SEAT"
],
"summary": "session (default) keeps the T2 handoff wording. resident tells a fixed-address seat to update its state file and keep only that path and the unfinished items after compaction. Anything else is ignored.",
"type": "enum",
"allowed": [
"session",
"resident"
],
"invalid_effect": "anything but session or resident is ignored, so the seat stays session"
},
{
"name": "context_budget.step",
"kind": "config_key",
"audience": "user",
"group": "context",
"default": 50000,
"readers": [
"scripts/lib/config-path.js"
],
"doc": "docs/settings-reference.md",
"relates": [
"AUTOPILOT_CONTEXT_BUDGET_STEP"
],
"summary": "A tier repeats its reminder only after the context grew by this many tokens since it last fired; 0 reminds on every call past the threshold.",
"type": "number"
},
{
"name": "context_budget.t1",
"kind": "config_key",
"audience": "user",
"group": "context",
"needle": "t1",
"default": 100000,
"readers": [
"scripts/lib/config-path.js"
],
"doc": "docs/settings-reference.md",
"relates": [
"AUTOPILOT_CONTEXT_BUDGET_T1",
"context_budget.t2"
],
"summary": "Context size (tokens) at which the first reminder fires: plan a checkpoint and avoid loading large files inline.",
"type": "number"
},
{
"name": "context_budget.t2",
"kind": "config_key",
"audience": "user",
"group": "context",
"needle": "t2",
"default": 150000,
"readers": [
"scripts/lib/config-path.js"
],
"doc": "docs/settings-reference.md",
"relates": [
"AUTOPILOT_CONTEXT_BUDGET_T2",
"context_budget.gap",
"autoCompactWindow"
],
"summary": "Context size (tokens) of the second, stronger reminder: write a handoff. With auto-compact configured it is only a reminder; without it the hook tells you to stop and /clear.",
"type": "number"
},
{
"name": "cost_fuse.daily_usd_brain",
"kind": "config_key",
"audience": "user",
"group": "cost",
"default": 150,
"readers": [
"scripts/lib/brain-spend.js"
],
"doc": "docs/settings-reference.md",
"relates": [
"AUTOPILOT_COST_FUSE_DAILY_USD",
"cost_fuse.tiers"
],
"summary": "Daily USD cap on top-tier (brain) model spend, summed per UTC day from the cost ledger.",
"type": "number"
},
{
"name": "cost_fuse.mode",
"kind": "config_key",
"audience": "user",
"group": "cost",
"default": "warn",
"readers": [
"scripts/lib/brain-spend.js"
],
"doc": "docs/settings-reference.md",
"relates": [
"AUTOPILOT_COST_FUSE_MODE",
"cost_fuse.daily_usd_brain"
],
"summary": "What the daily brain-spend fuse does at the cap: \"warn\" (default), \"block\" or \"off\".",
"type": "enum",
"allowed": [
"warn",
"block",
"off"
]
},
{
"name": "cost_fuse.tiers",
"kind": "config_key",
"audience": "user",
"group": "cost",
"default": [
"brain"
],
"readers": [
"scripts/lib/brain-spend.js"
],
"doc": "docs/settings-reference.md",
"relates": [
"cost_fuse.daily_usd_brain"
],
"summary": "Which model tiers count toward the cap.",
"type": "array"
},
{
"name": "cost_tracker.cache_read_warn_tokens",
"kind": "config_key",
"audience": "user",
"group": "cost",
"default": 50000000,
"readers": [
"hooks/cost-tracker.js"
],
"doc": "docs/settings-reference.md",
"relates": [
"AUTOPILOT_COST_TRACKER_CACHE_READ_WARN"
],
"summary": "Cumulative cache-read tokens in one session at which the tracker prints its first warning (then at each doubling).",
"type": "number"
},
{
"name": "cost_tracker.context_clear_pct",
"kind": "config_key",
"audience": "user",
"group": "cost",
"default": 50,
"readers": [
"hooks/cost-tracker.js"
],
"doc": "docs/settings-reference.md",
"relates": [
"AUTOPILOT_COST_TRACKER_CLEAR_PCT"
],
"summary": "Window fill (percent) at or above which the cost warning recommends a handoff and /clear.",
"type": "number"
},
{
"name": "depth0_delegate_gate.guarded_models",
"kind": "config_key",
"audience": "user",
"group": "hooks",
"default": [
"fable",
"opus"
],
"readers": [
"hooks/depth0-delegate-gate.js"
],
"doc": "docs/settings-reference.md",
"relates": [],
"summary": "Model families the gate applies to.",
"type": "array"
},
{
"name": "depth0_delegate_gate.mode",
"kind": "config_key",
"audience": "user",
"group": "hooks",
"default": "warn",
"readers": [
"hooks/depth0-delegate-gate.js"
],
"doc": "docs/settings-reference.md",
"relates": [
"AUTOPILOT_DEPTH0_DELEGATE_GATE_MODE"
],
"summary": "Reminder when the top-level session fires many read-class calls in a row: \"off\", \"warn\" or \"block\".",
"type": "enum",
"allowed": [
"off",
"warn",
"block"
]
},
{
"name": "depth0_delegate_gate.pkill_self_match",
"kind": "config_key",
"audience": "user",
"group": "hooks",
"default": "deny",
"readers": [
"hooks/depth0-delegate-gate.js"
],
"doc": "docs/settings-reference.md",
"relates": [
"AUTOPILOT_BASH_GUARD_PKILL_MODE"
],
"summary": "What to do with a pkill/pgrep -f pattern that would match its own command line: \"deny\", \"warn\" or \"off\".",
"type": "enum",
"allowed": [
"deny",
"warn",
"off"
]
},
{
"name": "depth0_delegate_gate.bare_ls",
"kind": "config_key",
"audience": "user",
"group": "hooks",
"default": "deny",
"readers": [
"hooks/depth0-delegate-gate.js"
],
"doc": "docs/settings-reference.md",
"relates": [
"AUTOPILOT_BASH_GUARD_LS_MODE"
],
"summary": "What to do with a bare ls in command position of a Bash call (an alias or function wrapper can hang it): \"deny\", \"warn\" or \"off\".",
"type": "enum",
"allowed": [
"deny",
"warn",
"off"
]
},
{
"name": "depth0_delegate_gate.threshold",
"kind": "config_key",
"audience": "user",
"group": "hooks",
"default": 8,
"readers": [
"hooks/depth0-delegate-gate.js"
],
"doc": "docs/settings-reference.md",
"relates": [],
"summary": "Consecutive read-class calls before the delegate reminder.",
"type": "number"
},
{
"name": "depth0_delegate_gate.wait_advice_every",
"kind": "config_key",
"audience": "user",
"group": "hooks",
"default": 5,
"readers": [
"hooks/depth0-delegate-gate.js"
],
"doc": "docs/settings-reference.md",
"relates": [
"AUTOPILOT_DEPTH0_WAIT_ADVICE_EVERY"
],
"summary": "Repeat interval of the foreground-wait advice.",
"type": "number"
},
{
"name": "dirty_tree_reminder",
"kind": "config_key",
"audience": "user",
"group": "hooks",
"default": "on",
"readers": [
"hooks/dirty-protected-paths.js"
],
"doc": "docs/settings-reference.md",
"relates": [
"AUTOPILOT_DIRTY_TREE_REMINDER"
],
"summary": "false switches the dirty-working-tree reminder off; an object sets min_files, min_lines and interval_minutes.",
"type": "boolean|object"
},
{
"name": "dirty_tree_reminder.interval_minutes",
"kind": "config_key",
"audience": "user",
"group": "hooks",
"default": 30,
"readers": [
"hooks/dirty-protected-paths.js"
],
"doc": "docs/settings-reference.md",
"relates": [
"AUTOPILOT_DIRTY_TREE_INTERVAL_MINUTES"
],
"summary": "Minimum minutes between two reminders per repo and session; 0 reminds every turn.",
"type": "number"
},
{
"name": "dirty_tree_reminder.min_files",
"kind": "config_key",
"audience": "user",
"group": "hooks",
"default": 3,
"readers": [
"hooks/dirty-protected-paths.js"
],
"doc": "docs/settings-reference.md",
"relates": [
"AUTOPILOT_DIRTY_TREE_MIN_FILES"
],
"summary": "Changed files that trigger the reminder.",
"type": "number"
},
{
"name": "dirty_tree_reminder.min_lines",
"kind": "config_key",
"audience": "user",
"group": "hooks",
"default": 150,
"readers": [
"hooks/dirty-protected-paths.js"
],
"doc": "docs/settings-reference.md",
"relates": [
"AUTOPILOT_DIRTY_TREE_MIN_LINES"
],
"summary": "Changed lines that trigger the reminder.",
"type": "number"
},
{
"name": "owner_question_guard",
"kind": "config_key",
"audience": "user",
"group": "hooks",
"default": "on",
"readers": [
"hooks/owner-question-guard.js"
],
"doc": "docs/settings-reference.md",
"relates": [
"AUTOPILOT_OWNER_QUESTION_GUARD"
],
"summary": "false switches off the Stop guard that blocks a reply waiting for the owner without a decision card id.",
"type": "boolean"
},
{
"name": "per_turn_gate.verifier",
"kind": "config_key",
"audience": "user",
"group": "hooks",
"default": null,
"readers": [
"hooks/per-turn-gate.js"
],
"doc": "docs/settings-reference.md",
"relates": [
"hooks.<stem>"
],
"summary": "Command the opt-in per-turn-gate Stop hook runs at turn end as `<command> --turn <n> --repo <cwd> --json` (exit 0 clean, 1 violations, anything else an error). Empty or missing: the hook never blocks.",
"type": "string"
},
{
"name": "per_turn_gate.mode",
"kind": "config_key",
"audience": "user",
"group": "hooks",
"default": "violations",
"readers": [
"hooks/per-turn-gate.js"
],
"doc": "docs/settings-reference.md",
"relates": [
"hooks.<stem>"
],
"summary": "What per-turn-gate may block on: \"violations\" (verifier exit 1 only) or \"violations+features\" (also exit 0 with a non-empty feature_gaps list; the trigger and retry text are unevaluated until the BL-0055 phase 2 evaluation passes).",
"type": "enum",
"allowed": [
"violations",
"violations+features"
],
"invalid_effect": "an unknown mode is treated as \"violations\""
},
{
"name": "per_turn_gate.max_blocks",
"kind": "config_key",
"audience": "user",
"group": "hooks",
"default": 2,
"readers": [
"hooks/per-turn-gate.js"
],
"doc": "docs/settings-reference.md",
"relates": [
"hooks.<stem>"
],
"summary": "Blocks per-turn-gate may give in one turn before it lets the stop through.",
"type": "number"
},
{
"name": "per_turn_gate.timeout_ms",
"kind": "config_key",
"audience": "user",
"group": "hooks",
"default": 30000,
"readers": [
"hooks/per-turn-gate.js"
],
"doc": "docs/settings-reference.md",
"relates": [
"hooks.<stem>"
],
"summary": "Hard timeout of the per-turn-gate verifier in milliseconds; a timeout allows the stop.",
"type": "number"
},
{
"name": "per_turn_gate.state_retention_days",
"kind": "config_key",
"audience": "user",
"group": "hooks",
"default": 7,
"readers": [
"hooks/per-turn-gate.js"
],
"doc": "docs/settings-reference.md",
"relates": [
"hooks.<stem>"
],
"summary": "Days after which per-turn-gate deletes its untouched counter, turn and lock files from the live-state directory (log files are kept).",
"type": "number"
},
{
"name": "per_turn_gate.session_arming",
"kind": "config_key",
"audience": "user",
"group": "hooks",
"default": true,
"readers": [
"hooks/per-turn-gate.js"
],
"doc": "docs/settings-reference.md",
"relates": [
"hooks.<stem>"
],
"summary": "Whether per-turn-gate honours a worker-bound gate file written by scripts/per-turn-gate-arm.js. Missing or true: a valid gate file arms the gate for that one session even when the global knob is off. Only an explicit false ignores gate files (no lookup at all).",
"type": "boolean"
},
{
"name": "subagent_budget.mode",
"kind": "config_key",
"audience": "user",
"group": "hooks",
"default": "remind",
"readers": [
"hooks/subagent-budget.js"
],
"doc": "docs/settings-reference.md",
"relates": [
"AUTOPILOT_SUBAGENT_BUDGET_MODE"
],
"summary": "Subagent budget gate on Agent dispatch: \"remind\" (deny at a ceiling), \"warn\" (note, never deny) or \"off\".",
"type": "enum",
"allowed": [
"remind",
"warn",
"off"
]
},
{
"name": "subagent_budget.lane_dispatch_max",
"kind": "config_key",
"audience": "user",
"group": "hooks",
"default": 4,
"readers": [
"hooks/subagent-budget.js"
],
"doc": "docs/settings-reference.md",
"relates": [
"AUTOPILOT_SUBAGENT_BUDGET_LANE_DISPATCH_MAX"
],
"summary": "Dispatches one lane may already have before the next is denied (reviewers excluded).",
"type": "number"
},
{
"name": "subagent_budget.lane_turns_max",
"kind": "config_key",
"audience": "user",
"group": "hooks",
"default": 300,
"readers": [
"hooks/subagent-budget.js"
],
"doc": "docs/settings-reference.md",
"relates": [
"AUTOPILOT_SUBAGENT_BUDGET_LANE_TURNS_MAX"
],
"summary": "Subagent turns one lane may already have used before the next dispatch is denied.",
"type": "number"
},
{
"name": "subagent_budget.root_turns_per_hour_max",
"kind": "config_key",
"audience": "user",
"group": "hooks",
"default": 400,
"readers": [
"hooks/subagent-budget.js"
],
"doc": "docs/settings-reference.md",
"relates": [
"AUTOPILOT_SUBAGENT_BUDGET_ROOT_TURNS_PER_HOUR_MAX"
],
"summary": "Subagent turns of the whole session in the last 60 minutes before the next dispatch is denied.",
"type": "number"
},
{
"name": "subagent_budget.concurrent_advise_max",
"kind": "config_key",
"audience": "user",
"group": "hooks",
"default": 3,
"readers": [
"hooks/subagent-budget.js"
],
"doc": "docs/settings-reference.md",
"relates": [
"AUTOPILOT_SUBAGENT_BUDGET_CONCURRENT_ADVISE_MAX"
],
"summary": "Running subagents at or above this number add one advisory line on Agent dispatch. 0 disables the line. The hook never denies on this count.",
"type": "number"
},
{
"name": "foreman_guard.advisory_every",
"kind": "config_key",
"audience": "user",
"group": "hooks",
"default": 40,
"readers": [
"hooks/foreman-guard.js"
],
"doc": "docs/settings-reference.md",
"relates": [
"AUTOPILOT_FOREMAN_GUARD_ADVISORY_EVERY"
],
"summary": "Repeat interval of the non-denying advisory for other Engine-header subagents.",
"type": "number"
},
{
"name": "foreman_guard.bash_cap",
"kind": "config_key",
"audience": "user",
"group": "hooks",
"default": 40,
"readers": [
"hooks/foreman-guard.js"
],
"doc": "docs/settings-reference.md",
"relates": [
"AUTOPILOT_FOREMAN_GUARD_BASH_CAP"
],
"summary": "Bash calls a foreman may make before it is told to hand off.",
"type": "number"
},
{
"name": "foreman_guard.mode",
"kind": "config_key",
"audience": "user",
"group": "hooks",
"default": "block",
"readers": [
"hooks/foreman-guard.js"
],
"doc": "docs/settings-reference.md",
"relates": [
"AUTOPILOT_FOREMAN_GUARD_MODE"
],
"summary": "Foreman guard (Bash cap, no-polling, no-Monitor for l4-l6 subagents): \"block\", \"warn\" or \"off\".",
"type": "enum",
"allowed": [
"block",
"warn",
"off"
]
},
{
"name": "foreman_guard.reserve_calls",
"kind": "config_key",
"audience": "user",
"group": "hooks",
"default": 8,
"readers": [
"hooks/foreman-guard.js"
],
"doc": "docs/settings-reference.md",
"relates": [
"AUTOPILOT_FOREMAN_GUARD_RESERVE_CALLS"
],
"summary": "Calls held back after the cap for the closing handoff (git status, add, commit, ...).",
"type": "number"
},
{
"name": "foreman_guard.role_caps",
"kind": "config_key",
"audience": "user",
"group": "hooks",
"default": null,
"readers": [
"hooks/foreman-guard.js"
],
"doc": "docs/settings-reference.md",
"relates": [
"AUTOPILOT_FOREMAN_GUARD_ROLE_CAPS"
],
"summary": "Per-role Bash caps: an object with foreman, worker and reviewer integers (worker and reviewer default to 120).",
"type": "object"
},
{
"name": "handoff_inject",
"kind": "config_key",
"audience": "user",
"group": "context",
"default": false,
"readers": [
"hooks/session-start.js",
"hooks/session-handoff.js"
],
"doc": "docs/settings-reference.md",
"relates": [
"AUTOPILOT_HANDOFF_INJECT"
],
"summary": "true restores the machine session snapshot after /clear (session-handoff + session-start hooks).",
"type": "boolean"
},
{
"name": "hooks.<stem>",
"kind": "config_key",
"audience": "user",
"group": "hooks",
"needle": "hooks",
"default": "opt-in hooks off, default-on hooks on",
"readers": [
"hooks/_shared/opt-in.js"
],
"doc": "docs/settings-reference.md",
"relates": [
"AUTOPILOT_HOOK_<STEM>"
],
"summary": "Per-hook switch. true enables an opt-in hook; false disables a default-on hook that honors it (residue-auto-reap).",
"type": "boolean",
"changed_in": [
{
"schema": 1,
"from": "off",
"to": "on (default-on hooks: context-budget, dispatch-model-guard, cost-tracker, foreman-guard; v2.35.15)",
"note": "These hooks used to be opt-in. A hook you never enabled now runs; the exit knob is in the Hook switches section of docs/settings-reference.md."
}
]
},
{
"name": "orchestrator_edit_gate.mode",
"kind": "config_key",
"audience": "user",
"group": "hooks",
"default": "warn",
"readers": [
"hooks/orchestrator-edit-gate.js"
],
"doc": "docs/settings-reference.md",
"relates": [
"AUTOPILOT_ORCH_EDIT_GATE_MODE",
"hooks.<stem>"
],
"summary": "What the (opt-in) orchestrator-edit-gate does when the top-level session edits files itself: \"warn\", \"block\" or \"off\".",
"type": "enum",
"allowed": [
"warn",
"block",
"off"
]
},
{
"name": "qualification_feed.url",
"kind": "config_key",
"audience": "user",
"group": "dispatch",
"default": null,
"readers": [
"scripts/adopt-qualification-defaults.js"
],
"doc": "docs/settings-reference.md",
"relates": [],
"summary": "Default feed URL for adopt-qualification-defaults.js --from; it never fetches by itself.",
"type": "string"
},
{
"name": "qualification_feed.trust",
"kind": "config_key",
"audience": "user",
"group": "dispatch",
"default": "auto",
"readers": [
"scripts/lib/qualification-trust.js",
"scripts/lib/qualification-confirm.js",
"scripts/qualification-feed-trust.js",
"scripts/engine-scorecard.js"
],
"doc": "docs/settings-reference.md",
"relates": [],
"summary": "How a gate-passed qualification feed is used: auto (default), confirm, or off. An unrecognised value is off.",
"type": "enum",
"allowed": [
"auto",
"confirm",
"off"
]
},