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

v1.1.2

Published

OpenCode plugin for seamless session continuation when context windows fill up

Readme

opencode-session-handoff

An OpenCode plugin for seamless session continuation when context windows fill up.

Installation

Add to your ~/.config/opencode/opencode.json:

{
  "plugin": ["opencode-session-handoff"]
}

Then restart OpenCode. The plugin will auto-update when new versions are released.

What it does

When your OpenCode session gets too long, use session_handoff to:

  1. Create a new session titled "Handoff: {previous title}"
  2. Transfer a compact continuation prompt (~100-200 tokens)
  3. Preserve your agent mode and model settings
  4. Open the session picker so you can switch to it

Tools

session_handoff

Creates a new session with continuation context.

Usage: Say "handoff" or "handoff <goal>"

Examples:

  • handoff - Creates a handoff with summary of current work
  • handoff implement the login feature - Creates a handoff with goal "implement the login feature"
  • handoff fix the failing tests - Creates a handoff with goal "fix the failing tests"

Arguments (provided by the assistant):

  • summary (required): 1-3 sentence summary of current state
  • goal (optional): What the user wants to accomplish in the next session (extracted from "handoff ")
  • next_steps (optional): Remaining tasks
  • blocked (optional): Current blocker
  • key_decisions (optional): Important decisions made
  • files_modified (optional): Key files changed

Auto-fetched:

  • Todo list status (completed/in-progress/pending)
  • Agent mode (e.g., Sisyphus, build, plan)
  • Model configuration (provider + model ID)

read_session

Reads messages from the previous session for additional context.

Usage: In a handoff session, ask to "read the previous session" if you need more details.

Use sparingly—fetches the last 20 messages which uses significant tokens.

Auto-Update

The plugin checks for updates on every new session. When a new version is available:

  1. Updates your opencode.json config
  2. Invalidates the cached package
  3. Runs bun install
  4. Shows a toast notification

Restart OpenCode to apply updates.

Development

See CONTRIBUTING.md for development setup and guidelines.

How it works

  1. Agent provides a summary of current work
  2. Plugin fetches todo list and model config from current session
  3. Builds a compact handoff prompt
  4. Creates new session via session.create
  5. Sends the prompt via session.promptAsync
  6. Opens session picker via tui.openSessions

Inspired by Amp's handoff feature.

License

MIT