Skip to content

capyBearista/opencode-plugins

Repository files navigation

OpenCode Plugins logo

npm downloads opencode license

CI ask deepwiki

A collection of plugins for the OpenCode AI harness. These extensions add quality-of-life improvements, user interface features, and new configuration standards.

Meet The Plugins

Adversarial code review that challenges your implementation approach and design choices, not just finding bugs. Uses a clean-context subagent so the review stays unbiased by conversation history, prioritizing auth gaps, data loss, etc. Returns structured JSON findings with severity, confidence scores, and recommendations.

Inspired by Codex

Preserves OpenCode provider system prompts when custom agents add their own instructions. Uses the experimental.chat.system.transform hook to stitch the base provider prompt and custom agent prompt together, preventing custom agents from discarding base model behaviors.

Extends command and agent discovery to the .agents/ directory standard. This enables interoperability with other AI tools and keeps project configuration organized.

A keyboard-driven UI extension. Double-tap the Escape key to instantly open the session timeline modal without typing commands or using a mouse.

Inspired by Claude Code

Persistent response styles for OpenCode sessions. This plugin injects selected guidelines (like "explanatory" or "learning" modes) into the system prompt so they stay active across your session.

Inspired by Claude Code

Zero-dependency RAM monitoring for OpenCode sessions. Shows live session memory usage in the sidebar and adds a /ram command for a detailed process tree and aggregate OpenCode RAM totals.

Installation

You can install any of these plugins globally or project-locally using the OpenCode CLI:

opencode plugin add -g @capybearista/opencode-adversarial-review@latest    # global install
opencode plugin add @capybearista/opencode-adversarial-review@latest       # project-local install

Alternatively, add them directly to your opencode.json/opencode.jsonc configuration file:

{
  "plugin": [
    "@capybearista/opencode-adversarial-review@latest",
    "@capybearista/opencode-ram-monitor@latest",
    "@capybearista/opencode-output-styles@latest",
    "@capybearista/opencode-agents-loader@latest",
    "@capybearista/opencode-agent-prompt-inheritance@latest"
  ]
}

For TUI-based plugins, add them directly to tui.json/tui.jsonc:

{
  "plugin": [
    "@capybearista/opencode-double-tap-timeline@latest",
    "@capybearista/opencode-ram-monitor@latest"
  ]
}

Updating

OpenCode does NOT care about the @latest tag after initial installation of a plugin. Instead, you must either manually set and change the tag (e.g., @1.0.0 to @2.0.0) or simply run this command:

rm -rf ~/.cache/opencode/packages/<plugin-name>@latest/
opencode plugin <plugin-name>@latest --global

What Should I Build Next?

Every plugin here started because someone hit a wall with OpenCode and thought "there's gotta be a better way."

I usually browse through Reddit and the GitHub Issues section of the OpenCode repo, noticing people griping about their workflows. But if you've got a concrete idea and want to put it directly in front of me, I'm all ears :)

Got a brand-new plugin idea? Open a plugin proposal issue.

Already using a plugin and something's off? Or maybe you've got an idea to enhance an existing plugin or the monorepo itself? Open a feature request issue.

Shoutouts

Plugins I've personally used and highly recommend! Some of these are genuinely underrated and have massive potential.

Name Use case Description
opencode-quota Keep track of your provider subscriptions in OpenCode Token usage and quota tracking for Anthropic, OpenAI, Copilot, and more—reports in terminal with zero context pollution.
opencode-snippets Expand #tags into text anywhere, instantly Hashtag-based snippet expansion. Just type #name to inject pre-defined code blocks, configs, or prompts inline. You can even put them in commands.
opencode-dcp Caps token waste from stale context Context-aware compression intelligently prunes old tool outputs to keep context lean and reduce token burn.
cc-safety-net Prevents dangerous commands like rm -rf and git reset --hard Intercepts destructive git and filesystem commands before they execute, giving you a chance to abort before your agent deletes your entire project.
opencode-command-hooks Run scripts on session events without writing a plugin Declarative event hooks for shell commands via YAML/JSON. You can even attach scripts to lifecycle events like tool.execute.after.
opencode-agent-identity Distinguish which sub-agent said what in multi-agent sessions Per-message attribution so each agent knows its role and which message came from which source.
opencode-mem Retain long-term context across sessions Persistent memory for AI coding agents with SQLite + USearch indexing, automatic user profile learning, and a visual web UI. It's even got a nice web UI to check stored memories!
opencode-notifier Know when sessions finish without watching the terminal Highly customizable desktop notifications and sounds for permission prompts, completion, and errors so you never miss a beat.

Development

This project is a monorepo managed with Bun and Turborepo.

# Install dependencies
bun install

# Build all plugins
bun run build

# Run tests
bun run test

Please review the contribution guidelines before contributing :)

Disclaimer

This project is not affiliated with the anomalyco/opencode team in any way. These plugins are independently developed and maintained. I do this for the love of the game ¯\(ツ)

License

MPL-2.0

About

Curated collection of plugins for the OpenCode AI harness, adding quality-of-life improvements, UI features, and new configuration standards.

Topics

Resources

License

Contributing

Stars

Watchers

Forks

Sponsor this project

 

Contributors