Skip to content

mirsella/opencode-queue

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

10 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

opencode-queue

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.

What it does

  • Queues normal prompts entered while a session is busy
  • Queues slash commands like /queue /review and /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 /command message before executing them
  • Registers /queue as a real OpenCode slash command
  • Shows the current queue with /queue list
  • Clears the current queue with /queue clear

Install

Add it to your OpenCode plugin list:

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

OpenCode installs npm plugins automatically at startup.

Restart OpenCode after installing.

Usage

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.

Notes

  • This is a /queue plugin, not a keyboard shortcut plugin. OpenCode plugins cannot currently register custom TUI keybindings.
  • Idle /queue some text is treated like a normal prompt with the /queue prefix removed.
  • Idle /queue /command immediately runs the nested command.
  • /queue and /queue list show the in-memory queue for the current session.
  • /queue clear drops all currently queued items for the current session.

License

MIT

About

No description, website, or topics provided.

Resources

License

Stars

Watchers

Forks

Packages

 
 
 

Contributors