Repository navigation
Open
Labels
area/typescriptTypeScript code and toolingeffort/lLarge: multi-day or open-ended; expect staged check-insepic/opencode-platformReprioritization program epic (2026-11-12)kind/featureNew feature or capability requestmeta/enrichedIntake review done: acceptance criteria, links, and normalized labels addedpriority/normalOrdinary priority (the default)queue/parkedQueue task is parked (waiting on CI, time, or an event)status/parkedDeliberately paused with a recorded resume conditionstatus/triagedTriaged and routed (see agent note)work/assignedQueue worker lifecycle state
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 validation — .opencode/opencode.jsonc against OpenCode v2
- Load the repo config with OpenCode v2 (
@opencode/[email protected]) and record what it accepts and rejects. - 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. - Note:
.opencode/cli.jsonalready targets the v2 CLI schema (https://opencode.ai/v2/cli.json), while.opencode/tui.jsoncstill exists alongside it (v2 auto-migrates tui.json → cli.json).
2. Plugin ports — v1 plugin API → v2 plugin API
v1 plugins do not run in v2 (new plugin API). Ours, in order of how much we depend on them:
- mcpx bridge + mcpx-session —
.opencode/plugin/mcpx-session.tsis the plugin entry (importstoolandPluginfrom@opencode-ai/plugin; default export isasync ({ 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. - subtask2 — third-party npm plugin
@openspoon/subtask2@latestin the configpluginarray, 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. - The rest of the
pluginarray 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. .opencode/package.jsonpins@opencode-ai/plugin1.18.19 — the plugin SDK bump belongs to this workstream.
Status: config validation is being run first; plugin ports are scoped here but not started.
Acceptance criteria
- Workstream 1 (config validation) is recorded as done:
.opencode/opencode.jsoncloads 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. - 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.
- subtask2 has a recorded decision: v2-compatible release adopted, fork/vendor chosen, or replacement named.
- Every remaining plugin in the config
pluginarray has a v2-compatibility verdict recorded on this issue. -
.opencode/package.jsonpins a v2-era@opencode-ai/pluginSDK and the repo's agents/commands/skills still load under the v2 CLI.
Metadata
Metadata
Assignees
Labels
area/typescriptTypeScript code and toolingeffort/lLarge: multi-day or open-ended; expect staged check-insepic/opencode-platformReprioritization program epic (2026-11-12)kind/featureNew feature or capability requestmeta/enrichedIntake review done: acceptance criteria, links, and normalized labels addedpriority/normalOrdinary priority (the default)queue/parkedQueue task is parked (waiting on CI, time, or an event)status/parkedDeliberately paused with a recorded resume conditionstatus/triagedTriaged and routed (see agent note)work/assignedQueue worker lifecycle state
Activity
dezren39 commentedon Oct 24, 2026
Config validation result — ran 2026-10-24
Verdict:
.opencode/opencode.jsoncloads clean under OpenCode v2. No PR opened — there are no hard incompatibilities in the config itself to fix. Details below; the plugin half of this issue is where the real breakage is (also below).Method
@opencode/[email protected]in an isolated prefix with a scratch HOME (the live v1.18.31 server and its config were not touched)..opencode/tree into a scratch project and ran:opencode debug config→ exit 0, zero WARN/ERROR lines.opencode debug agents→ exit 0; all agents resolve (config-definedbuild,classifier,classifier-complex,coder,reasoner,compaction, plus theagents/*.mdagents Explore/General/Plan and built-ins).What v2 does with the v1-shaped config
The v2 loader normalizes v1 fields itself — these renames happen automatically, no edit needed:
agentagents(all 6 keys preserved)providerproviders(all 14 provider IDs preserved exactly)pluginplugins(all 14 specs preserved)autoupdate: trueupdate: "auto"disabled_providerspolicies(provider.usedeny entries)compactionAccepted but dropped (v2 ignores these — decision needed, not a fix)
default("claude-code/claude-haiku-5-5") — does not appear in v2's resolved config, and v2 does not turn it into amodeleither. On upstream v2 this field is a no-op. Keeping it costs nothing while runtimes are still on v1; flagging it here so the set remembers it once the fork rebase decides whether our v2 line keeps a default-model concept.experimental.model_routes— the model-pool routing table (cheap-pooltargets etc.). Upstream v2 drops the wholeexperimentalblock. If pool routing is load-bearing for the fleet, it has to be carried by the fork rebase (origin issue, item (a)) or reimplemented — v2 upstream will not honor it.Neither field is rejected by v2, and removing them from the repo config now would change behavior for the still-on-v1 runtimes, so both stay until the runtime migration lands.
Plugin load evidence (workstream 2 preview — ports NOT started)
On the fresh v2 server load of the full tree (with
.opencode/package.jsondeps installed,@opencode-ai/plugin1.18.19), 8 plugins were attempted in the capture window and 6 failed with the same v2 module-contract error:Failed:
plugin/mcpx-session.ts(ours — its v1-style async-function default export does not satisfy the v2 contract)plugins/autoresearch-context.ts(ours)@openspoon/subtask2@latest(subtask2's current release is not v2-compatible)opencode-scheduler@latest,opencode-pty@latest,opencode-devcontainers@latestAttempted with no failure recorded in the window:
opencode-working-memory@latest,@mohak34/opencode-notifier@latest. The remaining specs in thepluginarray weren't reached in the window; assume v1-shaped until checked. This confirms the scoping in the issue body: the port's first step is the v2 plugin contract (id+effect/setupdefault export) vs the v1 hooks our plugins use.dezren39 commentedon Oct 26, 2026
Intake review — fleet monitor, 2026-10-26T08:26:24Z.
Still live — partially advanced: workstream 1 is already done (the 2026-10-24 comment on this issue records
.opencode/opencode.jsoncloading clean under OpenCode v2, no PR needed). Workstream 2 (plugin ports) is not started, per the issue body, and nothing since has changed that: the mcpx bridge inventory/diff against the v2 plugin API is still the first step. Acceptance criteria were missing and have been appended to the body (original text preserved verbatim above them).Related: this is one leg of a cross-repo set — origin issue developing-today-forks/opencode#374 (still open), sibling leg developing-today-forks/openchamber#384. Per the fleet cross-repo rule, the set is tracked from the origin issue; do not file per-repo duplicates.
Suggested approach: sequence after the opencode#374 fork rebase lands a stable v2 plugin API surface; start with the mcpx-session hook inventory since the fleet depends on it most.
Risks: porting against a moving v2 API wastes the effort; effort class l reflects the whole plugin array, not the mcpx bridge alone.
dezren39 commentedon Oct 29, 2026
🤖 Agent note · cross-reference from #1858 triage (queue task 2746, 2026-10-29)
pkgs/mcpx/plugin/opencode/) was triaged today: scope confirmed, core rewrite enqueued as queue task 3068. This issue's workstream 2 (the deployed copy at.opencode/plugin/mcpx-session.ts) is a different artifact and stays owned here — noted on mcpx: port the opencode plugin to opencode v2 (a rewrite, and several things get better) #1858 so the two ports follow one shape and do not diverge silently.dezren39 commentedon Nov 1, 2026
🤖 Agent note · picked up
dezren39 commentedon Nov 1, 2026
🤖 Agent note · done
558cc1d23e1d2d90df2a0d36189b5e585f12f99b..opencode/opencode.jsoncloading clean under OpenCode v2; nothing since contradicts it. Acceptance item 1's validation half is satisfied; the accepted-but-ignored field list was recorded in that same comment..opencode/package.jsonstill pins@opencode-ai/plugin1.18.19 — acceptance item 5 (v2-era SDK pin) not done..opencode/opencode.jsonc:6463-6478— thepluginarray now has 13 active entries (antigravity-auth commented out 2026-10-24); no comment on this issue records a v2 verdict for any of them, and subtask2 (@openspoon/subtask2@latest, :6467) has no recorded decision — acceptance items 3 and 4 not done..opencode/plugin/mcpx-session.ts:1still imports{ tool, type Plugin }from@opencode-ai/plugin(the v1 SDK) — the deployed copy is unported. Per the 2026-10-29 cross-reference, its port rides the shipped-plugin set: mcpx: port the opencode plugin to opencode v2 (a rewrite, and several things get better) #1858 / mcpx opencode v2 plugin: implement the #1858 SET-REMAINDER items (1)-(5) #2841, queue task 3997 (parked, items (1)(3)(4)(5) remain). Acceptance item 2 is owned there, not duplicated here.queue/queuedfor the routed remainder.69 remaining items
developing-today-fleet commentedon Nov 29, 2026
🤖 Agent note · lane 2207-M (Archer AUTHOR lane, charlie ADVANCE run, queue task 25977, 2026-11-28) — slice 1 disposition: park for packet-scope repair (re-verified firsthand). No code changed by this lane.
This lane was served task 25977 by
fleet agent nextafter the whole fallback band (ranks 8–17) premise-checked gated, and independently re-verified the scope conflict via the GitHub API on current main (gh CLI only, no clones):.opencode/plugin/mcpx-session.tsandpkgs/mcpx/plugin/opencode/mcpx-session.tsare byte-identical mirrors: both blob shae7f7c9d1d64dd961be2065b6e63d0a4bddf0ae47, size 33304..github/workflows/mcpx.ymlrunsdiff pkgs/mcpx/plugin/opencode/mcpx-session.ts .opencode/plugin/mcpx-session.tsin both the PRplugin-syncjob (lines 101–105) and the test job (lines 179–183) — a PR changing only the deployed copy fails this mandatory check by construction.import { tool, type Plugin } from "@opencode-ai/plugin"(v1), and.opencode/package.jsondirectly pins only@opencode-ai/plugin1.19.6 — no v2@opencode/plugindependency is declared..opencode/plugin/mcpx-session.tsand explicitly exclude both the packaged mirror and the.opencode/package.jsonSDK pin bump, so the slice as scoped cannot land.This concurs with oc-code-03 (2026-11-27T02:42:05Z), lane 2122-A, code-h and any-o — the conflict is unchanged on current main.
Resume condition (not a person): the packet is re-scoped to either (a) include BOTH mirrored entrypoints plus the v2 SDK pin in
.opencode/package.json, or (b) a separate v2 deployed adapter file with a declared v2 dependency and a v2 load test. On re-scope, this task is a bounded, workable port following the landedpkgs/mcpx/plugin/opencode/v2/tools.tspattern.Key: 2207-M
dezren39 commentedon Nov 29, 2026
Census 2026-11-29 (lane CEN-C01) — body + all 31 comments re-read. Consolidated state:
.opencode/opencode.jsoncloads clean under OpenCode v2 (@opencode/[email protected],debug config/debug agentsexit 0). The acceptance box for listing accepted-but-ignored v1 fields with keep/drop decisions is still unchecked — that listing is the only workstream-1 remainder..opencode/plugin/mcpx-session.tsandpkgs/mcpx/plugin/opencode/mcpx-session.tsare byte-identical mirrors (blobe7f7c9d1d), and.github/workflows/mcpx.ymlfails any PR where they differ (plugin-sync job + test job). The packet owned only the deployed copy and excluded both the packaged mirror and the.opencode/package.jsonSDK pin — yet a v2 entrypoint imports@opencode/plugin, which is not a direct dependency there (only v1@opencode-ai/pluginis pinned). A one-file port cannot merge, by construction..opencode/package.jsonSDK pin. Note the v2 tree inpkgs/mcpx/plugin/opencode/v2/already registers seven tools (incl.mcpx_daemon_pick) vs six on the deployed v1 surface — the port must account for that delta.pluginarray.priority/normalconfirmed appropriate.developing-today-fleet commentedon Nov 29, 2026
Census 2026-11-29 (Felix): full re-read (body, labels, all comments, edges) in the CODE-6 recovery pass, concurring with the parallel census note (lane CEN-C01) already on this thread, whose claims I verified against live state in this pass.
STRENGTHS: workstream 1 (config validation) is DONE (2026-10-24, loads clean under OpenCode v2); workstream 2's state is honestly recorded — not started, and the first slice packet was parked twice for packet-scope repair (tasks 25977), most recently re-verified 2026-11-28. This issue is also the native blocker for #2841 (edge verified in place).
GAPS: carried THREE status labels (status/in-review, status/parked, status/triaged); nothing is in review — the parked state is operative.
FIXES I APPLIED: removed status/in-review; status/parked + status/triaged stand.
REMAINS: repair the slice-1 packet scope (the mcpx dogfood-plugin sync conflict recorded in-thread), then the plugin ports in dependency order (mcpx bridge first); also the workstream-1 remainder — the accepted-but-ignored v1 fields listing with keep/drop decisions. No Drewry decision needed.
developing-today-fleet commentedon Nov 29, 2026
Issue census — 2026-11-29
Gaps found: No
app/*/area/*label (the plugin work is TypeScript under.opencode/plugin/); nosource/*label — left off rather than guessed, as the filer is not recorded. An## Acceptance criteriasection is present. Three status labels coexist (status/in-review/status/parked/status/triaged) — lifecycle state is queue-owned and was not hand-edited.Strengths: Two clearly separated workstreams (config validation, then plugin ports) with the current state stated honestly (validation running first, plugin ports scoped but not started), the upstream migration guide linked, and the origin issue (opencode#374) named.
Actions taken by this census: Labels added:
area/typescript.developing-today-fleet commentedon Nov 30, 2026
🤖 Claim — lane 0052-J (Archer, bravo SUSTAIN 2026-11-30 00:52 CST), fallback rank 179.
Taking workstream 1 only: config validation of
.opencode/opencode.jsonc(+cli.json/tui.jsonc) against the OpenCode v2 schema. Method: read the config files via the contents API (no checkout), validate fields against the v2 schema + the upstream migration guide, and record accepts / hard-rejects / accepted-but-ignored on this issue. Plugin ports (workstream 2) are NOT in this slice. Any hard rejection found gets a bounded fix PR; otherwise the record on this issue is the deliverable.developing-today-fleet commentedon Nov 30, 2026
🤖 Workstream 1 (config validation) — record of record, lane 0052-J (Archer, bravo SUSTAIN 2026-11-30).
Method:
.opencode/opencode.jsonc,.opencode/cli.json,.opencode/tui.jsoncread via the contents API at current main (no checkout);opencode.jsoncparsed as JSONC (valid, 5,679 lines); fields checked against the V1 schema (opencode.ai/config.json), the V2 CLI schema (opencode.ai/v2/cli.json, fetched live), and the upstream V2 migration guide (dev.opencode.ai/v2/docs/migrate-v1/, read in full). A live V2-binary load test was NOT run — the verdicts below are schema/guide verdicts, and the guide states supported V1 config is normalized in memory without rewriting the source.Verdict: no hard rejections found — no fix PR required for workstream 1
Every top-level field in
opencode.jsoncis either kept as-is, silently normalized, or in the guide's accepted-but-ignored class. Nothing in the config blocks a V2 load.Kept / already V2-shaped
model,instructions(4 repo instruction files) — unchanged in V2.agents(7 entries) — already the plural V2 name; entries already use pluralpermissions(5). BUT see ignored-fields below fortemperatureinside agents.plugins— already the plural V2 name and V2 entry shape ({package, options}objects + string entries); first entry already points at a v2 plugin path (../pkgs/mcpx/plugin/opencode/v2). (Whether the implementations run under the V2 plugin API is workstream 2, not this slice.)cli.json— validates clean against the live V2 CLI schema (jsonschema check, this lane): theme/diffs/session/animations all conform.compaction— onlyreserved(8192) is set; it carries to V2buffer. Notail_turns/prune, so no ignored-field warning from compaction.Silently normalized from V1 form (supported, no warning, no action needed)
provider(singular, 37 entries) →providers; per-providernpm(21) →packagewithaisdk:prefix;options(20) → split intosettings/headers/body; modelvariantsobjects (16) → V2 arrays withid; modelid(15) →modelID.disabled_providers(8) → internal deny policies.autoupdate: true→update: "auto".small_model→ the built-intitleagent's model (native V2 form would beagents.title.model).Accepted but ignored / no V2 effect (decide keep-or-drop; they are NOT load errors)
temperature(4 agents): per the guide, V1 agenttemperature/top_p/optionshave no effect in V2 — sampling belongs on a model variant. This is the one finding with real behavioral bite: those 4 agents will run at model defaults under V2 until their temperature moves to a variant.tui.jsonc(theme: "vibrant-ink"as a bare string): aftercli.jsonexists,tui.jsonedits are ignored; and per the guide the V2 client config is the global~/.config/opencode/cli.json— project-local client files are not migrated. Flagging, not asserting: whether the repo's.opencode/cli.jsonis honored by the V2 client should be confirmed in the workstream-2/live-load pass.Custom fleet fields — in neither schema (ignored by OpenCode core in both versions; presumably read by our own routing/tooling, listed so they are not mistaken for config errors)
messaging({embedding: "off"}),model_designations,websearch.provider,warming: true(the last two ARE in the V1 schema; no V2 equivalent named in the guide).instanceOf(17),wallScope(8),tokenMetering(1). Agent level:maxTokens(2),request(4),threshold(1),mode(5). Experimental:provider_routes,model_routes,model_route_windows— none of the guide's ignored V1 experimental fields (batch_tool,openTelemetry,primary_tools,continue_loop_on_deny) are present.Remaining for #730: workstream 2 (plugin ports — mcpx bridge first) and a live V2 load test to confirm the schema verdicts on the actual binary. This slice (workstream-1 record) is complete; claim released.