Skip to content

feat: add OpenCode client support - #169

Open
Scratticus wants to merge 1 commit into
verygoodplugins:mainfrom
Scratticus:feat/opencode-client
Open

feat: add OpenCode client support#169
Scratticus wants to merge 1 commit into
verygoodplugins:mainfrom
Scratticus:feat/opencode-client

Conversation

@Scratticus

Copy link
Copy Markdown

Adds OpenCode as a supported client, closely mirroring the existing codex/cursor patterns.

  • opencode setup command: merges mcp.memory into ~/.config/opencode/opencode.json (backup-first, refuses unparseable files; --config, --rules, --endpoint, --api-key, --dry-run) and upserts a marked rules block into the project's AGENTS.md (OpenCode reads it natively).
  • templates/opencode/memory-rules.md is generated from src/memory-policy/shared.ts via the existing sync script — same policy text as codex, with OpenCode's memory_* tool naming and config path.
  • uninstall opencode strips the rules block and removes mcp.memory; round-trip verified in a sandbox (XDG_CONFIG_HOME isolation).
  • Host smoke spec entry, 9 unit tests (suite: 640 passing), INSTALLATION.md section.
  • Verified against a real OpenCode session: opencode mcp list reports memory connected, and recall works end-to-end.

Setup command (opencode.json MCP wiring + policy-generated AGENTS.md
rules block), uninstall support, host smoke spec entry, INSTALLATION.md
section, and unit tests. Mirrors the codex/cursor client patterns; the
memory rules artifact is generated from the shared policy source.

Co-Authored-By: Claude Fable 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