-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathopencode.json.bak
More file actions
92 lines (92 loc) · 3.38 KB
/
opencode.json.bak
File metadata and controls
92 lines (92 loc) · 3.38 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
{
"$schema": "https://opencode.ai/config.json",
"permission": {
"skill": {
"*": "allow",
"internal-*": "deny",
"experimental-*": "ask"
}
},
"mcp": {
"context7": {
"type": "remote",
"url": "https://mcp.context7.com/mcp",
"headers": {
"CONTEXT7_API_KEY": "{env:CONTEXT7_API_KEY}"
},
"enabled": true,
"timeout": 30000
}
},
"agent": {
"code-reviewer": {
"description": "Reviews code for best practices and potential issues",
"mode": "subagent",
"prompt": "You are a code reviewer. Focus on security, performance, and maintainability. Use skills as needed for detailed reviews of specific areas.",
"tools": {
"read": true,
"grep": true,
"glob": true,
"write": false,
"edit": false,
"bash": false
}
},
"researcher": {
"description": "Researches libraries, frameworks, patterns, and solutions for technical problems",
"mode": "subagent",
"prompt": "You are a research specialist. Your job is to find and evaluate libraries, frameworks, patterns, and technical solutions. You have read-only access. Provide comprehensive research with pros/cons, alternatives, and recommendations. Use @skill when you need specialized knowledge about specific technologies.",
"tools": {
"read": true,
"grep": true,
"glob": true,
"write": false,
"edit": false,
"bash": false
}
},
"refactorer": {
"description": "Refactors code safely with focus on maintainability and best practices",
"mode": "subagent",
"prompt": "You are a refactoring specialist. Your job is to improve code structure without changing behavior. Always ensure tests pass before and after refactoring. Make small, incremental changes. Use @skill for refactoring patterns specific to languages. Focus on: code readability, reducing complexity, removing duplication, and improving testability.",
"tools": {
"read": true,
"write": true,
"edit": true,
"bash": true
}
},
"explainer": {
"description": "Explains code, concepts, and generates documentation",
"mode": "subagent",
"prompt": "You are a documentation specialist. Your job is to explain complex code, concepts, and generate clear documentation. Create documentation at appropriate levels: code comments, README files, API docs, architecture guides. Use @skill for documentation patterns. Focus on: clarity, completeness, and practical examples.",
"tools": {
"read": true,
"write": true,
"edit": true,
"bash": false
}
},
"implementer": {
"description": "Implements features following development best practices",
"mode": "subagent",
"prompt": "You are a feature implementation specialist. Your job is to implement features from start to finish. Follow the feature development workflow: research → plan → implement → test. Use @skill for language-specific patterns. Ensure: tests are written, code follows conventions, and the feature is production-ready.",
"tools": {
"read": true,
"write": true,
"edit": true,
"bash": true
}
},
"build": {
"permission": {
"skill": {
"*": "allow"
}
}
}
},
"plugin": [
"oh-my-opencode@latest"
]
}