forked from SabakiHQ/Sabaki
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathopencode.json
More file actions
148 lines (148 loc) · 5.42 KB
/
Copy pathopencode.json
File metadata and controls
148 lines (148 loc) · 5.42 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
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
{
"$schema": "https://opencode.ai/config.json",
"default_agent": "seki-dev",
"share": "manual",
"snapshot": true,
"instructions": [
"AGENTS.md",
"CONTRIBUTING.md",
"docs/guides/building-tests.md"
],
"skills": {
"paths": [".opencode/skills"]
},
"watcher": {
"ignore": [
"node_modules/**",
"dist/**",
"bundle.js",
"bundle.js.map",
".git/**",
"test/resources/engine-transcripts/**"
]
},
"formatter": {
"prettier": {
"command": ["npx", "prettier", "--write", "$FILE"],
"extensions": [".js", ".html", ".md", ".json"]
}
},
"permission": {
"read": {
"*": "allow",
"*.env": "deny",
"*.env.*": "deny",
"*.env.example": "allow"
},
"glob": "allow",
"grep": "allow",
"list": "allow",
"edit": "allow",
"question": "allow",
"todowrite": "allow",
"webfetch": "ask",
"websearch": "ask",
"skill": "allow",
"external_directory": "ask",
"doom_loop": "ask",
"bash": {
"*": "ask",
"git status*": "allow",
"git diff*": "allow",
"git log*": "allow",
"git remote*": "allow",
"npm test": "allow",
"npm run format-check": "allow",
"npm run test:e2e:smoke": "allow",
"npm run bundle": "allow",
"npx playwright test*": "ask",
"npm install*": "ask",
"npm run build*": "ask",
"npm run dist*": "ask",
"git add*": "deny",
"git commit*": "deny",
"git push*": "ask",
"rm *": "deny",
"rm -r *": "deny",
"rm -rf *": "deny",
"git reset --hard*": "deny",
"git checkout -- *": "deny",
"git clean*": "deny",
"git push --force*": "deny"
},
"task": {
"*": "deny",
"repo-cartographer": "allow",
"sgf-gtp-specialist": "allow",
"electron-security-reviewer": "allow",
"preact-ui-specialist": "allow",
"ogs-integration-architect": "allow",
"test-verifier": "allow",
"code-reviewer": "allow",
"git-committer": "allow",
"docs-maintainer": "allow",
"packaging-release-guardian": "allow"
}
},
"agent": {
"plan": {
"permission": {
"edit": "deny",
"bash": {
"*": "ask",
"git status*": "allow",
"git diff*": "allow",
"git log*": "allow",
"git add*": "deny",
"git commit*": "deny",
"npm test": "ask",
"npm run format-check": "ask"
}
}
}
},
"command": {
"dev-task": {
"description": "Explore, implement, verify, review",
"agent": "seki-dev",
"template": "Treat this as a full development task for Seki-Sabaki: $ARGUMENTS\n\nFollow the project pipeline from AGENTS.md. First gather code context, then ask blocking questions with the question tool if product or security decisions are unclear. Delegate focused research or review to relevant subagents through the task tool. Implement the smallest correct change, run the targeted verification, review the result, then call git-committer to create clean atomic commits. Do not push. Finish with commit hashes, changed files, and verification results."
},
"feature-online": {
"description": "Design OGS/online feature safely",
"agent": "seki-plan",
"template": "Plan an online/OGS feature for Seki-Sabaki: $ARGUMENTS\n\nDo not implement yet unless explicitly asked after the plan. Load the relevant skills, verify OGS/API assumptions from source material when needed, identify Electron security implications, propose a minimal vertical slice, list affected files, tests, and unresolved product questions. Use question tool for decisions that block a correct plan."
},
"verify": {
"description": "Choose and run targeted checks",
"agent": "test-verifier",
"subtask": true,
"template": "Select the smallest reliable verification matrix for the current change or request: $ARGUMENTS\n\nInspect the changed files and project scripts, run allowed checks when appropriate, and report exact commands, pass/fail status, and any remaining unverified risks."
},
"review": {
"description": "Strict code review",
"agent": "code-reviewer",
"subtask": true,
"template": "Review the current changes or target described here: $ARGUMENTS\n\nPrioritize bugs, regressions, security issues, missing tests, and hallucinated assumptions. Return findings first with file/line references. If no findings, say so and list residual risks."
},
"e2e-spec": {
"description": "Add Playwright Electron coverage",
"agent": "seki-dev",
"template": "Add or adjust Playwright Electron E2E coverage for: $ARGUMENTS\n\nUse existing e2e fixtures and helpers. Prefer deterministic app-state waits over sleeps. Delegate test strategy to test-verifier if scope is unclear. After verification and review, call git-committer to create clean atomic commits. Do not push."
},
"upstream-awareness": {
"description": "Compare with upstream-sensitive areas",
"agent": "repo-cartographer",
"subtask": true,
"template": "Map the upstream-sensitive code areas for: $ARGUMENTS\n\nIdentify files likely inherited from Sabaki upstream, local fork changes visible from git history if relevant, and risks when modifying them. Do not edit files."
}
},
"tool_output": {
"max_lines": 400,
"max_bytes": 20000
},
"compaction": {
"auto": true,
"prune": false,
"tail_turns": 6
}
}