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

opencode-byterover

v0.1.8

Published

OpenCode ByteRover Plugin

Readme

Overview

opencode-byterover is an OpenCode plugin that connects OpenCode sessions to ByteRover through @byterover/brv-bridge.

The plugin persists useful session context when sessions become idle or compact, then recalls relevant context during system prompt transformation.

Prerequisites

  • OpenCode with plugin support enabled.
  • ByteRover CLI installed and available as brv, or a custom executable path configured with brvPath.
  • ByteRover initialized for the project you want OpenCode to use as memory.

Verify the CLI is reachable before enabling the plugin:

brv --help

Installation

Add the plugin to your OpenCode configuration:

{
  "$schema": "https://opencode.ai/config.json",
  "plugin": ["opencode-byterover"]
}

For custom settings, use the tuple form shown below.

Verify Setup

After starting OpenCode in a repository with the plugin enabled:

  • .brv/.gitignore should be created or updated with an opencode-byterover managed block.
  • OpenCode logs should include entries with service: "byterover".
  • If ByteRover is unavailable, OpenCode should show a warning toast unless quiet is enabled.

Configuration

The plugin accepts these optional settings:

  • enabled: enable or disable the plugin without removing it from config. Defaults to true.
  • brvPath: custom ByteRover CLI path. Defaults to brv (assuming it's in the system PATH).
  • searchTimeoutMs: ByteRover search timeout in milliseconds. Defaults to 30000.
  • recallTimeoutMs: ByteRover recall timeout in milliseconds. Defaults to 30000.
  • persistTimeoutMs: ByteRover persist timeout in milliseconds. Defaults to 60000.
  • quiet: suppress toast notifications for ByteRover operations. Defaults to false.
  • autoRecall: automatically recall and inject ByteRover context into prompts. Defaults to true.
  • autoPersist: automatically curate session turns into ByteRover. Defaults to true.
  • manualTools: register manual ByteRover recall, search, and persist tools. Defaults to true.
  • contextTagName: XML-style tag name used for injected recall context. Defaults to byterover-context.
  • recallPrompt: custom instruction text used before the recent conversation sent to ByteRover recall.
  • persistPrompt: custom instruction text used before the conversation turn sent to ByteRover curation.
  • maxRecallTurns: maximum recent user turns used to resolve recall context. Defaults to 3.
  • maxRecallChars: maximum recent conversation characters used for recall. Defaults to 4096.

Numeric timeout and limit values must be positive integers. brvPath, recallPrompt, and persistPrompt must be non-empty strings. contextTagName must be a simple XML-style tag name such as byterover-context.

Manual Tools

When manualTools is enabled, the plugin exposes three OpenCode tools:

  • brv_recall: asks ByteRover to synthesize relevant memory for a raw query. Accepts optional timeoutMs.
  • brv_search: performs ranked file-level ByteRover memory search with optional limit, scope, and timeoutMs arguments.
  • brv_persist: persists raw memory text directly into ByteRover without automatic curation prompt wrapping. Defaults to fire-and-forget mode and accepts optional timeoutMs for long-running writes.

When autoRecall and autoPersist are enabled, the system prompt tells the agent to rely on automatic memory for routine behavior instead of consistently calling manual tools. If either automatic behavior is disabled, the prompt instead tells the agent to use the manual tools when durable memory is useful.

Use manual recall or search when the agent needs targeted context beyond automatic recall. Use manual persist when there is a durable fact, decision, preference, or technical detail that should be saved immediately instead of waiting for idle-session curation.

Example

{
  "$schema": "https://opencode.ai/config.json",
  "plugin": [
    [
      "opencode-byterover",
      {
        "enabled": true,
        "brvPath": "brv",
        "searchTimeoutMs": 30000,
        "recallTimeoutMs": 30000,
        "persistTimeoutMs": 60000,
        "autoRecall": true,
        "autoPersist": true,
        "manualTools": true,
        "contextTagName": "byterover-context",
        "recallPrompt": "Recall relevant project context for the latest user request.",
        "persistPrompt": "Curate durable facts, decisions, preferences, and technical details.",
        "maxRecallTurns": 3,
        "maxRecallChars": 4096
      }
    ]
  ]
}

Development

pnpm install
pnpm format:check
pnpm lint
pnpm test
pnpm typecheck
pnpm build

Releases

This package uses Changesets and GitHub Actions for releases.

Create a release note for user-facing changes:

pnpm changeset

Merging the generated release PR publishes the package to npm through trusted publishing.