OpenCode 2.x only runs V2 plugin definitions ({ id, setup(ctx) }); the V1
function-export form failed schema validation at load with
"PluginModule.LoadError: Plugin must export a default definition with an id
and an effect or setup function".
- Rewrite .opencode/plugins/ecc-hooks.ts as a native V2 plugin: V1 hook keys
now register on their V2 domains (ctx.tool.hook execute.before/after,
ctx.shell.hook create.before, ctx.permission.hook evaluate,
ctx.session.hook compaction, ctx.event.subscribe for file/session/todo
events, ctx.tool.transform for custom tools). Windows-safe: replaces Bun
dollar-shell and grep with child_process.spawn + fs; every callback is
try/catch wrapped and every domain registration is guarded so a missing
capability degrades instead of crashing setup.
- Stop registering the same plugin id three times: OpenCode scans root-level
plugin files AND loads the directory through index.ts, so the directory
form of the plugin config produced two red "Duplicate plugin ID:
ecc-hooks" entries in the TUI panel. Config now points directly at
./plugins/ecc-hooks.ts and plugins/index.ts becomes an inert distinct-id
stub (kept on disk because install/uninstall plans and consent safety
tests reference it).
- Document the failure modes and the /api/plugin plus "opencode plugin list"
diagnostic playbook in TROUBLESHOOTING.md; align .opencode/README.md.
Verified: hook-consent, opencode-hook-consent-safety, install-lifecycle,
install-executor, harness-adapter-compliance tests pass (197 assertions);
check-hooks-schema-keys, validate-install-manifests, validate-hooks and
unicode-safety CI validators pass.
Add a Ruby and Rails code reviewer agent covering Active Record query
safety, strong parameters, unsafe reflection and deserialization, XSS,
safe migrations, and RSpec/Minitest quality. It builds on the existing
rules/ruby/* and rails-patterns skill.
- Register it in .opencode/opencode.json with a matching prompt file
- Map ruby and rails to it in the orch-review workflow
- Bump the documented agent count from 68 to 69 across README, AGENTS.md,
plugin manifests, and translated docs
Co-Authored-By: Claude Opus 5.5 (1M context) <noreply@anthropic.com>
The "Traction & Distribution" section contained internal business
context (sponsor-call checklists, partner reporting instructions)
that doesn't belong in a user-facing README. Moved to docs/business/.
Major OpenCode integration overhaul:
- llms.txt: Comprehensive OpenCode documentation for LLMs (642 lines)
- .opencode/plugins/ecc-hooks.ts: All Claude Code hooks translated to OpenCode's plugin system
- .opencode/tools/*.ts: 3 custom tools (run-tests, check-coverage, security-audit)
- .opencode/commands/*.md: All 24 commands in OpenCode format
- .opencode/package.json: npm package structure for opencode-ecc
- .opencode/index.ts: Main plugin entry point
- Delete incorrect LIMITATIONS.md (hooks ARE supported via plugins)
- Rewrite MIGRATION.md with correct hook event mapping
- Update README.md OpenCode section to show full feature parity
OpenCode has 20+ events vs Claude Code's 3 phases:
- PreToolUse → tool.execute.before
- PostToolUse → tool.execute.after
- Stop → session.idle
- SessionStart → session.created
- SessionEnd → session.deleted
- Plus: file.edited, file.watcher.updated, permission.asked, todo.updated
- 12 agents: Full parity
- 24 commands: Full parity (+1 from original 23)
- 16 skills: Full parity
- Hooks: OpenCode has MORE (20+ events vs 3 phases)
- Custom Tools: 3 native OpenCode tools
The OpenCode configuration can now be:
1. Used directly: cd everything-claude-code && opencode
2. Installed via npm: npm install opencode-ecc