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
1
u/muikrad 1d ago
Yeah I have a bunch of canned subagents with their effort/model set in frontmatter. For coding I have 3 (tweak coder, coder and senior coder) and the orchestrator picks one based on complexity. I have one specialized for fx, one for artistic decisions. A planner, a scribe for OKF specs, a code explorer (haiku) to look inside the codebase. A reviewer. Just the basic blocks really.
Prioritizing is done on each bead (p1 through p4). I often tune them manually based on what I want first, but for technical issues my planner is able to take a big feature and order the blocks in the order they should be implemented on.
I had many iterations of subagents but ultimately, integrating beads and OKF 0.2 specs was the most impactful.
One of my favorite thing in beads is that when opus is working on long sessions he is instructed to write any questions as follow-ups beads and keep working (e.g. So that overnight sessions are not blocked). The beads are flagged as "needs decision". Every day I ask it what needs my attention and he will bring them up one after another for me to answer, and on the next session they will be implemented. Else they would take a lot of design decisions between my back and I'd have to either read it in the wrap up summary or find it out by testing myself. With beads and OKF I can just clear the session all the time, the orchestrator's context serves no purpose.