opencode-agent-orchestration-kit 1.0.27

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (236) hide show
  1. package/.github/CODEOWNERS +1 -0
  2. package/.github/ISSUE_TEMPLATE/bug_report.yml +65 -0
  3. package/.github/ISSUE_TEMPLATE/config.yml +11 -0
  4. package/.github/ISSUE_TEMPLATE/documentation.yml +22 -0
  5. package/.github/ISSUE_TEMPLATE/feature_request.yml +43 -0
  6. package/.github/PULL_REQUEST_TEMPLATE.md +25 -0
  7. package/.github/workflows/check.yml +47 -0
  8. package/CODE_OF_CONDUCT.md +24 -0
  9. package/CONTRIBUTING.md +52 -0
  10. package/LICENSE +201 -0
  11. package/NOTICE.md +23 -0
  12. package/README.md +806 -0
  13. package/SECURITY.md +17 -0
  14. package/docker/open-design/.env.example +6 -0
  15. package/docker/open-design/Dockerfile +50 -0
  16. package/docker/open-design/docker-compose.yml +18 -0
  17. package/docker/open-design/opencode-od/agents/od-worker.md +22 -0
  18. package/docker/open-design/opencode-od/opencode.json +24 -0
  19. package/docs/agents.md +21 -0
  20. package/docs/commands.md +16 -0
  21. package/docs/configuration.md +30 -0
  22. package/docs/docker-open-design.md +42 -0
  23. package/docs/impeccable.md +18 -0
  24. package/docs/installation.md +176 -0
  25. package/docs/models.md +17 -0
  26. package/docs/open-design.md +25 -0
  27. package/docs/quickstart.md +74 -0
  28. package/docs/releases/v1.0.10.md +46 -0
  29. package/docs/releases/v1.0.14.md +39 -0
  30. package/docs/releases/v1.0.27.md +66 -0
  31. package/docs/security.md +8 -0
  32. package/docs/superpowers/plans/2026-07-20-safe-installation-lifecycle.md +779 -0
  33. package/docs/superpowers/plans/2026-07-20-version-identity-and-releases.md +590 -0
  34. package/docs/superpowers/specs/2026-07-20-safe-installation-lifecycle-design.md +1350 -0
  35. package/docs/superpowers/specs/2026-07-20-version-identity-and-releases-design.md +557 -0
  36. package/docs/superpowers.md +34 -0
  37. package/docs/synology.md +30 -0
  38. package/docs/troubleshooting.md +54 -0
  39. package/docs/workflows.md +44 -0
  40. package/doctor.sh +5 -0
  41. package/env.example +15 -0
  42. package/install.sh +5 -0
  43. package/opencode/AGENTS.md +104 -0
  44. package/opencode/agents/debugger.md +41 -0
  45. package/opencode/agents/designer.md +93 -0
  46. package/opencode/agents/developer.md +180 -0
  47. package/opencode/agents/evaluator.md +35 -0
  48. package/opencode/agents/evolver.md +31 -0
  49. package/opencode/agents/lead.md +251 -0
  50. package/opencode/agents/researcher.md +76 -0
  51. package/opencode/agents/review_api.md +34 -0
  52. package/opencode/agents/review_coordinator.md +111 -0
  53. package/opencode/agents/review_quality.md +35 -0
  54. package/opencode/agents/review_security.md +35 -0
  55. package/opencode/agents/review_tests.md +37 -0
  56. package/opencode/agents/reviewer.md +116 -0
  57. package/opencode/agents/scoper.md +75 -0
  58. package/opencode/agents/specifier.md +116 -0
  59. package/opencode/commands/code-simplify.md +36 -0
  60. package/opencode/commands/design.md +27 -0
  61. package/opencode/commands/evolve.md +165 -0
  62. package/opencode/commands/feature.md +67 -0
  63. package/opencode/commands/implement.md +11 -0
  64. package/opencode/commands/init.md +34 -0
  65. package/opencode/commands/loop.md +145 -0
  66. package/opencode/commands/mvp-spec.md +20 -0
  67. package/opencode/commands/plan.md +74 -0
  68. package/opencode/commands/research.md +12 -0
  69. package/opencode/commands/review-orchestrated.md +47 -0
  70. package/opencode/commands/review-preflight.md +26 -0
  71. package/opencode/commands/review.md +18 -0
  72. package/opencode/commands/scope.md +36 -0
  73. package/opencode/commands/spec.md +12 -0
  74. package/opencode/commands/test.md +40 -0
  75. package/opencode/docs/ai/evolution/README.md +135 -0
  76. package/opencode/docs/ai/evolution/benchmarks/manual-scenarios.md +123 -0
  77. package/opencode/docs/ai/evolution/benchmarks/router-scenarios.jsonl +8 -0
  78. package/opencode/docs/ai/evolution/evolution_history.md +83 -0
  79. package/opencode/docs/ai/evolution/mechanisms.jsonl +7 -0
  80. package/opencode/docs/ai/evolution/rejected_mechanisms.jsonl +2 -0
  81. package/opencode/docs/ai/evolution/runs/README.md +15 -0
  82. package/opencode/docs/ai/evolution/runs/iteration-001-sidecar/analysis/overview.md +12 -0
  83. package/opencode/docs/ai/evolution/runs/iteration-001-sidecar/change_evaluation.json +108 -0
  84. package/opencode/docs/ai/evolution/runs/iteration-001-sidecar/change_manifest.json +52 -0
  85. package/opencode/docs/ai/evolution/runs/iteration-001-sidecar/evaluation.md +19 -0
  86. package/opencode/docs/ai/evolution/runs/iteration-001-sidecar/post_evaluation.md +12 -0
  87. package/opencode/docs/ai/evolution/runs/iteration-002-feature-flow-fix/analysis/overview.md +7 -0
  88. package/opencode/docs/ai/evolution/runs/iteration-002-feature-flow-fix/change_evaluation.json +31 -0
  89. package/opencode/docs/ai/evolution/runs/iteration-002-feature-flow-fix/evaluation.md +19 -0
  90. package/opencode/docs/ai/evolution/runs/iteration-003-agent-readable-harness/analysis/overview.md +13 -0
  91. package/opencode/docs/ai/evolution/runs/iteration-003-agent-readable-harness/change_evaluation.json +66 -0
  92. package/opencode/docs/ai/evolution/runs/iteration-003-agent-readable-harness/change_manifest.json +82 -0
  93. package/opencode/docs/ai/evolution/runs/iteration-003-agent-readable-harness/evaluation.md +20 -0
  94. package/opencode/docs/ai/evolution/runs/iteration-004-orchestration-audit/analysis/detail/ahe-run-lifecycle-validator.md +40 -0
  95. package/opencode/docs/ai/evolution/runs/iteration-004-orchestration-audit/analysis/detail/evolve-evaluation-only-contract.md +15 -0
  96. package/opencode/docs/ai/evolution/runs/iteration-004-orchestration-audit/analysis/detail/open-design-tool-contract.md +14 -0
  97. package/opencode/docs/ai/evolution/runs/iteration-004-orchestration-audit/analysis/detail/slash-command-contract-coverage.md +40 -0
  98. package/opencode/docs/ai/evolution/runs/iteration-004-orchestration-audit/analysis/overview.md +17 -0
  99. package/opencode/docs/ai/evolution/runs/iteration-004-orchestration-audit/analysis/pre_apply_approval.md +15 -0
  100. package/opencode/docs/ai/evolution/runs/iteration-004-orchestration-audit/change_evaluation.json +252 -0
  101. package/opencode/docs/ai/evolution/runs/iteration-004-orchestration-audit/change_manifest.json +210 -0
  102. package/opencode/docs/ai/evolution/runs/iteration-004-orchestration-audit/evaluation.md +25 -0
  103. package/opencode/docs/ai/evolution/runs/iteration-004-orchestration-audit/post_apply_evaluation.md +15 -0
  104. package/opencode/docs/ai/evolution/runs/iteration-004-orchestration-audit/post_manifest_evaluation.md +14 -0
  105. package/opencode/docs/ai/evolution/runs/iteration-004-orchestration-audit/pre_apply_evaluation.md +15 -0
  106. package/opencode/docs/ai/evolution/runs/iteration-005-harness-orchestration-audit/analysis/overview.md +13 -0
  107. package/opencode/docs/ai/evolution/runs/iteration-005-harness-orchestration-audit/change_evaluation.json +14 -0
  108. package/opencode/docs/ai/evolution/runs/iteration-005-harness-orchestration-audit/change_manifest.json +30 -0
  109. package/opencode/docs/ai/evolution/runs/iteration-005-harness-orchestration-audit/evaluation.md +25 -0
  110. package/opencode/docs/ai/evolution/runs/iteration-006-lead-delegation-audit/analysis/overview.md +13 -0
  111. package/opencode/docs/ai/evolution/runs/iteration-006-lead-delegation-audit/change_evaluation.json +14 -0
  112. package/opencode/docs/ai/evolution/runs/iteration-006-lead-delegation-audit/change_manifest.json +29 -0
  113. package/opencode/docs/ai/evolution/runs/iteration-006-lead-delegation-audit/evaluation.md +18 -0
  114. package/opencode/docs/ai/evolution/runs/iteration-007-agent-skills-integration/analysis/overview.md +13 -0
  115. package/opencode/docs/ai/evolution/runs/iteration-007-agent-skills-integration/change_evaluation.json +14 -0
  116. package/opencode/docs/ai/evolution/runs/iteration-007-agent-skills-integration/change_manifest.json +34 -0
  117. package/opencode/docs/ai/evolution/runs/iteration-007-agent-skills-integration/evaluation.md +17 -0
  118. package/opencode/docs/ai/evolution/runs/iteration-008-lead-readonly-shell-permissions/analysis/overview.md +13 -0
  119. package/opencode/docs/ai/evolution/runs/iteration-008-lead-readonly-shell-permissions/change_evaluation.json +12 -0
  120. package/opencode/docs/ai/evolution/runs/iteration-008-lead-readonly-shell-permissions/change_manifest.json +28 -0
  121. package/opencode/docs/ai/evolution/runs/iteration-008-lead-readonly-shell-permissions/evaluation.md +17 -0
  122. package/opencode/docs/ai/evolution/runs/iteration-009-lead-developer-ownership-loop/analysis/overview.md +9 -0
  123. package/opencode/docs/ai/evolution/runs/iteration-009-lead-developer-ownership-loop/change_evaluation.json +14 -0
  124. package/opencode/docs/ai/evolution/runs/iteration-009-lead-developer-ownership-loop/change_manifest.json +31 -0
  125. package/opencode/docs/ai/evolution/runs/iteration-009-lead-developer-ownership-loop/evaluation.md +18 -0
  126. package/opencode/docs/ai/evolution/runs/iteration-010-token-plugin-sidebar-content/analysis/overview.md +12 -0
  127. package/opencode/docs/ai/evolution/runs/iteration-010-token-plugin-sidebar-content/change_evaluation.json +14 -0
  128. package/opencode/docs/ai/evolution/runs/iteration-010-token-plugin-sidebar-content/change_manifest.json +31 -0
  129. package/opencode/docs/ai/evolution/runs/iteration-010-token-plugin-sidebar-content/evaluation.md +17 -0
  130. package/opencode/docs/ai/evolution/runs/iteration-011-lead-cd-which-permissions/analysis/overview.md +10 -0
  131. package/opencode/docs/ai/evolution/runs/iteration-011-lead-cd-which-permissions/change_evaluation.json +14 -0
  132. package/opencode/docs/ai/evolution/runs/iteration-011-lead-cd-which-permissions/change_manifest.json +30 -0
  133. package/opencode/docs/ai/evolution/runs/iteration-011-lead-cd-which-permissions/evaluation.md +17 -0
  134. package/opencode/docs/ai/evolution/runs/iteration-012-lead-shell-allowlist-boundaries/analysis/overview.md +25 -0
  135. package/opencode/docs/ai/evolution/runs/iteration-012-lead-shell-allowlist-boundaries/change_evaluation.json +28 -0
  136. package/opencode/docs/ai/evolution/runs/iteration-012-lead-shell-allowlist-boundaries/change_manifest.json +31 -0
  137. package/opencode/docs/ai/evolution/runs/iteration-012-lead-shell-allowlist-boundaries/evaluation.md +22 -0
  138. package/opencode/docs/ai/evolution/runs/iteration-013-doc-gardening-mechanical-checks/analysis/overview.md +27 -0
  139. package/opencode/docs/ai/evolution/runs/iteration-013-doc-gardening-mechanical-checks/change_evaluation.json +32 -0
  140. package/opencode/docs/ai/evolution/runs/iteration-013-doc-gardening-mechanical-checks/change_manifest.json +49 -0
  141. package/opencode/docs/ai/evolution/runs/iteration-013-doc-gardening-mechanical-checks/evaluation.md +92 -0
  142. package/opencode/docs/ai/evolution/runs/iteration-014-harness-baseline/analysis/detail/token-vs-semantic.md +31 -0
  143. package/opencode/docs/ai/evolution/runs/iteration-014-harness-baseline/analysis/overview.md +14 -0
  144. package/opencode/docs/ai/evolution/runs/iteration-014-harness-baseline/evaluation.md +36 -0
  145. package/opencode/docs/ai/evolution/runs/iteration-015-semantic-checker/analysis/overview.md +13 -0
  146. package/opencode/docs/ai/evolution/runs/iteration-015-semantic-checker/change_evaluation.json +31 -0
  147. package/opencode/docs/ai/evolution/runs/iteration-015-semantic-checker/change_manifest.json +47 -0
  148. package/opencode/docs/ai/evolution/runs/iteration-015-semantic-checker/evaluation.md +27 -0
  149. package/opencode/docs/ai/evolution/runs/iteration-016-contract-prompt-alignment/analysis/overview.md +32 -0
  150. package/opencode/docs/ai/evolution/runs/iteration-016-contract-prompt-alignment/change_evaluation.json +31 -0
  151. package/opencode/docs/ai/evolution/runs/iteration-016-contract-prompt-alignment/change_manifest.json +35 -0
  152. package/opencode/docs/ai/evolution/runs/iteration-016-contract-prompt-alignment/evaluation.md +31 -0
  153. package/opencode/docs/ai/evolution/runs/iteration-017-ahe-cycle/analysis/detail/pattern-1-feature-sidecar-false-positive.md +51 -0
  154. package/opencode/docs/ai/evolution/runs/iteration-017-ahe-cycle/analysis/detail/pattern-2-checker-time-budget.md +52 -0
  155. package/opencode/docs/ai/evolution/runs/iteration-017-ahe-cycle/analysis/overview.md +99 -0
  156. package/opencode/docs/ai/evolution/runs/iteration-017-ahe-cycle/change_evaluation.json +61 -0
  157. package/opencode/docs/ai/evolution/runs/iteration-017-ahe-cycle/change_manifest.json +61 -0
  158. package/opencode/docs/ai/evolution/runs/iteration-017-ahe-cycle/evaluation.md +448 -0
  159. package/opencode/docs/ai/evolution/runs/iteration-018-free-message-routing-audit/analysis/detail/intake-gray-zone.md +65 -0
  160. package/opencode/docs/ai/evolution/runs/iteration-018-free-message-routing-audit/analysis/overview.md +172 -0
  161. package/opencode/docs/ai/evolution/runs/iteration-018-free-message-routing-audit/evaluation.md +226 -0
  162. package/opencode/docs/ai/evolution/runs/iteration-019-handoff-routing-audit/analysis/detail/plan-only-gray-zone.md +62 -0
  163. package/opencode/docs/ai/evolution/runs/iteration-019-handoff-routing-audit/analysis/overview.md +167 -0
  164. package/opencode/docs/ai/evolution/runs/iteration-019-handoff-routing-audit/evaluation.md +163 -0
  165. package/opencode/docs/ai/evolution/runs/iteration-020-loop-engineering-command/analysis/overview.md +42 -0
  166. package/opencode/docs/ai/evolution/runs/iteration-020-loop-engineering-command/change_evaluation.json +46 -0
  167. package/opencode/docs/ai/evolution/runs/iteration-020-loop-engineering-command/change_manifest.json +57 -0
  168. package/opencode/docs/ai/evolution/runs/iteration-020-loop-engineering-command/evaluation.md +48 -0
  169. package/opencode/docs/ai/evolution/runs/iteration-021/analysis/detail/contract-vs-runtime-gap.md +163 -0
  170. package/opencode/docs/ai/evolution/runs/iteration-021/analysis/detail/evidence-collection-blocker.md +134 -0
  171. package/opencode/docs/ai/evolution/runs/iteration-021/analysis/overview.md +111 -0
  172. package/opencode/docs/ai/evolution/runs/iteration-021/change_evaluation.json +52 -0
  173. package/opencode/docs/ai/evolution/runs/iteration-021/change_manifest.json +50 -0
  174. package/opencode/docs/ai/evolution/runs/iteration-021/evaluation.md +46 -0
  175. package/opencode/docs/ai/evolution/runs/iteration-021/manifest-justification.md +48 -0
  176. package/opencode/docs/ai/evolution/session-sources.md +91 -0
  177. package/opencode/docs/ai/harness/README.md +32 -0
  178. package/opencode/docs/ai/harness/agents.md +148 -0
  179. package/opencode/docs/ai/harness/checks.md +119 -0
  180. package/opencode/docs/ai/harness/commands.md +391 -0
  181. package/opencode/docs/ai/harness/evidence.md +85 -0
  182. package/opencode/docs/ai/harness/init-detection-rules.md +160 -0
  183. package/opencode/docs/ai/harness/orchestrated-review.md +131 -0
  184. package/opencode/docs/ai/harness/skill-metadata-schema.md +198 -0
  185. package/opencode/docs/ai/harness/skill-resolution.md +202 -0
  186. package/opencode/docs/ai/harness/skill_registry.json +443 -0
  187. package/opencode/docs/ai/harness/skill_registry.md +43 -0
  188. package/opencode/docs/ai/project-context-template.md +53 -0
  189. package/opencode/opencode.json +38 -0
  190. package/opencode/package-lock.json +1717 -0
  191. package/opencode/package.json +11 -0
  192. package/opencode/plugins/token-tree-usage.tsx +206 -0
  193. package/opencode/references/performance-checklist.md +153 -0
  194. package/opencode/references/security-checklist.md +134 -0
  195. package/opencode/references/testing-patterns.md +236 -0
  196. package/opencode/scripts/check-harness.mjs +1572 -0
  197. package/opencode/scripts/check-harness.test.mjs +820 -0
  198. package/opencode/scripts/collect-session-evidence.mjs +612 -0
  199. package/opencode/scripts/collect-session-evidence.test.mjs +443 -0
  200. package/opencode/scripts/preflight-audit.mjs +497 -0
  201. package/opencode/scripts/preflight-audit.test.mjs +363 -0
  202. package/opencode/scripts/project-capability-snapshot.mjs +407 -0
  203. package/opencode/scripts/project-capability-snapshot.test.mjs +382 -0
  204. package/opencode/scripts/review-orchestrated-prepare.mjs +547 -0
  205. package/opencode/scripts/review-orchestrated-prepare.test.mjs +516 -0
  206. package/opencode/scripts/skill-resolver.mjs +585 -0
  207. package/opencode/scripts/skill-resolver.test.mjs +781 -0
  208. package/opencode/scripts/update-skill-registry.mjs +380 -0
  209. package/opencode/skills/api-and-interface-design/SKILL.md +315 -0
  210. package/opencode/skills/autonomous-loops/SKILL.md +312 -0
  211. package/opencode/skills/code-review-and-quality/SKILL.md +365 -0
  212. package/opencode/skills/code-simplification/SKILL.md +345 -0
  213. package/opencode/skills/context-engineering/SKILL.md +252 -0
  214. package/opencode/skills/debugging-and-error-recovery/SKILL.md +316 -0
  215. package/opencode/skills/documentation-and-adrs/SKILL.md +298 -0
  216. package/opencode/skills/doubt-driven-development/SKILL.md +168 -0
  217. package/opencode/skills/iterative-retrieval/SKILL.md +232 -0
  218. package/opencode/skills/open-design/SKILL.md +123 -0
  219. package/opencode/skills/performance-optimization/SKILL.md +365 -0
  220. package/opencode/skills/security-and-hardening/SKILL.md +369 -0
  221. package/opencode/skills/source-driven-development/SKILL.md +210 -0
  222. package/opencode/skills/test-driven-development/SKILL.md +406 -0
  223. package/opencode/skills/using-agent-skills/SKILL.md +194 -0
  224. package/opencode/skills/verification-loop/SKILL.md +162 -0
  225. package/opencode/tools/open_design.ts +361 -0
  226. package/opencode/tui.json +5 -0
  227. package/package.json +20 -0
  228. package/rollback.sh +5 -0
  229. package/scripts/check.sh +184 -0
  230. package/scripts/install-smoke.sh +111 -0
  231. package/scripts/manage-installation.mjs +1498 -0
  232. package/scripts/manage-installation.test.mjs +1936 -0
  233. package/scripts/version.mjs +197 -0
  234. package/scripts/version.test.mjs +195 -0
  235. package/uninstall.sh +5 -0
  236. package/upgrade.sh +5 -0
package/README.md ADDED
@@ -0,0 +1,806 @@
1
+ # OpenCode Agent Orchestration Kit
2
+
3
+ [![Check](https://github.com/jcarlosrodicio/opencode-agent-orchestration-kit/actions/workflows/check.yml/badge.svg)](https://github.com/jcarlosrodicio/opencode-agent-orchestration-kit/actions/workflows/check.yml)
4
+ [![License](https://img.shields.io/github/license/jcarlosrodicio/opencode-agent-orchestration-kit)](LICENSE)
5
+ [![Latest release](https://img.shields.io/github/v/release/jcarlosrodicio/opencode-agent-orchestration-kit)](https://github.com/jcarlosrodicio/opencode-agent-orchestration-kit/releases)
6
+
7
+ A reproducible product-development workflow for OpenCode.
8
+
9
+ Turn OpenCode into a structured team of specialized agents that can research, design, specify, implement, review, and validate software changes — without building every agent, command, skill, tool, and workflow convention from scratch.
10
+
11
+ Built for developers and small teams who want more structure than a single general-purpose coding agent, while keeping the setup local, inspectable, version-controlled, and adaptable.
12
+
13
+ > [!NOTE]
14
+ > This project is a configuration and workflow kit for OpenCode. It is not a hosted platform, a fully autonomous software factory, or a replacement for engineering judgment.
15
+
16
+ ## Why this exists
17
+
18
+ A basic coding-agent setup often starts simple:
19
+
20
+ - One general-purpose agent.
21
+ - A few custom prompts.
22
+ - Some copied skills.
23
+ - Ad hoc instructions.
24
+ - Manual review and validation.
25
+
26
+ Over time, that setup becomes harder to maintain:
27
+
28
+ - Agents overlap or contradict each other.
29
+ - Planning, research, implementation, and review blur together.
30
+ - Workflows become prompt-dependent and difficult to reproduce.
31
+ - Configuration changes become risky.
32
+ - Documentation and validation drift away from the actual setup.
33
+
34
+ This kit provides a documented OpenCode harness with:
35
+
36
+ - Specialized agents with explicit responsibilities.
37
+ - Predictable handoffs between research, design, specification, implementation, and review.
38
+ - Slash commands for common product-development workflows.
39
+ - Local process skills and reusable engineering checklists.
40
+ - Safe installation and uninstall scripts.
41
+ - Local validation for configuration and harness contracts.
42
+ - Optional integrations for Open Design, Superpowers, Impeccable, and observability.
43
+
44
+ The goal is not to force every request through a heavy process. Small, clear, low-risk changes can go directly to implementation. Larger or ambiguous work can follow a structured flow with research, planning, review, and evidence.
45
+
46
+ ## What you get
47
+
48
+ | Capability | What it gives you |
49
+ |---|---|
50
+ | Role-based agents | Dedicated agents for routing, research, design, specification, implementation, review, and optional harness evolution |
51
+ | Product-development workflows | Structured flows for features, plans, scoped research, bounded engineering loops, MVP specs, testing, simplification, and review |
52
+ | Bounded routing | A default `lead` agent that routes simple requests directly and escalates only when needed |
53
+ | Local skills | Practical checklists for testing, debugging, security, performance, documentation, APIs, code review, and more |
54
+ | Safe installation | Backup-aware install and uninstall scripts, plus a project-local test mode |
55
+ | Validation | Mechanical checks for JSON configuration, agent contracts, command contracts, and harness consistency |
56
+ | Optional design workflow | Open Design integration for editable UI workspaces and design-oriented flows |
57
+ | Optional token visibility | TUI plugin for lead and subagent token usage when OpenCode exposes session trees |
58
+ | Versioned documentation | Agent, command, evidence, and validation contracts stored alongside the configuration |
59
+
60
+ ## Built around
61
+
62
+ This kit builds on and integrates with the following projects:
63
+
64
+ - [OpenCode](https://opencode.ai/) — the coding-agent runtime and configuration surface.
65
+ - [Open Design](https://github.com/nexu-io/open-design) — optional local-first design workspace integration.
66
+ - [Superpowers](https://github.com/obra/Superpowers) — optional agentic skills and development methodology.
67
+ - [Impeccable](https://github.com/pbakaus/impeccable) — optional design guidance for AI-generated frontend work.
68
+
69
+ Each integration is optional. The core workflow can be used with OpenCode alone.
70
+
71
+ ## Who this is for
72
+
73
+ This kit is a good fit if you:
74
+
75
+ - Use OpenCode and want a repeatable development workflow instead of isolated prompts.
76
+ - Want specialized agent roles without building the whole system from zero.
77
+ - Want to separate research, planning, implementation, review, and validation.
78
+ - Prefer local configuration that can be inspected, customized, committed, and evolved.
79
+ - Work alone or in a small technical team.
80
+ - Want a practical starting point rather than a black-box orchestration platform.
81
+
82
+ ## Who this is not for
83
+
84
+ This kit may not be the right fit if you:
85
+
86
+ - Only need one small custom prompt or agent.
87
+ - Do not use OpenCode.
88
+ - Want a hosted multi-agent platform with queues, dashboards, billing, and team administration.
89
+ - Need autonomous parallel execution across many repositories or worktrees.
90
+ - Expect every request to be fully automated without human oversight.
91
+
92
+ ## How it works
93
+
94
+ Free-form requests start with the `lead` agent.
95
+
96
+ `lead` acts as a bounded router:
97
+
98
+ - Simple and low-risk implementation work goes directly to `developer`.
99
+ - Technical uncertainty goes to `researcher`.
100
+ - Visual or interaction work goes to `designer`.
101
+ - Planning gaps go to `specifier`.
102
+ - Larger feature work follows a structured orchestration flow.
103
+
104
+ ```text
105
+ Simple change
106
+ lead
107
+ └── developer
108
+ └── validation
109
+
110
+ Feature work
111
+ lead
112
+ ├── designer when visual or interaction design is needed
113
+ ├── researcher when technical uncertainty must be resolved
114
+ ├── specifier creates tasks, acceptance criteria, and validation plan
115
+ ├── developer implements approved work
116
+ └── reviewer checks the final diff against the agreed scope
117
+
118
+ Plan-only work
119
+ lead
120
+ └── researcher
121
+ └── specifier
122
+ └── reviewer
123
+
124
+ Bounded engineering loop
125
+ lead
126
+ └── human approval gate
127
+ └── developer
128
+ └── reviewer
129
+ └── developer state sync
130
+
131
+ Scoped research and specification
132
+ scoper
133
+ └── researcher
134
+ └── scoper synthesis
135
+ └── specifier
136
+
137
+ Optional harness evolution
138
+ evaluator
139
+ └── debugger
140
+ └── evolver
141
+ └── lead approval
142
+ └── developer
143
+ └── evaluator
144
+ └── debugger
145
+ └── reviewer
146
+ ```
147
+
148
+ The normal workflow is intentionally not a fixed ceremony for every task.
149
+
150
+ Use the smallest useful flow:
151
+
152
+ - Direct implementation for a small change.
153
+ - `/plan` when you want an implementation-ready plan but no code changes.
154
+ - `/scope` when you need research and an MVP-oriented specification.
155
+ - `/feature` when the work deserves full orchestration.
156
+ - `/loop` when you want an approved, resumable implementation-review cycle with
157
+ durable state and a three-iteration cap.
158
+
159
+ ## Included agents
160
+
161
+ | Agent | Responsibility |
162
+ |---|---|
163
+ | `lead` | Default router, feature orchestrator, and phase-barrier owner |
164
+ | `scoper` | Lightweight research-to-spec orchestration |
165
+ | `designer` | Product and interaction design using project context, optional Impeccable, and Open Design |
166
+ | `researcher` | Code, documentation, API, alternative, and risk investigation |
167
+ | `specifier` | Specs, tasks, acceptance criteria, scope boundaries, and validation plans |
168
+ | `developer` | Implementation, direct-mode changes, and focused validation |
169
+ | `reviewer` | Diff review against scope, requirements, and evidence |
170
+ | `evaluator` | Optional benchmark and smoke-test evidence collection |
171
+ | `debugger` | Optional root-cause analysis from failures and traces |
172
+ | `evolver` | Optional evidence-driven harness improvement proposals |
173
+
174
+ The `evaluator`, `debugger`, and `evolver` agents are optional harness-evolution sidecars. They are not part of the normal feature-development path.
175
+
176
+ ## Included commands
177
+
178
+ | Command | Use it when you want to... |
179
+ |---|---|
180
+ | `/feature` | Run the full feature workflow |
181
+ | `/plan` | Research and create an implementation-ready plan without implementing |
182
+ | `/scope` | Research a topic and produce a scoped MVP specification |
183
+ | `/loop` | Design and run a bounded, resumable engineering loop |
184
+ | `/mvp-spec` | Create a strict MVP spec with small tasks and explicit out-of-scope items |
185
+ | `/design` | Create or evolve a design through project context and Open Design |
186
+ | `/research` | Run a direct research task |
187
+ | `/spec` | Run a direct specification task |
188
+ | `/implement` | Implement approved work directly |
189
+ | `/test` | Reproduce a bug or run focused validation |
190
+ | `/code-simplify` | Simplify code without changing behavior |
191
+ | `/review` | Review the current diff |
192
+ | `/evolve` | Run the optional harness-evolution workflow |
193
+ | `/init` | Initialize project-oriented context for the workflow |
194
+
195
+ Examples:
196
+
197
+ ```text
198
+ /feature Create onboarding with plan selection and welcome screen
199
+
200
+ /plan Add a dry-run flag to the harness check without implementing it yet
201
+
202
+ /scope Research Stripe Checkout integration and generate an MVP spec
203
+
204
+ /loop Add request retries with focused tests and independent review
205
+
206
+ /loop resume request-retries
207
+
208
+ /mvp-spec Email notifications when an agent finishes a task
209
+
210
+ /design Read PRODUCT.md and DESIGN.md, create an editable Open Design project, and generate a first version
211
+
212
+ /test Reproduce the checkout regression with a focused test
213
+
214
+ /code-simplify Simplify the parser branch without changing behavior
215
+
216
+ /review
217
+ ```
218
+
219
+ A small request can also be written directly:
220
+
221
+ ```text
222
+ Change the Settings heading to Account settings and run the smallest relevant validation.
223
+ ```
224
+
225
+ For this kind of request, `lead` should choose the direct path and delegate to `developer` without invoking the full feature workflow.
226
+
227
+ ## Quick start: test it safely first
228
+
229
+ The safest way to try the kit is to load it from the repository directory without changing your global OpenCode configuration.
230
+
231
+ ### Requirements
232
+
233
+ - Git
234
+ - Bash
235
+ - OpenCode installed and available on your `PATH`
236
+ - Node.js and npm
237
+ - An OpenCode-compatible model provider configured through `opencode auth login`
238
+
239
+ ### 1. Clone the repository
240
+
241
+ ```bash
242
+ git clone https://github.com/jcarlosrodicio/opencode-agent-orchestration-kit.git
243
+ cd opencode-agent-orchestration-kit
244
+ ```
245
+
246
+ ### 2. Configure models
247
+
248
+ ```bash
249
+ cp env.example .env
250
+ source .env
251
+ ```
252
+
253
+ `env.example` provides a shared default model plus optional per-role overrides.
254
+
255
+ ```bash
256
+ export OPENCODE_MODEL="openai/gpt-5.5"
257
+
258
+ export OPENCODE_SMALL_MODEL="$OPENCODE_MODEL"
259
+ export OPENCODE_LEAD_MODEL="$OPENCODE_MODEL"
260
+ export OPENCODE_SCOPER_MODEL="$OPENCODE_MODEL"
261
+ export OPENCODE_DESIGNER_MODEL="$OPENCODE_MODEL"
262
+ export OPENCODE_RESEARCHER_MODEL="$OPENCODE_MODEL"
263
+ export OPENCODE_SPECIFIER_MODEL="$OPENCODE_MODEL"
264
+ export OPENCODE_DEVELOPER_MODEL="$OPENCODE_MODEL"
265
+ export OPENCODE_REVIEWER_MODEL="$OPENCODE_MODEL"
266
+ export OPENCODE_EVALUATOR_MODEL="$OPENCODE_MODEL"
267
+ export OPENCODE_DEBUGGER_MODEL="$OPENCODE_MODEL"
268
+ export OPENCODE_EVOLVER_MODEL="$OPENCODE_MODEL"
269
+ ```
270
+
271
+ You can use one model for every role or assign different models depending on cost, speed, and task complexity.
272
+
273
+ ### 3. Install local plugin dependencies
274
+
275
+ ```bash
276
+ (cd opencode && npm install)
277
+ ```
278
+
279
+ ### 4. Load the kit without global installation
280
+
281
+ ```bash
282
+ export OPENCODE_CONFIG_DIR="$PWD/opencode"
283
+ opencode auth login
284
+ opencode
285
+ ```
286
+
287
+ OpenCode now loads the configuration from this repository instead of your default global config.
288
+
289
+ Try one of these commands:
290
+
291
+ ```text
292
+ /scope Research whether this repository should use Stripe Checkout or Payment Element and produce an MVP spec
293
+ ```
294
+
295
+ ```text
296
+ /plan Add a dry-run flag to the harness check without implementing it yet
297
+ ```
298
+
299
+ ```text
300
+ /feature Add a small settings page with a saved theme preference
301
+ ```
302
+
303
+ ## Install globally
304
+
305
+ Once you are happy with the workflow, preview and install it into your OpenCode configuration directory:
306
+
307
+ ```bash
308
+ ./install.sh --dry-run
309
+ ./install.sh
310
+ ```
311
+
312
+ The default target is:
313
+
314
+ ```text
315
+ ${OPENCODE_CONFIG_DIR:-$HOME/.config/opencode}
316
+ ```
317
+
318
+ Use a custom target when needed:
319
+
320
+ ```bash
321
+ ./install.sh --target "$HOME/.config/opencode"
322
+ ```
323
+
324
+ An explicit `--target` wins over a non-empty `OPENCODE_CONFIG_DIR`, which wins over `$HOME/.config/opencode`. Argument values are literal; `~` is not expanded.
325
+
326
+ The installer inventories the payload, computes a complete plan, and tracks ownership in `TARGET/.oak/manifest.json`. A dry run performs no writes. A real operation recomputes the plan under an exclusive lock and commits through a durable journal with one rollback generation.
327
+
328
+ The root `package.json` is the canonical kit-version source. Display the same
329
+ identity through the manager or any lifecycle wrapper:
330
+
331
+ ```bash
332
+ node scripts/version.mjs
333
+ ./install.sh --version
334
+ ./upgrade.sh --version
335
+ ./doctor.sh --version
336
+ ./uninstall.sh --version
337
+ ./rollback.sh --version
338
+ ```
339
+
340
+ ### Safe defaults
341
+
342
+ Initial install preserves differing `AGENTS.md`, `opencode.json`, `tui.json`, `package.json`, and `package-lock.json` as user-owned files. Exact existing matches may be adopted without rewriting. Any other collision blocks the whole operation. A legacy installation without a manifest follows these same initial-install rules.
343
+
344
+ Use `--force` only on initial install to authorize replacement of colliding regular files after their bytes and modes are durably backed up:
345
+
346
+ ```bash
347
+ ./install.sh --force
348
+ ```
349
+
350
+ It never authorizes directory or symlink replacement, unsafe paths, state repair, upgrade conflicts, or deletion of user-modified files.
351
+
352
+ After global installation, install the OpenCode config dependencies:
353
+
354
+ ```bash
355
+ (cd "${OPENCODE_CONFIG_DIR:-$HOME/.config/opencode}" && npm install)
356
+ ```
357
+
358
+ ## Upgrade, diagnose, uninstall, and rollback
359
+
360
+ Preview an ownership-safe upgrade, then apply it:
361
+
362
+ ```bash
363
+ ./upgrade.sh --dry-run
364
+ ./upgrade.sh
365
+ ```
366
+
367
+ Upgrade aborts before writing if an owned file is missing or modified, an obsolete owned file changed, or an unowned collision exists. Preserved files remain user-owned. When a shipped protected file changes, `doctor` reports whether the source, user copy, or both changed:
368
+
369
+ ```bash
370
+ ./doctor.sh
371
+ ```
372
+
373
+ Upgrade also compares the local source version with `kit_version` in the active
374
+ manifest. A newer source may upgrade; equal version and payload is a no-op;
375
+ equal version with a different payload is blocked as an identity contradiction;
376
+ and an older source is blocked to prevent downgrade. `doctor` reports
377
+ `not-installed`, `current`, `upgrade-available`, `source-older`,
378
+ `same-version-different-payload`, or `invalid-version-state` without consulting
379
+ the network.
380
+
381
+ Doctor returns `0` for a healthy installation, `1` for safely actionable state, and `2` for invalid invocation, corrupt/unsafe state, or an unrecoverable filesystem error. To acknowledge a completed manual merge, run:
382
+
383
+ ```bash
384
+ ./doctor.sh --accept-preserved opencode.json
385
+ ```
386
+
387
+ The command prints a full `ACK-PRESERVED` line containing the exact target/source hashes and modes. Paste that line back byte-for-byte; `yes`, a path alone, truncated values, or a stale tuple do not authorize mutation.
388
+
389
+ Uninstall previews first and removes only unchanged files owned by the manifest. Modified, missing, preserved, and unrelated user files are never deleted:
390
+
391
+ ```bash
392
+ ./uninstall.sh --dry-run
393
+ ./uninstall.sh
394
+ ./uninstall.sh --yes
395
+ ```
396
+
397
+ The most recent committed install, upgrade, acknowledgement, or uninstall can be reversed once:
398
+
399
+ ```bash
400
+ ./rollback.sh --dry-run
401
+ ./rollback.sh
402
+ ```
403
+
404
+ If an operation was interrupted, `rollback.sh` uses the active journal to restore the pre-operation state instead. Do not delete or edit `.oak` manually: it contains ownership metadata, recovery state, and potentially sensitive exact backup bytes. See [the installation lifecycle guide](docs/installation.md) for command syntax, conflict handling, and recovery details.
405
+
406
+ ## Skills
407
+
408
+ The kit includes local skills that agents use as practical checklists rather than mandatory process overhead.
409
+
410
+ Included skills cover:
411
+
412
+ - API and interface design
413
+ - Autonomous loops
414
+ - Code review and quality
415
+ - Code simplification
416
+ - Context engineering
417
+ - Debugging and error recovery
418
+ - Documentation and ADRs
419
+ - Doubt-driven development
420
+ - Iterative retrieval
421
+ - Open Design
422
+ - Performance optimization
423
+ - Security and hardening
424
+ - Source-driven development
425
+ - Test-driven development
426
+ - Verification loops
427
+ - Using agent skills effectively
428
+
429
+ These skills are available under:
430
+
431
+ ```text
432
+ opencode/skills/
433
+ ```
434
+
435
+ They are designed to help agents make better engineering decisions without forcing every task through every checklist.
436
+
437
+ ## Optional integrations
438
+
439
+ The integrations below are optional extensions. They are not required for the core agent workflow.
440
+
441
+ | Integration | What it adds | Setup |
442
+ |---|---|---|
443
+ | [Open Design](https://github.com/nexu-io/open-design) | Editable, local-first design workspace workflows | [Open Design guide](docs/open-design.md) |
444
+ | [Superpowers](https://github.com/obra/Superpowers) | Additional skills and software-development workflow discipline | [Superpowers guide](docs/superpowers.md) |
445
+ | [Impeccable](https://github.com/pbakaus/impeccable) | Design guidance and deterministic frontend-quality checks | [Impeccable guide](docs/impeccable.md) |
446
+
447
+ ### [Open Design](https://github.com/nexu-io/open-design)
448
+
449
+ Open Design is included as an optional local integration for design-oriented workflows.
450
+
451
+ The `designer` agent can use:
452
+
453
+ - Project context from `PRODUCT.md` and `DESIGN.md`.
454
+ - Optional Impeccable design context.
455
+ - Open Design tools through `OPEN_DESIGN_URL`.
456
+
457
+ Set `OPEN_DESIGN_URL` to the base URL of your Open Design workbench:
458
+
459
+ ```bash
460
+ export OPEN_DESIGN_URL="https://open-design.example.com"
461
+ ```
462
+
463
+ A local or LAN URL is also valid:
464
+
465
+ ```bash
466
+ export OPEN_DESIGN_URL="http://192.168.1.50:7456"
467
+ ```
468
+
469
+ Do not use a project page or file URL:
470
+
471
+ ```bash
472
+ # Invalid
473
+ export OPEN_DESIGN_URL="https://open-design.example.com/projects/my-project"
474
+ export OPEN_DESIGN_URL="https://open-design.example.com/projects/my-project/files/index.html"
475
+ ```
476
+
477
+ Open Design is optional. You can use the rest of the kit without it.
478
+
479
+ ### Run Open Design with Docker
480
+
481
+ A Docker setup is included:
482
+
483
+ ```bash
484
+ cd docker/open-design
485
+ cp .env.example .env
486
+ docker compose up -d --build
487
+ ```
488
+
489
+ If Open Design should use OpenCode as a design engine, authenticate inside the container:
490
+
491
+ ```bash
492
+ docker exec -it open-design bash
493
+ opencode auth login
494
+ opencode models openai --refresh
495
+ exit
496
+ ```
497
+
498
+ Then configure the Open Design base URL:
499
+
500
+ ```bash
501
+ export OPEN_DESIGN_URL="http://192.168.1.50:7456"
502
+ ```
503
+
504
+ ### [Superpowers](https://github.com/obra/Superpowers)
505
+
506
+ Superpowers is not vendored into this repository.
507
+
508
+ When plugins are supported and network access is available, the kit can reference the upstream plugin:
509
+
510
+ ```json
511
+ {
512
+ "plugin": [
513
+ "superpowers@git+https://github.com/obra/superpowers.git"
514
+ ]
515
+ }
516
+ ```
517
+
518
+ For reproducibility, pin a version:
519
+
520
+ ```json
521
+ {
522
+ "plugin": [
523
+ "superpowers@git+https://github.com/obra/superpowers.git#v5.0.5"
524
+ ]
525
+ }
526
+ ```
527
+
528
+ If your existing `opencode.json` was preserved during installation, add the plugin manually.
529
+
530
+ ### [Impeccable](https://github.com/pbakaus/impeccable)
531
+
532
+ Impeccable is optional and is not included in this repository.
533
+
534
+ Install it from its upstream source when you want the `designer` agent to use it as additional design context, particularly when project-specific `PRODUCT.md` or `DESIGN.md` files are missing.
535
+
536
+ ### Token usage plugin
537
+
538
+ The bundled TUI plugin can show:
539
+
540
+ - Lead-agent token usage.
541
+ - Total token usage across child and subagent sessions.
542
+
543
+ This depends on OpenCode exposing the session tree through its TUI plugin API.
544
+
545
+ If your existing `tui.json` was preserved during installation, add the bundled plugin manually:
546
+
547
+ ```json
548
+ {
549
+ "plugin": [
550
+ "./plugins/token-tree-usage.tsx"
551
+ ]
552
+ }
553
+ ```
554
+
555
+ ## Validation
556
+
557
+ Run the normal local check with:
558
+
559
+ ```bash
560
+ npm run check
561
+ ```
562
+
563
+ This runs the fast contract checker and every bundled `node:test` suite. For a
564
+ fast structural check while editing documentation or contracts, use
565
+ `npm run check:quick`. Before a release, use `npm run check:release`; it performs
566
+ a clean dependency install and also runs typechecking, the dependency audit, and
567
+ an installation smoke test.
568
+
569
+ Validate only the canonical identity and current release note with:
570
+
571
+ ```bash
572
+ npm run check:version
573
+ node scripts/version.mjs --check-tag v1.0.27
574
+ ```
575
+
576
+ Tag validation compares an explicitly supplied tag with the package identity.
577
+ It does not create or push a tag, publish npm content, or create a hosted
578
+ release. Those remain separate manual, explicitly approved steps.
579
+
580
+ The contract checker validates the shipped harness, including:
581
+
582
+ - Configuration JSON.
583
+ - Agent and command frontmatter.
584
+ - Default `lead` routing contract.
585
+ - `/feature` sidecar boundaries.
586
+ - `/plan` behavior.
587
+ - Agent-readable documentation under `opencode/docs/ai/harness/`.
588
+
589
+ The core harness validator is located at:
590
+
591
+ ```text
592
+ opencode/scripts/check-harness.mjs
593
+ ```
594
+
595
+ After global installation, you can also run it from the installed OpenCode configuration directory:
596
+
597
+ ```bash
598
+ node scripts/check-harness.mjs
599
+ ```
600
+
601
+ ## Project structure
602
+
603
+ ```text
604
+ .
605
+ ├── .github/
606
+ │ ├── ISSUE_TEMPLATE/
607
+ │ ├── workflows/
608
+ │ ├── CODEOWNERS
609
+ │ └── PULL_REQUEST_TEMPLATE.md
610
+ ├── docker/
611
+ │ └── open-design/
612
+ ├── docs/
613
+ │ ├── releases/
614
+ │ ├── agents.md
615
+ │ ├── commands.md
616
+ │ ├── configuration.md
617
+ │ ├── docker-open-design.md
618
+ │ ├── impeccable.md
619
+ │ ├── installation.md
620
+ │ ├── models.md
621
+ │ ├── open-design.md
622
+ │ ├── quickstart.md
623
+ │ ├── security.md
624
+ │ ├── superpowers.md
625
+ │ ├── synology.md
626
+ │ ├── troubleshooting.md
627
+ │ └── workflows.md
628
+ ├── opencode/
629
+ │ ├── agents/
630
+ │ ├── commands/
631
+ │ ├── docs/ai/
632
+ │ ├── plugins/
633
+ │ ├── references/
634
+ │ ├── scripts/
635
+ │ ├── skills/
636
+ │ ├── tools/
637
+ │ ├── AGENTS.md
638
+ │ ├── opencode.json
639
+ │ └── tui.json
640
+ ├── scripts/
641
+ │ ├── check.sh
642
+ │ ├── install-smoke.sh
643
+ │ ├── manage-installation.mjs
644
+ │ └── manage-installation.test.mjs
645
+ ├── doctor.sh
646
+ ├── install.sh
647
+ ├── rollback.sh
648
+ ├── uninstall.sh
649
+ ├── upgrade.sh
650
+ └── env.example
651
+ ```
652
+
653
+ The shipped OpenCode configuration contains:
654
+
655
+ | Path | Purpose |
656
+ |---|---|
657
+ | `AGENTS.md` | Global behavior rules and agent index |
658
+ | `opencode.json` | Models, permissions, plugins, and default agent |
659
+ | `tui.json` | TUI plugin registration |
660
+ | `agents/` | Specialized agent prompts |
661
+ | `commands/` | Slash-command workflows |
662
+ | `skills/` | Local process skills |
663
+ | `tools/` | Custom TypeScript tools |
664
+ | `plugins/` | Bundled OpenCode/TUI plugins |
665
+ | `references/` | Reusable checklists referenced by skills |
666
+ | `docs/ai/harness/` | Agent, command, evidence, and validation contracts |
667
+ | `docs/ai/evolution/` | Harness-evolution benchmark and evidence records |
668
+ | `scripts/check-harness.mjs` | Mechanical harness validation |
669
+
670
+ ## Permissions and safety
671
+
672
+ The default OpenCode permissions are conservative:
673
+
674
+ - Reads are allowed.
675
+ - Edits ask by default.
676
+ - Bash commands ask by default.
677
+ - External directories are denied.
678
+
679
+ Security recommendations:
680
+
681
+ - Do not commit `.env`, authentication files, sessions, logs, or provider credentials.
682
+ - Do not commit private `PRODUCT.md` or `DESIGN.md` files unless intended.
683
+ - Treat Open Design as a privileged local tool because it can run local agent CLIs and write files inside project workspaces.
684
+ - Do not expose Open Design directly to the Internet without authentication.
685
+ - Prefer localhost, LAN, VPN, Tailscale, WireGuard, or authenticated HTTPS through a reverse proxy.
686
+
687
+ ## Troubleshooting
688
+
689
+ ### `OPEN_DESIGN_URL is not set`
690
+
691
+ Set the base URL only:
692
+
693
+ ```bash
694
+ export OPEN_DESIGN_URL="http://192.168.1.50:7456"
695
+ ```
696
+
697
+ Do not use a project-specific path.
698
+
699
+ ### `/api/health` fails
700
+
701
+ Check that Open Design is running and reachable from the machine or container where OpenCode runs.
702
+
703
+ ### OpenCode does not appear in Open Design agents
704
+
705
+ Run:
706
+
707
+ ```bash
708
+ opencode auth login
709
+ ```
710
+
711
+ Also verify that `opencode` is available on `PATH`.
712
+
713
+ ### Superpowers skills do not load
714
+
715
+ Restart OpenCode and verify that the Superpowers plugin entry is present in `opencode.json`.
716
+
717
+ ### Token usage does not appear in the TUI
718
+
719
+ Verify:
720
+
721
+ 1. `tui.json` contains the bundled plugin entry.
722
+ 2. `npm install` was run in the OpenCode config directory.
723
+ 3. OpenCode was restarted.
724
+ 4. The current OpenCode TUI exposes child-session information to plugins.
725
+
726
+ ### Designer cannot access Open Design
727
+
728
+ Verify:
729
+
730
+ - `OPEN_DESIGN_URL`.
731
+ - Tool registration.
732
+ - `opencode/tools/open_design.ts`.
733
+ - Network reachability between OpenCode and Open Design.
734
+
735
+ ### `crypto.randomUUID` fails over HTTP on a LAN URL
736
+
737
+ Use HTTPS, or apply the optional upstream frontend patch described in the documentation.
738
+
739
+ ## Documentation
740
+
741
+ Detailed guides are available in [`docs/`](docs/):
742
+
743
+ - [Quickstart](docs/quickstart.md)
744
+ - [Installation](docs/installation.md)
745
+ - [Configuration](docs/configuration.md)
746
+ - [Agents](docs/agents.md)
747
+ - [Commands](docs/commands.md)
748
+ - [Workflows](docs/workflows.md)
749
+ - [Models](docs/models.md)
750
+ - [Open Design](docs/open-design.md)
751
+ - [Docker Open Design](docs/docker-open-design.md)
752
+ - [Superpowers](docs/superpowers.md)
753
+ - [Impeccable](docs/impeccable.md)
754
+ - [Security](docs/security.md)
755
+ - [Troubleshooting](docs/troubleshooting.md)
756
+ - [Synology notes](docs/synology.md)
757
+
758
+ ## Compatibility and scope
759
+
760
+ - The core kit requires OpenCode.
761
+ - Open Design, Superpowers, Impeccable, Docker, and token-usage plugins are optional.
762
+ - Integrations are maintained as adapters around upstream projects and may require updates when upstream APIs or plugin formats change.
763
+ - The project intentionally favors local, inspectable configuration over hosted orchestration services.
764
+
765
+ ## Contributing
766
+
767
+ Contributions are welcome.
768
+
769
+ Good contributions include:
770
+
771
+ - Clearer documentation.
772
+ - Safer installation or uninstall behavior.
773
+ - Improved troubleshooting.
774
+ - Tighter agent or command prompts.
775
+ - Better Docker and Open Design setup.
776
+ - Validation improvements.
777
+ - Reusable process skills.
778
+ - Focused workflow enhancements that remain portable and safe for public reuse.
779
+
780
+ Before opening a pull request:
781
+
782
+ ```bash
783
+ npm run check
784
+ ```
785
+
786
+ Use `npm run check:release` for release readiness.
787
+
788
+ If Docker files changed:
789
+
790
+ ```bash
791
+ docker compose -f docker/open-design/docker-compose.yml config
792
+ ```
793
+
794
+ Please avoid committing credentials, authentication files, sessions, logs, private product documents, or machine-specific paths.
795
+
796
+ See [CONTRIBUTING.md](CONTRIBUTING.md) for details.
797
+
798
+ ## License
799
+
800
+ Licensed under the [Apache License 2.0](LICENSE).
801
+
802
+ See [NOTICE.md](NOTICE.md) for attribution notices.
803
+
804
+ ## Disclaimer
805
+
806
+ This repository is not affiliated with OpenCode, Open Design, Impeccable, or Superpowers.