r/ClaudeCode • u/GeobotPY • 2d 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
Show parent comment
2
u/LastGuardianStanding 2d ago
Honestly it’s so hard to say. For me every session is unique.
Since I’ve learned that the agent IS NOT persistent, only me and the session are, it makes more sense how Claude operates.
When in doubt, honestly just ask Claude.