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

v0.3.2

Published

Create focused handoff prompts for continuing work in new OpenCode sessions

Readme

opencode-handoff

Create focused handoff prompts for continuing work in new sessions.

Inspired by Amp's handoff command - see their post and manual about it.

Features

  • /handoff <goal> command that analyzes the conversation and generates a continuation prompt
  • Guides the AI to include relevant @file references so the next session starts with context loaded
  • Opens a new session with the prompt as an editable draft
  • read_session tool for retrieving full conversation transcripts from previous sessions when the handoff summary isn't sufficient

Requirements

Installation

Add to your OpenCode config (~/.config/opencode/config.json):

{
  "plugin": ["[email protected]"]
}

Restart OpenCode and you're ready to go.

Pin to a specific version to ensure updates work correctly - OpenCode's lockfile won't re-resolve unpinned versions. To upgrade, change the version and restart.

Local Development

If you want to customize or contribute:

git clone https://github.com/joshuadavidthomas/opencode-handoff ~/.config/opencode/opencode-handoff
mkdir -p ~/.config/opencode/plugin
ln -sf ~/.config/opencode/opencode-handoff/src/plugin.ts ~/.config/opencode/plugin/handoff.ts

Usage

  1. Have a conversation in OpenCode with some context
  2. When ready to continue in a fresh session, type /handoff <your goal>
  3. A new session opens with the handoff prompt as an editable draft
  4. Review and edit the draft if needed, then send

Example:

/handoff implement the user authentication feature we discussed

The AI analyzes the conversation, extracts key decisions and relevant files, generates a focused prompt, and creates a new session with that prompt ready to edit.

Reading Previous Session Transcripts

When you use /handoff, the generated prompt includes a session reference line:

Continuing work from session sess_01jxyz123. When you lack specific information you can use read_session to get it.

This gives the AI in the new session access to the read_session tool, which can fetch the full conversation transcript from the source session. If the handoff summary doesn't include something you need, just ask - the AI can look it up.

Example:

You: What were the specific error messages we saw earlier?

The AI will use read_session to retrieve details from the previous session that weren't included in the handoff summary.

Contributing

Contributions are welcome! Here's how to set up for development:

git clone https://github.com/joshuadavidthomas/opencode-handoff
cd opencode-handoff
bun install

Then symlink the plugin to your OpenCode config:

mkdir -p ~/.config/opencode/plugin
ln -sf "$(pwd)/src/plugin.ts" ~/.config/opencode/plugin/handoff.ts

License

opencode-handoff is licensed under the MIT license. See the LICENSE file for more information.


opencode-handoff is not built by, or affiliated with, the OpenCode team.

OpenCode is ©2025 Anomaly.