The loop command runs Claude Code in an automated cycle — it picks the next available task, implements it, marks it done, and moves on. You can step away and come back to completed work.
# Start the automated loop
tm loop
# Watch Claude's work in real-time
tm loop --verbose
# Run in a Docker sandbox for isolation
tm loop --sandbox
Each iteration of the loop:
Progress is tracked in .taskmaster/loop-progress.txt so you can monitor status.
Presets configure the loop for different development workflows:
# Default preset — standard task execution
tm loop
# TDD preset — enforce test-driven development
tm loop --preset test-coverage
# Linting preset — enforce code quality checks
tm loop --preset linting
# Duplication preset — check for code duplication
tm loop --preset duplication
| Preset | Focus |
|---|---|
default |
Standard task execution |
test-coverage |
Enforce tests with each task |
linting |
Run linting after each task |
duplication |
Check for duplicate code |
entropy |
Minimize code complexity |
| Flag | Description |
|---|---|
--verbose / -v |
Show Claude's real-time output |
--no-output |
Exclude full output to save memory |
--sandbox |
Run in Docker sandbox for isolation |
--preset <name> |
Use a specific workflow preset |
| Command | Best for |
|---|---|
tm start |
Single task, hands-on implementation |
tm loop |
Sequential automation, step away and return |
tm clusters start |
Parallel automation with agent teams |
--verbose the first few times to build confidence in what the loop is doing