You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
[FEATURE]: Allow plugins to register slash commands #10262
I have verified this feature I'm about to request hasn't been suggested before.
Describe the enhancement you want to request
Problem
Plugin authors currently have no mechanism to interact with users through the OpenCode interface.
Limitations
Plugins cannot register dynamic slash commands that appear in the command list
Plugins cannot trigger plugin-managed processes from user input
Plugins cannot update internal state through UI interactions
Impact
This limits what plugins can offer. Common use cases like toggling plugin modes, triggering syncs, or managing plugin configuration require workarounds outside the OpenCode interface.
Expected behavior
Plugins should be able to define slash commands that users can invoke directly, with the output persisted as session messages.
These issues explore similar concepts of extending plugin capabilities for user interaction. Feel free to ignore if your specific use case differs from these.
changed the title [-][FEATURE]: Allow plugins to register slash commands for user interaction[/-][+][FEATURE]: Allow plugins to register slash commands[/+]on Jan 23, 2026
I'm building a plugin (claude-compat) that reads .claude/skills/ and exposes user-invocable skills as slash commands in OpenCode, without file duplication.
Current Workaround Limitation
Today, I can expose skills as tools via the tool hook, but this requires agent mediation. The user must say "use the investigar skill" instead of typing /investigar directly.
Activity
github-actions commentedon Jan 23, 2026
This issue might be a duplicate of existing issues. Please check:
These issues explore similar concepts of extending plugin capabilities for user interaction. Feel free to ignore if your specific use case differs from these.
[-][FEATURE]: Allow plugins to register slash commands for user interaction[/-][+][FEATURE]: Allow plugins to register slash commands[/+]pablontiv commentedon Jan 29, 2026
Use Case: Claude Code Compatibility Plugin
I'm building a plugin (
claude-compat) that reads.claude/skills/and exposes user-invocable skills as slash commands in OpenCode, without file duplication.Current Workaround Limitation
Today, I can expose skills as tools via the
toolhook, but this requires agent mediation. The user must say "use the investigar skill" instead of typing/investigardirectly.What I Need
The proposed
commandhook would allow:Benefits
.claude/)/skill-nameUX$ARGUMENTSsubstitution matching Claude Code behaviorHappy to help implement this if the design is approved.
grota commentedon Feb 4, 2026
Wouldn't an approach like this one fit the need?
Admittedly, since it seems too easy, I might have misunderstood the scope of the request.
github-actions commentedon Apr 6, 2026
To stay organized issues are automatically closed after 90 days of no activity. If the issue is still relevant please open a new one.