Queue OpenCode input until the current agent run is actually idle.
This plugin adds a real /queue slash command that keeps the current run focused instead of injecting your next message into the still-running loop.
- Queues normal prompts entered while a session is busy
- Queues slash commands like
/queue /reviewand/queue /commit - Hides queued placeholders from both the UI transcript and the running agent
- Replays queued input in order once the session becomes idle
- Replays queued commands as a visible
/commandmessage before executing them - Registers
/queueas a real OpenCode slash command - Shows the current queue with
/queue list - Clears the current queue with
/queue clear
Add it to your OpenCode plugin list:
OpenCode installs npm plugins automatically at startup.
Restart OpenCode after installing.
While the agent is busy:
/queue continue after the current task finishes
/queue /review
/queue /commit
/queue list
/queue clear
When the session is idle:
/queue hello
/queue /review
/queue
Queued items stay hidden while the current run is still working, then replay automatically when the session becomes idle.
- This is a
/queueplugin, not a keyboard shortcut plugin. OpenCode plugins cannot currently register custom TUI keybindings. - Idle
/queue some textis treated like a normal prompt with the/queueprefix removed. - Idle
/queue /commandimmediately runs the nested command. /queueand/queue listshow the in-memory queue for the current session./queue cleardrops all currently queued items for the current session.
MIT
{ "plugin": ["opencode-queue"] }