Repository navigation
Add OpenCode support and refresh the README - #10
Merged
Merged
Conversation
- Per-agent install sections (Claude Code, Codex, Antigravity) with update and uninstall commands, plus release-candidate and removal notes - Supported-agents matrix built from the hook configs - New architecture diagram and a two-session contention sequence - Monochrome zinc logo (assets/logo.svg) feeding the plugin icons, hero mark and a regenerated social preview - Badges, nav, safety/privacy and limits sections Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
OpenCode becomes the fourth adapter. Its plugins must be JS/TS, so plugin/opencode/index.ts is a thin TypeScript shim (no deps, no build; OpenCode runs it on Bun) that maps OpenCode's prompt and permission.evaluate events onto a bridge schema owned by internal/adapter/opencode and runs `agent-quorum hook --agent opencode`. Every coordination decision stays in Go. - Subagents run in child sessions; the shim maps them to the root so they share their parent's claims. - OpenCode's default shared background service outlives sessions, so the shim reports pid 0 there (30-minute idle timeout) and its own pid under --standalone. ask(req, pid) takes the pid from the bridge. - Peer context is injected once per session, keeping the system prompt byte-stable for prompt caching. - AGENT_QUORUM_NO_NOTES now blanks the note on every op, which also fixes it for Antigravity (it registers with hello, not note). - hook.go: the three per-agent hook bodies share one ask helper. Validated against OpenCode 2.3.0 (contention, liveness, fail-open, subagents) and covered by golden fixtures, fail-open tests and a cross-agent end-to-end test. README, CONTRIBUTING, CLAUDE.md, AGENTS.md and the architecture diagram document the new agent. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
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.
Summary
OpenCode support (fourth agent)
plugin/opencode/index.ts: a thin TypeScript shim that OpenCode loads directly. It has no dependencies and no build step. It forwardspromptandpermission.evaluateevents as bridge JSON toagent-quorum hook --agent opencodeand applies{"deny"}or{"context"}. It never setsallow.internal/adapter/opencode: pure Parse and Render over the bridge schema, golden-tested strictly both ways.--standalone, the shim reports the server pid, so claims free as soon as the run exits.Fixes and tidy-ups
AGENT_QUORUM_NO_NOTES=1now blanks the note on every op. Before this, Antigravity, and OpenCode in this PR, still stored prompts, because both register withhellorather thannote.cmd/agent-quorum/hook.go: the per-agent hook bodies now share oneask(req, pid)helper.make lintparse-checks the shim withbunwhen it is installed.README and branding
fetchplusreset --hard, becausestableis force-moved on every release.Release
The README's OpenCode instructions assume a release that contains this adapter, so cut one after merging, with
make release V=0.3.0. This adds an agent, so it's a minor bump. Users on 0.2.0 binaries see the OpenCode plugin quietly do nothing until they update.Test plan
make check(vet, gofmt, lint,go test -race ./...)golangci-lintv2.15.0: 0 issuesmake validate-plugin: Claude strict, marketplace and Codex installTestEndToEndOpenCode, run against the real binary and daemon:opencode run --standalone:ctxagainst the real binary:git stashis denied.{type:"text"}object and stays byte-identical.AGENT_QUORUM_BIN.opencode service set env:serve --serviceand reportspid: 0.opencode runsessions appear as separate sessions, and B's edit of A's file is denied with A named.agent-quorum releasefrees it.ctxrun..github/social-preview.pngunder Settings → General → Social preview.🤖 Generated with Claude Code