-
Notifications
You must be signed in to change notification settings - Fork 1
Expand file tree
/
Copy pathforge-config.jsonc
More file actions
82 lines (71 loc) · 2.25 KB
/
forge-config.jsonc
File metadata and controls
82 lines (71 loc) · 2.25 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
{
// Data directory for plugin storage (forge.db, logs)
// When empty, resolves to ~/.local/share/opencode/forge (or XDG_DATA_HOME equivalent)
"dataDir": "",
// Logging configuration
"logging": {
"enabled": false,
"debug": false,
"file": ""
},
// Session compaction settings
"compaction": {
"customPrompt": true,
"maxContextTokens": 0
},
// Messages transform hook for read-only enforcement
"messagesTransform": {
"enabled": true,
"debug": false
},
// Model override for plan execution sessions (format: "provider/model")
"executionModel": "",
// Model override for the auditor agent (format: "provider/model")
"auditorModel": "",
// Iterative development loop settings
"loop": {
"enabled": true,
"defaultMaxIterations": 15,
"cleanupWorktree": false,
"model": "",
"stallTimeoutMs": 60000,
"maxConsecutiveStalls": 5, // 0 = disabled; default 5
// Worktree loop completion logging (off by default)
"worktreeLogging": {
"enabled": false,
"directory": ""
}
},
// Sandbox configuration. Sandbox is optional; when Docker is unavailable, loops run in worktree-only mode.
// Currently only Docker is supported; additional modes may be added later.
"sandbox": {
"mode": "docker",
"image": "oc-forge-sandbox:latest"
},
// TUI sidebar widget configuration
"tui": {
"sidebar": true,
"showLoops": true,
"showVersion": true,
// Auto-save captured plans to <dataDir>/plans/<projectId>/. Toggleable from sidebar.
"autoSavePlans": false,
// TTL in ms for archived plans before pruning. 0 disables pruning. Default: 604800000 (7 days)
"planArchiveTtlMs": 604800000
},
// TTL in ms for completed/cancelled loops before cleanup. Default: 604800000 (7 days)
"completedLoopTtlMs": 604800000,
// Per-agent overrides (temperature range: 0.0 - 2.0)
// Keys are agent display names (e.g., "code", "architect", "auditor")
// "agents": {
// "architect": { "temperature": 0.0 },
// "auditor": { "temperature": 0.0 },
// "code": { "temperature": 0.7 }
// }
// Decomposer configuration for plan section decomposition
"decomposer": {
"enabled": true,
"mode": "agent",
"onParseFailure": "legacy",
"maxSections": 12
}
}