Skip to content

feat(setup): add OpenCode integration#67

Merged
Grivn merged 1 commit into
masterfrom
feat/opencode-setup
Jun 23, 2026
Merged

feat(setup): add OpenCode integration#67
Grivn merged 1 commit into
masterfrom
feat/opencode-setup

Conversation

@Grivn

@Grivn Grivn commented Jun 23, 2026

Copy link
Copy Markdown
Member

Summary

  • Add mnemon setup --target opencode with local .opencode/ and global ~/.config/opencode/ support.
  • Install a native OpenCode agent skill, register the generated guide through opencode.json instructions, and write a zero-dependency JS plugin under plugins/mnemon.js.
  • Preserve unrelated OpenCode config and clean only mnemon-managed skills/plugins/instructions on eject.
  • Update English and Chinese docs.

Research

  • OpenCode first-party Agent Skills read .opencode/skills/<name>/SKILL.md and ~/.config/opencode/skills/<name>/SKILL.md.
  • OpenCode local plugins auto-load from .opencode/plugins/ and ~/.config/opencode/plugins/.
  • OpenCode supports custom instructions through opencode.json / ~/.config/opencode/opencode.json.
  • DeepSeek lists OpenCode as a recommended integration target and recommends OpenCode >= v1.14.24.

Validation

  • go test ./internal/setup
  • go test ./...
  • go build -o mnemon .
  • node --check internal/setup/assets/opencode/mnemon.js
  • isolated setup/eject smoke test for mnemon setup --target opencode --yes

Add OpenCode as a setup target using its native project and global surfaces. The integration installs a mnemon agent skill, registers the generated guide through opencode.json instructions, and writes a local JavaScript plugin that injects recall context through chat message transforms and compaction guidance through OpenCode's plugin hooks.

The setup preserves unrelated OpenCode config, supports eject cleanup for only mnemon-managed files and instructions, and documents the new target in the English and Chinese docs.

Validation: go test ./internal/setup; go test ./...; go build -o mnemon .; node --check internal/setup/assets/opencode/mnemon.js; isolated setup/eject smoke test for mnemon setup --target opencode --yes.
@Grivn Grivn merged commit a162160 into master Jun 23, 2026
1 check passed
@Grivn Grivn deleted the feat/opencode-setup branch June 23, 2026 16:50
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