Skip to content

Latest commit

 

History

History
82 lines (56 loc) · 1.97 KB

File metadata and controls

82 lines (56 loc) · 1.97 KB

@four-bytes/four-opencode-{PLUGIN}

{ONE_LINE_TAGLINE} — clear value proposition in one sentence.

npm license bun

Why?

{2-3 sentences explaining the problem this plugin solves and who it's for. Be specific: "For opencode users who..."}

Quickstart

# Install globally (server + TUI)
opencode plugin @four-bytes/four-opencode-{PLUGIN} -g

Or manually in ~/.config/opencode/opencode.json:

{
  "plugin": ["file:///home/user/four-opencode-{PLUGIN}/dist/four-opencode-{PLUGIN}.js"]
}

If the plugin has a TUI sidebar: also register in ~/.config/opencode/tui.json:

{
  "plugin": [["/home/user/four-opencode-{PLUGIN}", { "enabled": true, "sidebar": true }]]
}

Restart opencode after adding. For npm-distributed plugins, opencode plugin <name> -g handles both files automatically.

Configuration

Sample .opencode/{plugin}.json:

{
  "enabled": true
}
Field Type Default Description
enabled boolean true Enable/disable the plugin

Tools

Tool Token Savings Description
tool_name ~XX% What it does

tool_name

Use when: {When should an agent use this tool?}

Param Type Default Description
param string ...

Contributing

PRs welcome! See CONTRIBUTING.md for dev setup.

bun install
bun run build
bun test

Requirements: Bun >= 1.0, opencode with plugin support.

License

Apache-2.0 — see LICENSE


If this plugin saves you tokens or time, consider leaving a ⭐ on GitHub.