Skip to content

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

Open
3metaJun wants to merge 1 commit into
mainfrom
chore/sync-upstream-harness-1112
Open

3metaJun wants to merge 1 commit into
mainfrom
chore/sync-upstream-harness-1112

Conversation

@3metaJun

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. Both majors run fine without it. 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. pstack has no commits after the 0.15.36 pin. README and the adapter reference now 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. The adapter reference also notes that OpenCode 2 now registers the unnamed Claude copies by directory name, but the ~/.agents/skills copy wins each id.

Proof: npm test (724 pass, 1 skipped), strict upstream and baseline checks, and check-package passed. On real OpenCode 2.2.7 and 1.19.5 installs, smoke-harnesses --execute, recall list/read (sanitized and --local-text) and, on 2.2.7, opencode api skill.list (no duplicate ids) all passed.

Reviewed with sol-loop: 1 round with gpt-6.1-sol. Sol verdict: 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, which OpenCode 1
also runs without, 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. pstack has no change after 0.15.36.
Record the harness versions reviewed on 2026-11-12.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
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