GeezerVison is showing github.com — feat(opencode) plugin commands by dev4s · Pull Request #7563 · anomalyco/opencode
Conversation
dev4s
commented
Jan 10, 2026
•
edited
Loading
Uh oh!
There was an error while loading. Please reload this page.
feat: Plugin Commands - Allow plugin tools to be exposed as slash commands
Summary
This PR adds a new experimental feature that allows plugin tools to optionally appear as slash commands in the autocomplete, with support for direct execution (without AI processing).
Problem
Currently, plugin tools can only be invoked by the AI. Users cannot directly invoke plugin functionality from the command input without going through the AI, which:
- Adds latency and token costs for simple operations
- Requires AI involvement for tasks that don't need it
- Limits plugin utility for status checks, statistics, and other quick queries
Backwards Compatibility
- Fully backwards compatible - Existing plugins work unchanged
command defaults to false, so existing tools remain AI-only
- Feature is behind
experimental.pluginCommands flag
- Plugin tools are still registered in ToolRegistry regardless of
command setting
Related Issues
This PR also includes a fix for plugin tool registration timing (ToolRegistry.state() now initializes after Plugin.init() in bootstrap.ts).
Sorry, something went wrong.
Uh oh!
There was an error while loading. Please reload this page.
einarpersson, arsham, PhilippPolterauer, mathe00, gingermusketeer, prathoss, ctiml, and tryweb reacted with thumbs up emoji
|
Hey! Your PR title [FEATURE] plugin commands doesn't follow conventional commit format.
Please update it to start with one of:
feat: or feat(scope): new feature
fix: or fix(scope): bug fix
docs: or docs(scope): documentation changes
chore: or chore(scope): maintenance tasks
refactor: or refactor(scope): code refactoring
test: or test(scope): adding or updating tests
Where scope is the package name (e.g., app, desktop, opencode).
See CONTRIBUTING.md for details.
|
Sorry, something went wrong.
Uh oh!
There was an error while loading. Please reload this page.
|
The following comment was made by an LLM, it may be inaccurate:
I found a potentially related PR:
Related PR:
This PR appears to be addressing a very similar feature - allowing plugin registered slash commands to execute code. This is closely related to the current PR #7563, which adds plugin commands with direct execution capabilities. These PRs may be addressing the same or overlapping functionality, so they should be compared to ensure no duplicate efforts.
|
Sorry, something went wrong.
Uh oh!
There was an error while loading. Please reload this page.
dev4s
changed the title
[FEATURE] plugin commands
feat(opencode) plugin commands
Jan 10, 2026
|
i would really love seeing one of these plugin command PRs merged!
|
dev4s and mathe00 reacted with thumbs up emoji
Sorry, something went wrong.
Uh oh!
There was an error while loading. Please reload this page.
|
Closing this pull request because it has had no updates for more than 60 days. If you plan to continue working on it, feel free to reopen or open a new PR.
|
Sorry, something went wrong.
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
Assignees
No one assigned
Milestone
No milestone
Development
Successfully merging this pull request may close these issues.
Uh oh!
There was an error while loading. Please reload this page.
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.
|