MCPcopy Index your code
hub / github.com/0xSero/open-queue

github.com/0xSero/open-queue @main

Chat with this repo
repository ↗ · DeepWiki ↗ · + Follow
22 symbols 55 edges 3 files 0 documented · 0% updated 6mo ago★ 1381 open issues
What it actually does AI analysis from the code graph — generated when you open this
loading…
README

Open Queue

queue-power.svg

npm version

Queue messages while OpenCode is thinking. Instead of interrupting the model mid-response, your follow-up messages wait in line and get sent automatically when it's done.

Why?

When you send a message while OpenCode is running: - Without this plugin: Your message interrupts the current run, causing context confusion - With this plugin: Your message waits, then sends automatically when the model is ready

Install

bun x @0xsero/open-queue
# or: npx @0xsero/open-queue

This adds the plugin to your opencode.json and sets up the /queue command.

Usage

/queue hold       # Queue messages until model is done
/queue immediate  # Back to normal (sends any queued messages)
/queue status     # Check current mode

Or just tell the model: "Turn on message queueing"

Environment Variable

Start in hold mode:

OPENCODE_MESSAGE_QUEUE_MODE=hold opencode

Modes

Mode What happens
immediate Messages send right away (default)
hold Messages queue until the model finishes, then send in order

Known Issue

When you send a message in hold mode, it briefly appears sent in the UI, then gets sent again when the model finishes. The model only sees it once (after it's done), but the visual glitch exists. This is an OpenCode limitation.

Links

License

MIT

Core symbols most depended-on inside this repo

getPendingCount
called by 6
src/index.ts
showQueueToast
called by 4
src/index.ts
truncatePreview
called by 3
src/index.ts
MessageQueuePlugin
called by 3
src/index.ts
drain
called by 3
src/index.ts
makePlaceholder
called by 1
src/index.ts
buildPreview
called by 1
src/index.ts
extractPreview
called by 1
src/index.ts

Shape

Function 22

Languages

TypeScript100%

Modules by API surface

src/index.ts16 symbols
test/queue.test.mjs3 symbols
bin/install.js3 symbols

For agents

$ claude mcp add open-queue \
  -- python -m otcore.mcp_server <graph>

⬇ download graph artifact