-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathopencode.jsonc
More file actions
149 lines (149 loc) · 5.4 KB
/
Copy pathopencode.jsonc
File metadata and controls
149 lines (149 loc) · 5.4 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
149
{
"$schema": "https://opencode.ai/config.json",
"default_agent": "build",
"agent": {
"project-manager": {
"description": "Oversees project strategy, backlogs, and agent coordination",
"mode": "subagent",
"temperature": 0.2,
"permission": {
"read": "allow",
"glob": "allow",
"grep": "allow",
"edit": "allow",
"bash": {
"*": "ask",
"git *": "allow",
"ls *": "allow"
},
"task": "allow",
"skill": {
"*": "allow"
}
}
},
"content-manager": {
"description": "Manages movies, books, essays collections and front matter",
"mode": "subagent",
"temperature": 0.3,
"permission": {
"read": "allow",
"glob": "allow",
"grep": "allow",
"edit": "allow",
"bash": {
"*": "ask",
"ls *": "allow"
}
}
},
"jekyll-builder": {
"description": "Builds Jekyll site, runs validation, fixes build errors",
"mode": "subagent",
"temperature": 0.1,
"permission": {
"read": "allow",
"glob": "allow",
"grep": "allow",
"edit": "allow",
"bash": {
"*": "ask",
"docker compose *": "allow",
"make *": "allow",
"ls *": "allow"
}
}
},
"self-evolve": {
"description": "Reviews and improves agent configurations, skills, and workflows",
"mode": "subagent",
"temperature": 0.4,
"permission": {
"read": "allow",
"glob": "allow",
"grep": "allow",
"edit": "allow",
"bash": {
"*": "ask",
"ls *": "allow",
"cat *": "allow"
},
"skill": {
"*": "allow"
}
}
},
"git-publisher": {
"description": "Auto-test, stage, commit, and push changes with proper messages",
"mode": "subagent",
"temperature": 0.1,
"permission": {
"read": "allow",
"glob": "allow",
"grep": "allow",
"edit": "allow",
"bash": {
"*": "ask",
"git *": "allow",
"docker compose *": "allow",
"make *": "allow",
"ls *": "allow"
},
"skill": "allow"
}
},
"hn-summarizer": {
"description": "HN discussion -> Chinese summary article",
"mode": "subagent",
"temperature": 0.3,
"permission": {
"read": "allow",
"glob": "allow",
"grep": "allow",
"webfetch": "allow",
"websearch": "allow",
"write": "allow",
"edit": "allow",
"bash": {
"*": "ask",
"docker compose *": "allow",
"ls *": "allow"
},
"skill": "allow"
}
}
},
"command": {
"test": {
"template": "Run the Jekyll build in Docker to verify the site compiles without errors:\n1. Run `docker compose run --rm build` or `make build`\n2. Check for any warnings or errors in the output\n3. Fix any issues found\n4. Report the build status (no local Ruby needed)",
"description": "Build & validate Jekyll site",
"agent": "jekyll-builder"
},
"deploy": {
"template": "Full deploy workflow:\n1. Build the Jekyll site and verify no errors\n2. Stage all changes\n3. Create a meaningful commit message summarizing what changed\n4. Push to origin master\n5. Confirm the deploy is done",
"description": "Build, commit & push to GitHub Pages",
"agent": "git-publisher"
},
"evolve": {
"template": "Review all agent configs (.opencode/agents/*.md, .opencode/skills/*/SKILL.md), opencode.jsonc, AGENTS.md, and infrastructure files (Makefile, Dockerfile, docker-compose.yml, .github/workflows/hn-auto.yml, .github/workflows/hn-fetch.yml).\nIdentify:\n- Gaps or missing capabilities\n- Outdated instructions\n- Permission inconsistencies\n- Opportunities for improvement\n- Redundancies\nSuggest and apply concrete improvements.",
"description": "Self-review and improve agent configs",
"agent": "self-evolve"
},
"plan": {
"template": "Analyze the project structure, recent changes, and TODO list. Create a plan for what to work on next. Consider:\n- Content gaps (missing movies, books, essays)\n- Site improvements\n- Configuration improvements\n- Technical debt",
"description": "Plan next steps for the project",
"agent": "project-manager"
},
"content": {
"template": "Audit all content collections: _movies/, _books/, _essays/, _articles/**/. Count each collection dynamically (do not hardcode counts).\nCheck for:\n- Missing front matter fields (some movie posts only have `title`)\n- Inconsistent naming conventions (dot-before-year vs plain date)\n- Articles front matter must use `>-` block scalars for title/excerpt/tagline\n- Duplicate or stale articles between _articles/ root and year subdirs\n- Whether _books/ or _essays/ have actual posts yet",
"description": "Audit and manage site content",
"agent": "content-manager"
},
"hn": {
"template": "Load hn-discussion-summary skill and caveman skill. If URL given -> Phase 1-3 (skip scan). If no URL -> Phase 0 (scan HN best) -> show candidates -> user pick -> Phase 1-3. After write: bundle exec jekyll build -> ask deploy.",
"description": "Create HN discussion summary article",
"agent": "hn-summarizer"
}
},
"instructions": ["AGENTS.md"]
}