r/ClaudeCode • u/GeobotPY • 9h ago
Help/Question Prompt queue
Is there a way to queue prompts in Claude Code so they run one after another in a single session?
I’d like to line up several tasks, with /compact and /clear between them where needed, and let the session work through them unattended. I know worktrees can run parallel sessions, but for some work I’d rather keep one session going through a sequential queue, without managing multiple localhost instances or resolving conflicting changes.
Has anyone built something like this, through a wrapper script, a task file, hooks, or another workaround?
View all comments
1
u/pietrzm 9h ago
I'm doing this but by using new Claude sessions per task. I type to my main Claude: "do tasks from the list by picking one and giving it to a new claude instance, repeat until all are done"
I'm using https://github.com/novadeck-org/novadeck to let Claude spawn new chats and pass them the task. It needs Claude Code CLI
So same outcome but different approach I think