Skip to content

Feat/opencode configuration - #1

Merged
Jakub-Vacek merged 17 commits into
mainfrom
feat/opencode-configuration
Jun 24, 2026
Merged

Feat/opencode configuration#1
Jakub-Vacek merged 17 commits into
mainfrom
feat/opencode-configuration

Conversation

@Jakub-Vacek

Copy link
Copy Markdown
Collaborator

This PR adds complete Open Code configuration. Most important files are index.ts, package.json and ci/cd publish yaml.
OpenCode has different approach to plugins - plugins are NPM packages that set up Open Code instance (including agents/skills/rules/MCP and even ENVs) to use specific capabilities. Actual package is basically one file that provides Plugin type (defined by open-code SDK) and dependencies definition in package.json

Dependencies of this PR
NPM_TOKEN GitHub secret must be set on this repo
Internal repo token will likely has to be updated to have rights to write content to this repo.

Testing the Open Code plugin
There are two levels of testing:

  • index.ts testing that the file actually works - make sense only for internal (DXH) testing
  • Complete flow - needs actual public package to test the whole flow

Intended flow from OpenCode perspective:

  1. User directly sets two rows in their opencode.json or run open code client command => Apify package (published from this repo) is mentioned in opencode.json
  2. When open code is started it uses code from package to set up the environment

Intended flow from Apify perspective:

  1. Internal repo (https://github.com/apify/apify-plugins-internal) we "feed" actual agent/skill/rules to this repo (using internal repo CI/CD). Same as for other platforms
  2. On release (so manual decision) new version of this package is released
  3. Users use that package to "set up" the open code to use Apify

Copilot AI left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Pull request overview

This PR scaffolds an Apify plugin package for Open Code, including TypeScript configuration, package metadata/docs, and a GitHub Actions workflow to publish the plugin to npm on GitHub Releases.

Changes:

  • Adds an Open Code plugin entrypoint (index.ts) that configures the Apify MCP server, agent prompt, skills path, tool allowlist, and env passthrough.
  • Introduces npm packaging metadata (package.json), TypeScript config (tsconfig.json), and release-time publishing workflow (.github/workflows/publish.yml).
  • Adds project documentation and release metadata (README.md, CHANGELOG.md, LICENSE, .gitignore).

Reviewed changes

Copilot reviewed 6 out of 8 changed files in this pull request and generated 9 comments.

Show a summary per file
File Description
index.ts Plugin entrypoint that wires MCP/agent/skills/instructions into the Open Code config.
package.json Declares the npm package and its published files/scripts/dependencies.
tsconfig.json TypeScript compiler configuration for the plugin entrypoint.
.github/workflows/publish.yml Publishes the package to npm on GitHub Release publication.
README.md User-facing installation/usage docs for the Open Code plugin.
CHANGELOG.md Initial changelog entry for v1.0.0.
LICENSE Apache-2.0 license text.
.gitignore Ignores node_modules.

💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.

Comment thread index.ts Outdated
Comment thread index.ts
Comment thread package.json
Comment thread package.json
Comment thread .github/workflows/publish.yml Outdated
Comment thread README.md
Comment thread README.md Outdated
Comment thread package.json
Comment thread README.md Outdated
Jakub-Vacek and others added 7 commits June 18, 2026 08:14
Co-authored-by: Copilot Autofix powered by AI <175728472+Copilot@users.noreply.github.com>
Co-authored-by: Copilot Autofix powered by AI <175728472+Copilot@users.noreply.github.com>
Co-authored-by: Copilot Autofix powered by AI <175728472+Copilot@users.noreply.github.com>
Co-authored-by: Copilot Autofix powered by AI <175728472+Copilot@users.noreply.github.com>
Co-authored-by: Copilot Autofix powered by AI <175728472+Copilot@users.noreply.github.com>
Co-authored-by: Copilot Autofix powered by AI <175728472+Copilot@users.noreply.github.com>

Copilot AI left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Pull request overview

Copilot reviewed 6 out of 8 changed files in this pull request and generated 6 comments.

Comment thread index.ts
Comment thread README.md
Comment thread .github/workflows/publish.yml Outdated
Comment thread index.ts Outdated
Comment thread index.ts Outdated
Comment thread CHANGELOG.md
Jakub-Vacek and others added 2 commits June 18, 2026 08:50
Co-authored-by: Copilot Autofix powered by AI <175728472+Copilot@users.noreply.github.com>
@Jakub-Vacek
Jakub-Vacek requested a review from jirispilka June 18, 2026 07:19

@jirispilka jirispilka left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I'm not sure how it should work but the README could be improved.
It is kind of mixing MCP, CLI, and SKD integration, which is a bit confusing at a first glance.

I understand it now but I was confused at the beginning.

Otherwise it looks ok.

Comment thread README.md Outdated
Co-authored-by: Jiří Spilka <jiri.spilka@apify.com>
@Jakub-Vacek
Jakub-Vacek merged commit ea1c1a0 into main Jun 24, 2026
1 check passed
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.

4 participants