anomalyco / anomalyco/opencode

[FEATURE]: plugin API for / commands

Open
#41,511 0 comments 0 reactions 1 assignee View on GitHub

@jlongster is already working on this.

Since Aug 10, 2026.

Dominant language
TypeScript
Stars
209k
Forks
27.5k
PR merge metrics
PR metrics pending

Description

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

For a fleeting automation plugin (part of https://github.com/mpbt-hq/starfleetctl) I would like to be able to inject all / commands directly via plugin (the plugin recieves messages from a spool and is already able to inject messages and restart turn).

most important operations for me right now are:
a) model switch --> hard-terminate the current term, switch to the given target model and restart the last term (with previous prompt / context)
b) issue /reset --> clear context (except system prompt)
c) restart failed turn (just resubmit the same request)

thx.

Note: I already had submitted it (#41086 ), but accidentally closed it because I believed it was a duplicate of #41086 - which it's not. (the other request deals with intercepting slash commands given by the user, but mine is about submitting slash commands from within a plugin, w/o the user having to do this manually)

Sorry for the noise.

Contributor guide

Open the contributing guide

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.