Files
i-have-adhd/opencode.json
T
Rimon Hanna a6ad3a258c Add OpenCode support (server plugin + command + always-on)
OpenCode was previously covered only by the generic agent-skills fallback
(skill discovery, no command, no always-on). This adds a first-class
OpenCode adapter mirroring the Codex/Pi layout:

- .opencode/plugins/i-have-adhd.mjs: server plugin that registers the
  skills/ path and /i-have-adhd command, and appends the ruleset to the
  system prompt every turn when ~/.config/opencode/.i-have-adhd-always
  exists (the OpenCode equivalent of the SessionStart always-on hook).
- .opencode/command/i-have-adhd.md: on-demand session command.
- opencode.json: run-from-checkout entry point.
- INSTALL.md: dedicated OpenCode section; dropped from the catch-all title.

Ruleset stays sourced from skills/i-have-adhd/SKILL.md (frontmatter
stripped at inject time) — no rule text duplicated.
2026-08-13 00:05:39 +02:00

5 lines
104 B
JSON

{
"$schema": "https://opencode.ai/config.json",
"plugin": ["./.opencode/plugins/i-have-adhd.mjs"]
}