npm package discovery and stats viewer.

Discover Tips

  • General search

    [free text search, go nuts!]

  • Package details

    pkg:[package-name]

  • User packages

    @[username]

Sponsor

Optimize Toolset

I’ve always been into building performant and accessible sites, but lately I’ve been taking it extremely seriously. So much so that I’ve been building a tool to help me optimize and monitor the sites that I build to make sure that I’m making an attempt to offer the best experience to those who visit them. If you’re into performant, accessible and SEO friendly sites, you might like it too! You can check it out at Optimize Toolset.

About

Hi, 👋, I’m Ryan Hefner  and I built this site for me, and you! The goal of this site was to provide an easy way for me to check the stats on my npm packages, both for prioritizing issues and updates, and to give me a little kick in the pants to keep up on stuff.

As I was building it, I realized that I was actually using the tool to build the tool, and figured I might as well put this out there and hopefully others will find it to be a fast and useful way to search and browse npm packages as I have.

If you’re interested in other things I’m working on, follow me on Twitter or check out the open source projects I’ve been publishing on GitHub.

I am also working on a Twitter bot for this site to tweet the most popular, newest, random packages from npm. Please follow that account now and it will start sending out packages soon–ish.

Open Software & Tools

This site wouldn’t be possible without the immense generosity and tireless efforts from the people who make contributions to the world and share their work via open source initiatives. Thank you 🙏

© 2026 – Pkg Stats / Ryan Hefner

@seonggukchoi/opencode-claude-code-plugin

v0.3.1

Published

OpenCode plugin helpers for the Claude Code CLI provider

Readme

@seonggukchoi/opencode-claude-code-plugin

한국어

Companion OpenCode plugin for @seonggukchoi/opencode-claude-code-provider.

Overview

This plugin bridges OpenCode's chat lifecycle with the Claude Code provider. It normalizes provider options on every chat request, maps OpenCode's session ID to the provider's session model, isolates title-generation sessions to prevent them from interfering with the main conversation, and appends a short system note for CLI-aware behavior.

Installation

npm install @seonggukchoi/opencode-claude-code-plugin

Register it alongside the provider in opencode.json:

{
  "plugin": ["@seonggukchoi/opencode-claude-code-plugin"],
  "provider": {
    "claude-code": {
      "npm": "@seonggukchoi/opencode-claude-code-provider",
      "models": {
        "sonnet": { "id": "claude-sonnet-4-6[1m]" },
        "opus": { "id": "claude-opus-4-6[1m]" },
        "haiku": { "id": "claude-haiku-4-5" }
      }
    }
  }
}

What it does

Parameter normalization (chat.params)

On every chat request targeting the claude-code provider, the plugin validates and normalizes the following options before they reach the provider:

| Option | Behavior | | ---------------------------- | ------------------------------------------------------------------------ | | effort | Validated against low, medium, high, max; invalid values dropped | | env | Ensured to be a string-valued record; non-string entries filtered out | | pathToClaudeCodeExecutable | Defaults to "claude" if empty or missing | | sessionId | Mapped from OpenCode's sessionID (see below) |

Other options already present in output.options (e.g. logFile) are preserved as-is via spread.

Session ID mapping

The plugin forwards OpenCode's sessionID to the provider so that the Claude Code CLI session can be resumed across turns, keeping the prompt cache warm.

For title-generation requests (where agent === "title"), the session ID is prefixed with title- to produce a separate Claude CLI session. Without this, the title agent and the main conversation would share the same CLI session, causing messages to be mixed.

System note (experimental.chat.system.transform)

Appends a short instruction reminding Claude that it is running through the CLI provider and should keep tool narration concise.

Important notes

  • The plugin only activates for requests where providerID === "claude-code". Other providers are unaffected.
  • The plugin does not handle authentication. Claude Code CLI must be authenticated separately via claude auth login.
  • The plugin does not store API keys or OAuth tokens.

Development

pnpm --filter @seonggukchoi/opencode-claude-code-plugin build
pnpm --filter @seonggukchoi/opencode-claude-code-plugin test
pnpm --filter @seonggukchoi/opencode-claude-code-plugin lint

License

MIT