feat: add experimental support for remote skills and commands via wellknown#6782
Closed
elithrar wants to merge 4 commits intoanomalyco:devanomalyco/opencode:devfrom
Closed
feat: add experimental support for remote skills and commands via wellknown#6782elithrar wants to merge 4 commits intoanomalyco:devanomalyco/opencode:devfrom
elithrar wants to merge 4 commits intoanomalyco:devanomalyco/opencode:devfrom
Conversation
…lknown Adds support for centralized skill and command directories served via .well-known/opencode endpoints. Enterprises can host shared skills and commands that are automatically discovered when users authenticate. - Add WellKnown utility module for fetching/caching remote resources - Extend skill and command loading to support remote sources - Remote skills/commands namespaced as hostname:name - Add experimental.remote_skills and experimental.remote_commands flags - Add 'opencode auth refresh' command to refresh cached data - Local resources take precedence over remote
Remote skills and commands now use their plain name by default. They only get namespaced (hostname:name) if there's a collision with a local skill/command of the same name.
…in remote commands
f7db165 to
c37b635
Compare
Collaborator
|
Dax will review this one |
This was referenced Jan 5, 2026
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.
Adds support for centralized skill and command directories served via
.well-known/opencodeendpoints. Enterprises can host shared skills and commands that are automatically discovered when users authenticate to a wellknown endpoint.Changes
WellKnownutility module (src/util/wellknown.ts) for fetching and caching remote resourcessrc/skill/skill.ts) to discover and lazily fetch remote skillssrc/command/index.ts) to discover and lazily fetch remote commandsexperimental.remote_skillsandexperimental.remote_commandsconfig flagsopencode auth refresh [url]command to refresh cached wellknown datanew
.well-knownResponse{ "auth": { "command": ["company-auth", "token"], "env": "COMPANY_TOKEN" }, "config": { "enterprise": { "url": "https://enterprise.example.com" } }, "skills": { "web-perf": { "description": "Analyzes web performance using Chrome DevTools MCP. Measures Core Web Vitals, identifies render-blocking resources, and accessibility gaps.", "url": "https://enterprise.example.com/.well-known/opencode/skills/web-perf/SKILL.md" }, "gitlab": { "description": "Use for GitLab repos. Provides glab CLI commands for MRs, CI/CD, and issues.", "url": "https://enterprise.example.com/.well-known/opencode/skills/gitlab/SKILL.md" }, "gh": { "description": "GitHub CLI workflows. Use for creating PRs, managing issues, and working with GitHub Actions.", "url": "https://enterprise.example.com/.well-known/opencode/skills/gh/SKILL.md" } }, "commands": { "deploy": { "description": "Deploy to production via internal CI", "url": "https://enterprise.example.com/.well-known/opencode/commands/deploy.md" } } }Server Directory Structure
Usage
Disable via Config
{ "experimental": { "remote_skills": false, "remote_commands": false } }Out of Scope
Progressive disclosure for remote skills:
reference.md,scripts/, etc.) relative to the skill's base directory.files: []array or support for fetching related files? or use WebFetch?