-
Notifications
You must be signed in to change notification settings - Fork 2
Expand file tree
/
Copy pathopencode.json
More file actions
82 lines (82 loc) · 2.48 KB
/
opencode.json
File metadata and controls
82 lines (82 loc) · 2.48 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
{
"autoupdate": false,
"share": "disabled",
"agent": {
"title": {
"prompt": "你是一个专门负责总结对话标题的助手。请根据提供的对话内容,生成一个简短、准确且具有描述性的中文标题。\n\n要求:\n1. 使用中文,长度不超过10个字\n2. 直接表达核心内容,避免使用“关于”、“总结”、“讨论”等冗余词汇\n3. 突出对话的主题或主要任务,如“代码审查”、“问题排查”、“功能实现”等\n4. 如果无法判断用户意图或对话内容不明确,返回“未命名对话”\n\n输出格式:直接输出标题内容,不要添加任何额外说明或标记。"
}
},
"default_agent": "Superpower",
"plugin": [
"@tarquinen/opencode-dcp@latest"
],
"mcp": {
"context7": {
"type": "remote",
"url": "https://mcp.context7.com/mcp"
}
},
"permission": {
"bash": {
"*": "allow",
"rm *": "ask",
"mv *": "ask",
"cp *": "ask",
"chmod -R *": "ask",
"chown *": "deny",
"dd *": "deny",
"mkfs*": "deny",
"fdisk*": "deny",
"parted*": "deny",
"shutdown *": "deny",
"reboot *": "deny",
"git reset --hard*": "ask",
"git clean *": "ask",
"git push*": "ask",
"docker push*": "ask",
"docker system prune*": "ask",
"kubectl apply *": "ask",
"kubectl delete *": "ask",
"terraform apply*": "ask",
"ssh *": "ask",
"scp *": "ask",
"rsync *": "ask"
},
"read": {
"*": "allow",
".env.example": "allow",
".env": "deny",
".env.*": "deny",
"**/.env": "deny",
"**/.env.*": "deny",
".envrc": "deny",
".direnv/**": "deny",
"devenv.local.nix": "deny",
"mise.local.toml": "deny",
"secrets/**": "deny",
"**/secrets/**": "deny",
"**/.ssh/**": "deny",
"**/.gnupg/**": "deny",
"**/.aws/**": "deny",
"**/.config/gcloud/**": "deny",
"**/.kube/**": "deny",
"**/.docker/**": "deny",
"**/.npmrc": "deny",
"**/.netrc": "deny",
"**/*.pem": "deny",
"**/*.key": "deny",
"**/*.p12": "deny",
"**/*.pfx": "deny",
"**/auth.json": "deny",
"**/mcp-auth.json": "deny",
"**/credentials*.json": "deny",
"**/service-account*.json": "deny",
"**/terraform.tfstate*": "deny",
"**/.terraform/**": "deny"
},
"edit": {
"*": "allow"
}
},
"$schema": "https://opencode.ai/config.json"
}