Repository navigation
chore(upstream): support OpenCode 2 and sync current harness versions - #60
Merged
Merged
Conversation
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
force-pushed
the
chore/sync-upstream-harness-1112
branch
from
November 22, 2026 07:52
d43c476 to
21cd7ba
Compare
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
OpenCode 2 (
@opencode/cli, now the install the OpenCode docs give) rejects--purewithUnrecognized flag. It also replaced the top-levelopencode exportwithopencode session exportand changed the export schema. On OpenCode 2, mstack'srun-roleOpenCode runtime and therecallhistory reader both fail. OpenCode 1.19.5 (opencode-ai, still GitHub's latest release) has nosession export, so neither command set covers both lines.This PR drops
--purefrom the OpenCode runtime arguments (OpenCode 1 runs without it with external plugins enabled, documented inREADME.mdanddocs/harness-adapters.md).recallnow runsopencode --versionand picks its commands and parser by major version. The OpenCode 2 parser readsinfo.location.directory, usertext, assistantcontentparts and compactionsummary, and accepts the/-prefixed sanitized directory marker.The PR also moves the
mattpocock/skillspin to4ae2317and ports its fresh-context-window instruction intocodebase-design(preservingmain'spstack0.15.46/0b46ec39pin and notices after rebasing onto0f15dd7). 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 aftermain's README rewrite, and note that OpenCode 2 registers unnamed Claude copies by directory name while~/.agents/skillswins each id.Proof (rebased commit
21cd7baonto0f15dd7):node scripts/validate.mjs(61 portable skills validated)node scripts/check-upstream.mjs --strictagainstpstack@0b46ec39(0 missing, 0 changed, 0 problems)node scripts/skill-baseline.mjs --checkagainstpstack@0b46ec39andmattpocock/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)smoke-harnesses --execute,recalllist/read,opencode api skill.list), plus post-rebasehistory.mjs list/readlive verification on local OpenCode 2.3.2.Reviewed with sol-loop: original round with
gpt-6.1-sol(approved); post-rebase audit withcpa/gpt-6.2-sol(3 doc/tradeoff items fixed before quota limit) andClaude Opus 5.5(high effort, approved).Agent: Claude Opus 5.5 via Claude Code
🤖 Generated with Claude Code