Skip to content

chore(upstream): support OpenCode 2 and sync current harness versions - #60

Merged
3metaJun merged 1 commit into
mainfrom
chore/sync-upstream-harness-1112
Nov 22, 2026
Merged

3metaJun merged 1 commit into
mainfrom
chore/sync-upstream-harness-1112

Conversation

@3metaJun

@3metaJun 3metaJun commented Nov 12, 2026 •

Copy link
Copy Markdown
Owner

OpenCode 2 (@opencode/cli, now the install the OpenCode docs give) rejects --pure with Unrecognized flag. It also replaced the top-level opencode export with opencode session export and changed the export schema. On OpenCode 2, mstack's run-role OpenCode runtime and the recall history reader both fail. OpenCode 1.19.5 (opencode-ai, still GitHub's latest release) has no session export, so neither command set covers both lines.

This PR drops --pure from the OpenCode runtime arguments (OpenCode 1 runs without it with external plugins enabled, documented in README.md and docs/harness-adapters.md). recall now runs opencode --version and picks its commands and parser by major version. The OpenCode 2 parser reads info.location.directory, user text, assistant content parts and compaction summary, and accepts the /-prefixed sanitized directory marker.

The PR also moves the mattpocock/skills pin to 4ae2317 and ports its fresh-context-window instruction into codebase-design (preserving main's pstack 0.15.46 / 0b46ec39 pin and notices after rebasing onto 0f15dd7). README and the adapter reference record the harness versions reviewed on 2026-11-12 (Codex 0.167.2, Claude Code 2.1.322, OpenCode 2.2.7 and 1.19.5, pi 1.5.2, Antigravity 1.5.6, Grok Build 1.0.77), reconcile heading anchors after main's README rewrite, and note that OpenCode 2 registers unnamed Claude copies by directory name while ~/.agents/skills wins each id.

Proof (rebased commit 21cd7ba onto 0f15dd7):

  • node scripts/validate.mjs (61 portable skills validated)
  • node scripts/check-upstream.mjs --strict against pstack@0b46ec39 (0 missing, 0 changed, 0 problems)
  • node scripts/skill-baseline.mjs --check against pstack@0b46ec39 and mattpocock/skills@4ae2317 (557 tracked files, 6 explicit omissions, 0 baseline changes)
  • npm run check-package (700 files)
  • npm test (797 pass, 0 fail, 2 skipped)
  • Original live smoke on OpenCode 2.2.7 and 1.19.5 (smoke-harnesses --execute, recall list/read, opencode api skill.list), plus post-rebase history.mjs list/read live verification on local OpenCode 2.3.2.

Reviewed with sol-loop: original round with gpt-6.1-sol (approved); post-rebase audit with cpa/gpt-6.2-sol (3 doc/tradeoff items fixed before quota limit) and Claude Opus 5.5 (high effort, approved).


Agent: Claude Opus 5.5 via Claude Code

🤖 Generated with Claude Code

OpenCode 2 (@opencode/cli, now the documented install) rejects `--pure`
and replaced the top-level `export` with `session export` and a new export
schema. Drop `--pure` from the OpenCode runtime arguments (OpenCode 1 runs
without it, with external plugins enabled) and have the recall history reader
pick its commands and parser by the CLI's major version.

Move the mattpocock/skills pin to 4ae2317 and port its fresh-context
instruction to codebase-design. Record the harness versions reviewed on
2026-11-12 and reconcile README/adapter anchors after main's README rewrite.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
@3metaJun
3metaJun force-pushed the chore/sync-upstream-harness-1112 branch from d43c476 to 21cd7ba Compare November 22, 2026 07:52
@3metaJun
3metaJun merged commit 7a98fe4 into main Nov 22, 2026
0 of 11 checks passed
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.

1 participant