-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathopencode.jsonc
More file actions
94 lines (88 loc) · 3.09 KB
/
opencode.jsonc
File metadata and controls
94 lines (88 loc) · 3.09 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
{
"$schema": "https://opencode.ai/config.json",
// ── Modèle par défaut ───────────────────────────────────────────────────────
// DeepSeek v4 Flash via OpenCode Go, avec raisonnement au budget maximal.
"model": "opencode-go/deepseek-v4-flash",
// ── Options de raisonnement par modèle ─────────────────────────────────────
// Active le mode thinking avec budget maximal pour les deux modèles DeepSeek.
"provider": {
"opencode-go": {
"models": {
"deepseek-v4-flash": {
"options": {
"thinking": {
"type": "enabled",
"budgetTokens": 32000
}
}
},
"deepseek-v4-pro": {
"options": {
"thinking": {
"type": "enabled",
"budgetTokens": 32000
}
}
}
}
}
},
// ── Agents intégrés ─────────────────────────────────────────────────────────
"agent": {
// Plan : raisonnement approfondi avant toute implémentation
"plan": {
"model": "opencode-go/deepseek-v4-pro",
"temperature": 0.1,
"permission": {
"edit": "allow",
"webfetch": "allow",
"bash": "allow"
}
},
// Build : exécution rapide mais réfléchie, toutes les commandes auto-approuvées
"build": {
"model": "opencode-go/deepseek-v4-flash",
"temperature": 0.2,
"permission": {
"edit": "allow",
"webfetch": "allow",
"bash": "allow"
}
}
},
// ── Permissions globales ────────────────────────────────────────────────────
// Toutes les permissions accordées aux agents pour exécution sans interruption.
"permission": {
"edit": "allow",
"webfetch": "allow",
"bash": "allow"
},
// ── Plugins ──────────────────────────────────────────────────────────────────
"plugin": [
// Plannotator désactivé — incompatible avec la config actuelle (OmO)
// ["@plannotator/opencode@latest", {
// "workflow": "plan-agent",
// "planningAgents": ["plan"]
// }],
"opencode-vision",
"oh-my-openagent"
],
"mcp": {
"context7": {
"type": "local",
"command": ["npx", "-y", "@upstash/context7-mcp"],
"enabled": true
},
"openrouter_image": {
"type": "local",
"command": ["npx", "-y", "openrouter-image-mcp"],
"environment": {
"OPENROUTER_MODEL": "nvidia/nemotron-3-nano-omni-30b-a3b-reasoning:free",
"LOG_LEVEL": "error",
"DOTENV_CONFIG_QUIET": "true"
},
"enabled": true
}
},
"autoupdate": true
}