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

v0.9.1

Published

Queue OpenCode prompts and slash commands until the agent is idle

Readme

opencode-queue

npm version CI npm downloads

Queue OpenCode input until the current session is idle.

opencode-queue adds a real /queue slash command. It lets you type the next prompt, slash command, or shell command while an agent is still working, without interrupting the current run.

Install

Add the plugin to your OpenCode config:

{
  "plugin": ["opencode-queue"]
}

Restart OpenCode after installing. OpenCode installs npm plugins automatically at startup.

Quick Examples

/queue continue after this task
continue after this task /queue
/queue front do this next
do this next /queue front

/queue /review
/review /queue
/queue front /review
/review /queue front

/queue !ls
/queue front !pwd

/queue list
/queue stop
/queue start
/queue flush
/queue clear
/queue clear 1
/queue clear 2 3

Syntax

| Input | What it does | | --- | --- | | /queue message | Queue a normal prompt. | | message /queue | Queue a normal prompt using trailing syntax. | | /queue front message | Queue a normal prompt before existing queued entries. | | message /queue front | Queue a normal prompt before existing queued entries using trailing syntax. | | /queue /review | Queue a slash command. | | /review /queue | Queue a slash command using trailing syntax. | | /queue front /review | Queue a slash command before existing queued entries. | | /review /queue front | Queue a slash command before existing queued entries using trailing syntax. | | /queue !ls | Queue an OpenCode shell block. | | /queue front !ls | Queue an OpenCode shell block before existing queued entries. | | /queue | Show the current queue. | | /queue list | Show the current queue. | | /queue stop | Pause automatic sending of queued entries. | | /queue start | Resume automatic sending of queued entries. | | /queue flush | Send all queued entries immediately. | | /queue clear | Clear the current queue. | | /queue clear 1 | Clear item 1 from the current queue. | | /queue clear 2 3 | Clear items 2 and 3 from the current queue. |

Behavior

When the session is busy:

  • Queued entries are hidden from the transcript and from the running agent.
  • The current agent run keeps using its original agent, model, and thinking variant.
  • Queued entries replay in order after the session completes normally and becomes idle.
  • /queue front ... puts an entry before the existing queued entries.
  • Only one queued entry is sent per idle transition, so queued work runs one item at a time.
  • Queued entries are kept in place after an error or abort.
  • /queue stop pauses automatic replay without clearing queued entries, and /queue start resumes it.
  • /queue flush sends all queued entries immediately, even before the session is idle.

When the session is idle:

  • /queue message sends message immediately.
  • message /queue sends message immediately.
  • /queue /review runs /review immediately.
  • /review /queue runs /review immediately.
  • /queue !ls runs ls immediately as an OpenCode shell block.
  • /queue and /queue list show the current queue.
  • /queue stop pauses automatic replay, and /queue start resumes it.
  • /queue flush sends all queued entries immediately.
  • /queue clear clears the current queue, and /queue clear 1 clears a specific queued item.

Queue Management

/queue
/queue list
/queue stop
/queue start
/queue flush
/queue clear
/queue clear 1
/queue clear 2 3

The queue is in-memory and scoped to the current session.

Notes

  • This plugin registers /queue as a real OpenCode slash command.
  • It does not add a keyboard shortcut. OpenCode plugins cannot currently register custom TUI keybindings.
  • Queued placeholders are hidden instead of deleted, then filtered out before messages are sent to the model.
  • If plan mode asks to switch to the build agent while more queued work is waiting, the plugin answers No so the queue can continue.