Repository navigation
Expand file tree
/
Copy pathopencode.jsonc
More file actions
71 lines (71 loc) · 3.04 KB
/
Copy pathopencode.jsonc
File metadata and controls
71 lines (71 loc) · 3.04 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
{
"$schema": "https://opencode.ai/config.json",
"instructions": ["AGENTS.md"],
"skills": {
"paths": [".opencode/skills"]
},
"agent": {
"gf-planner": {
"model": "anthropic/claude-sonnet-4-6",
"mode": "subagent",
"description": "Pipeline Stage 1 — Analyzes tasks against the GiftFlow codebase and produces a detailed implementation plan (files, classes, conventions, risks, build order). Call first when running the gf-pipeline."
},
"gf-builder": {
"model": "anthropic/claude-sonnet-4-6",
"mode": "subagent",
"description": "Pipeline Stage 2 — Implements code changes following the planner's blueprint. Writes PHP/JS/CSS per GiftFlow conventions. Call after gf-planner."
},
"gf-review": {
"model": "anthropic/claude-sonnet-4-6",
"mode": "subagent",
"description": "Pipeline Stage 3 — Reviews PHP & JS changes for WordPress plugin standards, security, i18n, GiftFlow conventions, and architecture consistency. Call after gf-builder."
},
"gf-qa": {
"model": "anthropic/claude-sonnet-4-6",
"mode": "subagent",
"description": "Pipeline Stage 4 — Runs linters, audits file registration, validates conventions, cross-references the plan, and confirms nothing is broken. Call after gf-review."
},
"gf-explore": {
"model": "anthropic/claude-sonnet-4-6",
"mode": "subagent",
"description": "Deep exploration agent for the GiftFlow plugin codebase — traces flows, finds patterns, explains architecture."
}
},
"command": {
"implement": {
"description": "Run the full GiftFlow agent pipeline: Planner → Builder → Review → QA",
"template": "Run the full GiftFlow agent pipeline (Planner → Builder → Review → QA) on the following task:\n\n$ARGUMENTS\n\nExecute in this exact order using the Task tool:\n1. **gf-planner** — Give it the task description above. Wait for the plan output.\n2. **gf-builder** — Give it the plan output from step 1. Wait for implementation complete.\n3. **gf-review** — Give it the diff/changes from step 2. Wait for review results.\n4. **gf-qa** — Give it the plan (step 1), the changes (step 2), and the review (step 3). Wait for QA report.\n\nAfter all 4 stages complete, summarize the results: what was built, review findings, QA verdict, and any remaining issues.\n\nDo NOT skip stages, do NOT combine stages. Each stage must complete before starting the next.",
"agent": "general"
}
},
"permission": {
"edit": "allow",
"bash": {
"composer lint": "allow",
"composer lint:fix": "allow",
"npm run build": "allow",
"npm run dev": "allow",
"git status": "allow",
"git diff": "allow",
"git log *": "allow",
"git add *": "allow",
"git commit *": "allow",
"mkdir *": "allow",
"*": "ask"
},
"external_directory": {
"*": "deny"
}
},
"mcp": {
"codegraph": {
"type": "local",
"command": [
"codegraph",
"serve",
"--mcp"
],
"enabled": true
}
}
}