-
Notifications
You must be signed in to change notification settings - Fork 2
Expand file tree
/
Copy pathopencode.json
More file actions
53 lines (53 loc) · 1.67 KB
/
opencode.json
File metadata and controls
53 lines (53 loc) · 1.67 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
{
"autoupdate": false,
"agent": {
"title": {
"prompt": "你是一个专门负责总结对话标题的助手。请根据提供的对话内容,生成一个简短、准确且具有描述性的中文标题。\n\n要求:\n1. 使用中文,长度不超过10个字\n2. 直接表达核心内容,避免使用“关于”、“总结”、“讨论”等冗余词汇\n3. 突出对话的主题或主要任务,如“代码审查”、“问题排查”、“功能实现”等\n4. 如果无法判断用户意图或对话内容不明确,返回“未命名对话”\n\n输出格式:直接输出标题内容,不要添加任何额外说明或标记。"
}
},
"mcp": {
"context7": {
"type": "remote",
"url": "https://mcp.context7.com/mcp"
}
},
"permission": {
"bash": {
"*": "ask",
"grep *": "allow",
"rg *": "allow",
"find *": "allow",
"ls *": "allow",
"git status*": "allow",
"git diff*": "allow",
"git log*": "allow",
"npm *": "allow",
"rm *": "ask",
"git ls-files*": "allow",
"rm commit.msg": "allow",
"del commit.msg": "allow",
"cargo check*": "allow",
"ls": "allow",
"dir": "allow",
"type *": "allow",
"whoami": "allow",
"pwd": "allow"
},
"read": {
".env": "deny",
".env.*": "deny",
".envrc": "deny",
"secrets/**": "deny",
"config/credentials.json": "deny",
"mise.local.toml": "deny",
".direnv/**": "deny",
"devenv.local.nix": "deny",
"build": "deny"
},
"edit": {
"*": "ask",
"commit.msg": "allow"
}
},
"$schema": "https://opencode.ai/config.json"
}