-
Notifications
You must be signed in to change notification settings - Fork 3
Expand file tree
/
Copy pathopencode.jsonc
More file actions
36 lines (33 loc) · 1.47 KB
/
Copy pathopencode.jsonc
File metadata and controls
36 lines (33 loc) · 1.47 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
{
"$schema": "https://opencode.ai/config.json",
// Edit permission allows all paths except the locked gates config; it does
// not describe permissions for other tools. The quality-gate plugin checks
// selected bypass additions and gate-reference removals in scripts/ and
// Makefile, rather than proving that every change tightens quality gates.
//
// HUMAN OVERRIDE: To change gate thresholds, temporarily remove
// the deny rule below, edit quality/gates.conf, and restore.
// To approve a blocked edit, set OPENCODE_DISABLE_QUALITY_GATE=1.
"permission": {
"edit": {
"*": "allow",
"**/quality/gates.conf": "deny"
}
},
// -----------------------------------------------------------------------
// Plugins — loaded from .opencode/plugins/
//
// quality-gate: checks selected bypass additions, severity reductions,
// and gate-reference removals in scripts/ and Makefile.
// pxcli-quality: real-time feedback: conventions injection, per-file
// ruff/radon/bandit/ty checks, idle-time semgrep/pyright.
// pre-push-docs: reminds to update CLI help text and README before push.
// -----------------------------------------------------------------------
"plugin": [
".opencode/plugins/quality-gate.ts",
".opencode/plugins/pxcli-quality.ts",
".opencode/plugins/pre-push-docs-check.ts"
],
// Agents are auto-discovered from .opencode/agents/ and configured by
// their frontmatter.
}