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-worktrunk

v0.2.1

Published

Show OpenCode session status in worktrunk's wt list output

Downloads

84

Readme

opencode-worktrunk

See which worktrees have active OpenCode sessions at a glance.

An OpenCode plugin that shows session status markers in worktrunk's wt list output.

What It Does

When you're running OpenCode in a git worktree, this plugin automatically sets status markers that appear in wt list:

$ wt list
  Branch       Status        HEAD±    main↕  Remote⇅  Path                 Commit    Age   Message
@ main             ^⇡                         ⇡1      .                    33323bc1  1d    Initial commit
+ feature-api      ↑ 🤖              ↑1               ../repo.feature-api  70343f03  1d    Add REST API endpoints
+ review-ui      ? ↑ 💬              ↑1               ../repo.review-ui    a585d6ed  1d    Add dashboard component
+ wip-docs       ? –                                  ../repo.wip-docs     33323bc1  1d    Initial commit
  • 🤖 — OpenCode is working
  • 💬 — OpenCode is waiting for input

Prerequisites

  • worktrunk must be installed (cargo install worktrunk or brew install max-sixty/tap/worktrunk)
  • OpenCode v0.1.0+

Installation

Via npm (recommended)

Add to your OpenCode config:

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

Via local plugin

Copy the plugin file to your OpenCode plugins directory:

mkdir -p ~/.config/opencode/plugins
curl -o ~/.config/opencode/plugins/worktrunk.ts \
  https://raw.githubusercontent.com/jradtilbrook/opencode-worktrunk/main/src/plugin/index.ts

How It Works

The plugin listens to OpenCode session events:

| Event | Marker | Meaning | |-------|--------|---------| | session.status (busy) | 🤖 | AI is actively working | | session.idle | 💬 | AI is waiting for your input | | session.deleted | (cleared) | Session ended |

Markers are stored in git config and persist until cleared. If you close OpenCode without a clean session end (e.g., Ctrl+C), the marker may persist — just run wt config state marker clear to reset it.

Manual Marker Control

You can also set markers manually for any workflow:

wt config state marker set "🚧"                   # Current branch
wt config state marker set "✅" --branch feature  # Specific branch
wt config state marker clear                      # Clear current branch
wt config state marker clear --all                # Clear all markers

Related

License

MIT