Skip to content

[FEATURE]: Allow plugins to register slash commands #10262

@nsoufian

Description

@nsoufian

Feature hasn't been suggested before.

  • 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.

Metadata

Metadata

Assignees

Labels

discussionUsed for feature requests, proposals, ideas, etc. Open discussion

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions