-
Notifications
You must be signed in to change notification settings - Fork 1.3k
Expand file tree
/
Copy pathforge.schema.json
More file actions
742 lines (742 loc) · 20.8 KB
/
forge.schema.json
File metadata and controls
742 lines (742 loc) · 20.8 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
{
"$schema": "https://json-schema.org/draft/2020-12/schema",
"title": "ForgeConfig",
"description": "Top-level Forge configuration merged from all sources (defaults, file,\nenvironment).",
"type": "object",
"properties": {
"auto_dump": {
"description": "Format used when automatically creating a session dump after task\ncompletion; disabled when absent.",
"anyOf": [
{
"$ref": "#/$defs/AutoDumpFormat"
},
{
"type": "null"
}
]
},
"auto_open_dump": {
"description": "Whether to automatically open HTML dump files in the browser after\ncreation.",
"type": "boolean",
"default": false
},
"commit": {
"description": "Model and provider configuration used for commit message generation.",
"anyOf": [
{
"$ref": "#/$defs/ModelConfig"
},
{
"type": "null"
}
]
},
"compact": {
"description": "Context compaction settings applied to all agents; falls back to each\nagent's individual setting when absent.",
"anyOf": [
{
"$ref": "#/$defs/Compact"
},
{
"type": "null"
}
]
},
"custom_history_path": {
"description": "Path to the conversation history file; defaults to the global history\nlocation when absent.",
"type": [
"string",
"null"
]
},
"debug_requests": {
"description": "Directory where debug request files are written; disabled when absent.",
"type": [
"string",
"null"
]
},
"http": {
"description": "HTTP client settings including proxy, TLS, and timeout configuration.",
"anyOf": [
{
"$ref": "#/$defs/HttpConfig"
},
{
"type": "null"
}
]
},
"max_commit_count": {
"description": "Maximum number of recent commits included as context for commit message\ngeneration.",
"type": "integer",
"format": "uint",
"default": 0,
"minimum": 0
},
"max_conversations": {
"description": "Maximum number of conversations shown in the conversation list.",
"type": "integer",
"format": "uint",
"default": 0,
"minimum": 0
},
"max_extensions": {
"description": "Maximum number of file extensions included in the agent system prompt.",
"type": "integer",
"format": "uint",
"default": 0,
"minimum": 0
},
"max_fetch_chars": {
"description": "Maximum number of characters returned from a URL fetch.",
"type": "integer",
"format": "uint",
"default": 0,
"minimum": 0
},
"max_file_read_batch_size": {
"description": "Maximum number of files read in a single batch operation.",
"type": "integer",
"format": "uint",
"default": 0,
"minimum": 0
},
"max_file_size_bytes": {
"description": "Maximum file size in bytes permitted for read operations.",
"type": "integer",
"format": "uint64",
"default": 0,
"minimum": 0
},
"max_image_size_bytes": {
"description": "Maximum image file size in bytes permitted for read operations.",
"type": "integer",
"format": "uint64",
"default": 0,
"minimum": 0
},
"max_line_chars": {
"description": "Maximum number of characters per line when reading a file.",
"type": "integer",
"format": "uint",
"default": 0,
"minimum": 0
},
"max_parallel_file_reads": {
"description": "Maximum number of files read concurrently during batch operations.",
"type": "integer",
"format": "uint",
"default": 0,
"minimum": 0
},
"max_read_lines": {
"description": "Maximum number of lines read from a file in a single operation.",
"type": "integer",
"format": "uint64",
"default": 0,
"minimum": 0
},
"max_requests_per_turn": {
"description": "Maximum number of requests that can be made in a single turn.",
"type": [
"integer",
"null"
],
"format": "uint",
"minimum": 0
},
"max_search_lines": {
"description": "Maximum number of lines returned by a single file search operation.",
"type": "integer",
"format": "uint",
"default": 0,
"minimum": 0
},
"max_search_result_bytes": {
"description": "Maximum number of bytes returned by a single file search operation.",
"type": "integer",
"format": "uint",
"default": 0,
"minimum": 0
},
"max_sem_search_results": {
"description": "Maximum number of candidate results returned from the initial semantic\nsearch vector query.",
"type": "integer",
"format": "uint",
"default": 0,
"minimum": 0
},
"max_stdout_line_chars": {
"description": "Maximum number of characters per line in shell command output.",
"type": "integer",
"format": "uint",
"default": 0,
"minimum": 0
},
"max_stdout_prefix_lines": {
"description": "Maximum number of lines captured from the leading portion of shell\ncommand output.",
"type": "integer",
"format": "uint",
"default": 0,
"minimum": 0
},
"max_stdout_suffix_lines": {
"description": "Maximum number of lines captured from the trailing portion of shell\ncommand output.",
"type": "integer",
"format": "uint",
"default": 0,
"minimum": 0
},
"max_tokens": {
"description": "Maximum tokens the model may generate per response for all agents\n(1–100,000).",
"type": [
"integer",
"null"
],
"format": "uint32",
"minimum": 0
},
"max_tool_failure_per_turn": {
"description": "Maximum tool failures per turn before the orchestrator forces\ncompletion.",
"type": [
"integer",
"null"
],
"format": "uint",
"minimum": 0
},
"model_cache_ttl_secs": {
"description": "Time-to-live in seconds for the cached model API list.",
"type": "integer",
"format": "uint64",
"default": 0,
"minimum": 0
},
"reasoning": {
"description": "Reasoning configuration applied to all agents; controls effort level,\ntoken budget, and visibility of the model's thinking process.",
"anyOf": [
{
"$ref": "#/$defs/ReasoningConfig"
},
{
"type": "null"
}
]
},
"restricted": {
"description": "Whether restricted mode is active; when enabled, tool execution requires\nexplicit permission grants.",
"type": "boolean",
"default": false
},
"retry": {
"description": "Retry settings applied at the system level to all IO operations.",
"anyOf": [
{
"$ref": "#/$defs/RetryConfig"
},
{
"type": "null"
}
]
},
"sem_search_top_k": {
"description": "Number of top results retained after re-ranking in semantic search.",
"type": "integer",
"format": "uint",
"default": 0,
"minimum": 0
},
"services_url": {
"description": "Base URL of the Forge services API used for semantic search and\nindexing.",
"type": "string",
"default": ""
},
"session": {
"description": "Default model and provider configuration used when not overridden by\nindividual agents.",
"anyOf": [
{
"$ref": "#/$defs/ModelConfig"
},
{
"type": "null"
}
]
},
"suggest": {
"description": "Model and provider configuration used for shell command suggestion\ngeneration.",
"anyOf": [
{
"$ref": "#/$defs/ModelConfig"
},
{
"type": "null"
}
]
},
"temperature": {
"description": "Output randomness for all agents; lower values are deterministic, higher\nvalues are creative (0.0–2.0).",
"anyOf": [
{
"$ref": "#/$defs/double"
},
{
"type": "null"
}
]
},
"tool_supported": {
"description": "Whether tool use is supported in the current environment; when false,\nall tool calls are disabled.",
"type": "boolean",
"default": false
},
"tool_timeout_secs": {
"description": "Maximum time in seconds a single tool call may run before being\ncancelled.",
"type": "integer",
"format": "uint64",
"default": 0,
"minimum": 0
},
"top_k": {
"description": "Top-k vocabulary cutoff for all agents; restricts sampling to the k\nhighest-probability tokens (1–1000).",
"type": [
"integer",
"null"
],
"format": "uint32",
"minimum": 0
},
"top_p": {
"description": "Nucleus sampling threshold for all agents; limits token selection to the\ntop cumulative probability mass (0.0–1.0).",
"anyOf": [
{
"$ref": "#/$defs/double"
},
{
"type": "null"
}
]
},
"updates": {
"description": "Configuration for automatic Forge updates.",
"anyOf": [
{
"$ref": "#/$defs/Update"
},
{
"type": "null"
}
]
}
},
"$defs": {
"AutoDumpFormat": {
"description": "The output format used when auto-dumping a conversation on task completion.",
"oneOf": [
{
"description": "Dump as a JSON file",
"type": "string",
"const": "json"
},
{
"description": "Dump as an HTML file",
"type": "string",
"const": "html"
}
]
},
"Compact": {
"description": "Configuration for automatic context compaction for all agents",
"type": "object",
"properties": {
"eviction_window": {
"description": "Maximum percentage of the context that can be summarized during\ncompaction. Valid values are between 0.0 and 1.0, where 0.0 means no\ncompaction and 1.0 allows summarizing all messages. Works alongside\nretention_window - the more conservative limit (fewer messages to\ncompact) takes precedence.",
"$ref": "#/$defs/double",
"default": 0.0
},
"max_tokens": {
"description": "Maximum number of tokens to keep after compaction",
"type": [
"integer",
"null"
],
"format": "uint",
"minimum": 0
},
"message_threshold": {
"description": "Maximum number of messages before triggering compaction",
"type": [
"integer",
"null"
],
"format": "uint",
"minimum": 0
},
"model": {
"description": "Model ID to use for compaction, useful when compacting with a\ncheaper/faster model. If not specified, the root level model will be\nused.",
"type": [
"string",
"null"
]
},
"on_turn_end": {
"description": "Whether to trigger compaction when the last message is from a user",
"type": [
"boolean",
"null"
]
},
"retention_window": {
"description": "Number of most recent messages to preserve during compaction.\nThese messages won't be considered for summarization. Works alongside\neviction_window - the more conservative limit (fewer messages to\ncompact) takes precedence.",
"type": "integer",
"format": "uint",
"default": 0,
"minimum": 0
},
"token_threshold": {
"description": "Maximum number of tokens before triggering compaction",
"type": [
"integer",
"null"
],
"format": "uint",
"minimum": 0
},
"turn_threshold": {
"description": "Maximum number of conversation turns before triggering compaction",
"type": [
"integer",
"null"
],
"format": "uint",
"minimum": 0
}
}
},
"Effort": {
"description": "Effort level for model reasoning.",
"oneOf": [
{
"description": "No reasoning; skips the thinking step entirely.",
"type": "string",
"const": "none"
},
{
"description": "Minimal reasoning; fastest and cheapest.",
"type": "string",
"const": "minimal"
},
{
"description": "Low reasoning effort.",
"type": "string",
"const": "low"
},
{
"description": "Medium reasoning effort; the default for most providers.",
"type": "string",
"const": "medium"
},
{
"description": "High reasoning effort.",
"type": "string",
"const": "high"
},
{
"description": "Extra-high reasoning effort (OpenAI / OpenRouter).",
"type": "string",
"const": "xhigh"
},
{
"description": "Maximum reasoning effort; only available on select Anthropic models.",
"type": "string",
"const": "max"
}
]
},
"HttpConfig": {
"description": "HTTP client configuration.",
"type": "object",
"properties": {
"accept_invalid_certs": {
"description": "Accept invalid certificates",
"type": "boolean"
},
"adaptive_window": {
"description": "Adaptive window sizing for improved flow control",
"type": "boolean"
},
"connect_timeout_secs": {
"type": "integer",
"format": "uint64",
"minimum": 0
},
"hickory": {
"type": "boolean"
},
"keep_alive_interval_secs": {
"description": "Keep-alive interval in seconds",
"type": [
"integer",
"null"
],
"format": "uint64",
"minimum": 0
},
"keep_alive_timeout_secs": {
"description": "Keep-alive timeout in seconds",
"type": "integer",
"format": "uint64",
"minimum": 0
},
"keep_alive_while_idle": {
"description": "Keep-alive while connection is idle",
"type": "boolean"
},
"max_redirects": {
"type": "integer",
"format": "uint",
"minimum": 0
},
"max_tls_version": {
"description": "Maximum TLS protocol version to use",
"anyOf": [
{
"$ref": "#/$defs/TlsVersion"
},
{
"type": "null"
}
]
},
"min_tls_version": {
"description": "Minimum TLS protocol version to use",
"anyOf": [
{
"$ref": "#/$defs/TlsVersion"
},
{
"type": "null"
}
]
},
"pool_idle_timeout_secs": {
"type": "integer",
"format": "uint64",
"minimum": 0
},
"pool_max_idle_per_host": {
"type": "integer",
"format": "uint",
"minimum": 0
},
"read_timeout_secs": {
"type": "integer",
"format": "uint64",
"minimum": 0
},
"root_cert_paths": {
"description": "Paths to root certificate files",
"type": [
"array",
"null"
],
"items": {
"type": "string"
}
},
"tls_backend": {
"$ref": "#/$defs/TlsBackend"
}
},
"required": [
"connect_timeout_secs",
"read_timeout_secs",
"pool_idle_timeout_secs",
"pool_max_idle_per_host",
"max_redirects",
"hickory",
"tls_backend",
"adaptive_window",
"keep_alive_timeout_secs",
"keep_alive_while_idle",
"accept_invalid_certs"
]
},
"ModelConfig": {
"description": "Pairs a provider and model together for a specific operation.",
"type": "object",
"properties": {
"model_id": {
"description": "The model to use for this operation.",
"type": [
"string",
"null"
]
},
"provider_id": {
"description": "The provider to use for this operation.",
"type": [
"string",
"null"
]
}
}
},
"ReasoningConfig": {
"description": "Controls the reasoning behaviour of a model, including effort level, token\nbudget, and visibility of the thinking process.",
"type": "object",
"properties": {
"effort": {
"description": "Controls the effort level of the model's reasoning.\nSupported by openrouter and forge provider.",
"anyOf": [
{
"$ref": "#/$defs/Effort"
},
{
"type": "null"
}
]
},
"enabled": {
"description": "Enables reasoning at the \"medium\" effort level with no exclusions.\nSupported by openrouter, anthropic, and forge provider.",
"type": [
"boolean",
"null"
]
},
"exclude": {
"description": "When true, the model thinks deeply but the reasoning is hidden from the\ncaller. Supported by openrouter and forge provider.",
"type": [
"boolean",
"null"
]
},
"max_tokens": {
"description": "Controls how many tokens the model can spend thinking.\nShould be greater than 1024 but less than the overall max_tokens.\nSupported by openrouter, anthropic, and forge provider.",
"type": [
"integer",
"null"
],
"format": "uint",
"minimum": 0
}
}
},
"RetryConfig": {
"description": "Configuration for retry mechanism.",
"type": "object",
"properties": {
"backoff_factor": {
"description": "Backoff multiplication factor for each retry attempt",
"type": "integer",
"format": "uint64",
"minimum": 0
},
"initial_backoff_ms": {
"description": "Initial backoff delay in milliseconds for retry operations",
"type": "integer",
"format": "uint64",
"minimum": 0
},
"max_attempts": {
"description": "Maximum number of retry attempts",
"type": "integer",
"format": "uint",
"minimum": 0
},
"max_delay_secs": {
"description": "Maximum delay between retries in seconds",
"type": [
"integer",
"null"
],
"format": "uint64",
"minimum": 0
},
"min_delay_ms": {
"description": "Minimum delay in milliseconds between retry attempts",
"type": "integer",
"format": "uint64",
"minimum": 0
},
"status_codes": {
"description": "HTTP status codes that should trigger retries",
"type": "array",
"items": {
"type": "integer",
"format": "uint16",
"maximum": 65535,
"minimum": 0
}
},
"suppress_errors": {
"description": "Whether to suppress retry error logging and events",
"type": "boolean"
}
},
"required": [
"initial_backoff_ms",
"min_delay_ms",
"backoff_factor",
"max_attempts",
"status_codes",
"suppress_errors"
]
},
"TlsBackend": {
"description": "TLS backend option.",
"type": "string",
"enum": [
"default",
"rustls"
]
},
"TlsVersion": {
"description": "TLS version enum for configuring TLS protocol versions.",
"type": "string",
"enum": [
"1.0",
"1.1",
"1.2",
"1.3"
]
},
"Update": {
"description": "Configuration for automatic forge updates",
"type": "object",
"properties": {
"auto_update": {
"description": "Whether to automatically install updates without prompting",
"type": [
"boolean",
"null"
]
},
"frequency": {
"description": "How frequently forge checks for updates",
"anyOf": [
{
"$ref": "#/$defs/UpdateFrequency"
},
{
"type": "null"
}
]
}
}
},
"UpdateFrequency": {
"description": "Frequency at which forge checks for updates",
"type": "string",
"enum": [
"daily",
"weekly",
"always"
]
},
"double": {
"type": "number",
"format": "double"
}
}
}