-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathpackage.json
More file actions
3617 lines (3617 loc) · 168 KB
/
Copy pathpackage.json
File metadata and controls
3617 lines (3617 loc) · 168 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
{
"name": "sidecar-ai",
"displayName": "SideCar",
"description": "Autonomous AI agent for coding — run full agent loops with local Ollama, Anthropic Claude, or OpenAI models",
"version": "0.123.0",
"license": "MIT",
"publisher": "nedonatelli",
"author": {
"name": "Nicholas Donatelli",
"email": "sidecarai.vscode@gmail.com"
},
"repository": {
"type": "git",
"url": "https://github.com/nedonatelli/sidecar"
},
"bugs": {
"url": "https://github.com/nedonatelli/sidecar/issues",
"email": "sidecarai.vscode@gmail.com"
},
"engines": {
"vscode": "^1.116.0",
"node": ">=20.0.0"
},
"icon": "media/SideCar.png",
"categories": [
"AI",
"Chat"
],
"keywords": [
"ollama",
"ai",
"chat",
"llama",
"llm",
"local",
"mistral",
"gemma",
"codellama",
"copilot",
"cline"
],
"activationEvents": [
"onStartupFinished"
],
"main": "./dist/extension.js",
"contributes": {
"configuration": [
{
"title": "SideCar: Backend & Models",
"properties": {
"sidecar.baseUrl": {
"type": "string",
"default": "http://localhost:11434",
"order": 0,
"tags": [
"sidecar",
"backend"
],
"markdownDescription": "Base URL for the active LLM backend.\n\n| Backend | URL |\n|---|---|\n| Ollama (local) | `http://localhost:11434` |\n| Anthropic | `https://api.anthropic.com` |\n| OpenAI | `https://api.openai.com` |\n| OpenAI-compatible | your endpoint, e.g. `https://host/v1` (trailing `/v1` optional) |\n| Kickstand | `http://localhost:11435` |\n\nSwitch backends the easy way: `SideCar: Switch Backend` in the Command Palette."
},
"sidecar.apiKey": {
"type": "string",
"default": "ollama",
"order": 1,
"tags": [
"sidecar",
"backend",
"secret"
],
"markdownDescription": "API key for the active backend. **Stored in VS Code SecretStorage** — never in `settings.json`. Run `SideCar: Set / Refresh API Key` to paste or rotate your key securely. Plaintext values in this setting are migrated to SecretStorage on activation and then cleared.\n\nIgnored for local Ollama; required for Anthropic and OpenAI."
},
"sidecar.model": {
"type": "string",
"default": "gemma4:e4b",
"order": 2,
"tags": [
"sidecar",
"backend"
],
"markdownDescription": "Model to use for chat. **Recommended local default: `gemma4:e4b`** (9 GB, ~10 GB VRAM; the most-dogfooded local model, strongest prompt-following).\n\nExamples:\n\n- Ollama: `gemma4:e4b`, `ministral-3:latest` (6 GB, lighter), `granite4.1:3b` (2 GB low-RAM), `qwen2.5-coder:7b`\n- Anthropic: `claude-opus-4-6`, `claude-sonnet-4-5`, `claude-haiku-4-5`\n- OpenAI: `gpt-5`, `gpt-4o`, `gpt-4o-mini`\n\nPick keyboard-first with `SideCar: Select Model`."
},
"sidecar.editorModel": {
"type": "string",
"default": "",
"order": 3,
"tags": [
"sidecar",
"backend"
],
"markdownDescription": "**Architect / Editor split.** When set, agent-loop turns are routed to two models:\n\n- **Architect** (`#sidecar.model#`): planning turns — first turn and any turn following a pure-text response. Uses your main (expensive) model.\n- **Editor** (this setting): execution turns — any turn following tool calls. Use a cheaper/faster model here.\n\nExamples: set `#sidecar.model#` to `claude-opus-4-7` and this to `claude-haiku-4-5` to cut costs on long agent runs.\n\nLeave empty (default) to disable the split — all turns use `#sidecar.model#`."
},
"sidecar.webSearch.provider": {
"type": "string",
"enum": [
"duckduckgo",
"tavily",
"brave"
],
"enumDescriptions": [
"DuckDuckGo HTML scraping — no API key required. May be less reliable.",
"Tavily — purpose-built LLM search API. Requires sidecar.webSearch.apiKey (get a key at tavily.com).",
"Brave Search API — privacy-focused, independent index. Requires sidecar.webSearch.apiKey (get a key at brave.com/search/api)."
],
"default": "duckduckgo",
"order": 4,
"tags": [
"sidecar",
"backend"
],
"description": "Web search provider used by the web_search tool. DuckDuckGo requires no key; Tavily and Brave require sidecar.webSearch.apiKey."
},
"sidecar.webSearch.apiKey": {
"type": "string",
"default": "",
"order": 5,
"tags": [
"sidecar",
"backend"
],
"description": "API key for the selected web search provider. Required when sidecar.webSearch.provider is 'tavily' or 'brave'. Stored in settings.json — use a key with minimal permissions."
},
"sidecar.provider": {
"type": "string",
"enum": [
"auto",
"ollama",
"anthropic",
"openai",
"openai-compat",
"openrouter",
"groq",
"fireworks",
"gemini",
"kickstand",
"copilot",
"bedrock"
],
"enumDescriptions": [
"Detect from the base URL: localhost:11434 → Ollama, anthropic.com → Anthropic, openrouter.ai → OpenRouter, groq.com → Groq, fireworks.ai → Fireworks, generativelanguage.googleapis.com → Gemini, localhost:11435 → Kickstand, anything else → OpenAI-compatible.",
"Local Ollama (http://localhost:11434). Free, private, no key needed.",
"Anthropic Claude API. Requires an API key stored via `SideCar: Set / Refresh API Key`.",
"OpenAI-compatible API (OpenAI, LM Studio, vLLM, llama.cpp, together.ai). Requires an API key.",
"Any OpenAI-compatible endpoint — self-hosted (vLLM, mlx-lm, llama.cpp) or a gateway. Set sidecar.baseUrl to the endpoint and sidecar.apiKey to its token. A trailing /v1 is optional.",
"OpenRouter (https://openrouter.ai/api/v1). One API key unlocks hundreds of models across providers (Anthropic, OpenAI, Google, Mistral, Meta, and more) with per-model pricing pulled live from their catalog. Requires an OpenRouter API key.",
"Groq (https://api.groq.com/openai/v1). LPU inference serves open-weight models (Llama 3.3, Mixtral, DeepSeek R1 distills) at thousands of tokens/sec. Free tier with rate limits. Requires a Groq API key from console.groq.com.",
"Fireworks (https://api.fireworks.ai/inference/v1). Hosts open-weight models like DeepSeek V3, Qwen 2.5 Coder, Llama 3.3, Mixtral at OpenAI-compatible pricing. Requires an API key from fireworks.ai.",
"Google Gemini (https://generativelanguage.googleapis.com/openai). Gemini 2.0 Flash, Pro, and Ultra via the OpenAI-compatible endpoint. Requires an API key from aistudio.google.com/apikey.",
"Kickstand self-hosted LLM server (http://localhost:11435). Reads its bearer token automatically from `~/.config/kickstand/token`. No API key prompt shown.",
"GitHub Copilot via `vscode.lm`. Uses your existing GitHub Copilot subscription — no separate API key required. Requires the GitHub Copilot extension to be installed and signed in.",
"AWS Bedrock for Claude models (bedrock-runtime.<region>.amazonaws.com). No API key — uses the AWS credential chain (env vars or ~/.aws/credentials). Set `sidecar.bedrock.region` and use a Bedrock model / inference-profile ID."
],
"default": "auto",
"order": 3,
"tags": [
"sidecar",
"backend"
],
"markdownDescription": "Which backend adapter to use when talking to the LLM. Leave as `auto` unless you're running an OpenAI-compatible server at a non-standard URL that the auto-detector can't recognize."
},
"sidecar.bedrock.region": {
"type": "string",
"default": "us-east-1",
"order": 4,
"tags": [
"sidecar",
"backend"
],
"markdownDescription": "AWS region for the Bedrock backend (e.g. `us-east-1`, `us-west-2`, `eu-central-1`). The Bedrock Runtime endpoint is derived as `bedrock-runtime.<region>.amazonaws.com`. Credentials come from the standard AWS chain (env vars or `~/.aws/credentials`); no API key prompt is shown."
},
"sidecar.bedrock.fips": {
"type": "boolean",
"default": false,
"order": 5,
"tags": [
"sidecar",
"backend"
],
"markdownDescription": "Use the Bedrock **FIPS** endpoint — `bedrock-runtime-fips.<region>.amazonaws.com` instead of the standard host. Required for some connections, notably **AWS GovCloud** (`us-gov-east-1` / `us-gov-west-1`). The `SideCar: Bedrock: Set Region` command offers this automatically for GovCloud regions and keeps `sidecar.baseUrl` in sync."
},
"sidecar.fallbackBaseUrl": {
"type": "string",
"default": "",
"order": 45,
"tags": [
"sidecar",
"backend"
],
"markdownDescription": "Fallback backend URL. If the primary backend fails repeatedly, SideCar switches to this URL automatically. Leave empty to disable fallback.\n\nTypical use: primary = Anthropic, fallback = local Ollama, so a transient API outage doesn't block your work."
},
"sidecar.fallbackApiKey": {
"type": "string",
"default": "",
"order": 46,
"tags": [
"sidecar",
"backend",
"secret"
],
"markdownDescription": "API key for the fallback backend. **Stored in VS Code SecretStorage** — plaintext values are migrated on activation and then cleared from `settings.json`."
},
"sidecar.fallbackModel": {
"type": "string",
"default": "",
"order": 47,
"tags": [
"sidecar",
"backend"
],
"markdownDescription": "Model to use on the fallback backend. Empty string = reuse the primary model (only useful when the primary and fallback are the same provider family)."
},
"sidecar.requestTimeout": {
"type": "number",
"default": 120,
"description": "Timeout in seconds between tokens during streaming. If no new tokens arrive within this window the request is aborted. Set to 0 to disable."
},
"sidecar.firstTokenTimeout": {
"type": "number",
"default": 300,
"description": "Minimum seconds to wait for the first token from the model, before prompt-size headroom is added. Large contexts (big repos) automatically get proportionally more time so prefill isn't aborted mid-stream; this value is the floor for small prompts. Local models (Ollama) can take longer to start when loading from disk or warming up. Set to 0 to disable."
},
"sidecar.dailyBudget": {
"type": "number",
"default": 0,
"minimum": 0,
"order": 48,
"tags": [
"sidecar",
"cost"
],
"markdownDescription": "Daily spending budget in USD for paid backends. Agent runs are blocked when the limit is reached. `0` = disabled. Check current spend with `SideCar: Show Session Spend`."
},
"sidecar.weeklyBudget": {
"type": "number",
"default": 0,
"minimum": 0,
"order": 49,
"tags": [
"sidecar",
"cost"
],
"markdownDescription": "Weekly spending budget in USD for paid backends. Agent runs are blocked when the limit is reached. `0` = disabled."
},
"sidecar.modelRouting.enabled": {
"type": "boolean",
"default": false,
"order": 50,
"tags": [
"sidecar",
"routing"
],
"markdownDescription": "Route each agent dispatch role (`chat`, `agent-loop`, `completion`, `summarize`, `critic`, `worker`, `planner`, `judge`, `visual`, `embed`) to a rule-selected model. Opt-in — when `false`, every role uses `#sidecar.model#` (legacy behavior). Configure rules via `#sidecar.modelRouting.rules#`."
},
"sidecar.modelRouting.rules": {
"type": "array",
"default": [],
"order": 51,
"tags": [
"sidecar",
"routing"
],
"items": {
"type": "object",
"properties": {
"when": {
"type": "string",
"description": "Role match. Forms: `agent-loop`, `agent-loop.complexity=high`, `agent-loop.retryCount>=3`, `chat.prompt~=/prove\\b|think hard/i`, `agent-loop.files~=src/physics/**`."
},
"model": {
"type": "string",
"description": "Model id to dispatch with when this rule matches."
},
"fallbackModel": {
"type": "string",
"description": "Downgrade target when a budget cap on this rule is exceeded (v0.64 phase 4c)."
},
"sessionBudget": {
"type": "number",
"description": "Session spend cap in USD. Budget tripped → downgrade to `fallbackModel`."
},
"dailyBudget": {
"type": "number"
},
"hourlyBudget": {
"type": "number"
}
},
"required": [
"when",
"model"
]
},
"markdownDescription": "Ordered list of routing rules, first match wins. See `#sidecar.modelRouting.enabled#` for the opt-in switch. Example: `[{ \"when\": \"agent-loop.complexity=high\", \"model\": \"claude-opus-4-6\" }, { \"when\": \"summarize\", \"model\": \"claude-haiku-4-5\" }, { \"when\": \"chat\", \"model\": \"ollama/llama3:70b\" }]`"
},
"sidecar.modelRouting.defaultModel": {
"type": "string",
"default": "",
"order": 52,
"tags": [
"sidecar",
"routing"
],
"markdownDescription": "Model used when no rule in `#sidecar.modelRouting.rules#` matches. Empty → falls back to `#sidecar.model#`."
},
"sidecar.modelRouting.visibleSwaps": {
"type": "boolean",
"default": true,
"order": 53,
"tags": [
"sidecar",
"routing"
],
"markdownDescription": "Show a brief toast whenever a routing rule swaps the active model mid-session. Turn off once you've calibrated your rules and don't want to see the notifications."
},
"sidecar.modelRouting.dryRun": {
"type": "boolean",
"default": false,
"order": 54,
"tags": [
"sidecar",
"routing"
],
"markdownDescription": "Log what the router *would* have selected but dispatch using `#sidecar.model#` anyway. Useful for safely calibrating rules before turning `#sidecar.modelRouting.enabled#` on."
}
}
},
{
"title": "SideCar: Agent",
"properties": {
"sidecar.agentMode": {
"type": "string",
"default": "cautious",
"order": 20,
"tags": [
"sidecar",
"agent"
],
"markdownDescription": "How much autonomy the agent has. Built-in modes:\n\n- `cautious` — asks before destructive tools (default)\n- `autonomous` — runs every allowed tool without asking\n- `manual` — asks before every tool\n- `plan` — generates a plan for your approval, then executes\n- `review` — queues file edits for review; nothing hits disk\n- `audit` *(v0.60)* — agent runs without per-call prompts, but every `write_file` / `edit_file` / `delete_file` is diverted to an in-memory buffer instead of touching disk. The user reviews the buffered changes at the end and either accepts (atomic flush) or rejects (discard). Shell commands still run normally — scope is the agent's explicit file-authoring surface, not every side effect.\n\nCustom modes defined in `#sidecar.customModes#` are also valid here."
},
"sidecar.agentTemperature": {
"type": "number",
"default": 0.2,
"minimum": 0,
"maximum": 2,
"order": 21,
"tags": [
"sidecar",
"agent"
],
"markdownDescription": "Temperature for LLM requests.\n\n- `0.1-0.3` — deterministic tool selection (recommended for agent loops)\n- `0.7-1.0` — creative, more exploration\n\nApplied to every request on Ollama and Kickstand; on Anthropic/Bedrock applied where the model supports it; on OpenAI-compatible backends applied only to tool-bearing requests (plain requests use the provider default)."
},
"sidecar.agentSeed": {
"type": [
"number",
"null"
],
"default": null,
"order": 21,
"tags": [
"sidecar",
"agent"
],
"markdownDescription": "Fixed RNG seed for generation, for **reproducible runs** (benchmarks / ablation). `null` (default) leaves generation unseeded. When set, identical prompts produce identical outputs on backends that honor a seed (Ollama). The `SIDECAR_AGENT_SEED` environment variable overrides this for headless runs."
},
"sidecar.ollama.numCtx": {
"type": [
"number",
"null"
],
"default": null,
"minimum": 512,
"order": 22,
"tags": [
"sidecar",
"backend"
],
"markdownDescription": "Override the context window size (`num_ctx`) sent to Ollama with every request. When set, this takes precedence over the value probed from the model's Modelfile.\n\nLeave `null` to use the model's default (recommended). Set to `8192`, `32768`, `65536`, etc. to force a specific window. Only applies to the Ollama backend."
},
"sidecar.ollama.disableThinking": {
"type": "boolean",
"default": false,
"order": 23,
"tags": [
"sidecar",
"backend"
],
"markdownDescription": "Disable the extended reasoning (`think`) phase for Ollama models that support it (e.g. Qwen3, DeepSeek-R1). When `true`, SideCar passes `think: false` with every request, skipping the internal chain-of-thought and reducing latency significantly at the cost of reasoning depth.\n\nLeave `false` (default) to keep thinking enabled — recommended for complex coding tasks. Enable when speed matters more than depth, or when running evals."
},
"sidecar.agentMaxIterations": {
"type": "number",
"default": 50,
"minimum": 1,
"maximum": 100,
"order": 23,
"tags": [
"sidecar",
"agent"
],
"markdownDescription": "Maximum number of agent loop iterations before the agent stops. Each iteration is one model call plus any tools it chose. Hitting this limit usually means the agent is stuck in a cycle — inspect the chat and narrow the task."
},
"sidecar.agentMaxMessages": {
"type": "number",
"default": 25,
"minimum": 5,
"maximum": 200,
"order": 23,
"tags": [
"sidecar",
"agent"
],
"markdownDescription": "Soft ceiling on conversation message count before the agent should wrap up. The agent still completes the current tool cycle if it's in the middle of one."
},
"sidecar.agentMaxTokens": {
"type": "number",
"default": 200000,
"minimum": 1000,
"maximum": 1000000,
"order": 24,
"tags": [
"sidecar",
"agent"
],
"markdownDescription": "Maximum total tokens (message history only, system prompt excluded) the agent loop may consume before it stops. Acts as a cost-control ceiling: the loop automatically uses the model's reported context window if smaller. Lower this if you want to limit per-run cost on paid backends."
},
"sidecar.toolPermissions": {
"type": "object",
"default": {},
"description": "Per-tool permission overrides: { \"tool_name\": \"allow\" | \"deny\" | \"ask\" }"
},
"sidecar.systemPrompt": {
"type": "string",
"default": "",
"order": 10,
"tags": [
"sidecar",
"context"
],
"markdownDescription": "System prompt override. Leave empty to use SideCar's built-in prompt (recommended). Custom prompts compose on top of the base; they don't replace it."
},
"sidecar.bgMaxConcurrent": {
"type": "number",
"default": 3,
"minimum": 1,
"maximum": 10,
"description": "Maximum number of background agents that can run simultaneously"
},
"sidecar.shellTimeout": {
"type": "number",
"default": 120,
"description": "Seconds a shell command may run WITHOUT producing output before it is treated as hung and killed. Any output resets the clock, so long-running commands that keep printing (test suites, builds) are not interrupted.",
"minimum": 1
},
"sidecar.shellMaxOutputMB": {
"type": "number",
"default": 0,
"description": "Hard ceiling on captured shell output, in MB. 0 (default) auto-bounds capture near the model's context budget — the prompt pruner keeps only ~16KB of any tool result, so capturing megabytes just wastes memory. Set a positive value to force a fixed MB ceiling (e.g. to see more of a long stream in the webview)."
}
}
},
{
"title": "SideCar: Safety & Review",
"properties": {
"sidecar.adaptiveScaffolding.enabled": {
"type": "boolean",
"default": true,
"description": "Tune loop-safety scaffolding to the active model's capability tier. Weak models get a larger reprompt and gate budget to recover; strong models get a looser burst cap and hold more context before compacting. Verification budgets are never reduced. Measured neutral-to-positive across llama3.2 / ministral-3 / granite4.1 / qwen2.5-coder / qwen3.5 / gemma4 and claude-sonnet-5."
},
"sidecar.modelLearning.enabled": {
"type": "boolean",
"default": true,
"description": "Learn each model's capability tier from how it actually performs in this workspace, instead of guessing it from the model's name. Demotes a model (more scaffolding) when it fails; promotes it (less scaffolding) only when it succeeds WITHOUT ever needing the scaffolding to intervene. Requires sidecar.adaptiveScaffolding.enabled. Turn off to pin tiers to their defaults."
},
"sidecar.modelTier": {
"type": "object",
"default": {},
"additionalProperties": {
"type": "string",
"enum": [
"weak",
"medium",
"strong"
]
},
"markdownDescription": "Explicit capability tier per model — overrides detection entirely, including anything SideCar has learned. Use when the automatic tier is wrong for your hardware or codebase.\n\nExample: `{ \"llama3.2\": \"weak\", \"qwen2.5-coder:7b\": \"medium\" }`\n\n`weak` = maximum scaffolding (more reprompts, more gate retries, no LLM critic). `strong` = minimum (fewer reprompts, larger burst cap, lower latency)."
},
"sidecar.scaffolding.overrides": {
"type": "object",
"default": {},
"markdownDescription": "Pin individual scaffolding triggers regardless of the model's tier. Applied last, over everything else.\n\nExample: `{ \"runLlmCritic\": true, \"burstCap\": 20 }`\n\nKeys: `burstCap`, `maxActionReprompts`, `maxGateInjections`, `runLlmCritic`, `planModeAskUser`, `compressionThreshold`, `compactionKeepRecentTurns`, `compactionMaxSummaryChars`."
},
"sidecar.plan.externalized": {
"type": "boolean",
"default": false,
"description": "Externalized planning (S1). Adds an update_plan tool the model calls to keep a step-by-step plan OUTSIDE the message window; the harness re-injects {current step, last result, remaining steps} every turn, so the plan survives context compression on long tasks. Experimental — pending ablation evidence (Prove-or-Prune Ledger)."
},
"sidecar.scaffolding.keepBest": {
"type": "boolean",
"default": true,
"description": "Pareto-safe scaffolding (keep-best ratchet). The loop snapshots your files at the point scaffolding first drives extra work, then at the end reverts scaffold-driven changes that regressed a passing test OR grew the patch with no test-signal gain (over-engineering). By default ANY unproven growth reverts, not just large bloat — see keepBestOverEngineerBytes. Makes the completion gate / critic unable to turn a good run into a worse one. Every revert is surfaced with the file list. Disabled automatically in audit mode (writes are buffered, not on disk). Default-on since v0.118 (measured: over-engineering roughly halved on a 150-run SWE campaign with no possible resolve harm)."
},
"sidecar.scaffolding.keepBestOverEngineerBytes": {
"type": "number",
"default": 0,
"description": "Byte growth past which a scaffold-driven patch that improved no test signal is reverted as over-engineered (keep-best ratchet). Default 0: any growth without a proven improvement (a new passing test, or the project suite going green) reverts — a byte-size gate alone can't tell a legitimate small addition from a wrong one. Raise this (e.g. 4096) to tolerate some unverified growth before reverting."
},
"sidecar.scaffolding.cycleDetectionMinRepeats": {
"type": "number",
"default": 10,
"minimum": 1,
"description": "Repeats of the same tool + file (content-aware) before the agent loop bails as a stuck cycle. Default 10 — was a fixed 3. Weaker/smaller models sometimes need a few attempts to self-correct from a hint (e.g. an edit_file search/replace mistake) before genuinely succeeding; raising this gives more retries before the safety net stops the loop, at the cost of a truly stuck model burning more iterations first. Lower it (e.g. back to 3) for a stricter, faster-to-bail loop."
},
"sidecar.recovery.codeAsText": {
"type": "boolean",
"default": true,
"description": "Code-as-text recovery for models that print code instead of calling tools: parses call-expression syntax emitted as prose (write_file(path=…, content=…)), detects fabricated <tool_output> blocks, decodes literal-escape contamination (\\n as two characters), splits fused anchor+content inserts, and synthesizes a bounded write from a complete code fence on a mutation request. Every layer is a rescue path dormant unless its failure shape occurs, so it is a no-op on capable models. Default-on since v0.120 (proven: 0/28 → 11/27 on qwen2.5-coder, p=0.001; zero net-negative discordants across five model families)."
},
"sidecar.editFile.steerToWrite": {
"type": "boolean",
"default": false,
"description": "When edit_file keeps failing on the same file (a weak model echoing existing content into the insert fields, never producing the delta), steer the model to rewrite the whole file with write_file — the shape it can do. Off by default: a 30-pair campaign measured a real powered null (symmetric discordants with the steer firing 37×), so it ships for manual use only."
},
"sidecar.editFile.steerToWriteThreshold": {
"type": "number",
"default": 3,
"minimum": 2,
"description": "Consecutive edit_file failures on one file before the steer-to-write reprompt fires (when sidecar.editFile.steerToWrite is on)."
},
"sidecar.autoFixOnFailure": {
"type": "boolean",
"default": false,
"description": "Automatically check for errors after agent edits and feed them back to the model for self-correction"
},
"sidecar.autoFixMaxRetries": {
"type": "number",
"default": 3,
"description": "Maximum auto-fix attempts before stopping"
},
"sidecar.completionGate.enabled": {
"type": "boolean",
"default": true,
"description": "Require the agent to run lint and tests for files it edited before declaring completion. Catches cases where the agent reports a change as done without verifying."
},
"sidecar.behavioralVerificationGate.enabled": {
"type": "boolean",
"default": false,
"description": "When the agent edits behavioral code without running a test that actually exercises it, reprompt it to write one. Off by default: on local models this tends to push a correct fix into writing extra, often broken, test files (the same over-edit pattern as the removed critic). Enable to study its effect."
},
"sidecar.syntaxGate.enabled": {
"type": "boolean",
"default": true,
"description": "Refuse to let the agent finish (and break a cycle-detection bail) while a file it edited fails to parse — runs the language's cheap parse check on edited files. On by default; requires the completion gate. Disable to run the agent loop without deterministic syntax verification."
},
"sidecar.redCheckGate.enabled": {
"type": "boolean",
"default": true,
"description": "Refuse to let the agent declare the task done while its own last verification (a test/lint/compile it ran) is still failing. On by default; requires the completion gate. This is the verification-forcing lever most likely to rescue a wrong fix — and most likely to cause over-editing — so it is independently toggleable for study."
},
"sidecar.steerQueue.coalesceWindowMs": {
"type": "number",
"default": 2000,
"minimum": 0,
"maximum": 10000,
"description": "When a user steer is queued, wait up to this many ms at the next iteration boundary to collect further submissions into a single coalesced turn. 0 disables coalescing (drain immediately)."
},
"sidecar.steerQueue.maxPending": {
"type": "number",
"default": 5,
"minimum": 1,
"maximum": 20,
"description": "Maximum number of queued steers. When full, the oldest nudge is dropped to make room; an all-interrupt queue rejects new submissions."
},
"sidecar.multiFileEdits.enabled": {
"type": "boolean",
"default": true,
"description": "Enable multi-file edit streams: the agent plans an edit DAG before executing batches of file writes, then dispatches independent writes in parallel."
},
"sidecar.multiFileEdits.maxParallel": {
"type": "number",
"default": 8,
"minimum": 1,
"maximum": 32,
"description": "Maximum number of file writes dispatched concurrently during a multi-file edit."
},
"sidecar.multiFileEdits.planningPass": {
"type": "boolean",
"default": true,
"description": "Run a dedicated Edit Plan LLM turn before executing multi-file writes. Adds one extra turn of latency; disable to let the agent emit writes directly (the DAG scheduler still applies)."
},
"sidecar.multiFileEdits.minFilesForPlan": {
"type": "number",
"default": 3,
"minimum": 2,
"maximum": 50,
"description": "Minimum number of file writes in one turn that triggers the Edit Plan pass. Smaller edits go directly to execution."
},
"sidecar.multiFileEdits.plannerModel": {
"type": "string",
"default": "",
"description": "Override model used for the Edit Plan turn. Empty = reuse the main model. Point to a smaller local model (e.g. qwen2.5-coder:7b) to keep planning cheap."
},
"sidecar.multiFileEdits.reviewGranularity": {
"type": "string",
"enum": [
"bulk",
"per-file",
"per-hunk"
],
"default": "per-file",
"description": "How the AUDIT-MODE review (SideCar: Review Audited Changes) presents buffered edits. 'bulk' = accept/reject all as one unit, 'per-file' = walk each file individually with Accept / Reject / diff (default), 'per-hunk' = walk each file's individual diff hunks so you can accept some and discard others. Has no effect on the Pending Agent Changes view used outside audit mode."
},
"sidecar.retrieval.graphExpansion.enabled": {
"type": "boolean",
"default": true,
"description": "After semantic retrieval returns vector hits, walk the symbol graph's 'calls' edges outward by 1-2 hops (depth auto-scales with the model's context window) to surface dependency-coupled symbols that wouldn't score on keywords alone. Matters for dense, deeply-interconnected codebases (physics simulations, signal processing, transform libraries)."
},
"sidecar.retrieval.graphExpansion.maxHits": {
"type": "number",
"default": 8,
"minimum": 0,
"maximum": 50,
"description": "Cap on symbols added via graph walk per retrieval call. Higher = deeper dependency coverage at more token cost; lower = tighter context for small-context local models."
},
"sidecar.retrieval.queryRewrite": {
"type": "string",
"default": "rule",
"enum": [
"off",
"rule",
"llm",
"expand"
],
"enumDescriptions": [
"No rewriting — the raw user message is embedded as-is.",
"Free, synchronous: strips conversational preambles (\"how do I\", \"can you help me with\", etc.) and expands camelCase identifiers so the embedding model can match partial terms.",
"One LLM call (≤60 tokens, 3-second timeout) reformulates the rule-cleaned query into a tight technical search string; falls back to rule output on timeout or error.",
"Same LLM call but requests 2 alternative phrasings in addition to the rule-cleaned query. All variants run in parallel through Reciprocal Rank Fusion so each angle of the query can surface different hits."
],
"description": "Controls how the user's message is rewritten before embedding for retrieval. 'rule' is the recommended default — zero cost, consistent improvement. Switch to 'llm' or 'expand' for better recall at the cost of one small LLM call per turn."
},
"sidecar.facets.enabled": {
"type": "boolean",
"default": true,
"description": "Enable Typed Sub-Agent Facets — specialized sub-agents declared in .sidecar/facets/*.md with typed tool allowlists and RPC schemas. Built-in facets (general-coder, latex-writer, signal-processing, frontend, test-author, technical-writer, security-reviewer, data-engineer) are always available."
},
"sidecar.facets.maxConcurrent": {
"type": "number",
"default": 3,
"minimum": 1,
"maximum": 16,
"description": "Maximum number of facets running in parallel. Guards GPU and context pressure when several specialists share the same local model. Within a single dispatch, independent facets run concurrently up to this cap; dependent facets wait for their prerequisites regardless."
},
"sidecar.facets.rpcTimeoutMs": {
"type": "number",
"default": 30000,
"minimum": 1000,
"maximum": 300000,
"description": "Timeout for a single typed RPC call between facets. Exceeded calls return a synthetic timeout error to the caller rather than hanging the dispatch."
},
"sidecar.facets.registry": {
"type": "array",
"items": {
"type": "string"
},
"default": [],
"description": "Absolute paths to additional facet .md files (merged with built-ins). Omit to use only the built-in catalog plus any facets at .sidecar/facets/*.md in the active workspace."
},
"sidecar.designMd.enabled": {
"type": "boolean",
"default": true,
"description": "When true, SideCar reads DESIGN.md from the workspace root and injects design tokens into the agent's context. The compact tokens block (colors, typography, spacing) is always included; the full prose rationale is added only when the active file is a UI file (*.css, *.tsx, *.svelte, etc.). Disable to suppress injection in projects that don't use DESIGN.md."
},
"sidecar.sidecarMd.mode": {
"type": "string",
"enum": [
"full",
"sections",
"retrieval"
],
"default": "sections",
"markdownDescription": "How SIDECAR.md content is injected into the system prompt.\n\n| Mode | Behavior |\n|---|---|\n| `sections` (default) | Parse H2 boundaries, route sections based on `<!-- @paths: glob -->` sentinels, active editor, and user-mentioned paths. |\n| `retrieval` | Semantic retrieval mode — only `always`-priority sections are injected verbatim; all other sections are scored against the current query via cosine similarity and the top-K most relevant ones surface via the RRF fusion pipeline. Best for large SIDECAR.md files (20+ sections). |\n| `full` | Legacy behavior — dump the entire file and mid-chop on overflow. |\n\nPath-scoped sections declare their globs via an HTML-comment sentinel immediately under the H2 heading:\n\n```markdown\n## Transforms\n<!-- @paths: src/transforms/**, src/dsp/** -->\nFilter kernels go under src/transforms/...\n```",
"requiresWindowReload": true
},
"sidecar.sidecarMd.retrieval.topK": {
"type": "number",
"default": 5,
"minimum": 1,
"maximum": 20,
"description": "Maximum number of SIDECAR.md sections to surface per turn in retrieval mode. Only the top-K sections by cosine similarity (above minScore) are injected. Has no effect in `sections` or `full` mode."
},
"sidecar.sidecarMd.retrieval.minScore": {
"type": "number",
"default": 0.3,
"minimum": 0,
"maximum": 1,
"description": "Minimum cosine similarity for a SIDECAR.md section to be included in retrieval mode. Sections below this threshold are never injected even if they rank in the top-K. Raise this to 0.4–0.5 to get tighter relevance; lower it toward 0 to always include the full top-K."
},
"sidecar.sidecarMd.alwaysIncludeHeadings": {
"type": "array",
"items": {
"type": "string"
},
"default": [
"Build",
"Conventions",
"Setup"
],
"description": "H2 headings that always get included in the system prompt regardless of @paths sentinels. Matched case-insensitively against section.heading. Useful for teams that don't want to edit their SIDECAR.md — 'always include the Build section' lives in user settings, not in the doc."
},
"sidecar.sidecarMd.lowPriorityHeadings": {
"type": "array",
"items": {
"type": "string"
},
"default": [
"Glossary",
"FAQ",
"Changelog"
],
"description": "H2 headings that are demoted to low priority — included only when budget remains after always + scoped sections. Matched case-insensitively."
},
"sidecar.sidecarMd.maxScopedSections": {
"type": "number",
"default": 5,
"minimum": 1,
"maximum": 50,
"description": "Cap on how many path-scoped sections can land in one injection. Guards against a wildcard-ish path glob that matches 30 sections."
},
"sidecar.fork.enabled": {
"type": "boolean",
"default": true,
"description": "Enable Fork & Parallel Solve — the /fork command spawns N parallel approaches to the same task, each in its own Shadow Workspace, and presents them side-by-side for comparison."
},
"sidecar.fork.defaultCount": {
"type": "number",
"default": 3,
"minimum": 2,
"maximum": 10,
"description": "Default number of forks spawned by /fork when no explicit count is passed. Clamped 2–10; values outside that range degenerate to 'agent loop with no comparison.'"
},
"sidecar.fork.maxConcurrent": {
"type": "number",
"default": 3,
"minimum": 1,
"maximum": 10,
"description": "Max forks running in parallel at once. Clamped to [1, numForks] per dispatch. Higher values finish faster at the cost of more concurrent Shadow Workspaces (disk churn) and more concurrent LLM requests (cost + rate limits)."
},
"sidecar.arena.enabled": {
"type": "boolean",
"default": true,
"description": "Enable Model Arena — side-by-side comparison of 2–4 models on the same prompt, with ELO ratings stored in .sidecar/arena/elo.json.",
"requiresWindowReload": true
},
"sidecar.arena.defaultModels": {
"type": "array",
"items": {
"type": "string"
},
"default": [],
"description": "Pre-populated model list for the Arena panel. When non-empty, the QuickPick is skipped and these models are used. Example: [\"llama3.2:3b\", \"qwen3:8b\"]."
},
"sidecar.kickstand.nCtx": {
"type": "number",
"default": 32768,
"minimum": 512,
"description": "Context window size (n_ctx) passed to Kickstand when loading a model. Increase this if you hit 'Prompt too long for model context window' errors. Must not exceed what your GPU VRAM can hold for the chosen model."
},
"sidecar.kickstand.ropeFreqBase": {
"type": "number",
"default": 0,
"minimum": 0,
"description": "RoPE base frequency override for Kickstand models. 0 = use the model's built-in value. Set to 500000 for Llama 3.1/3.3 to enable 128K context, or 1000000 for Qwen3 extended context."
},
"sidecar.kickstand.ropeFreqScale": {
"type": "number",
"default": 0,
"minimum": 0,
"description": "RoPE frequency scale factor for Kickstand models. 0 = use the model's built-in value. Values < 1 extend the context window (e.g. 0.5 doubles effective context length)."
},
"sidecar.kickstand.yarnExtFactor": {
"type": "number",
"default": -1,
"description": "YaRN extrapolation mix factor. -1 = use the model's built-in default (recommended). 0 = disable YaRN. 1 = full YaRN extrapolation. Most modern long-context models (Llama 3.1, Qwen3) embed YaRN in their weights — leave this at -1 unless you know what you're doing."
},
"sidecar.kickstand.yarnOrigCtx": {
"type": "number",
"default": 0,
"minimum": 0,
"description": "YaRN original training context length. 0 = auto-detect from model metadata. Only needed if the automatic detection is wrong for your model."
},
"sidecar.kickstand.flashAttn": {
"type": "boolean",
"default": false,
"description": "Enable Flash Attention when loading models in Kickstand. Gives 2–4× speedup on long contexts with Metal (macOS) or CUDA backends. Has no effect on CPU-only inference. Requires a rebuild of libkickstand_llm if not already compiled with Flash Attention support."
},
"sidecar.regressionGuards": {
"type": "array",
"default": [],
"order": 21,
"tags": [
"sidecar"
],
"markdownDescription": "Declarative shell commands that act as hard gates the agent must pass before completing a task. Use for domain-specific correctness checks the general lint/test suite can't express — conservation-of-energy invariants in a physics sim, bundle-size budgets, API-contract diffs, etc.\n\nEach entry has: `name` (required, human-readable), `command` (required, shell), `trigger` (required, one of `post-write` / `post-turn` / `pre-completion`), and optional `blocking` (default `true`), `timeoutMs` (default 30000), `scope` (glob array; guard only fires when touched files match), `maxAttempts` (default 5 consecutive failures before giving up), `workingDir`.\n\nWhen blocking and exit ≠ 0, the guard output is injected as a synthetic user turn so the agent can read the error and revise. When non-blocking, the loop just surfaces a warning. The first time a workspace defines guards, SideCar prompts to trust them — same contract as `hooks`, `mcpServers`, `customTools`, `scheduledTasks`.",
"items": {
"type": "object",
"required": [
"name",
"command",
"trigger"
],
"properties": {
"name": {
"type": "string",
"description": "Short identifier for the guard (shown in failure messages)."
},
"command": {
"type": "string",
"description": "Shell command to run. Runs in the workspace root unless workingDir is set."
},
"trigger": {
"type": "string",
"enum": [
"post-write",
"post-turn",
"pre-completion"
],
"description": "When the guard fires. post-write = after every turn that includes a file-mutation tool call; post-turn = after every turn; pre-completion = when the model tries to finish the task."
},
"blocking": {
"type": "boolean",
"default": true,
"description": "When true, failure injects a synthetic user turn so the agent must address it. When false, failure surfaces as a warning and the loop continues."
},
"timeoutMs": {
"type": "number",
"default": 30000,
"description": "Hard timeout for the command in ms."
},
"scope": {
"type": "array",
"items": {
"type": "string"
},
"description": "Optional glob list. Guard only fires when at least one touched file in this turn matches. Empty/missing = fire on every qualifying turn."
},
"maxAttempts": {
"type": "number",
"default": 5,
"description": "Give up after this many consecutive failures per task. Counter resets on any success."
},
"workingDir": {
"type": "string",
"description": "Optional working directory. Defaults to the workspace folder."
}
}
}
},
"sidecar.regressionGuards.mode": {
"type": "string",
"enum": [
"off",
"strict",
"warn"
],
"default": "strict",
"order": 22,
"tags": [
"sidecar"
],
"markdownDescription": "Global override for `sidecar.regressionGuards`.\n\n- `strict` (default) — honor each guard's per-entry `blocking` flag.\n- `warn` — force every guard to non-blocking, so failures surface as warnings but don't halt the agent. Useful for short-term opt-out during a known-broken refactor without editing every entry.\n- `off` — disable all guards regardless of config. Useful for emergency bypass."
},
"sidecar.audit.autoApproveReads": {
"type": "boolean",
"default": true,
"order": 23,
"tags": [
"sidecar"
],
"markdownDescription": "*(Audit Mode, v0.60)* When true (default), `read_file` / `list_directory` calls don't need to go through the audit buffer review — reads don't mutate state, so they pass through even when the agent is running in `audit` mode. Set to `false` to require explicit approval for every read (rarely useful; mostly for auditing sessions where the set of files consulted is itself sensitive)."
},
"sidecar.audit.bufferGitCommits": {
"type": "boolean",
"default": true,
"order": 24,
"tags": [
"sidecar"
],
"markdownDescription": "*(Audit Mode, v0.60)* When true (default), `git_commit` tool calls are buffered alongside file writes so a rejected audit batch leaves `HEAD` unchanged. When false, commits land immediately regardless of audit state — useful for session-tracking commits (changelog entries, audit trail) the user wants to keep even if the code changes are rejected. v0.61 a.4 wires the behavior end-to-end: queued commits execute in FIFO order as the last step of a full flush; subset flushes leave commits queued."
},
"sidecar.pr.create.draftByDefault": {
"type": "boolean",
"default": true,
"markdownDescription": "*(Draft PR, v0.68)* When true (default), `SideCar: Create Pull Request (Draft from Branch)` opens PRs as drafts — so CI runs but no reviewer is pinged until you mark ready. Set false to open a ready-for-review PR on the first push."
},
"sidecar.pr.create.baseBranch": {
"type": "string",
"default": "auto",
"markdownDescription": "*(Draft PR, v0.68)* Base branch for new PRs. `auto` (default) resolves the remote's default branch via `git symbolic-ref refs/remotes/origin/HEAD`, falling back to `main`. Set to an explicit branch name (e.g. `develop`) to override for repos that target a non-default base."
},
"sidecar.pr.create.template": {
"type": "string",
"default": "auto",
"markdownDescription": "*(Draft PR, v0.68)* How to handle repo PR templates. `auto` (default) reads `.github/pull_request_template.md` or `.github/PULL_REQUEST_TEMPLATE.md` and asks the model to fill each section. `ignore` writes a fresh Summary + Test Plan body regardless. Any other value is treated as an absolute/relative path to a custom template file."
},
"sidecar.pr.branchProtection.enabled": {
"type": "boolean",
"default": true,
"markdownDescription": "*(Branch Protection Awareness, v0.99)* When true (default), `git_push` checks the target branch's protection rules before pushing. If the branch requires a pull request (i.e. direct pushes are blocked), the push is aborted and the agent is told why — preventing the \"pushed straight to main\" footgun. Disable if your GitHub token lacks `repo` scope or you're pushing to a private fork where the protection rules are irrelevant."
},
"sidecar.pr.branchProtection.warnEvenIfPassing": {
"type": "boolean",
"default": false,
"markdownDescription": "*(Branch Protection Awareness, v0.99)* When true, the `git_push` result includes a summary of branch protection rules even when direct pushes ARE allowed — so the agent knows about required status checks and reviewer counts before the PR is submitted. Off by default to keep push output concise."
},
"sidecar.codeLens.enabled": {
"type": "boolean",
"default": true,
"description": "Show SideCar code lenses above functions and TODO comments for quick Explain/Fix actions.",
"requiresWindowReload": true
}
}
},
{
"title": "SideCar: Retrieval & Context",
"properties": {
"sidecar.contextProviders": {
"type": "array",
"default": [],
"markdownDescription": "External issue-tracker integrations injected into every agent system prompt as an `## Active Issues` block. Each entry configures one provider.\n\n**Supported types:** `github`, `linear`, `jira`, `bitbucket`\n\n**Example:**\n```json\n[\n {\n \"type\": \"github\",\n \"token\": \"ghp_...\",\n \"project\": \"owner/repo\",\n \"filter\": \"assigned\",\n \"maxIssues\": 5\n },\n {\n \"type\": \"linear\",\n \"token\": \"lin_api_...\",\n \"filter\": \"assigned\",\n \"maxIssues\": 5\n },\n {\n \"type\": \"jira\",\n \"token\": \"...\",\n \"baseUrl\": \"https://yourco.atlassian.net\",\n \"project\": \"MYPROJ\",\n \"filter\": \"assigned\",\n \"maxIssues\": 5\n }\n]\n```\n\n**token** — GitHub: Personal Access Token (`ghp_...` or fine-grained). Linear: API key from Linear → Settings → API. Jira: Personal Access Token. ⚠️ Avoid committing tokens — use `${env:MY_TOKEN}` substitution or leave blank and set the `SIDECAR_CTX_TOKEN_GITHUB` / `SIDECAR_CTX_TOKEN_LINEAR` / `SIDECAR_CTX_TOKEN_JIRA` environment variable instead.\n\n**filter** — `assigned` (default): only your open issues. `open`: all open issues in the repo/project. `recent`: recently updated.\n\n**maxIssues** — issues injected per provider (default: 5). Keep low to avoid bloating the context.",
"items": {
"type": "object",
"required": [
"type",
"filter",
"maxIssues"
],
"properties": {
"type": {
"type": "string",
"enum": [
"github",
"linear",
"jira",
"bitbucket"
]
},
"token": {
"type": "string",
"default": ""
},
"baseUrl": {
"type": "string",
"default": ""
},
"project": {
"type": "string",
"default": ""
},
"filter": {
"type": "string",
"enum": [
"assigned",
"open",
"recent"
],
"default": "assigned"
},
"maxIssues": {
"type": "number",
"default": 5,
"minimum": 1,
"maximum": 20
}
}
}
},
"sidecar.includeWorkspace": {
"type": "boolean",
"default": true,
"order": 11,
"tags": [
"sidecar",
"context"
],
"markdownDescription": "Automatically include workspace files in chat context. When off, only files you explicitly reference with `@file:path` or pin with `@pin:path` are sent to the model."
},
"sidecar.includeActiveFile": {
"type": "boolean",
"default": true,
"description": "Allow attaching the active file to chat context via the \"add\" toggle. The file is only included when you click add — set this to false to disable the feature entirely."
},
"sidecar.filePatterns": {
"type": "array",
"items": {
"type": "string"
},
"default": [
"**/*.ts",
"**/*.tsx",
"**/*.js",
"**/*.jsx",
"**/*.vue",