Sequential task queue with parallel fork support for Claude Code.
- Sequential tasks (
--task): Execute tasks one at a time - Parallel fork tasks (
--fork): Spawn multiple subagents concurrently - Auto-completion: Tasks advance automatically when you output
<done/> - Dynamic additions: Add tasks while queue is running
# Sequential tasks
/and-then --task "Build the API" --task "Write tests" --task "Update docs"
# Mix sequential and parallel tasks
/and-then --task "Build the API" \
--fork "Unit tests" "Integration tests" "E2E tests" \
--task "Deploy to staging"| Command | Description |
|---|---|
/and-then |
Create a new task queue |
/and-then-add |
Add tasks to existing queue |
/and-then-skip |
Skip current task |
/and-then-status |
Show queue progress |
/and-then-cancel |
Cancel the queue |
- Queue stored in
.claude/and-then-queue.local.md - Work on current task
- Output
<done/>when complete - Stop hook advances to next task
- For forks: launch parallel subagents, wait for all, then
<done/>
/and-then --task "Build the application" \
--fork "Run unit tests" "Run integration tests" "Run linting" \
--task "Deploy to staging"/and-then --fork "Research auth libraries" "Review security requirements" \
--task "Implement authentication" \
--task "Write tests"