Skip to content

fix: agents spec alignment#26540

Closed
EduSantosBrito wants to merge 1 commit into
anomalyco:devfrom
EduSantosBrito:fix/agents-spec-alignment
Closed

fix: agents spec alignment#26540
EduSantosBrito wants to merge 1 commit into
anomalyco:devfrom
EduSantosBrito:fix/agents-spec-alignment

Conversation

@EduSantosBrito

@EduSantosBrito EduSantosBrito commented May 9, 2026

Copy link
Copy Markdown
Contributor

Issue for this PR

Fixes #11972

Related: #20474, #21793

Type of change

  • Bug fix
  • New feature
  • Refactor / code improvement
  • Documentation

What does this PR do?

Supports the Agent Skills disable-model-invocation frontmatter field.

Per https://agentskills.io/client-implementation/adding-skills-support#filtering, skills can include metadata that controls model-facing invocation. When disable-model-invocation: true is present, OpenCode now excludes that skill from the model-facing available skills catalog while keeping the skill loadable by explicit name.

This lets manual/internal skills stay available without spending model context or encouraging automatic model activation.

Also updates the OpenCode skills docs and regenerates the JS SDK type.

How did you verify your code works?

  • bun test test/skill/skill.test.ts --timeout 30000
  • bun typecheck in packages/opencode
  • bun typecheck in packages/sdk/js

Screenshots / recordings

Not applicable. No UI changes.

Checklist

  • I have tested my changes locally
  • I have not included unrelated changes in this PR

@EduSantosBrito EduSantosBrito force-pushed the fix/agents-spec-alignment branch from 4b05a4e to c636aec Compare May 9, 2026 16:42
@dance4rce

Copy link
Copy Markdown

+1
Really needed to get rid of commands at last

@github-actions

github-actions Bot commented Jun 9, 2026

Copy link
Copy Markdown
Contributor

Automated PR Cleanup

Thank you for contributing to opencode.

Due to the high volume of PRs from users and AI agents, we periodically close older PRs using automated criteria so maintainers can focus review time on the most active and community-supported contributions.

This PR was closed because it matched the following cleanup criteria:

  • The PR was created more than 1 month ago
  • The PR had fewer than 2 positive reactions
  • Positive reactions are counted as thumbs-up, heart, celebration, or rocket reactions on the PR

PRs created within the last month are not affected by this cleanup.

If you believe this PR was closed incorrectly, or if you are still actively working on it, please leave a comment explaining why it should be reopened. A maintainer can review and reopen it if appropriate.

Thanks again for taking the time to contribute.

@CharlieJ-BGS

Copy link
Copy Markdown

@EduSantosBrito you have 3 positive reactions now. Do you want to try re-opening this PR?

@EduSantosBrito

Copy link
Copy Markdown
Contributor Author

I cannot reopen it saddly :/

@rekram1-node Maybe it's worth a reopen?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

feat: Support disable-model-invocation field in skill frontmatter

3 participants