{"id":45691,"library":"opencode-queue","title":"opencode-queue","description":"Queue OpenCode prompts and slash commands until the agent is idle. This plugin adds a real /queue slash command and supports trailing syntax, allowing users to type the next prompt or command while the agent is busy, without interrupting the current run. Version 0.9.1, actively maintained. Key differentiators: operates as a true OpenCode slash command, supports queuing normal prompts, slash commands, and shell blocks, offers priority queuing with 'front', and provides queue management commands (list, stop, start, flush, clear). Only ESM, requires Node >=20.","status":"active","version":"0.9.1","language":"javascript","source_language":"en","source_url":"https://github.com/mirsella/opencode-queue","tags":["javascript","opencode","opencode-plugin","plugin","queue"],"install":[{"cmd":"npm install opencode-queue","lang":"bash","label":"npm"},{"cmd":"yarn add opencode-queue","lang":"bash","label":"yarn"},{"cmd":"pnpm add opencode-queue","lang":"bash","label":"pnpm"}],"dependencies":[],"imports":[{"note":"ESM-only; must be added as a plugin in OpenCode config, not imported directly.","wrong":"const opencodeQueue = require('opencode-queue')","symbol":"opencode-queue","correct":"import 'opencode-queue'"},{"note":"Use 'plugin' not 'plugins' in OpenCode config. The package is a plugin, not a library.","wrong":"{ \"plugins\": [\"opencode-queue\"] }","symbol":"opencode-queue (plugin)","correct":"{\n  \"plugin\": [\"opencode-queue\"]\n}"}],"quickstart":{"code":"// Add to OpenCode config (e.g., ~/.config/opencode/config.jsonc):\n{\n  \"plugin\": [\"opencode-queue\"]\n}\n// Restart OpenCode. Then in any conversation:\n/queue Write a summary of this code\n// While agent is busy, queue next command:\n/queue /review\n/queue !ls\n/queue front !pwd\n// Manage queue:\n/queue list\n/queue clear","lang":"javascript","description":"Shows how to add the plugin to OpenCode config and use /queue to queue prompts, slash commands, and shell blocks while agent is busy."},"warnings":[{"fix":"Re-queue items after session restart.","message":"Queue is in-memory and scoped to the current session. It will be lost on session restart.","severity":"gotcha","affected_versions":">=0.0.0"},{"fix":"Use '/queue flush' to send all immediately if needed.","message":"Only one queued entry is sent per idle transition. Long-running tasks may cause delays.","severity":"gotcha","affected_versions":">=0.0.0"},{"fix":"Upgrade Node to version 20 or higher.","message":"Requires Node.js >=20. Older Node versions will fail to install.","severity":"breaking","affected_versions":">=0.0.0"},{"fix":"Use exactly {\"plugin\": [\"opencode-queue\"]} in config.","message":"The config key must be 'plugin' (singular), not 'plugins'. Using 'plugins' will cause the plugin not to load.","severity":"gotcha","affected_versions":">=0.0.0"},{"fix":"Check the queue with '/queue list' or wait until idle.","message":"Queued entries are hidden from the transcript while the session is busy. They will appear after being sent.","severity":"gotcha","affected_versions":">=0.0.0"}],"env_vars":null,"search_vec":"'/queue':20 '0.9.1':47 '20':87 'activ':48 'add':17 'agent':12,38 'allow':27 'block':67 'busi':40 'clear':82 'command':9,22,35,58,64,77 'current':44 'differenti':51 'esm':84 'flush':81 'front':72 'idl':14 'interrupt':42 'javascript':88 'key':50 'list':78 'maintain':49 'manag':76 'next':32 'node':86 'normal':61 'offer':68 'opencod':2,5,56,89,91 'opencode-plugin':90 'opencode-queu':1 'oper':52 'plugin':16,92,93 'prioriti':69 'prompt':6,33,62 'provid':74 'queu':60,70 'queue':3,4,75,94 'real':19 'requir':85 'run':45 'shell':66 'slash':8,21,57,63 'start':80 'stop':79 'support':24,59 'syntax':26 'trail':25 'true':55 'type':30 'user':28 'version':46 'without':41","created_at":"2026-06-07T12:56:15.178414+00:00","updated_at":"2026-06-07T12:56:15.178414+00:00","problems":[{"fix":"Ensure plugin is added to config as {\"plugin\": [\"opencode-queue\"]} and restart OpenCode.","cause":"Plugin not correctly configured or OpenCode not restarted after install.","error":"Plugin not working, '/queue' not recognized as a slash command"},{"fix":"Use import syntax or ensure your project is ESM. The package is ESM-only.","cause":"Trying to require the package in a CommonJS context.","error":"node:internal/modules/cjs/loader: ... require() of ES Module ... not supported"},{"fix":"Add the plugin to config and restart OpenCode.","cause":"Plugin not installed or OpenCode not restarted.","error":"Command not found: /queue"}],"ecosystem":"npm","meta_description":null,"install_score":null,"quickstart_score":null,"quickstart_tag":null,"pypi_latest":null,"cli_name":null,"cli_version":null,"type":"library","homepage":"https://github.com/mirsella/opencode-queue#readme","github":"https://github.com/mirsella/opencode-queue","docs":null,"changelog":null,"pypi":null,"npm":"opencode-queue","openapi_spec":null,"status_page":null,"smithery":null,"categories":["productivity"],"base_url":null,"auth_type":null,"provenance":{"verified_status":null,"verified_at":null,"last_verified":"2026-06-07","next_check":"2026-09-05","install_tag":null}}