Repository navigation
Expand file tree
/
Copy pathpackage.json
More file actions
1356 lines (1356 loc) · 51.1 KB
/
Copy pathpackage.json
File metadata and controls
1356 lines (1356 loc) · 51.1 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": "opencode-harness",
"private": true,
"displayName": "OpenCode (Unofficial) — AI Coding Assistant for VS Code",
"publisher": "koarthur",
"license": "MIT",
"repository": {
"type": "git",
"url": "https://github.com/K-Arthur/opencode-harness"
},
"description": "OpenCode and OpenCode 2 — an open-source, community-built VS Code client for the OpenCode agent. Chat, refactor, debug, and write code with Claude, GPT, Gemini, and models from 75+ providers in a multi-tab chat panel: side-by-side diffs, permission modes, checkpoint rollback, cost and rate-limit tracking, local voice input, and CLI theme parity. Free to use — you pay only your AI provider. Not developed by, affiliated with, or endorsed by the OpenCode team.",
"icon": "media/opencode-icon-256.png",
"version": "0.4.73",
"engines": {
"vscode": "^1.125.0"
},
"capabilities": {
"untrustedWorkspaces": {
"supported": true,
"description": "Requires workspace access to read and modify files"
}
},
"activationEvents": [
"onStartupFinished",
"onView:opencode-harness.chatView"
],
"categories": [
"AI",
"Chat",
"Machine Learning",
"Programming Languages"
],
"keywords": [
"opencode",
"opencode2",
"opencode-ai",
"ai",
"agent",
"coding",
"assistant",
"vscode",
"vs-code",
"chat",
"refactor",
"debug",
"llm",
"anthropic",
"claude",
"openai",
"gpt",
"gemini",
"model",
"cost-tracking",
"theme",
"privacy",
"diff-viewer",
"checkpoint",
"mcp",
"voice-input",
"side-panel"
],
"pricing": "Free",
"galleryBanner": {
"color": "#1e1e1e",
"theme": "dark"
},
"bugs": {
"url": "https://github.com/K-Arthur/opencode-harness/issues"
},
"homepage": "https://github.com/K-Arthur/opencode-harness#readme",
"extensionKind": [
"workspace"
],
"main": "./dist/extension.js",
"contributes": {
"commands": [
{
"command": "opencode-harness.openChat",
"title": "OpenCode: Open Chat"
},
{
"command": "opencode-harness.newSession",
"title": "OpenCode: New Session"
},
{
"command": "opencode-harness.toggleFocus",
"title": "OpenCode: Toggle Chat Focus"
},
{
"command": "opencode-harness.explainCode",
"title": "OpenCode: Explain Code"
},
{
"command": "opencode-harness.refactorCode",
"title": "OpenCode: Refactor Code"
},
{
"command": "opencode-harness.generateTests",
"title": "OpenCode: Generate Tests"
},
{
"command": "opencode-harness.insertMention",
"title": "OpenCode: Insert File Reference"
},
{
"command": "opencode-harness.captureTerminal",
"title": "OpenCode: Capture Terminal Output"
},
{
"command": "opencode-harness.rollback",
"title": "OpenCode: Rollback Changes"
},
{
"command": "opencode-harness.showRateLimits",
"title": "OpenCode: View Rate Limits"
},
{
"command": "opencode-harness.selectModel",
"title": "OpenCode: Choose Model"
},
{
"command": "opencode-harness.setContextWindowOverride",
"title": "OpenCode: Set Context Window Override"
},
{
"command": "opencode-harness.checkCli",
"title": "OpenCode: Test CLI Connection"
},
{
"command": "opencode-harness.installCli",
"title": "OpenCode: Install CLI"
},
{
"command": "opencode-harness.listSessions",
"title": "OpenCode: View Sessions"
},
{
"command": "opencode-harness.openStoredSession",
"title": "OpenCode: Open Stored Session"
},
{
"command": "opencode-harness.deleteSession",
"title": "OpenCode: Delete Session"
},
{
"command": "opencode-harness.renameSession",
"title": "OpenCode: Rename Session"
},
{
"command": "opencode-harness.exportConversation",
"title": "OpenCode: Export Conversation"
},
{
"command": "opencode-harness.importConversationJson",
"title": "OpenCode: Import Conversation from JSON"
},
{
"command": "opencode-harness.previewTheme",
"title": "OpenCode: Preview Theme"
},
{
"command": "opencode-harness.clearTestSessions",
"title": "OpenCode: Clear Test Sessions"
},
{
"command": "opencode-harness.continueLastSession",
"title": "OpenCode: Continue Last Session"
},
{
"command": "opencode-harness.chooseHistorySession",
"title": "OpenCode: Open Past Session"
},
{
"command": "opencode-harness.attachRemote",
"title": "OpenCode: Connect to Remote Server"
},
{
"command": "opencode-harness.addFileToSession",
"title": "OpenCode: Add File to Session"
},
{
"command": "opencode-harness.addSelectionToSession",
"title": "OpenCode: Add Selection to Session"
},
{
"command": "opencode-harness.stop",
"title": "OpenCode: Stop"
},
{
"command": "opencode-harness.quickChat",
"title": "OpenCode: Quick Chat"
},
{
"command": "opencode-harness.generateAgentsMd",
"title": "OpenCode: Generate AGENTS.md"
},
{
"command": "opencode-harness.openCommandsPalette",
"title": "OpenCode: Open Commands Palette"
},
{
"command": "opencode-harness.clearSession",
"title": "OpenCode: Clear Active Session"
},
{
"command": "opencode-harness.showCost",
"title": "OpenCode: Show Session Cost"
},
{
"command": "opencode-harness.showHelp",
"title": "OpenCode: Show Slash Commands"
},
{
"command": "opencode-harness.cycleMode",
"title": "OpenCode: Cycle Session Mode (Plan → Build → Auto)"
},
{
"command": "opencode-harness.setBuildMode",
"title": "OpenCode: Set Session Mode to Build"
},
{
"command": "opencode-harness.setPlanMode",
"title": "OpenCode: Set Session Mode to Plan"
},
{
"command": "opencode-harness.setAutoMode",
"title": "OpenCode: Set Session Mode to Auto"
},
{
"command": "opencode-harness.setDefaultMode",
"title": "OpenCode: Set Default Session Mode"
},
{
"command": "opencode-harness.setupVoiceInput",
"title": "OpenCode: Set Up Voice Input"
},
{
"command": "opencode-harness.retryLast",
"title": "OpenCode: Retry Last Failed Run"
},
{
"command": "opencode-harness.nextTab",
"title": "OpenCode: Next Tab"
},
{
"command": "opencode-harness.prevTab",
"title": "OpenCode: Previous Tab"
},
{
"command": "opencode-harness.openSettings",
"title": "OpenCode: Open Settings"
},
{
"command": "opencode-harness.jumpToRunningTask",
"title": "OpenCode: Jump to Running Session"
},
{
"command": "opencode-harness.suppressKey",
"title": "OpenCode: (internal) Suppress conflicting key while chat focused"
},
{
"command": "opencode-harness.reviewFileChanges",
"title": "OpenCode: Review Changes"
},
{
"command": "opencode-harness.acceptFileChanges",
"title": "OpenCode: Accept Changes"
},
{
"command": "opencode-harness.rejectFileChanges",
"title": "OpenCode: Reject Changes"
},
{
"command": "opencode-harness.sendProblemToOpencode",
"title": "OpenCode: Send Problem to OpenCode"
}
],
"keybindings": [
{
"command": "opencode-harness.quickChat",
"key": "ctrl+i",
"when": "editorTextFocus"
},
{
"command": "opencode-harness.toggleFocus",
"key": "ctrl+alt+o"
},
{
"command": "opencode-harness.newSession",
"key": "ctrl+alt+n"
},
{
"command": "opencode-harness.insertMention",
"key": "alt+k",
"when": "editorTextFocus"
},
{
"command": "opencode-harness.stop",
"key": "ctrl+shift+escape",
"when": "focusedView == 'opencode-harness.chat' || opencodeHarness.chatFocused"
},
{
"command": "opencode-harness.openCommandsPalette",
"key": "ctrl+shift+/",
"when": "focusedView == 'opencode-harness.chat' || opencodeHarness.chatFocused"
},
{
"command": "opencode-harness.nextTab",
"key": "ctrl+alt+]",
"when": "focusedView == 'opencode-harness.chat' || opencodeHarness.chatFocused"
},
{
"command": "opencode-harness.prevTab",
"key": "ctrl+alt+[",
"when": "focusedView == 'opencode-harness.chat' || opencodeHarness.chatFocused"
},
{
"command": "opencode-harness.retryLast",
"key": "ctrl+alt+r",
"when": "focusedView == 'opencode-harness.chat' || opencodeHarness.chatFocused"
},
{
"command": "opencode-harness.suppressKey",
"key": "alt+1",
"when": "focusedView == 'opencode-harness.chat' || opencodeHarness.chatFocused"
},
{
"command": "opencode-harness.suppressKey",
"key": "alt+2",
"when": "focusedView == 'opencode-harness.chat' || opencodeHarness.chatFocused"
},
{
"command": "opencode-harness.suppressKey",
"key": "alt+3",
"when": "focusedView == 'opencode-harness.chat' || opencodeHarness.chatFocused"
},
{
"command": "opencode-harness.suppressKey",
"key": "alt+shift+tab",
"when": "focusedView == 'opencode-harness.chat' || opencodeHarness.chatFocused"
},
{
"command": "opencode-harness.suppressKey",
"key": "ctrl+shift+m",
"when": "focusedView == 'opencode-harness.chat' || opencodeHarness.chatFocused"
},
{
"command": "opencode-harness.suppressKey",
"key": "ctrl+shift+t",
"when": "focusedView == 'opencode-harness.chat' || opencodeHarness.chatFocused"
},
{
"command": "opencode-harness.suppressKey",
"key": "ctrl+t",
"when": "focusedView == 'opencode-harness.chat' || opencodeHarness.chatFocused"
},
{
"command": "opencode-harness.suppressKey",
"key": "ctrl+w",
"when": "focusedView == 'opencode-harness.chat' || opencodeHarness.chatFocused"
},
{
"command": "opencode-harness.suppressKey",
"key": "ctrl+tab",
"when": "focusedView == 'opencode-harness.chat' || opencodeHarness.chatFocused"
},
{
"command": "opencode-harness.suppressKey",
"key": "ctrl+shift+tab",
"when": "focusedView == 'opencode-harness.chat' || opencodeHarness.chatFocused"
},
{
"command": "opencode-harness.suppressKey",
"key": "ctrl+k",
"when": "focusedView == 'opencode-harness.chat' || opencodeHarness.chatFocused"
}
],
"viewsContainers": {
"activitybar": [
{
"id": "opencode-harness",
"title": "OpenCode",
"icon": "media/opencode-activity.svg"
}
]
},
"views": {
"opencode-harness": [
{
"id": "opencode-harness.chat",
"name": "Chat",
"type": "webview",
"icon": "media/opencode-activity.svg"
}
]
},
"menus": {
"commandPalette": [
{
"command": "opencode-harness.reviewFileChanges",
"when": "false"
},
{
"command": "opencode-harness.acceptFileChanges",
"when": "false"
},
{
"command": "opencode-harness.rejectFileChanges",
"when": "false"
},
{
"command": "opencode-harness.sendProblemToOpencode",
"when": "false"
},
{
"command": "opencode-harness.showRateLimits",
"when": "opencodeHarness.chatFocused"
},
{
"command": "opencode-harness.checkCli",
"when": "opencodeHarness.chatFocused"
},
{
"command": "opencode-harness.installCli",
"when": "opencodeHarness.chatFocused"
},
{
"command": "opencode-harness.previewTheme",
"when": "opencodeHarness.chatFocused"
},
{
"command": "opencode-harness.clearTestSessions",
"when": "false"
},
{
"command": "opencode-harness.openStoredSession",
"when": "false"
},
{
"command": "opencode-harness.suppressKey",
"when": "false"
}
],
"editor/context": [
{
"command": "opencode-harness.explainCode",
"group": "opencode@1",
"when": "editorHasSelection"
},
{
"command": "opencode-harness.refactorCode",
"group": "opencode@2",
"when": "editorHasSelection"
},
{
"command": "opencode-harness.generateTests",
"group": "opencode@3",
"when": "editorHasSelection"
},
{
"command": "opencode-harness.addSelectionToSession",
"group": "opencode@4",
"when": "editorHasSelection"
}
],
"explorer/context": [
{
"command": "opencode-harness.addFileToSession",
"group": "opencode@1",
"when": "resourceScheme == file"
}
]
},
"configuration": {
"title": "OpenCode",
"properties": {
"opencode.binaryPath": {
"type": "string",
"default": "",
"scope": "machine",
"description": "Explicit path to the opencode CLI binary. Leave empty to auto-detect from PATH or default install locations (~/.opencode/bin on macOS/Linux, npm global on Windows)."
},
"opencode.runtime": {
"type": "string",
"enum": [
"auto",
"opencode",
"opencode2"
],
"enumDescriptions": [
"Detect the available runtime by health route and verified endpoint responses.",
"Use the legacy OpenCode runtime and /global/* API surface.",
"Use the OpenCode 2 runtime and /api/* API surface."
],
"default": "auto",
"scope": "machine",
"description": "Select which OpenCode runtime to start or attach to. Auto detects OpenCode 2 first and safely falls back to the legacy runtime."
},
"opencode.autoInstall": {
"type": "string",
"enum": [
"prompt",
"auto",
"off"
],
"enumDescriptions": [
"Ask before installing the opencode CLI when it is missing (asks once; remembers if you decline).",
"Install the opencode CLI automatically and silently when it is missing.",
"Never install automatically. Use the 'OpenCode: Install CLI' command instead."
],
"default": "prompt",
"scope": "machine",
"description": "Controls how the extension installs the required opencode CLI when it is not found. The official installer is used (~/.opencode/bin on macOS/Linux; npm on Windows)."
},
"opencode.serverUrl": {
"type": "string",
"default": "",
"scope": "machine",
"description": "When set, attach to a remote opencode server at this URL instead of spawning a local one (e.g. http://host:4096). Leave blank for local spawn."
},
"opencode.serverAuthToken": {
"type": "string",
"default": "",
"scope": "machine",
"description": "Deprecated plaintext fallback for remote server auth. Use the 'OpenCode: Attach Remote Server' command so the token is stored in SecretStorage."
},
"opencode.mcpServers": {
"type": "object",
"default": {},
"scope": "window",
"description": "Legacy fallback MCP server map. OpenCode config files remain the primary source; entries here are used only when no server with the same name exists in opencode.json.",
"additionalProperties": {
"type": "object",
"properties": {
"type": {
"type": "string",
"enum": [
"stdio",
"local",
"http",
"sse",
"remote"
],
"description": "MCP transport type. Use 'stdio' or 'local' for locally spawned servers, 'http'/'sse'/'remote' for remote endpoints."
},
"command": {
"type": "string",
"description": "Command for stdio MCP servers."
},
"args": {
"type": "array",
"items": {
"type": "string"
},
"description": "Command arguments for stdio MCP servers."
},
"env": {
"type": "object",
"additionalProperties": {
"type": "string"
},
"description": "Environment variables for stdio MCP servers."
},
"url": {
"type": "string",
"description": "URL for HTTP or SSE MCP servers."
},
"headers": {
"type": "object",
"additionalProperties": {
"type": "string"
},
"description": "Request headers for remote MCP servers."
},
"disabled": {
"type": "boolean",
"description": "Disable this MCP server."
},
"enabled": {
"type": "boolean",
"description": "Enable this MCP server."
},
"cwd": {
"type": "string",
"description": "Working directory for local MCP servers (v1.17.4)."
},
"timeout": {
"type": "number",
"description": "Timeout in milliseconds for MCP server operations (v1.17.4+)."
},
"oauth": {
"type": [
"object",
"boolean"
],
"description": "OAuth configuration for remote MCP servers (v1.15.9/v1.17.4). Set to false to disable OAuth auto-detection.",
"properties": {
"clientId": {
"type": "string",
"description": "OAuth client ID."
},
"clientSecret": {
"type": "string",
"description": "OAuth client secret."
},
"scope": {
"type": "string",
"description": "OAuth scope."
},
"callbackPort": {
"type": "number",
"description": "OAuth callback port."
},
"redirectUri": {
"type": "string",
"description": "OAuth redirect URI."
}
}
}
}
}
},
"opencode.chat.fontSize": {
"type": "integer",
"default": 14,
"minimum": 8,
"maximum": 32,
"scope": "window",
"description": "Font size (in pixels) for the OpenCode chat panel input and message text. Clamped to 8–32. Defaults to 14; set to 0 to inherit the VS Code editor font size."
},
"opencode.chat.fontFamily": {
"type": "string",
"default": "",
"scope": "window",
"description": "Font family for the OpenCode chat panel input and message text. Leave empty to inherit the VS Code editor monospace font. Accepts any CSS font-family string."
},
"opencode.theme": {
"type": "object",
"scope": "window",
"default": {
"preset": "cli-default",
"overrides": {}
},
"description": "Theme for the OpenCode chat panel. Pick a preset (cli-default, light, dark, high-contrast) and optionally override individual colors. By default changes only affect the chat panel. Enable opencode.theme.switchWorkbenchTheme to also switch the VS Code editor theme.",
"properties": {
"preset": {
"type": "string",
"enum": [
"cli-default",
"light",
"dark",
"high-contrast",
"high-contrast-dark",
"high-contrast-light"
],
"default": "cli-default",
"description": "Base theme preset"
},
"overrides": {
"type": "object",
"default": {},
"description": "Individual color overrides for the theme. All CSS color values are accepted.",
"properties": {
"userMessageBg": {
"type": "string",
"description": "Background color for user messages"
},
"userMessageFg": {
"type": "string",
"description": "Text color for user messages"
},
"assistantMessageBg": {
"type": "string",
"description": "Background color for assistant messages"
},
"assistantMessageFg": {
"type": "string",
"description": "Text color for assistant messages"
},
"toolCallColor": {
"type": "string",
"description": "Color for tool call indicators"
},
"toolReadColor": {
"type": "string",
"description": "Color for read tool calls"
},
"toolWriteColor": {
"type": "string",
"description": "Color for write tool calls"
},
"toolExecColor": {
"type": "string",
"description": "Color for execute tool calls"
},
"skillBadgeBg": {
"type": "string",
"description": "Background color for skill badges"
},
"skillBadgeFg": {
"type": "string",
"description": "Text color for skill badges"
},
"thinkingBg": {
"type": "string",
"description": "Background color for thinking blocks"
},
"thinkingBorder": {
"type": "string",
"description": "Border color for thinking blocks"
},
"warningColor": {
"type": "string",
"description": "Color for warning messages"
},
"errorColor": {
"type": "string",
"description": "Color for error messages"
},
"successColor": {
"type": "string",
"description": "Color for success messages"
},
"accentColor": {
"type": "string",
"description": "Primary accent color"
},
"diffAdded": {
"type": "string",
"description": "Color for added diff lines"
},
"diffRemoved": {
"type": "string",
"description": "Color for removed diff lines"
},
"inputBg": {
"type": "string",
"description": "Background color for input area"
},
"inputBorder": {
"type": "string",
"description": "Border color for input area"
},
"mentionBg": {
"type": "string",
"description": "Background color for mention chips"
},
"syntaxComment": {
"type": "string",
"description": "Syntax highlight color for comments"
},
"syntaxKeyword": {
"type": "string",
"description": "Syntax highlight color for keywords"
},
"syntaxString": {
"type": "string",
"description": "Syntax highlight color for strings"
},
"syntaxNumber": {
"type": "string",
"description": "Syntax highlight color for numbers"
},
"syntaxFunction": {
"type": "string",
"description": "Syntax highlight color for functions"
},
"syntaxType": {
"type": "string",
"description": "Syntax highlight color for types"
},
"syntaxOperator": {
"type": "string",
"description": "Syntax highlight color for operators"
},
"primaryColor": {
"type": "string",
"description": "OpenCode CLI primary color"
},
"secondaryColor": {
"type": "string",
"description": "OpenCode CLI secondary color"
},
"infoColor": {
"type": "string",
"description": "OpenCode CLI info color"
},
"elementBg": {
"type": "string",
"description": "Background color for lower-emphasis UI elements"
},
"borderActive": {
"type": "string",
"description": "Active border color"
},
"borderSubtle": {
"type": "string",
"description": "Subtle border color"
},
"diffContext": {
"type": "string",
"description": "Diff context text color"
},
"diffHunkHeader": {
"type": "string",
"description": "Diff hunk header color"
},
"diffHighlightAdded": {
"type": "string",
"description": "Diff inline added highlight"
},
"diffHighlightRemoved": {
"type": "string",
"description": "Diff inline removed highlight"
},
"diffAddedBg": {
"type": "string",
"description": "Diff added line background"
},
"diffRemovedBg": {
"type": "string",
"description": "Diff removed line background"
},
"diffContextBg": {
"type": "string",
"description": "Diff context line background"
},
"diffLineNumber": {
"type": "string",
"description": "Diff line number color"
},
"diffAddedLineNumberBg": {
"type": "string",
"description": "Diff added line number background"
},
"diffRemovedLineNumberBg": {
"type": "string",
"description": "Diff removed line number background"
},
"markdownText": {
"type": "string",
"description": "Markdown body text color"
},
"markdownHeading": {
"type": "string",
"description": "Markdown heading color"
},
"markdownLink": {
"type": "string",
"description": "Markdown link color"
},
"markdownLinkText": {
"type": "string",
"description": "Markdown link text color"
},
"markdownCode": {
"type": "string",
"description": "Markdown inline code color"
},
"markdownBlockQuote": {
"type": "string",
"description": "Markdown blockquote color"
},
"markdownEmph": {
"type": "string",
"description": "Markdown emphasis color"
},
"markdownStrong": {
"type": "string",
"description": "Markdown strong text color"
},
"markdownHorizontalRule": {
"type": "string",
"description": "Markdown horizontal rule color"
},
"markdownListItem": {
"type": "string",
"description": "Markdown list item color"
},
"markdownListEnumeration": {
"type": "string",
"description": "Markdown list marker color"
},
"markdownImage": {
"type": "string",
"description": "Markdown image color"
},
"markdownImageText": {
"type": "string",
"description": "Markdown image text color"
},
"markdownCodeBlock": {
"type": "string",
"description": "Markdown fenced code color"
},
"syntaxVariable": {
"type": "string",
"description": "Syntax highlight color for variables"
},
"syntaxPunctuation": {
"type": "string",
"description": "Syntax highlight color for punctuation"
}
},
"additionalProperties": {
"type": "string"
}
}
}
},
"opencode.model": {
"type": "string",
"default": "",
"scope": "window",
"description": "Default model ID in provider/model format (e.g. anthropic/claude-sonnet-4-20250514). Set via 'OpenCode: Select Model' command."
},
"opencode.contextWindowOverride": {
"type": "number",
"default": 0,
"scope": "window",
"description": "Override the context window limit for the active model. Set to 0 to use the server-reported value. Use this when the server doesn't report limit.context for your model."
},
"opencode.theme.switchWorkbenchTheme": {
"type": "boolean",
"scope": "window",
"default": false,
"description": "Also switch the VS Code editor color theme when selecting an OpenCode preset. This is the only way to recolor the native 'OpenCode: Chat' panel title bar. When disabled (default), theming is scoped to the chat panel only."
},
"opencode.rateLimits": {
"type": "object",
"scope": "window",
"default": {},
"description": "Fallback rate limit configuration per provider. Set tokensPerMin and requestsPerMin for providers that don't return headers (e.g. openai, anthropic).",
"additionalProperties": {
"type": "object",
"properties": {
"tokensPerMin": {
"type": "number",
"default": 100000,
"description": "Maximum tokens per minute for this provider"
},
"requestsPerMin": {
"type": "number",
"default": 50,
"description": "Maximum requests per minute for this provider"
}
}
}
},
"opencode.rateLimitWarningThreshold": {
"type": "number",
"scope": "window",
"default": 0.1,
"description": "Warn when this fraction (0.0-1.0) of the rate limit remains. Example: 0.1 means 'warn at 10% remaining'."
},
"opencode.rateLimitCriticalThreshold": {
"type": "number",
"scope": "window",
"default": 0.05,
"description": "Fraction of remaining rate limit that triggers a critical warning (0.0-1.0)"
},
"opencode.agentGaze.enabled": {
"type": "boolean",
"default": true,
"scope": "window",
"description": "Show editor glow/highlight decorations while the agent reads or writes files. Disable on low-end hardware or when running 3+ concurrent sessions to reduce CPU load."
},
"opencode.inlineSuggestions.enabled": {
"type": "boolean",
"default": false,
"scope": "window",
"description": "[Preview] Enable inline ghost-text completions as you type. This feature is not yet fully implemented and is disabled by default."
},
"opencode.inlineSuggestions.triggerDelay": {
"type": "number",
"default": 300,
"scope": "window",
"description": "Milliseconds to wait after typing stops before requesting an inline completion."
},
"opencode.autoCompact": {
"type": "string",
"scope": "window",
"default": "ask",
"enum": [
"ask",
"auto",
"off"
],
"enumDescriptions": [
"Show a confirmation prompt before auto-compacting the conversation history.",
"Auto-compact the conversation history without asking when the threshold is reached.",
"Never auto-compact. The session continues until the model's context limit is reached."
],
"description": "Controls whether the conversation history is automatically summarized (compacted) when it reaches the configured threshold (opencode.autoCompactThreshold). Compaction saves tokens and prevents context-limit errors but discards some detail from earlier turns."
},
"opencode.autoCompactThreshold": {
"type": "number",
"scope": "window",
"default": 80,
"minimum": 10,