claude-code·queue
中文

queue, not interrupt.

A prompt queue for Claude Code. Type /queue … while Claude is busy and the message waits — it runs after the current turn, instead of interrupting it.

Without /queue — it interrupts
With /queue — it waits

Install

$ curl -fsSL https://jinhuang712.github.io/claude-code-queue/install.sh | bash

# restart Claude Code — you now have a bare /queue

Why

Pressing Enter mid-turn shouldn't derail the turn.

A plain message sent while Claude Code is mid-turn is injected at the next tool-call boundary — it interrupts and redirects the running task. But Claude Code holds a recognized slash command until the whole turn ends. claude-code-queue simply registers /queue as one: the native scheduler does the queueing, and the command body tells Claude to run the deferred request unattended.

Multiple at once

Line up several — they pop one at a time

Every /queue sent while Claude is busy joins a first-in-first-out line for that session. Each one drains as its own turn, right after the one ahead of it finishes.

FIFO — one per turn
Nothing running? It just goes.

No hooks, no daemon, no storage — just a command definition. Press ↑ to edit what's queued (native). See the repo for how it works.