What are Claude Code's built-in sub-agents and what does each do?
There are three: explore (a fast, read-only scout that searches files), plan (activates in /plan mode to research and propose a strategy, read-only), and a general-purpose agent (runs on a more capable model with read/write access for complex multi-step edits).
When should I use the sequential flow pattern?
Use sequential flow when tasks naturally build on one another in a single session (e.g., iterating a landing page). Be aware of context rot as the session grows and use skills, /clear, and /compact to manage context.
How does the operator pattern differ and when is it useful?
The operator pattern runs multiple parallel Claude terminals (separate workspaces) so independent projects don't interfere. It's ideal for parallel, unrelated tasks and can be simplified with the claude-w flag to create distinct work trees.
What is headless operation and what are its trade-offs?
Headless mode lets Claude run autonomously (triggered by a flag and schedulers) to perform tasks without supervision—great for batch jobs and scheduled reports. Trade-offs include needing trust in automation and adding safeguards for risky write actions.
When should I choose agent teams over sub-agents?
Use agent teams for genuinely complex projects that need agents to share state and challenge each other via a shared task list. They enable richer coordination but use more tokens and are experimental.