Skip to content

About

Enhanced OpenCode 2 composer with configurable widgets and an in-TUI settings editor.

Topics

Resources

Stars

0 stars

Watchers

0 watching

Forks

Repository files navigation

Enhanced Composer

Enhanced Composer is an OpenCode 2 TUI plugin that replaces the prompt footer and draws configurable status widgets above and below the composer.

A Nerd Font is required to display all default glyphs correctly. If you prefer not to use a nerd font, use Customize footer (/customize-footer) to replace those icons with text or hide them.

Example composer — left corner widgets   Example composer — right corner widgets

Every widget can be moved between the four corners of the composer, reordered, and hidden. Most widgets also have appearance controls; TPS always uses a ~N t/s rate label.

Configure it from the in-TUI Customize footer editor (/customize-footer) or by editing cli.json. Configuration lists every setting, what it changes, and the editor keys.

Install

The minimum supported OpenCode 2 version is 2.0.11. The published package path is tested in the official Linux TUI on 2.0.11, 2.2.0, 2.2.3, and 2.3.0. See Development for what each check covers.

Install with the CLI's plugin command, which adds the entry to cli.json for you.

opencode plugin add opencode2-enhanced-composer

Or add the package to cli.json yourself:

{
  "plugins": ["opencode2-enhanced-composer"]
}

OpenCode reuses the newest cached generation for the configured package specifier. To install a newer release, update the plugin and restart the TUI.

opencode plugin update opencode2-enhanced-composer

Pass the configured specifier to the update command if you use a tag or a version range. To move an exact version pin, edit the version in cli.json.

Run from source

From the repository root, install the development dependencies before opening OpenCode 2:

npm ci

Point a path entry in cli.json at this repository's directory:

{
  "plugins": [
    {
      "package": "/absolute/path/to/opencode2-enhanced-composer"
    }
  ]
}

The entry must be a directory containing a tui.tsx entry file. OpenCode 2 skips entries that point at a file, so aiming at src/footer.tsx or dist/tui.js directly loads nothing. Development covers the commands and the build.

Documentation

Document Contents
Configuration Every option, the settings editor, and what each widget shows.
Development Commands, tests, build, and CI.
Architecture Module map, data flow, and design invariants.
Release Maintainer runbook.
options.schema.json Machine-readable options schema.

About

Enhanced OpenCode 2 composer with configurable widgets and an in-TUI settings editor.

Topics

Resources

Stars

0 stars

Watchers

0 watching

Forks

Releases

Packages

Used by

Contributors

Languages