Skip to content

About

OpenCode TUI plugins

Resources

Stars

3 stars

Watchers

0 watching

Forks

Repository files navigation

OpenCode plugins

Small plugins for OpenCode. Each package supports OpenCode 1 and OpenCode 2.

Plugins

Shows what the current and previous prompt turns cost in the sidebar Context section, and what each model spent in the session.

A new turn on another model: the turn costs reset and a third model row appears
opencode2 plugin add opencode-cost-details

Shows GitHub pull requests opened by the current session. Every title links to GitHub.

Pull requests opened by an OpenCode session
opencode2 plugin add opencode-prs

Searches every prompt and reply of every session, typos included. Open it with ctrl+x f, /search or the field under the home prompt.

Typing rate limit in the search dialog, results narrowing with the matching words highlighted
opencode2 plugin add opencode-find-sessions

Keeps your computer awake while a session works, including with the laptop lid closed on macOS and Linux.

opencode2 plugin add opencode-awake

See each plugin README for OpenCode 1 installation and configuration.

Development

pnpm install
pnpm typecheck
pnpm test

Packages live under packages/. Each package builds its TypeScript and JSX into dist/ before publishing because OpenCode loads published plugins from node_modules.

To use the plugins from this checkout:

pnpm dev:link
pnpm dev

dev:link configures the compiled plugin directories in cli.json and removes the published versions. dev rebuilds the plugins when their source changes. Restart the OpenCode client after a rebuild to load it.

Restore the published configuration with:

pnpm dev:unlink

Releasing

Releases use Changesets and npm trusted publishing. There is no npm token in the repository.

  1. Run pnpm changeset in a feature branch and commit the generated file.
  2. Merge the feature PR. CI opens or updates release: version packages.
  3. Merge the release PR. CI publishes every changed package to npm and tags the release.

Each npm package must trust the release.yml workflow in vvo/opencode-plugins. The job that holds the npm token installs no dependencies: it publishes tarballs that an earlier job built and tested without access to npm.

License

MIT

About

OpenCode TUI plugins

Resources

Stars

3 stars

Watchers

0 watching

Forks

Releases

Packages

Used by

Contributors

Languages