Skip to content

Latest commit

 

History

8 Commits

Folders and files

NameName
Last commit message
Last commit date
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

🧩 opencode-plugins

TypeScript opencode MIT

A small collection of opencode plugins by kud.


The opencode counterpart of kud/claude-plugins. Each plugin is a single TypeScript file, published to npm as @kud/opencode-<name>: name it in your opencode config, pinned to a version, and forget about it. There is no build step.

These are opencode v2 plugins and need opencode 2.1.0 or later.

Features

  • One file per plugin. Read the whole thing in a sitting, copy it, tweak it.
  • Loaded as-is. opencode runs the .ts directly: nothing to compile or bundle.
  • Typechecked. Every plugin is checked against the real @opencode/plugin and @opentui types, so API drift shows up here before it shows up in your terminal.
  • Easy to switch off. Each plugin registers under its own ID, so a single -<id> entry in plugins turns it off without touching the rest of your setup.
  • Small and focused. Plugins do one job and leave the rest of opencode alone.

Plugins

Plugin Kind What it does
statusline TUI The prompt's footer row as a statusline: path, branch, provider, model and title.
shell-highlighting TUI Shell command names in the theme's amber, in file views and sh/zsh code fences.

Install

TUI plugins go in ~/.config/opencode/cli.json. Name the package, pinned to a version:

{
  "plugins": [
    "@kud/opencode-statusline@0.1.1",
    "@kud/opencode-shell-highlighting@0.1.0"
  ]
}

opencode installs them on the next start. Each plugin's README lists the built-ins it pairs with.

Development

git clone https://github.com/kud/opencode-plugins.git
cd opencode-plugins
npm install
npm run typecheck

typecheck runs tsc --noEmit and is the only script: there is no build and no test suite. Plugins live under plugins/<name>/ as a single .ts file with its own package.json and README, and each is released by pushing a <name>-v<version> tag.

License

MIT © kud

Releases

Packages

Contributors

Languages