-
-
Notifications
You must be signed in to change notification settings - Fork 1
Expand file tree
/
Copy pathschema.json
More file actions
4209 lines (4209 loc) · 186 KB
/
Copy pathschema.json
File metadata and controls
4209 lines (4209 loc) · 186 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
303
304
305
306
307
308
309
310
311
312
313
314
315
316
317
318
319
320
321
322
323
324
325
326
327
328
329
330
331
332
333
334
335
336
337
338
339
340
341
342
343
344
345
346
347
348
349
350
351
352
353
354
355
356
357
358
359
360
361
362
363
364
365
366
367
368
369
370
371
372
373
374
375
376
377
378
379
380
381
382
383
384
385
386
387
388
389
390
391
392
393
394
395
396
397
398
399
400
401
402
403
404
405
406
407
408
409
410
411
412
413
414
415
416
417
418
419
420
421
422
423
424
425
426
427
428
429
430
431
432
433
434
435
436
437
438
439
440
441
442
443
444
445
446
447
448
449
450
451
452
453
454
455
456
457
458
459
460
461
462
463
464
465
466
467
468
469
470
471
472
473
474
475
476
477
478
479
480
481
482
483
484
485
486
487
488
489
490
491
492
493
494
495
496
497
498
499
500
501
502
503
504
505
506
507
508
509
510
511
512
513
514
515
516
517
518
519
520
521
522
523
524
525
526
527
528
529
530
531
532
533
534
535
536
537
538
539
540
541
542
543
544
545
546
547
548
549
550
551
552
553
554
555
556
557
558
559
560
561
562
563
564
565
566
567
568
569
570
571
572
573
574
575
576
577
578
579
580
581
582
583
584
585
586
587
588
589
590
591
592
593
594
595
596
597
598
599
600
601
602
603
604
605
606
607
608
609
610
611
612
613
614
615
616
617
618
619
620
621
622
623
624
625
626
627
628
629
630
631
632
633
634
635
636
637
638
639
640
641
642
643
644
645
646
647
648
649
650
651
652
653
654
655
656
657
658
659
660
661
662
663
664
665
666
667
668
669
670
671
672
673
674
675
676
677
678
679
680
681
682
683
684
685
686
687
688
689
690
691
692
693
694
695
696
697
698
699
700
701
702
703
704
705
706
707
708
709
710
711
712
713
714
715
716
717
718
719
720
721
722
723
724
725
726
727
728
729
730
731
732
733
734
735
736
737
738
739
740
741
742
743
744
745
746
747
748
749
750
751
752
753
754
755
756
757
758
759
760
761
762
763
764
765
766
767
768
769
770
771
772
773
774
775
776
777
778
779
780
781
782
783
784
785
786
787
788
789
790
791
792
793
794
795
796
797
798
799
800
801
802
803
804
805
806
807
808
809
810
811
812
813
814
815
816
817
818
819
820
821
822
823
824
825
826
827
828
829
830
831
832
833
834
835
836
837
838
839
840
841
842
843
844
845
846
847
848
849
850
851
852
853
854
855
856
857
858
859
860
861
862
863
864
865
866
867
868
869
870
871
872
873
874
875
876
877
878
879
880
881
882
883
884
885
886
887
888
889
890
891
892
893
894
895
896
897
898
899
900
901
902
903
904
905
906
907
908
909
910
911
912
913
914
915
916
917
918
919
920
921
922
923
924
925
926
927
928
929
930
931
932
933
934
935
936
937
938
939
940
941
942
943
944
945
946
947
948
949
950
951
952
953
954
955
956
957
958
959
960
961
962
963
964
965
966
967
968
969
970
971
972
973
974
975
976
977
978
979
980
981
982
983
984
985
986
987
988
989
990
991
992
993
994
995
996
997
998
999
1000
{
"$id": "https://coco.griffen.codes/schema.json",
"$schema": "http://json-schema.org/draft-07/schema#",
"$ref": "#/definitions/ConfigWithServiceObject",
"definitions": {
"ConfigWithServiceObject": {
"type": "object",
"additionalProperties": false,
"properties": {
"service": {
"$ref": "#/definitions/LLMService"
},
"interactive": {
"type": "boolean"
},
"verbose": {
"type": "boolean",
"description": "Enable verbose logging.",
"default": false
},
"version": {
"type": "boolean"
},
"help": {
"type": "boolean"
},
"repo": {
"type": "string",
"description": "Repository directory to operate against. When set, the command chdir's to this path before loading config / opening a git instance, so every downstream read (config lookup, simple-git baseDir, commitlint discovery, etc.) sees the same root.\n\n`--cwd` is an alias.\n\nInherited by every coco subcommand so scripts / editor wrappers / scenario tests can target arbitrary repos without `cd`-ing first. Defaults to `process.cwd()` when omitted (unchanged behavior for users who launch via the regular `cd && coco ...` path)."
},
"quiet": {
"type": "boolean",
"description": "Global `--quiet` (`-q`): silence coco's status chrome. Results still print."
},
"json": {
"type": "boolean",
"description": "Global `--json`: emit machine-readable JSON on supported commands."
},
"mode": {
"type": "string",
"enum": [
"stdout",
"interactive"
],
"description": "The output destination for the generated result.\n- 'stdout': Prints the result to the standard output. This is the default behavior.\n- 'interactive': Provides an interactive prompt for editing the result & committing the changes.",
"default": "stdout"
},
"conventionalCommits": {
"type": "boolean",
"description": "Whether to generate commit messages in Conventional Commits format. When enabled, commit messages will follow the Conventional Commits specification.",
"default": false
},
"openInEditor": {
"type": "boolean",
"description": "Open the commit message in an editor for editing before proceeding.",
"default": false
},
"prompt": {
"type": "string",
"description": "The prompt text used for generating results."
},
"summarizePrompt": {
"type": "string",
"description": "The prompt text used specifically for generating summaries of large files."
},
"ignoredFiles": {
"type": "array",
"items": {
"type": "string"
},
"description": "An array of file paths or patterns to be ignored during processing.\n\nNote: This is a list of patterns interpreted by the `minimatch` library.",
"examples": [
[
"package-lock.json",
"node_modules"
]
],
"default": "['package-lock.json', contents of .gitignore, contents of .ignore]"
},
"ignoredExtensions": {
"type": "array",
"items": {
"type": "string"
},
"description": "An array of file extensions to be ignored during processing.",
"default": [
".map",
".lock"
]
},
"defaultBranch": {
"type": "string",
"description": "Default git branch for the repository.",
"default": "main"
},
"includeBranchName": {
"type": "boolean",
"description": "Whether to include the current branch name in the commit prompt for context. When enabled, the current git branch name will be included in the prompt.",
"default": true
},
"language": {
"type": "string",
"description": "Language for AI-generated output (commit messages, changelogs, recaps, reviews) — free text, e.g. `'German'` or `'es'`. Conventional Commits type/scope tokens (`feat`, `fix(parser)`, ...) always stay in English; only the description/body localizes. Unset generates in English, the existing default.",
"default": "undefined"
},
"autoFixTool": {
"type": "string",
"description": "The AI CLI tool to use for auto-fixing review issues. Must match a registered adapter key (e.g. \"codex\", \"claude\", \"gemini\"). When unset, the auto-fix action is disabled."
},
"autoFixToolOptions": {
"type": "object",
"additionalProperties": {
"type": "string"
},
"description": "Additional key-value flags passed to the auto-fix CLI tool. Keys are flag names (without leading dashes); values are flag values.",
"examples": [
{
"model": "o4-mini",
"approval-mode": "auto-edit"
}
]
},
"autoFixToolApiKey": {
"type": "string",
"description": "Explicit API key for the auto-fix CLI tool. Use this when coco is configured for one provider (e.g. openai) but the auto-fix tool belongs to a different vendor (e.g. gemini), so the correct credential can be supplied without relying on the ambient environment. When set, this key is injected into the tool's vendor environment variable regardless of coco's own provider setting."
},
"logTui": {
"type": "object",
"properties": {
"theme": {
"$ref": "#/definitions/LogInkThemeConfig",
"description": "Theme settings for `coco log -i`."
},
"idleTips": {
"type": "boolean",
"description": "Rotate short usage tips through the status line when the TUI has been idle for >10s. Off by default so power users aren't distracted."
},
"dateBucketing": {
"type": "boolean",
"description": "Group adjacent commits in the history surface under shared section headers (`── Today ──`, `── Yesterday ──`, `── April 2026 ──`) and drop the per-row date column in favor of the headers. On by default because the bucketed view gives stronger temporal orientation at a glance and the freed cells go to the commit subject. Flip off if you prefer a date column on every row.\n\nBucketing automatically suppresses itself while a search filter is active (results aren't chronological), regardless of this setting.",
"default": true
},
"syntaxHighlight": {
"type": "boolean",
"description": "Syntax-highlight code in the diff view using tree-sitter. Built-in languages (TypeScript / TSX / JavaScript) highlight immediately; others lazy-download their grammar on first use — see `TREE_SITTER_MANIFEST` (src/lib/parsers/default/__tree_sitter__/manifest.ts) for the current supported-language list. On by default. Highlighting degrades gracefully — unsupported languages, non-ASCII lines, and parse failures fall back to the plain add/remove coloring — so the only reason to disable it is preference or a very low-color terminal. Set to `false` to opt out.",
"default": true
},
"mouse": {
"type": "boolean",
"description": "Enable mouse support: click a pane to focus it, click a commit row to select it, and scroll the wheel to move the list cursor (or page the diff preview) under the focused pane. Off by default for one release — enabling SGR mouse reporting disables the terminal's native click-drag text selection unless the user holds Shift, which is surprising enough to gate behind opt-in.",
"default": false
}
},
"additionalProperties": false,
"description": "Interactive log TUI settings."
},
"workspace": {
"type": "object",
"properties": {
"roots": {
"type": "array",
"items": {
"type": "string"
},
"description": "Directories to scan for git repositories. Each entry may use a `~` prefix; resolved against the user's home directory. When omitted (and no `--root` flag is passed), the workspace scans the current working directory — so a bare `coco` / `coco ws` discovers repos wherever you launched it. Set this to pin a fixed tree (e.g. `[\"~/code\"]`) regardless of where you run from.\n\n(No static `@default` — the effective default is the runtime cwd.)"
},
"knownRepos": {
"type": "array",
"items": {
"type": "string"
},
"description": "Repositories outside the configured roots that should still appear in the workspace view. Useful for one-off projects kept somewhere other than the main `code` tree. Entries may use a `~` prefix.",
"default": []
},
"maxDepth": {
"type": "number",
"description": "Maximum depth to recurse into each configured root when looking for `.git/` directories. Stops descending as soon as a directory is identified as a repo.",
"default": 3
}
},
"additionalProperties": false,
"description": "Multi-repo workspace surface settings (`coco workspace`)."
},
"telemetry": {
"type": "object",
"properties": {
"usage": {
"type": "boolean",
"description": "Keep a local, cross-run record of AI usage — prompt-token estimate and latency per task / model / repo — that `coco doctor --cost` reads. The ledger is a plain JSONL file under the cache directory and never leaves the machine; it records no prompt, diff, or code content.\n\n`coco init` writes this preference, and on the first interactive command with no preference set anywhere coco defaults it on and prints a one-time notice (non-interactive / CI runs stay off). The `COCO_USAGE_LOG` environment variable overrides this setting either way: set it to `0` / `false` to force recording off, or to `1` / a file path to force it on. Unset everywhere means off.",
"default": false
},
"budget": {
"type": "object",
"properties": {
"monthlyUsd": {
"type": "number",
"description": "Monthly estimated-spend cap in USD. Leave unset to disable the budget check entirely. `0` (or a negative value) is treated as \"warn on any priced spend\" rather than disabling the check."
},
"warnAtPercent": {
"type": "number",
"description": "Percentage of `monthlyUsd` at or above which `coco doctor` warns.",
"default": 80
}
},
"additionalProperties": false,
"description": "Optional monthly spend guardrail checked against the local usage ledger. `coco doctor` sums the current calendar month's *estimated* cost (tokens priced via coco's built-in per-model table — see `coco doctor --cost`) and emits a warning once that total reaches `warnAtPercent` of `monthlyUsd`. This is advisory only: coco never blocks or throttles a call because of it, and the check is a no-op unless `telemetry.usage` (or `COCO_USAGE_LOG`) is actually recording, since there'd be no ledger to sum."
}
},
"additionalProperties": false,
"description": "Local AI usage statistics. Everything here stays on this machine and is never transmitted."
},
"forgeHosts": {
"type": "object",
"additionalProperties": {
"type": "string",
"enum": [
"github",
"gitlab",
"bitbucket",
"bitbucket-server",
"gitea"
]
},
"description": "Map self-hosted git remote hosts to a forge so coco talks to the right CLI. coco auto-detects github.com, gitlab.com, bitbucket.org, codeberg.org, and hosts whose name contains `gitlab` / `github` / `bitbucket` / `gitea` / `forgejo` / `codeberg`. For vanity hostnames that carry none of those words (e.g. `git.acme.com`), set the mapping here so detection and dispatch work.\n\n`bitbucket-server` (Bitbucket Server / Data Center) can ONLY be reached through this map — its REST API (`/rest/api/1.0`) and web UI differ enough from Bitbucket Cloud that auto-detection isn't reliable, and a self-hosted install is commonly on a `*bitbucket*`-named host that would otherwise resolve to Cloud.",
"examples": [
{
"git.acme.com": "gitea",
"code.internal": "github",
"bb.corp.com": "bitbucket-server"
}
]
},
"updateCheck": {
"type": "object",
"properties": {
"enabled": {
"type": "boolean",
"description": "Set to `false` to disable the stale-version notice and its background registry check entirely.",
"default": true
}
},
"additionalProperties": false,
"description": "The stale-version notice (a one-line \"newer coco is available\" message printed to stderr). Checks a cached, once-daily lookup of the latest `git-coco` version on npm — never a live network call on the command's critical path. Always skipped under `--json`, `--quiet`, CI, and non-interactive (non-TTY) runs, regardless of this setting."
}
},
"required": [
"defaultBranch",
"mode",
"service"
]
},
"LLMService": {
"anyOf": [
{
"$ref": "#/definitions/OpenAILLMService"
},
{
"$ref": "#/definitions/OllamaLLMService"
},
{
"$ref": "#/definitions/AnthropicLLMService"
},
{
"$ref": "#/definitions/GeminiLLMService"
},
{
"$ref": "#/definitions/MistralLLMService"
},
{
"$ref": "#/definitions/AzureLLMService"
},
{
"$ref": "#/definitions/BedrockLLMService"
},
{
"$ref": "#/definitions/DeepSeekLLMService"
},
{
"$ref": "#/definitions/GroqLLMService"
},
{
"$ref": "#/definitions/XaiLLMService"
},
{
"$ref": "#/definitions/TogetherLLMService"
},
{
"$ref": "#/definitions/FireworksLLMService"
},
{
"$ref": "#/definitions/OpenRouterLLMService"
},
{
"$ref": "#/definitions/LmStudioLLMService"
},
{
"$ref": "#/definitions/VllmLLMService"
}
]
},
"OpenAILLMService": {
"type": "object",
"additionalProperties": false,
"properties": {
"provider": {
"$ref": "#/definitions/LLMProvider"
},
"model": {
"$ref": "#/definitions/ConfiguredLLMModel"
},
"baseURL": {
"type": "string",
"description": "Custom base URL for OpenAI-compatible APIs (e.g., OpenRouter, Azure OpenAI). If not specified, uses the default OpenAI API endpoint.",
"examples": [
"https://openrouter.ai/api/v1",
"https://your-resource.openai.azure.com"
]
},
"fields": {
"type": "object",
"additionalProperties": {},
"description": "Provider-specific extra options forwarded to the underlying LangChain client. Decoupled from upstream input types so schema generation stays stable across langchain releases."
},
"tokenLimit": {
"type": "number",
"description": "The maximum number of tokens per request.",
"default": 2048
},
"temperature": {
"type": "number",
"description": "The temperature value controls the randomness of the generated output. Higher values (e.g., 0.8) make the output more random, while lower values (e.g., 0.2) make it more deterministic.",
"default": 0.4
},
"maxConcurrent": {
"type": "number",
"description": "The maximum number of requests to make concurrently.",
"default": 6
},
"minTokensForSummary": {
"type": "number",
"description": "Minimum token count for a directory/file group to be eligible for summarization. Groups below this threshold preserve raw diffs to maintain detail.",
"default": 400
},
"maxFileTokens": {
"type": "number",
"description": "Maximum tokens allowed for a single file diff before it gets pre-summarized. Prevents large files from biasing the overall summary. If not set, defaults to 25% of tokenLimit.",
"default": "undefined (uses 0.25 * tokenLimit)"
},
"authentication": {
"anyOf": [
{
"type": "object",
"properties": {
"type": {
"type": "string",
"const": "None"
},
"credentials": {
"not": {}
}
},
"required": [
"type"
],
"additionalProperties": false
},
{
"type": "object",
"properties": {
"type": {
"type": "string",
"const": "OAuth"
},
"credentials": {
"type": "object",
"properties": {
"clientId": {
"type": "string"
},
"clientSecret": {
"type": "string"
},
"token": {
"type": "string"
}
},
"additionalProperties": false
}
},
"required": [
"type",
"credentials"
],
"additionalProperties": false
},
{
"type": "object",
"properties": {
"type": {
"type": "string",
"const": "APIKey"
},
"credentials": {
"type": "object",
"properties": {
"apiKey": {
"type": "string"
}
},
"required": [
"apiKey"
],
"additionalProperties": false
}
},
"required": [
"type",
"credentials"
],
"additionalProperties": false
}
]
},
"requestOptions": {
"type": "object",
"properties": {
"timeout": {
"type": "number"
},
"maxRetries": {
"type": "number"
}
},
"additionalProperties": false
},
"maxParsingAttempts": {
"type": "number",
"description": "The maximum number of attempts for schema parsing with retry logic.",
"default": 3
},
"promptCache": {
"type": "boolean",
"description": "Enable server-side prompt caching for providers that support it, so a repeated stable prefix (system prompt, few-shot examples) is billed at the cached-read rate instead of full input price on every call.\n\nAnthropic-only today (`cache_control` applied to the last cacheable block, advancing automatically as the conversation grows). OpenAI/Azure cache automatically server-side with no opt-in needed. Silently ignored (never throws) on providers whose `ProviderDefinition` doesn't set `supportsPromptCache`.",
"default": false
},
"reasoningEffort": {
"$ref": "#/definitions/ReasoningEffort",
"description": "Reasoning effort for models with a graded or extended-thinking mode. Trades cost/latency for answer quality. See `ReasoningEffort` for the per-provider mapping. Silently ignored (never throws) on providers whose `ProviderDefinition` doesn't set `supportsReasoningEffort`.",
"default": "undefined (provider's own default)"
},
"dynamicModels": {
"$ref": "#/definitions/DynamicModelProfile",
"description": "Optional task-to-model overrides used when model is set to \"dynamic\"."
},
"dynamicModelPreference": {
"$ref": "#/definitions/DynamicModelPreference",
"description": "Default dynamic routing preference when model is set to \"dynamic\".",
"default": "balanced"
},
"streaming": {
"type": "object",
"properties": {
"enabled": {
"type": "boolean",
"description": "Master switch. When `false` (default) every LLM call uses the existing non-streaming code path, regardless of which command or surface fires it.",
"default": false
}
},
"additionalProperties": false,
"description": "Streaming output (#881). Wires `chain.stream()` instead of `chain.invoke()` into LLM-driven TUI surfaces so the user sees a live preview of the model's output as it generates, rather than staring at a spinner until the full response arrives.\n\nOutput contract is unchanged when enabled: the final draft / plan still goes through the same parser, schema validator, and retry logic as the non-streaming path. The stream is a *preview only* — it relieves the \"is this hanging?\" anxiety without touching what gets committed.\n\nOff by default while we shake the UX out across providers; some models stream poorly (one-shot blob disguised as a stream) and the preview just blinks in those cases. Off-by-default also lets users who prefer the quieter spinner-only UX skip the visual chatter.\n\nScope today: workstation compose surface's AI commit draft (the `I` keystroke). Other TUI LLM calls (split-plan, PR body) stay non-streaming pending separate validation."
},
"fastPath": {
"type": "object",
"properties": {
"markdown": {
"type": "boolean",
"description": "Replace the LLM summary with a templated heading extract for `.md` / `.mdx` / `.markdown` modification diffs that have clear heading-level structural changes. Diffs without structural signals (paragraph-only edits) still go to the LLM regardless of this flag.\n\nBench impact (synthetic): collapses docs-update-shaped commits from ~24s cold to ~3ms (no LLM calls fire for the markdown files). Real-world wall-clock savings depend on per-call LLM latency.",
"default": false
},
"languageAware": {
"type": "object",
"properties": {
"enabled": {
"type": "boolean",
"description": "Master switch. When false (default) the languageAware path is skipped entirely regardless of `languages`.",
"default": false
},
"languages": {
"type": "array",
"items": {
"type": "string",
"enum": [
"ts",
"js",
"py",
"rs",
"go",
"java",
"cpp",
"cs",
"rb",
"php",
"kt",
"swift",
"lua",
"bash"
]
},
"description": "Languages to opt in. Omit / empty to enable all supported languages."
}
},
"additionalProperties": false,
"description": "Language-aware structural fast path (#883). Replace the LLM summary with a symbol-level extract (\"added parseRequest(); removed legacyParse()\") for source files in the listed languages. Off by default; quality is harder to validate than the markdown fast path so we don't enable it without opt-in.\n\nDiffs without top-level structural signals (paragraph-only body edits, formatting changes) still go to the LLM regardless of this flag.\n\nCurrently supports: - 'ts' : `.ts` / `.tsx` / `.mts` / `.cts` - 'js' : `.js` / `.jsx` / `.mjs` / `.cjs` - 'py' : `.py` / `.pyi` - 'rs' : `.rs` - 'go' : `.go` - 'java' : `.java` - 'cpp' : `.c` / `.h` / `.cpp` / `.cc` / `.cxx` / `.hpp` / `.hh` / `.hxx` - 'cs' : `.cs` - 'rb' : `.rb` - 'php' : `.php` - 'kt' : `.kt` / `.kts` - 'swift' : `.swift` - 'lua' : `.lua` - 'bash' : `.sh` / `.bash`"
}
},
"additionalProperties": false,
"description": "Opt-in fast paths that trade summary detail for speed. Each flag here replaces an LLM summary call with a deterministic templated extract for a specific file shape. Off by default — when enabled, you accept that final commit messages on those file shapes may be blander than LLM-generated summaries (the templated extract names structural changes only).\n\nLossless optimizations (cache, trivial-shape skip on pure additions / deletions / renames / binary, sort discipline) ship default-on and are not configured here."
}
},
"required": [
"authentication",
"model",
"provider"
]
},
"LLMProvider": {
"type": "string",
"enum": [
"openai",
"ollama",
"anthropic",
"gemini",
"mistral",
"azure",
"bedrock",
"deepseek",
"groq",
"xai",
"together",
"fireworks",
"openrouter",
"lmstudio",
"vllm"
]
},
"ConfiguredLLMModel": {
"anyOf": [
{
"$ref": "#/definitions/LLMModel"
},
{
"type": "string",
"const": "dynamic"
}
]
},
"LLMModel": {
"anyOf": [
{
"$ref": "#/definitions/OpenAIModel"
},
{
"$ref": "#/definitions/OllamaModel"
},
{
"$ref": "#/definitions/AnthropicModel"
},
{
"$ref": "#/definitions/GeminiModel"
},
{
"$ref": "#/definitions/MistralModel"
},
{
"$ref": "#/definitions/BedrockModel"
}
]
},
"OpenAIModel": {
"type": "string",
"enum": [
"davinci-002",
"babbage-002",
"text-davinci-003",
"text-davinci-002",
"text-davinci-001",
"text-curie-001",
"text-babbage-001",
"text-ada-001",
"davinci",
"curie",
"babbage",
"ada",
"code-davinci-002",
"code-davinci-001",
"code-cushman-002",
"code-cushman-001",
"davinci-codex",
"cushman-codex",
"text-davinci-edit-001",
"code-davinci-edit-001",
"text-embedding-ada-002",
"text-embedding-3-small",
"text-embedding-3-large",
"text-similarity-davinci-001",
"text-similarity-curie-001",
"text-similarity-babbage-001",
"text-similarity-ada-001",
"text-search-davinci-doc-001",
"text-search-curie-doc-001",
"text-search-babbage-doc-001",
"text-search-ada-doc-001",
"code-search-babbage-code-001",
"code-search-ada-code-001",
"gpt2",
"gpt-3.5-turbo",
"gpt-35-turbo",
"gpt-3.5-turbo-0301",
"gpt-3.5-turbo-0613",
"gpt-3.5-turbo-1106",
"gpt-3.5-turbo-0125",
"gpt-3.5-turbo-16k",
"gpt-3.5-turbo-16k-0613",
"gpt-3.5-turbo-instruct",
"gpt-3.5-turbo-instruct-0914",
"gpt-4",
"gpt-4-0314",
"gpt-4-0613",
"gpt-4-32k",
"gpt-4-32k-0314",
"gpt-4-32k-0613",
"gpt-4-turbo",
"gpt-4-turbo-2024-04-09",
"gpt-4-turbo-preview",
"gpt-4-1106-preview",
"gpt-4-0125-preview",
"gpt-4-vision-preview",
"gpt-4o",
"gpt-4o-2024-05-13",
"gpt-4o-2024-08-06",
"gpt-4o-2024-11-20",
"gpt-4o-mini-2024-07-18",
"gpt-4o-mini",
"gpt-4o-search-preview",
"gpt-4o-search-preview-2025-03-11",
"gpt-4o-mini-search-preview",
"gpt-4o-mini-search-preview-2025-03-11",
"gpt-4o-audio-preview",
"gpt-4o-audio-preview-2024-12-17",
"gpt-4o-audio-preview-2024-10-01",
"gpt-4o-mini-audio-preview",
"gpt-4o-mini-audio-preview-2024-12-17",
"o1",
"o1-2024-12-17",
"o1-mini",
"o1-mini-2024-09-12",
"o1-preview",
"o1-preview-2024-09-12",
"o1-pro",
"o1-pro-2025-03-19",
"o3",
"o3-2025-04-16",
"o3-mini",
"o3-mini-2025-01-31",
"o4-mini",
"o4-mini-2025-04-16",
"chatgpt-4o-latest",
"gpt-4o-realtime",
"gpt-4o-realtime-preview-2024-10-01",
"gpt-4o-realtime-preview-2024-12-17",
"gpt-4o-mini-realtime-preview",
"gpt-4o-mini-realtime-preview-2024-12-17",
"gpt-4.1",
"gpt-4.1-2025-04-14",
"gpt-4.1-mini",
"gpt-4.1-mini-2025-04-14",
"gpt-4.1-nano",
"gpt-4.1-nano-2025-04-14",
"gpt-4.5-preview",
"gpt-4.5-preview-2025-02-27",
"gpt-5",
"gpt-5-2025-08-07",
"gpt-5-nano",
"gpt-5-nano-2025-08-07",
"gpt-5-mini",
"gpt-5-mini-2025-08-07",
"gpt-5-chat-latest",
"gpt-5.5",
"gpt-5.4",
"gpt-5.4-mini",
"gpt-5.4-nano"
]
},
"OllamaModel": {
"type": "string",
"enum": [
"deepseek-r1:1.5b",
"deepseek-r1:8b",
"deepseek-r1:32b",
"codegemma:2b",
"codegemma:7b-code",
"codegemma",
"codellama:13b",
"codellama:34b",
"codellama:70b",
"codellama:7b",
"codellama:instruct",
"codellama:latest",
"codellama",
"gemma:2b",
"gemma:7b",
"gemma:latest",
"gemma",
"llama2:13b",
"llama2:70b",
"llama2:chat",
"llama2:latest",
"llama2:text",
"llama2",
"llama3:70b-text",
"llama3:70b",
"llama3:latest",
"llama3:text",
"llama3.1:70b",
"llama3.1:8b",
"llama3.1:latest",
"llama3.2",
"llama3.2:latest",
"llama3.2:1b",
"llama3.2:3b",
"llama3",
"llava-llama3:latest",
"dolphin-llama3:latest",
"dolphin-llama3:8b",
"dolphin-llama3:70b",
"mistral:7b",
"mistral:latest",
"mistral:text",
"mistral",
"phi3:14b",
"phi3:3.8b",
"phi3:instruct",
"phi3:medium-128k",
"phi3:medium-4k",
"phi3:medium",
"phi3",
"qwen2:0.5b",
"qwen2:1.5b",
"qwen2:72b-text",
"qwen2:72b",
"qwen2",
"qwen2.5-coder:latest",
"qwen2.5-coder:0.5b",
"qwen2.5-coder:1.5b",
"qwen2.5-coder:3b",
"qwen2.5-coder:7b",
"qwen2.5-coder:14b",
"qwen2.5-coder:32b"
]
},
"AnthropicModel": {
"type": "string",
"enum": [
"claude-fable-5",
"claude-opus-4-8",
"claude-opus-4-7",
"claude-opus-4-6",
"claude-sonnet-4-6",
"claude-haiku-4-5",
"claude-haiku-4-5-20251001",
"claude-opus-4-5",
"claude-opus-4-1",
"claude-sonnet-4-5",
"claude-sonnet-4-0",
"claude-3-7-sonnet-latest",
"claude-3-5-haiku-latest",
"claude-3-5-sonnet-latest",
"claude-3-5-sonnet-20241022",
"claude-3-5-sonnet-20240620",
"claude-3-opus-20240229",
"claude-3-sonnet-20240229",
"claude-3-haiku-20240307"
]
},
"GeminiModel": {
"type": "string",
"enum": [
"gemini-3.5-flash",
"gemini-3.1-flash-lite",
"gemini-2.5-pro",
"gemini-2.5-flash",
"gemini-2.5-flash-lite",
"gemini-2.0-flash",
"gemini-2.0-flash-lite",
"gemini-1.5-pro",
"gemini-1.5-flash",
"gemini-1.5-flash-8b"
]
},
"MistralModel": {
"type": "string",
"enum": [
"mistral-large-latest",
"mistral-medium-latest",
"mistral-small-latest",
"codestral-latest",
"ministral-8b-latest",
"ministral-3b-latest",
"open-mistral-nemo"
]
},
"BedrockModel": {
"anyOf": [
{
"type": "string"
},
{
"type": "string",
"enum": [
"anthropic.claude-opus-4-8",
"anthropic.claude-opus-4-7",
"anthropic.claude-sonnet-4-6",
"anthropic.claude-haiku-4-5",
"meta.llama3-1-70b-instruct-v1:0",
"mistral.mistral-large-2407-v1:0",
"anthropic.claude-3-5-sonnet-20241022-v2:0",
"anthropic.claude-3-5-haiku-20241022-v1:0",
"anthropic.claude-sonnet-4-20250514-v1:0",
"anthropic.claude-3-haiku-20240307-v1:0"
]
}
],
"description": "AWS Bedrock model ids are free-form (model id strings and inference-profile ARNs). The `(string & {})` member keeps the literal suggestions while still accepting any AWS id. It must NOT collapse `LLMModel` to bare `string` — `(string & {})` preserves the literal union members of the other providers."
},
"ReasoningEffort": {
"type": "string",
"enum": [
"minimal",
"low",
"medium",
"high"
],
"description": "Reasoning/thinking effort for providers with a graded reasoning dial. Applied only by providers whose `ProviderDefinition` sets `supportsReasoningEffort` (OpenAI, Azure, Gemini, Anthropic); silently ignored elsewhere. Gemini and Anthropic have no `minimal` level and map it down to their lowest tier (`LOW` / `low` respectively)."
},
"DynamicModelProfile": {
"type": "object",
"properties": {
"summarize": {
"$ref": "#/definitions/LLMModel"
},
"commit": {
"$ref": "#/definitions/LLMModel"
},
"commitSplit": {
"$ref": "#/definitions/LLMModel"
},
"changelog": {
"$ref": "#/definitions/LLMModel"
},
"review": {
"$ref": "#/definitions/LLMModel"
},
"recap": {
"$ref": "#/definitions/LLMModel"
},
"repair": {
"$ref": "#/definitions/LLMModel"
},
"largeDiff": {
"$ref": "#/definitions/LLMModel"
},
"blameExplain": {
"$ref": "#/definitions/LLMModel"
},
"conflictResolve": {
"$ref": "#/definitions/LLMModel"
}
},
"additionalProperties": false
},
"DynamicModelPreference": {
"type": "string",
"enum": [
"cost",
"balanced",
"quality"
]
},
"OllamaLLMService": {
"type": "object",
"additionalProperties": false,
"properties": {
"provider": {
"$ref": "#/definitions/LLMProvider"
},
"model": {
"$ref": "#/definitions/ConfiguredLLMModel"
},
"endpoint": {
"type": "string"
},
"fields": {
"type": "object",
"additionalProperties": {}
},
"tokenLimit": {
"type": "number",
"description": "The maximum number of tokens per request.",
"default": 2048
},
"temperature": {
"type": "number",
"description": "The temperature value controls the randomness of the generated output. Higher values (e.g., 0.8) make the output more random, while lower values (e.g., 0.2) make it more deterministic.",
"default": 0.4
},
"maxConcurrent": {
"type": "number",
"description": "The maximum number of requests to make concurrently.",
"default": 6
},
"minTokensForSummary": {
"type": "number",
"description": "Minimum token count for a directory/file group to be eligible for summarization. Groups below this threshold preserve raw diffs to maintain detail.",
"default": 400
},
"maxFileTokens": {
"type": "number",
"description": "Maximum tokens allowed for a single file diff before it gets pre-summarized. Prevents large files from biasing the overall summary. If not set, defaults to 25% of tokenLimit.",
"default": "undefined (uses 0.25 * tokenLimit)"
},
"authentication": {
"anyOf": [
{
"type": "object",
"properties": {
"type": {
"type": "string",
"const": "None"
},
"credentials": {
"not": {}
}
},
"required": [
"type"
],
"additionalProperties": false
},
{
"type": "object",
"properties": {
"type": {
"type": "string",
"const": "OAuth"
},
"credentials": {
"type": "object",
"properties": {
"clientId": {
"type": "string"
},
"clientSecret": {
"type": "string"
},
"token": {
"type": "string"
}
},
"additionalProperties": false
}
},
"required": [
"type",
"credentials"
],
"additionalProperties": false
},
{
"type": "object",
"properties": {
"type": {
"type": "string",
"const": "APIKey"
},
"credentials": {
"type": "object",
"properties": {
"apiKey": {
"type": "string"
}
},
"required": [
"apiKey"
],
"additionalProperties": false
}
},
"required": [
"type",
"credentials"