# Prompt queue — retained record

> Retained reddit record from reddit:ClaudeCode.

Canonical: https://highsignal.app/data/records/59a5aceeaa1d0922

[← sources](https://highsignal.app/data)


source: [reddit](https://highsignal.app/data/reddit) (reddit:ClaudeCode)  published 2026-11-13 20:46 ingested 2026-11-14 02:41

[original source ↗](https://www.reddit.com/r/ClaudeCode/comments/1xvj8gn/prompt_queue/)

## retained text



```
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?
```



document fetched 2026-11-14 00:44 · canonical https://reddit.com/r/ClaudeCode/comments/1xvj8gn/prompt_queue
