1. Interactive mode: Plan first, then act
Start here to see how Cline works. Interactive mode opens a chat session where you can review plans before execution.2. Headless single-shot: Complete a task without chat
Use this for automation where you want a one-liner that just does the work.-y
(YOLO) flag, Cline plans and executes autonomously without interactive chat. Perfect for CI, cron jobs, or scripts.
Examples:
Run YOLO mode with care on a directory or a clean Git branch. You get speed in exchange for oversight, so be ready to revert if needed.
3. Multi-instance: Run parallel agents
Multiple instances let you parallelize work on the same project without colliding contexts. Run frontend, backend, and infrastructure tasks simultaneously. Create your first instance:Keep track of instance addresses returned by
cline instance new
. When scripting multiple agents, store these IDs and direct your tasks to the appropriate instance.Choosing the right flow
- Interactive mode: Best for exploring new problems, learning how Cline works, or when you want to review plans before execution
- Headless single-shot: Perfect for automation, CI/CD, and tasks where you trust Cline to execute without supervision
- Multi-instance: Use when you need to parallelize work or maintain separate contexts for different parts of your project
For in-depth commands and flags, check out the CLI reference page for complete documentation on all available options.
Next steps
CLI reference
Complete command documentation including configuration, instance management, and task commands.
Plan and Act
Deep dive into Plan and Act modes, including when to use each and how to switch between them.
YOLO mode
Understand how YOLO mode works and when to use full automation versus manual approval.
Task management
Learn how Cline tracks and manages tasks, including saving and restoring state from checkpoints.