Skip to content

[DRAFT] V2 line: OpenCode 2 configuration, agents, and V2 plugins - #8

Draft
hoshinoht wants to merge 17 commits into
LLJY:masterfrom
hoshinoht:master
Draft

hoshinoht wants to merge 17 commits into
LLJY:masterfrom
hoshinoht:master

Conversation

@hoshinoht

Copy link
Copy Markdown
Contributor

Status

Draft integration vehicle for the V2 line. Not asking for a merge into master — please retarget to a dedicated branch (e.g. v2) whenever one exists, or tell me the preferred integration shape.

Base hygiene

This head contains your master (merged as hoshinoht@0b39639: your 5 commits on compaction hooks, the workflow toolkit packaging, and gpt-5.6-era configs are all in). The diff is therefore purely the V2 delta — 15 commits ahead, 0 behind.

What's in the delta

  • Native OpenCode 2 setup: V2 opencode.json shape, cli.json, V2 agent frontmatter across agents/ (incl. new oracle/tester), /dev workflow command, workflow-plan/workflow-execute skills, workplan tooling + checks, OPENCODE_V2.md migration notes.
  • Three V2-only plugins (packages/reasoning-router, packages/quota-fallback, packages/openai-long-context), each unit-tested and installable standalone via opencode2 plugin add github:hoshinoht/rice-opencode#v2::path:packages/<name>.
  • Notable mechanism: the -1m long-context variants alias to base upstream model IDs (same idea as feat(plugin): expose opt-in 1M context variants for GPT-5.6 OAuth anomalyco/opencode#46574, built for the V2 catalog API) — verified live with 200s and no ID leaks.
  • Merge citizenship: your toolkit packaging and compaction hook are kept and wired (workspaces union); the one integration fix was aligning the toolkit devDep to the tree's @opencode-ai/plugin 1.18.11 for a single-version typecheck.

Verification (on the head)

  • 190 tests pass (13 generateImage failures pre-exist on both sides — environmental, proven via isolated worktree); tsc --noEmit clean.
  • Live probes against the Codex backend return 200 on base and -1m models.

Open questions for you

  1. Preferred home for this line: dedicated v2 branch here, or another shape?
  2. packages/docs was retired in favor of your toolkit — my README still documents the old docs plugin; happy to trim that in a follow-up if you want this line docs-clean.

hoshinoht and others added 17 commits March 26, 2026 00:29
# Conflicts:
#	README.md
#	agents/chat.md
#	agents/esp32-tdd-coder.md
#	bun.lock
#	opencode.json
#	package.json
- add mcps/gofetch-mcp (Go MCP server: fetch + web_search with Exa
  primary, keyless fallbacks, and 429 backoff-then-reroute)
- point agent permissions and guidance at gofetch_fetch
- drop hound and ddg-search MCP entries and the stale
  hound_smart_search disable
opencode installs config-dir dependencies itself (npm-style) and bumped
@opencode-ai/plugin to match its own version; gitignore its
package-lock.json marker so it never gets cleaned up again — deleting it
plus a manual bun install caused 5-25s startup stalls from a crashing
installer
Bring the v2 branch to the current OpenCode 2 setup: native V2
opencode.json/agents shape, /dev workflow skills and commands,
workplan tooling, and three V2-only plugins (reasoning-router,
quota-fallback, openai-long-context with upstream-aliased -1m
variants). Plugin install URLs and package provenance point at
this fork (#v2).

Deliberately untouched: fork-only files (prompts/, deprecated/,
chat/docs-first-coder/esp32/swe agents), submodule pointers, and
all secret-bearing or machine-local state (.env, *-api-key,
antigravity-*, service.json, recall/opencode-mem configs,
 Binaries, lock artifacts).

Verification in this tree: bun install clean, 106 plugin tests
+ 27 repo tests pass, tsc --noEmit clean.

Supersedes the stale Sep-04 codex/opencode-v2 snapshot. Do not
merge until the V2 cutover; master stays V1.
V2: OpenCode 2 configuration, agents, and V2 plugins
Sync the 5 upstream commits (gpt-5.6 era configs, workflow toolkit
packaging, compaction hook) into the V2 line.

Resolution policy: V2 tree authoritative on rewritten paths
(opencode.json, agents, README/about, skills structure); upstream
refinements carried over (review cadence, stop rules, plan handoff
summary); upstream additions kept (packages/plugin toolkit,
plugins/workflow-compaction + tests); retired systems not
resurrected (packages/docs, docs-workflow skill stay deleted).
Integration fix: align the toolkit devDep to the tree's
@opencode-ai/plugin 1.18.11 (single-version typecheck).

Verification: 190 pass; 13 generateImage failures pre-exist on
unmerged master (environmental, verified via isolated worktree);
tsc clean.
Adds commands, skills, evidence-agent search access, comment discipline, and grep.app configuration.
Ports the documentation, notification, and token-saving plugin packages.
@LLJY

LLJY commented Sep 30, 2026

Copy link
Copy Markdown
Owner

i can't accept this PR as-is because there are a lot of changes that are outside of the upstream's philosphy

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants