Repository navigation
OpenCode adapter; drop Codex and Copilot (plugin 2.4.0) - #9
Merged
Merged
Conversation
Removes the 2.3.0 host-specific code (openai.yaml, guard deny mode, Copilot context key, their checks and CI installs); core/bin is identical to 2.2.1. Adds adapters/opencode/index.ts, a thin OpenCode plugin over core/: it runs dev-brain-context for the main session only, runs dev-brain-guard through the permission hook (ask), registers core/skills with workflows hidden, and builds the reviewer from core/agents/reviewer.md with read-only permissions plus explicit denies for redirections, which OpenCode's shell matcher ignores. Offline check: 20 checks (11 Claude Code, 9 OpenCode 2.3.2); six adapter mutations each fail the intended check. TUI and OpenCode 2.4.0 are NOT RUN. Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_01Sm3JtGSXFLR6CZYVJXGHtU
A manual run of the branch resolved @latest to Claude Code 2.1.330 and OpenCode 2.4.0 and passed all 20 checks, so 2.4.0 is no longer NOT RUN. Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_01Sm3JtGSXFLR6CZYVJXGHtU
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.
What
Drops the Codex and GitHub Copilot support added in 2.3.0 (user decision) and adds an OpenCode adapter. Plugin 2.4.0.
Removed: the six
agents/openai.yaml, the guard's "deny" mode, the context hook's Copilot key, the Codex/Copilot checks, their mock handler, the CI installs.core/bin/*are byte-identical to 2.2.1. The 2026-11-20 results entry stays as history, marked superseded.Added:
adapters/opencode/index.ts, one file with no rule of its own:core/bin/dev-brain-context --textthrough thecontexthook, main session only (subagents detected byparentID);core/bin/dev-brain-guardthrough thepermissionevaluatehook and answers "ask"; if the script cannot run, the command is asked, not allowed;core/skills, workflows hidden (autoinvokefromdisable-model-invocation), still loadable by id;core/agents/reviewer.md(body = system prompt,toolsline = permissions). OpenCode's shell matcher does not parse redirections, so* --output*and*>*are denied by name.Install is by path (
pluginsinopencode.json); the README and MANUALE (section 12) document install, update, removal andopencode debug agentsas the check.Evidence
python3 evals/offline/check.pyALL PASS, 20 checks (11 Claude Code 2.1.325, 9 OpenCode 2.3.2), 26 s, also on a clean clone.latestresolved to Claude Code 2.1.330 and OpenCode 2.4.0.claude plugin validate corepasses with the same warnings asmain.Limits (NOT RUN)
@startare untested; inopencode runan ask is rejected and@startis not expanded (theskilltool loadsstartby id).opencode run --autoapproves the guard's ask (observed: the commit ran).@latestweekly.https://claude.ai/code/session_01Sm3JtGSXFLR6CZYVJXGHtU
Generated by Claude Code