Title: OpenCode 2: validate .opencode config against the v2 schema and port the v1 plugins · Issue #730 · developing-today/code · GitHub
Open Graph Title: OpenCode 2: validate .opencode config against the v2 schema and port the v1 plugins · Issue #730 · developing-today/code
X Title: OpenCode 2: validate .opencode config against the v2 schema and port the v1 plugins · Issue #730 · developing-today/code
Description: Part of the fleet-wide OpenCode 2 migration tracked at developing-today-forks/opencode#374 (origin issue for the whole set). Upstream migration guide: https://dev.opencode.ai/v2/docs/migrate-v1/ Two workstreams in this repo: 1. Config va...
Open Graph Description: Part of the fleet-wide OpenCode 2 migration tracked at developing-today-forks/opencode#374 (origin issue for the whole set). Upstream migration guide: https://dev.opencode.ai/v2/docs/migrate-v1/ Tw...
X Description: Part of the fleet-wide OpenCode 2 migration tracked at developing-today-forks/opencode#374 (origin issue for the whole set). Upstream migration guide: https://dev.opencode.ai/v2/docs/migrate-v1/ Tw...
Opengraph URL: https://github.com/developing-today/code/issues/730
X: @github
Domain: github.com
IPv4 address: 140.82.113.4
{"@context":"https://schema.org","@type":"DiscussionForumPosting","headline":"OpenCode 2: validate .opencode config against the v2 schema and port the v1 plugins","articleBody":"Part of the fleet-wide OpenCode 2 migration tracked at https://github.com/developing-today/opencode/issues/374 (origin issue for the whole set).\n\nUpstream migration guide: https://dev.opencode.ai/v2/docs/migrate-v1/\n\nTwo workstreams in this repo:\n\n## 1. Config validation — `.opencode/opencode.jsonc` against OpenCode v2\n\n- Load the repo config with OpenCode v2 (`@opencode/cli@2.1.4`) and record what it accepts and rejects.\n- Config files, agents, commands, and skills under `.opencode/` are intended to be compatible; some v1 fields are **accepted but ignored** by v2. Hard rejections get fixed (PR); accepted-but-ignored fields get listed here so we can decide whether to keep them while runtimes are still migrating or drop them.\n- Note: `.opencode/cli.json` already targets the v2 CLI schema (`https://opencode.ai/v2/cli.json`), while `.opencode/tui.jsonc` still exists alongside it (v2 auto-migrates tui.json → cli.json).\n\n## 2. Plugin ports — v1 plugin API → v2 plugin API\n\nv1 plugins do not run in v2 (new plugin API). Ours, in order of how much we depend on them:\n\n- **mcpx bridge + mcpx-session** — `.opencode/plugin/mcpx-session.ts` is the plugin entry (imports `tool` and `Plugin` from `@opencode-ai/plugin`; default export is `async ({ directory, worktree, project, client }, options) => …`), backed by the `.opencode/plugin/mcpx/` modules (daemon client, ops). First step: inventory the v1 hooks/lifecycle points and SDK calls these use, and diff them against the v2 plugin API in the migration guide; list anything with no v2 equivalent.\n- **subtask2** — third-party npm plugin `@openspoon/subtask2@latest` in the config `plugin` array, configured by `.opencode/subtask2.jsonc`. First step: check whether subtask2 ships a v2-compatible release; if not, decide between a fork, vendoring, or replacing it.\n- **The rest of the `plugin` array** is also v1-era npm plugins (opencode-working-memory, opencode-scheduler, opencode-pty, opencode-devcontainers, @openchamber/opencode-claude, @pieliesdie/opencode-antigravity-auth, and more). Each needs the same v2-compatibility check; the two items above are the ones we own or depend on most.\n- `.opencode/package.json` pins `@opencode-ai/plugin` 1.18.19 — the plugin SDK bump belongs to this workstream.\n\nStatus: config validation is being run first; plugin ports are scoped here but **not started**.\n\n## Acceptance criteria\n\n- [ ] Workstream 1 (config validation) is recorded as done: `.opencode/opencode.jsonc` loads clean under OpenCode v2 (validation comment, 2026-10-24); any accepted-but-ignored v1 fields are listed on this issue with a keep/drop decision each.\n- [ ] The mcpx bridge + mcpx-session plugin has a v2 port, or a written gap list naming every v1 hook/SDK call with no v2 equivalent and the chosen workaround.\n- [ ] subtask2 has a recorded decision: v2-compatible release adopted, fork/vendor chosen, or replacement named.\n- [ ] Every remaining plugin in the config `plugin` array has a v2-compatibility verdict recorded on this issue.\n- [ ] `.opencode/package.json` pins a v2-era `@opencode-ai/plugin` SDK and the repo's agents/commands/skills still load under the v2 CLI.\n","author":{"url":"https://github.com/dezren39","@type":"Person","name":"dezren39"},"datePublished":"2026-10-24T08:29:08Z","url":"https://github.com/developing-today/code/issues/730"}
| react-profiling | 0 |
| react-import-map | react,react-dom,react-dom/client,react-dom/profiling,react-is,react/compiler-runtime,react/jsx-dev-runtime,react/jsx-runtime,scheduler@b8488ee2c322 |
| route-pattern | /_view_fragments/issues/show/:user_id/:repository/:id/issue_layout(.:format) |
| route-controller | voltron_issues_fragments |
| route-action | issue_layout |
| fetch-nonce | v2:772fa806-96be-f6e3-4e52-dee69a83958e |
| current-catalog-service-hash | 81bb79d38c15960b92d99bca9288a9108c7a47b18f2423d0f6438c5b7bcd2114 |
| request-id | E7CE:3CDC55:AC159:DE9A1:6B0624ED |
| html-safe-nonce | 02f492ac61ffd94dc5a687d4f6e487f842b446ef41b90540a8329927bc5c7f42 |
| visitor-payload | eyJyZWZlcnJlciI6IiIsInJlcXVlc3RfaWQiOiJFN0NFOjNDREM1NTpBQzE1OTpERTlBMTo2QjA2MjRFRCIsInZpc2l0b3JfaWQiOiIyMDUxNTg3NTk5OTkwNDAwMjM3IiwicmVnaW9uX2VkZ2UiOiJpYWQiLCJyZWdpb25fcmVuZGVyIjoiaWFkIn0= |
| visitor-hmac | 7bd8693acf060f47a468b1bdf529f90d71b6522c05126d10d60f571e03a8201b |
| hovercard-subject-tag | issue:6011036900 |
| github-keyboard-shortcuts | repository,issues,copilot |
| google-site-verification | Apib7-x98H0j5cPqHWwSMm6dNU4GmODRoqxLiDzdx9I |
| octolytics-url | https://collector.github.com/github/collect |
| analytics-location | / |
| fb:app_id | 1401488693436528 |
| apple-itunes-app | app-id=1477376905, app-argument=https://github.com/_view_fragments/issues/show/developing-today/code/730/issue_layout |
| twitter:image | https://opengraph.githubassets.com/05c75565986d48ad4c3f61ab888ac1f8effee365e8f5dae1242f7edb42304b63/developing-today/code/issues/730 |
| twitter:card | summary_large_image |
| og:image | https://opengraph.githubassets.com/05c75565986d48ad4c3f61ab888ac1f8effee365e8f5dae1242f7edb42304b63/developing-today/code/issues/730 |
| og:image:alt | Part of the fleet-wide OpenCode 2 migration tracked at developing-today-forks/opencode#374 (origin issue for the whole set). Upstream migration guide: https://dev.opencode.ai/v2/docs/migrate-v1/ Tw... |
| og:image:width | 1200 |
| og:image:height | 600 |
| og:site_name | GitHub |
| og:type | object |
| og:author:username | dezren39 |
| hostname | github.com |
| expected-hostname | github.com |
| None | 9e10bb0ecc0bd0f8692aa89586ee9b54e498d7ab9f244a44cdb5b93653a125ce |
| turbo-cache-control | no-preview |
| go-import | github.com/developing-today/code git https://github.com/developing-today/code.git |
| octolytics-dimension-user_id | 26439447 |
| octolytics-dimension-user_login | developing-today |
| octolytics-dimension-repository_id | 627308783 |
| octolytics-dimension-repository_nwo | developing-today/code |
| octolytics-dimension-repository_public | true |
| octolytics-dimension-repository_is_fork | false |
| octolytics-dimension-repository_network_root_id | 627308783 |
| octolytics-dimension-repository_network_root_nwo | developing-today/code |
| turbo-body-classes | logged-out env-production page-responsive |
| disable-turbo | false |
| browser-stats-url | https://api.github.com/_private/browser/stats |
| browser-errors-url | https://api.github.com/_private/browser/errors |
| release | 32e57d5cc2ce6ce92ec6dceb65858344750c27c2 |
| ui-target | full |
| theme-color | #1e2327 |
| color-scheme | light dark |
| react-app-name | issues |
Links:
| Server | github.com |
| Content-Type | text/html; charset=utf-8 |
| Cache-Control | max-age=0, private, must-revalidate |
Viewport: width=device-width