Skip to content

feat(opencode): add install script and fix build bugs for OpenCode support#6

Open
fruch wants to merge 4 commits intoSkillPanel:masterfrom
fruch:opencode-support
Open

feat(opencode): add install script and fix build bugs for OpenCode support#6
fruch wants to merge 4 commits intoSkillPanel:masterfrom
fruch:opencode-support

Conversation

@fruch
Copy link
Copy Markdown

@fruch fruch commented Apr 26, 2026

Summary

Adds OpenCode platform support with a single-command installer and fixes several build bugs discovered during real-world testing on a Python project (scylla-cluster-tests).

Changes

  • New platforms/opencode/install.sh — single-command installer that:

    • Builds artifacts if stale/missing
    • Copies commands, agents, instructions, and plugin to target project's .opencode/
    • Generates opencode.json with agents wrapped under the "agent" key (required by OpenCode)
    • Adds instruction paths
    • Installs @opencode-ai/plugin npm dependency
  • Bug fixes in platforms/opencode/build.sh:

    • Agent output filenames now include maister- prefix (e.g., maister-development.md instead of development.md)
    • Agent prompt paths in agent-fragment.json reference the correct maister--prefixed filenames
    • Phase 2 cleans stale unprefixed agent files before rebuild to prevent duplicates

Testing

Tested end-to-end by installing into /home/fruch/projects/scylla-cluster-tests and verifying OpenCode starts without config errors.

Usage

bash platforms/opencode/install.sh /path/to/your-project
cd /path/to/your-project && opencode

fruch added 4 commits April 26, 2026 12:19
- platforms/opencode/build.sh: 8-phase transform pipeline producing
  commands, agents, instructions, and config fragments for OpenCode
- platforms/opencode/plugin/: TypeScript plugin with tool.execute.before
  hook (destructive command blocking) and experimental.session.compacting
  hook (post-compaction workflow reminder)
- .gitignore: exclude opencode build output and node_modules
- Add install.sh for single-command Maister installation into OpenCode projects
- Fix agent filenames missing 'maister-' prefix in build output
- Fix agent prompt paths referencing wrong filenames in agent-fragment.json
- Fix Phase 2 to clean stale unprefixed agent files before rebuild
- Wrap agent-fragment.json under 'agent' key for OpenCode config format
@fruch
Copy link
Copy Markdown
Author

fruch commented Apr 26, 2026

not sure I know where to ship such a thing, too many option :(

not as in Claude, that has one official repository

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