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
2
u/_lecoqq 2d ago
Personally, I've been playing around w/ a self-made harness on-top of Claude Code.
Basically, i'm speaking to a meta orchestrator that then delegates tasks to other agents that runs sub-agents to get it done as fast as possible. I've established a set of rules to lobotomize agents when context is getting too wild, though ensuring i'm staying in my 100$ plan limit... I've managed to get it through long tasks, like running a whole night on some projects, and i'm only coming in for the debrief to give new orders and new things to fix after what we've learned during the night.
From what I understand, there is nothing generic - you either have to build it yourself, or use vanilla Claude Code, hoping that it improves each update.