Repository navigation
Conversation
…l surface
- packages/opencode-plugin (opencode-genclass 0.1.0, unpublished): one default export
{ id, setup, server } that OpenCode 2.x loads as a Plugin.define definition and
OpenCode 1.18.29+ as an object entrypoint. It adds the genclass MCP server when
none is configured (2.x mcp.transform, 1.x config ??=) and brings up to 5
findings recorded since the last prompt into each prompt (2.x prompt hook,
1.x chat.message text part), with genclass-mcp hook's logic and wording
(parity test against hookCmd). No dependencies; 26 unit tests; a real-binary
check (test/smoke/run.mjs) against opencode-ai 1.19.5 and @opencode/cli 2.2.5.
- @genclass/mcp: the OpenCode block adds `opencode mcp add genclass -- npx ...`
and the skill paths; init writes .opencode/commands/genclass-explore.md when
.opencode/ exists; CHANGELOG; new pinned files in test/manifests.test.ts.
- Workflows: opencode-plugin.yml (CI) and release-opencode.yml (tag opencode-v*).
- docs/adoption: contributions/opencode (report, upstream.patch for OpenCode's
ecosystem page, PR.md, type-conformance script) and listings/opencode.md.
- package-lock.json: the two workspace entries only.
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01Fqwfq1mcsGAzqmb6d7VwmD
This branch has not been deployed
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Status: needs owner decision (a new workspace package changes the root lockfile, AGENTS.md rule 7; a new release workflow and the first npm publish are the owner's, rule 9; the upstream row waits for that publish).
What
opencode-genclass(packages/opencode-plugin/, unpublished, no dependencies). It has one default export that OpenCode 2.x loads throughsetupand OpenCode 1.18.29+ loads throughserver. When you have no server namedgenclass, it addsnpx -y @genclass/mcp@0.2.1(your own entry wins). Before each prompt it also adds the findings recorded since the last prompt, usinggenclass-mcp hook's logic and exact wording.opencode mcp addcommand and the two skill paths.initnow writes an/genclass-exploreOpenCode command when.opencode/exists.Branch note: the session's harness required pushing to
claude/inspiring-johnson-2iwads, notadopt/opencode.Files
packages/opencode-plugin/:src/index.ts,src/digest.ts,src/ids.ts, tests (digest,v1,v2,paritywith the realhookCmd,package),test/smoke/run.mjs(real binaries), README, CHANGELOG, LICENSE.packages/mcp/src/clients.tsand the regeneratedREADME.mdblock;packages/mcp/src/cli.ts(init writes.opencode/commands/genclass-explore.md);test/cli.test.ts(+1 test);test/manifests.test.ts(3 new PINS);CHANGELOG.md..github/workflows/opencode-plugin.yml(CI, separate from ci.yml) and.github/workflows/release-opencode.yml(tagopencode-v*, mirrors release-mcp.yml).package-lock.json: the two workspace entries only (18 lines).docs/adoption/contributions/opencode/(README report,upstream.patchagainst anomalyco/opencodedev79c80c7c,PR.md,types/check.shconformance) anddocs/adoption/listings/opencode.md.Checks
opencode-genclass: typecheck, build, vitest 26 passed@genclass/mcp: typecheck, build, vitest 154 passed, 3 skipped;npm run sync -w @genclass/mcpclean@opencode-ai/plugin1.19.5 (PluginModule,Plugin,Hooks) and@opencode/plugin2.2.5 (Plugin.define):tscexit 0opencode-ai1.19.5,@opencode/cli2.2.5),node packages/opencode-plugin/test/smoke/run.mjs: 10 of 10 checks pass on the final run:genclassserver without the plugin;genclassis listed and connected on both lines;genclassentry wins on both lines;opencode mcp add genclass -- npx -y @genclass/mcp@0.2.1writes the globalopencode.jsoncon 1.19.5 and the project'smcp.servers.genclasson 2.2.5;npx skills add genclass-dev/genclass-plugin -a opencodeandinit's.claude/skillsboth show up inopencode debug skill(1.19.5);initcommand shows inopencode debug config(1.19.5).packages/runtimechanged.To send (a person)
opencode-genclass0.1.0. Push tagopencode-v0.1.0, publish the workflow'sopencode-tarballonce by hand, then set up npm trusted publishing (steps are in the workflow header).https://github.com/genclass-dev/GenClass/tree/main/packages/opencode-pluginresolves.dev. Applyupstream.patchand runnpx prettier@3.6.2 --check packages/web/src/content/docs/ecosystem.mdx.docs: add opencode-genclass to the ecosystem plugins. Use PR.md's template body rewritten in your own words, because OpenCode's CONTRIBUTING.md warns against long AI-generated descriptions. Keep the AI-assistance line. No issue is needed for a docs PR.Notes for the reviewer
packages/opencode-plugin/src/index.ts(both hook paths, never throws) andsrc/digest.ts(a copy ofhookCmd;test/parity.test.tskeeps them byte-equal).opencode runand sent the stub prompt there, and AWS refused it (invalid token). The prompt held no real data. The script now passes a minimal environment.packages/opencode-plugin/.Generated by Claude Code