modified
--- a/agents.md +++ b/agents.md @@ -39,7 +39,7 @@ The command for checking on running work depends on which approach you used: * For background sessions, `claude agents` opens [agent view](</docs/en/agent-view>): one screen showing every session, its state, and which ones need your input. - * For subagents in the current session, named background subagents appear in the @-mention typeahead with their status. The `/agents` command prints a notice pointing to the subagent file locations. To [create and edit custom subagents](</docs/en/sub-agents#configure-subagents>), ask Claude or edit the files directly. Despite the similar name, `/agents` is separate from `claude agents`. + * For a [named](</docs/en/sub-agents#subagent-names>) background subagent in the current session, type `@` and the first letter of its name to see its status. To [create and edit custom subagents](</docs/en/sub-agents#configure-subagents>), ask Claude or edit the files in `.claude/agents/` or `~/.claude/agents/`. * For anything running in the background of the current session, `/tasks` lists each item and lets you check on, attach to, or stop it. The list also includes subagents that have finished. * For dynamic workflows, `/workflows` lists running and completed runs, the phase each is in, and how many agents have finished.
modified
--- a/agents.md +++ b/agents.md @@ -5,7 +5,7 @@ [Subagents](</docs/en/sub-agents>)| Delegated workers inside one session that do a side task in their own context and return a summary| A side task would flood your main conversation with search results, logs, or file contents you won’t reference again [Agent view](</docs/en/agent-view>)| One screen to dispatch and monitor sessions running in the background, opened with `claude agents`. Research preview| You have several independent tasks and want to hand them off, check status at a glance, and step in only when one needs you [Agent teams](</docs/en/agent-teams>)| Multiple coordinated sessions with a shared task list and inter-agent messaging, managed by a lead. Experimental and disabled by default| You want Claude to split a project into pieces, assign them, and keep the workers in sync -[Projects](</docs/en/claude-projects>)| One ongoing conversation at claude.ai/code or in the desktop app. Claude starts parallel sessions called threads, in the cloud or, when you ask, on your computer through Remote Control. It gives each one the project’s instructions and shows you which ones need you. Public beta on Pro, Max, and Ultra| The work spans many tasks over days or weeks, should keep running when your machine is off, and you’d rather describe it once than dispatch and track each session +[Projects](</docs/en/claude-projects>)| One ongoing conversation at claude.ai/code or in the desktop app. Claude starts parallel sessions called threads, gives each one the project’s instructions, and shows you which ones need you. Threads run in the cloud, or on your computer through Remote Control when you ask. Public beta on Pro, Max, Ultra, Team, and Enterprise| The work spans many tasks over days or weeks, should keep running when your machine is off, and you’d rather describe it once than dispatch and track each session [Dynamic workflows](</docs/en/workflows>)| A script that runs many subagents and cross-checks their results, for work too big to coordinate one turn at a time or that needs more than a single pass| A job outgrows a handful of subagents, or you want findings verified against each other: a codebase-wide audit, a 500-file migration, cross-checked research, or a plan drafted from several angles In every approach the workers are Claude sessions. To involve a different tool, expose it to Claude as an [MCP server](</docs/en/mcp>). Three more tools support this work without being a way to run agents themselves:
modified
--- a/agents.md +++ b/agents.md @@ -22,11 +22,7 @@ Running several sessions or subagents at once multiplies token usage. See [Costs](</docs/en/costs>) for usage and rate limit details. -## - -​ - -Choose an approach +## Choose an approach The right approach depends on who coordinates the work, whether the workers need to communicate, and whether they edit the same files: @@ -38,11 +34,7 @@ * **Do the workers need to talk to each other?** Claude can pass findings with [cross-session messaging](</docs/en/cross-session-messaging>) between sessions you run yourself, including the sessions you dispatch from agent view. Subagents report results back to the conversation that spawned them, and agent view sessions report results only to you. Teammates in an agent team message each other directly and, when they [have the Task tools](</docs/en/tools-reference#task-tool-availability>), share a task list. * **Do the tasks touch the same files?** Isolate the work with [worktrees](</docs/en/worktrees>). Subagents and sessions you run yourself can each use a separate worktree. Agent teams don’t isolate teammates in worktrees, so [partition the work](</docs/en/agent-teams#avoid-file-conflicts>) so each teammate owns a different set of files. -## - -​ - -Check on running work +## Check on running work The command for checking on running work depends on which approach you used: @@ -53,11 +45,7 @@ For a desktop view of all your sessions, see [parallel sessions in the desktop app](</docs/en/desktop#work-in-parallel-with-sessions>). -## - -​ - -Learn more +## Learn more Each guide below covers setup and configuration for one approach:
modified
--- a/agents.md +++ b/agents.md @@ -5,7 +5,7 @@ [Subagents](</docs/en/sub-agents>)| Delegated workers inside one session that do a side task in their own context and return a summary| A side task would flood your main conversation with search results, logs, or file contents you won’t reference again [Agent view](</docs/en/agent-view>)| One screen to dispatch and monitor sessions running in the background, opened with `claude agents`. Research preview| You have several independent tasks and want to hand them off, check status at a glance, and step in only when one needs you [Agent teams](</docs/en/agent-teams>)| Multiple coordinated sessions with a shared task list and inter-agent messaging, managed by a lead. Experimental and disabled by default| You want Claude to split a project into pieces, assign them, and keep the workers in sync -[Projects](</docs/en/claude-projects>)| One ongoing conversation at claude.ai/code or in the desktop app. Claude starts parallel sessions called threads, in the cloud or, when you ask, on your computer through Remote Control, gives each one the project’s instructions, and shows you which ones need you. Public beta on Pro and Max| The work spans many tasks over days or weeks, should keep running when your machine is off, and you’d rather describe it once than dispatch and track each session +[Projects](</docs/en/claude-projects>)| One ongoing conversation at claude.ai/code or in the desktop app. Claude starts parallel sessions called threads, in the cloud or, when you ask, on your computer through Remote Control. It gives each one the project’s instructions and shows you which ones need you. Public beta on Pro, Max, and Ultra| The work spans many tasks over days or weeks, should keep running when your machine is off, and you’d rather describe it once than dispatch and track each session [Dynamic workflows](</docs/en/workflows>)| A script that runs many subagents and cross-checks their results, for work too big to coordinate one turn at a time or that needs more than a single pass| A job outgrows a handful of subagents, or you want findings verified against each other: a codebase-wide audit, a 500-file migration, cross-checked research, or a plan drafted from several angles In every approach the workers are Claude sessions. To involve a different tool, expose it to Claude as an [MCP server](</docs/en/mcp>). Three more tools support this work without being a way to run agents themselves:
modified
--- a/agents.md +++ b/agents.md @@ -20,7 +20,7 @@ * A [forked subagent](</docs/en/sub-agents#fork-the-current-conversation>) is a subagent that inherits your full conversation context instead of starting fresh. It’s a way to spawn a subagent, not a separate surface. Start one with `/subtask`. Claude also spawns one itself where [fork mode](</docs/en/sub-agents#turn-fork-mode-on-or-off>) is on. To copy the whole session into a new [background session](</docs/en/agent-view#from-inside-a-session>) that runs alongside it, use `/fork`. With [agent view turned off](</docs/en/agent-view#turn-off-agent-view>), the forked-subagent command is `/fork` instead and `/subtask` isn’t available. * A [cloud scheduled task](</docs/en/routines>) runs a session on a schedule in the cloud, not in parallel on your machine. -Running several sessions or subagents at once multiplies token usage. See [Costs](</docs/en/costs>) for usage and rate-limit details. +Running several sessions or subagents at once multiplies token usage. See [Costs](</docs/en/costs>) for usage and rate limit details. ##
modified
--- a/agents.md +++ b/agents.md @@ -18,7 +18,7 @@ * A [background bash command](</docs/en/interactive-mode#background-bash-commands>) runs one shell command without blocking the conversation. It doesn’t spawn an agent. * A [forked subagent](</docs/en/sub-agents#fork-the-current-conversation>) is a subagent that inherits your full conversation context instead of starting fresh. It’s a way to spawn a subagent, not a separate surface. Start one with `/subtask`. Claude also spawns one itself where [fork mode](</docs/en/sub-agents#turn-fork-mode-on-or-off>) is on. To copy the whole session into a new [background session](</docs/en/agent-view#from-inside-a-session>) that runs alongside it, use `/fork`. With [agent view turned off](</docs/en/agent-view#turn-off-agent-view>), the forked-subagent command is `/fork` instead and `/subtask` isn’t available. - * A [routine](</docs/en/routines>) runs a session on a schedule in the cloud, not in parallel on your machine. + * A [cloud scheduled task](</docs/en/routines>) runs a session on a schedule in the cloud, not in parallel on your machine. Running several sessions or subagents at once multiplies token usage. See [Costs](</docs/en/costs>) for usage and rate-limit details.
modified
--- a/agents.md +++ b/agents.md @@ -10,7 +10,7 @@ In every approach the workers are Claude sessions. To involve a different tool, expose it to Claude as an [MCP server](</docs/en/mcp>). Three more tools support this work without being a way to run agents themselves: - * [Worktrees](</docs/en/worktrees>) give each session a separate git checkout, so parallel sessions never edit the same files. Use them for sessions you run yourself. A session you dispatch from agent view [moves into a worktree of its own before it edits files](</docs/en/agent-view#how-file-edits-are-isolated>), and subagents you spawn can each get one too. + * [Worktrees](</docs/en/worktrees>) give each session a separate git checkout, so parallel sessions each edit their own copy of the files. Use them for sessions you run yourself. A session you dispatch from agent view [moves into a worktree of its own before it edits files](</docs/en/agent-view#how-file-edits-are-isolated>), and subagents you spawn can each get one too. * [Cross-session messaging](</docs/en/cross-session-messaging>) lets Claude list and message your other Claude Code sessions on this machine, on another machine, or [in the cloud](</docs/en/claude-code-on-the-web>), so sessions you run yourself can pass findings and status between themselves. * [`/batch`](</docs/en/commands>) is a [skill](</docs/en/skills>) that has Claude split one large change into 5 to 30 worktree-isolated subagents. It’s a packaged use of subagents and worktrees, not a separate coordination style.
modified
--- a/agents.md +++ b/agents.md @@ -47,7 +47,7 @@ The command for checking on running work depends on which approach you used: * For background sessions, `claude agents` opens [agent view](</docs/en/agent-view>): one screen showing every session, its state, and which ones need your input. - * For subagents in the current session, named background subagents appear in the @-mention typeahead with their status. As of v2.1.198, `/agents` no longer opens a panel; it prints a notice pointing to the subagent file locations. To [create and edit custom subagents](</docs/en/sub-agents#configure-subagents>), ask Claude or edit the files directly. Despite the similar name, `/agents` is separate from `claude agents`. + * For subagents in the current session, named background subagents appear in the @-mention typeahead with their status. The `/agents` command prints a notice pointing to the subagent file locations. To [create and edit custom subagents](</docs/en/sub-agents#configure-subagents>), ask Claude or edit the files directly. Despite the similar name, `/agents` is separate from `claude agents`. * For anything running in the background of the current session, `/tasks` lists each item and lets you check on, attach to, or stop it. The list also includes subagents that have finished. * For dynamic workflows, `/workflows` lists running and completed runs, the phase each is in, and how many agents have finished.
modified
--- a/agents.md +++ b/agents.md @@ -5,7 +5,7 @@ [Subagents](</docs/en/sub-agents>)| Delegated workers inside one session that do a side task in their own context and return a summary| A side task would flood your main conversation with search results, logs, or file contents you won’t reference again [Agent view](</docs/en/agent-view>)| One screen to dispatch and monitor sessions running in the background, opened with `claude agents`. Research preview| You have several independent tasks and want to hand them off, check status at a glance, and step in only when one needs you [Agent teams](</docs/en/agent-teams>)| Multiple coordinated sessions with a shared task list and inter-agent messaging, managed by a lead. Experimental and disabled by default| You want Claude to split a project into pieces, assign them, and keep the workers in sync -[Projects](</docs/en/claude-projects>)| One ongoing conversation at claude.ai/code or in the desktop app. Claude starts parallel cloud sessions called threads, gives each one the project’s repositories, instructions, and memory, and shows you which ones need you. Public beta on Pro and Max| The work spans many tasks over days or weeks, should keep running when your machine is off, and you’d rather describe it once than dispatch and track each session +[Projects](</docs/en/claude-projects>)| One ongoing conversation at claude.ai/code or in the desktop app. Claude starts parallel sessions called threads, in the cloud or, when you ask, on your computer through Remote Control, gives each one the project’s instructions, and shows you which ones need you. Public beta on Pro and Max| The work spans many tasks over days or weeks, should keep running when your machine is off, and you’d rather describe it once than dispatch and track each session [Dynamic workflows](</docs/en/workflows>)| A script that runs many subagents and cross-checks their results, for work too big to coordinate one turn at a time or that needs more than a single pass| A job outgrows a handful of subagents, or you want findings verified against each other: a codebase-wide audit, a 500-file migration, cross-checked research, or a plan drafted from several angles In every approach the workers are Claude sessions. To involve a different tool, expose it to Claude as an [MCP server](</docs/en/mcp>). Three more tools support this work without being a way to run agents themselves:
modified
--- a/agents.md +++ b/agents.md @@ -12,7 +12,7 @@ * [Worktrees](</docs/en/worktrees>) give each session a separate git checkout, so parallel sessions never edit the same files. Use them for sessions you run yourself. A session you dispatch from agent view [moves into a worktree of its own before it edits files](</docs/en/agent-view#how-file-edits-are-isolated>), and subagents you spawn can each get one too. * [Cross-session messaging](</docs/en/cross-session-messaging>) lets Claude list and message your other Claude Code sessions on this machine, on another machine, or [in the cloud](</docs/en/claude-code-on-the-web>), so sessions you run yourself can pass findings and status between themselves. - * [`/batch`](</docs/en/commands>) is a [skill](</docs/en/skills>) that has Claude split one large change into 5 to 30 worktree-isolated subagents that each open a pull request. It’s a packaged use of subagents and worktrees, not a separate coordination style. + * [`/batch`](</docs/en/commands>) is a [skill](</docs/en/skills>) that has Claude split one large change into 5 to 30 worktree-isolated subagents. It’s a packaged use of subagents and worktrees, not a separate coordination style. A few other features run Claude without you driving each step, but they solve a different problem than splitting work across agents:
modified
--- a/agents.md +++ b/agents.md @@ -1,10 +1,11 @@ -[Subagents](</docs/en/sub-agents>), [agent view](</docs/en/agent-view>), [agent teams](</docs/en/agent-teams>), and [dynamic workflows](</docs/en/workflows>) each parallelize work in a different way. The right one depends on whether you want to stay in each conversation yourself, hand tasks off and check back later, or have Claude coordinate a group of workers for you. +Claude Code has five ways to work on several tasks at once: [subagents](</docs/en/sub-agents>), [agent view](</docs/en/agent-view>), [agent teams](</docs/en/agent-teams>), [dynamic workflows](</docs/en/workflows>), and [projects](</docs/en/claude-projects>). They differ in how involved you stay, from steering each conversation yourself to letting Claude coordinate a group of workers, and in whether the work runs on your machine or in the cloud. Approach| What it gives you| Use it when ---|---|--- [Subagents](</docs/en/sub-agents>)| Delegated workers inside one session that do a side task in their own context and return a summary| A side task would flood your main conversation with search results, logs, or file contents you won’t reference again [Agent view](</docs/en/agent-view>)| One screen to dispatch and monitor sessions running in the background, opened with `claude agents`. Research preview| You have several independent tasks and want to hand them off, check status at a glance, and step in only when one needs you [Agent teams](</docs/en/agent-teams>)| Multiple coordinated sessions with a shared task list and inter-agent messaging, managed by a lead. Experimental and disabled by default| You want Claude to split a project into pieces, assign them, and keep the workers in sync +[Projects](</docs/en/claude-projects>)| One ongoing conversation at claude.ai/code or in the desktop app. Claude starts parallel cloud sessions called threads, gives each one the project’s repositories, instructions, and memory, and shows you which ones need you. Public beta on Pro and Max| The work spans many tasks over days or weeks, should keep running when your machine is off, and you’d rather describe it once than dispatch and track each session [Dynamic workflows](</docs/en/workflows>)| A script that runs many subagents and cross-checks their results, for work too big to coordinate one turn at a time or that needs more than a single pass| A job outgrows a handful of subagents, or you want findings verified against each other: a codebase-wide audit, a 500-file migration, cross-checked research, or a plan drafted from several angles In every approach the workers are Claude sessions. To involve a different tool, expose it to Claude as an [MCP server](</docs/en/mcp>). Three more tools support this work without being a way to run agents themselves:
modified
--- a/agents.md +++ b/agents.md @@ -10,7 +10,7 @@ In every approach the workers are Claude sessions. To involve a different tool, expose it to Claude as an [MCP server](</docs/en/mcp>). Three more tools support this work without being a way to run agents themselves: * [Worktrees](</docs/en/worktrees>) give each session a separate git checkout, so parallel sessions never edit the same files. Use them for sessions you run yourself. A session you dispatch from agent view [moves into a worktree of its own before it edits files](</docs/en/agent-view#how-file-edits-are-isolated>), and subagents you spawn can each get one too. - * [Cross-session messaging](</docs/en/cross-session-messaging>) lets Claude list and message your other Claude Code sessions on this machine, on another machine, or on [Claude Code on the web](</docs/en/claude-code-on-the-web>), so sessions you run yourself can pass findings and status between themselves. + * [Cross-session messaging](</docs/en/cross-session-messaging>) lets Claude list and message your other Claude Code sessions on this machine, on another machine, or [in the cloud](</docs/en/claude-code-on-the-web>), so sessions you run yourself can pass findings and status between themselves. * [`/batch`](</docs/en/commands>) is a [skill](</docs/en/skills>) that has Claude split one large change into 5 to 30 worktree-isolated subagents that each open a pull request. It’s a packaged use of subagents and worktrees, not a separate coordination style. A few other features run Claude without you driving each step, but they solve a different problem than splitting work across agents:
modified
--- a/agents.md +++ b/agents.md @@ -9,7 +9,7 @@ In every approach the workers are Claude sessions. To involve a different tool, expose it to Claude as an [MCP server](</docs/en/mcp>). Three more tools support this work without being a way to run agents themselves: - * [Worktrees](</docs/en/worktrees>) give each session a separate git checkout, so parallel sessions never edit the same files. Use them for sessions you run yourself. Agent view moves each dispatched session into its own worktree automatically, and subagents you spawn can each get one too. + * [Worktrees](</docs/en/worktrees>) give each session a separate git checkout, so parallel sessions never edit the same files. Use them for sessions you run yourself. A session you dispatch from agent view [moves into a worktree of its own before it edits files](</docs/en/agent-view#how-file-edits-are-isolated>), and subagents you spawn can each get one too. * [Cross-session messaging](</docs/en/cross-session-messaging>) lets Claude list and message your other Claude Code sessions on this machine, on another machine, or on [Claude Code on the web](</docs/en/claude-code-on-the-web>), so sessions you run yourself can pass findings and status between themselves. * [`/batch`](</docs/en/commands>) is a [skill](</docs/en/skills>) that has Claude split one large change into 5 to 30 worktree-isolated subagents that each open a pull request. It’s a packaged use of subagents and worktrees, not a separate coordination style.
modified
--- a/agents.md +++ b/agents.md @@ -34,7 +34,7 @@ * You hand off independent tasks and check back later: [agent view](</docs/en/agent-view>) * Claude plans, assigns, and supervises a group of workers: [agent teams](</docs/en/agent-teams>), experimental and disabled by default * A script holds the plan instead of Claude’s turn-by-turn judgment: [dynamic workflows](</docs/en/workflows>). See [how workflows compare to subagents and skills](</docs/en/workflows#when-to-use-a-workflow>) - * **Do the workers need to talk to each other?** Subagents report results back to the conversation that spawned them, and agent view sessions report only to you, though separate sessions can pass messages with [cross-session messaging](</docs/en/cross-session-messaging>). Teammates in an agent team message each other directly and, when they [have the Task tools](</docs/en/tools-reference#task-tool-availability>), share a task list. + * **Do the workers need to talk to each other?** Claude can pass findings with [cross-session messaging](</docs/en/cross-session-messaging>) between sessions you run yourself, including the sessions you dispatch from agent view. Subagents report results back to the conversation that spawned them, and agent view sessions report results only to you. Teammates in an agent team message each other directly and, when they [have the Task tools](</docs/en/tools-reference#task-tool-availability>), share a task list. * **Do the tasks touch the same files?** Isolate the work with [worktrees](</docs/en/worktrees>). Subagents and sessions you run yourself can each use a separate worktree. Agent teams don’t isolate teammates in worktrees, so [partition the work](</docs/en/agent-teams#avoid-file-conflicts>) so each teammate owns a different set of files. ##
modified
--- a/agents.md +++ b/agents.md @@ -16,7 +16,7 @@ A few other features run Claude without you driving each step, but they solve a different problem than splitting work across agents: * A [background bash command](</docs/en/interactive-mode#background-bash-commands>) runs one shell command without blocking the conversation. It doesn’t spawn an agent. - * A [forked subagent](</docs/en/sub-agents#fork-the-current-conversation>), started with `/subtask`, is a subagent that inherits your full conversation context instead of starting fresh. It’s a way to spawn a subagent, not a separate surface. To copy the whole session into a new [background session](</docs/en/agent-view#from-inside-a-session>) that runs alongside it, use `/fork`. With [agent view turned off](</docs/en/agent-view#turn-off-agent-view>), the forked-subagent command is `/fork` instead and `/subtask` isn’t available. + * A [forked subagent](</docs/en/sub-agents#fork-the-current-conversation>) is a subagent that inherits your full conversation context instead of starting fresh. It’s a way to spawn a subagent, not a separate surface. Start one with `/subtask`. Claude also spawns one itself where [fork mode](</docs/en/sub-agents#turn-fork-mode-on-or-off>) is on. To copy the whole session into a new [background session](</docs/en/agent-view#from-inside-a-session>) that runs alongside it, use `/fork`. With [agent view turned off](</docs/en/agent-view#turn-off-agent-view>), the forked-subagent command is `/fork` instead and `/subtask` isn’t available. * A [routine](</docs/en/routines>) runs a session on a schedule in the cloud, not in parallel on your machine. Running several sessions or subagents at once multiplies token usage. See [Costs](</docs/en/costs>) for usage and rate-limit details.
modified
--- a/agents.md +++ b/agents.md @@ -34,7 +34,7 @@ * You hand off independent tasks and check back later: [agent view](</docs/en/agent-view>) * Claude plans, assigns, and supervises a group of workers: [agent teams](</docs/en/agent-teams>), experimental and disabled by default * A script holds the plan instead of Claude’s turn-by-turn judgment: [dynamic workflows](</docs/en/workflows>). See [how workflows compare to subagents and skills](</docs/en/workflows#when-to-use-a-workflow>) - * **Do the workers need to talk to each other?** Subagents report results back to the conversation that spawned them, and agent view sessions report only to you, though separate sessions can pass messages with [cross-session messaging](</docs/en/cross-session-messaging>). Teammates in an agent team share a task list and message each other directly. + * **Do the workers need to talk to each other?** Subagents report results back to the conversation that spawned them, and agent view sessions report only to you, though separate sessions can pass messages with [cross-session messaging](</docs/en/cross-session-messaging>). Teammates in an agent team message each other directly and, when they [have the Task tools](</docs/en/tools-reference#task-tool-availability>), share a task list. * **Do the tasks touch the same files?** Isolate the work with [worktrees](</docs/en/worktrees>). Subagents and sessions you run yourself can each use a separate worktree. Agent teams don’t isolate teammates in worktrees, so [partition the work](</docs/en/agent-teams#avoid-file-conflicts>) so each teammate owns a different set of files. ##
modified
--- a/agents.md +++ b/agents.md @@ -10,7 +10,7 @@ In every approach the workers are Claude sessions. To involve a different tool, expose it to Claude as an [MCP server](</docs/en/mcp>). Three more tools support this work without being a way to run agents themselves: * [Worktrees](</docs/en/worktrees>) give each session a separate git checkout, so parallel sessions never edit the same files. Use them for sessions you run yourself. Agent view moves each dispatched session into its own worktree automatically, and subagents you spawn can each get one too. - * [Cross-session messaging](</docs/en/cross-session-messaging>) lets Claude list your other Claude Code sessions and message them on this machine, or reply to your sessions on other machines or on [Claude Code on the web](</docs/en/claude-code-on-the-web>), so sessions you run yourself can pass findings and status between themselves. + * [Cross-session messaging](</docs/en/cross-session-messaging>) lets Claude list and message your other Claude Code sessions on this machine, on another machine, or on [Claude Code on the web](</docs/en/claude-code-on-the-web>), so sessions you run yourself can pass findings and status between themselves. * [`/batch`](</docs/en/commands>) is a [skill](</docs/en/skills>) that has Claude split one large change into 5 to 30 worktree-isolated subagents that each open a pull request. It’s a packaged use of subagents and worktrees, not a separate coordination style. A few other features run Claude without you driving each step, but they solve a different problem than splitting work across agents:
modified
--- a/agents.md +++ b/agents.md @@ -7,9 +7,10 @@ [Agent teams](</docs/en/agent-teams>)| Multiple coordinated sessions with a shared task list and inter-agent messaging, managed by a lead. Experimental and disabled by default| You want Claude to split a project into pieces, assign them, and keep the workers in sync [Dynamic workflows](</docs/en/workflows>)| A script that runs many subagents and cross-checks their results, for work too big to coordinate one turn at a time or that needs more than a single pass| A job outgrows a handful of subagents, or you want findings verified against each other: a codebase-wide audit, a 500-file migration, cross-checked research, or a plan drafted from several angles -In every approach the workers are Claude sessions. To involve a different tool, expose it to Claude as an [MCP server](</docs/en/mcp>). Two more tools support this work without being a way to run agents themselves: +In every approach the workers are Claude sessions. To involve a different tool, expose it to Claude as an [MCP server](</docs/en/mcp>). Three more tools support this work without being a way to run agents themselves: * [Worktrees](</docs/en/worktrees>) give each session a separate git checkout, so parallel sessions never edit the same files. Use them for sessions you run yourself. Agent view moves each dispatched session into its own worktree automatically, and subagents you spawn can each get one too. + * [Cross-session messaging](</docs/en/cross-session-messaging>) lets Claude list your other Claude Code sessions and message them on this machine, or reply to your sessions on other machines or on [Claude Code on the web](</docs/en/claude-code-on-the-web>), so sessions you run yourself can pass findings and status between themselves. * [`/batch`](</docs/en/commands>) is a [skill](</docs/en/skills>) that has Claude split one large change into 5 to 30 worktree-isolated subagents that each open a pull request. It’s a packaged use of subagents and worktrees, not a separate coordination style. A few other features run Claude without you driving each step, but they solve a different problem than splitting work across agents: @@ -33,7 +34,7 @@ * You hand off independent tasks and check back later: [agent view](</docs/en/agent-view>) * Claude plans, assigns, and supervises a group of workers: [agent teams](</docs/en/agent-teams>), experimental and disabled by default * A script holds the plan instead of Claude’s turn-by-turn judgment: [dynamic workflows](</docs/en/workflows>). See [how workflows compare to subagents and skills](</docs/en/workflows#when-to-use-a-workflow>) - * **Do the workers need to talk to each other?** Subagents report results back to the conversation that spawned them, and agent view sessions report only to you. Teammates in an agent team share a task list and message each other directly. + * **Do the workers need to talk to each other?** Subagents report results back to the conversation that spawned them, and agent view sessions report only to you, though separate sessions can pass messages with [cross-session messaging](</docs/en/cross-session-messaging>). Teammates in an agent team share a task list and message each other directly. * **Do the tasks touch the same files?** Isolate the work with [worktrees](</docs/en/worktrees>). Subagents and sessions you run yourself can each use a separate worktree. Agent teams don’t isolate teammates in worktrees, so [partition the work](</docs/en/agent-teams#avoid-file-conflicts>) so each teammate owns a different set of files. ##
modified
--- a/agents.md +++ b/agents.md @@ -16,7 +16,7 @@ * A [background bash command](</docs/en/interactive-mode#background-bash-commands>) runs one shell command without blocking the conversation. It doesn’t spawn an agent. * A [forked subagent](</docs/en/sub-agents#fork-the-current-conversation>), started with `/subtask`, is a subagent that inherits your full conversation context instead of starting fresh. It’s a way to spawn a subagent, not a separate surface. To copy the whole session into a new [background session](</docs/en/agent-view#from-inside-a-session>) that runs alongside it, use `/fork`. With [agent view turned off](</docs/en/agent-view#turn-off-agent-view>), the forked-subagent command is `/fork` instead and `/subtask` isn’t available. - * A [routine](</docs/en/routines>) runs a session on a schedule in Anthropic’s cloud, not in parallel on your machine. + * A [routine](</docs/en/routines>) runs a session on a schedule in the cloud, not in parallel on your machine. Running several sessions or subagents at once multiplies token usage. See [Costs](</docs/en/costs>) for usage and rate-limit details.
modified
--- a/agents.md +++ b/agents.md @@ -15,7 +15,7 @@ A few other features run Claude without you driving each step, but they solve a different problem than splitting work across agents: * A [background bash command](</docs/en/interactive-mode#background-bash-commands>) runs one shell command without blocking the conversation. It doesn’t spawn an agent. - * A [forked subagent](</docs/en/sub-agents#fork-the-current-conversation>) is a subagent that inherits your full conversation context instead of starting fresh. It’s a way to spawn a subagent, not a separate surface. + * A [forked subagent](</docs/en/sub-agents#fork-the-current-conversation>), started with `/subtask`, is a subagent that inherits your full conversation context instead of starting fresh. It’s a way to spawn a subagent, not a separate surface. To copy the whole session into a new [background session](</docs/en/agent-view#from-inside-a-session>) that runs alongside it, use `/fork`. With [agent view turned off](</docs/en/agent-view#turn-off-agent-view>), the forked-subagent command is `/fork` instead and `/subtask` isn’t available. * A [routine](</docs/en/routines>) runs a session on a schedule in Anthropic’s cloud, not in parallel on your machine. Running several sessions or subagents at once multiplies token usage. See [Costs](</docs/en/costs>) for usage and rate-limit details.
modified
--- a/agents.md +++ b/agents.md @@ -46,7 +46,7 @@ * For background sessions, `claude agents` opens [agent view](</docs/en/agent-view>): one screen showing every session, its state, and which ones need your input. * For subagents in the current session, named background subagents appear in the @-mention typeahead with their status. As of v2.1.198, `/agents` no longer opens a panel; it prints a notice pointing to the subagent file locations. To [create and edit custom subagents](</docs/en/sub-agents#configure-subagents>), ask Claude or edit the files directly. Despite the similar name, `/agents` is separate from `claude agents`. - * For anything running in the background of the current session, `/tasks` lists each item and lets you check on, attach to, or stop it. + * For anything running in the background of the current session, `/tasks` lists each item and lets you check on, attach to, or stop it. The list also includes subagents that have finished. * For dynamic workflows, `/workflows` lists running and completed runs, the phase each is in, and how many agents have finished. For a desktop view of all your sessions, see [parallel sessions in the desktop app](</docs/en/desktop#work-in-parallel-with-sessions>).
modified
--- a/agents.md +++ b/agents.md @@ -45,7 +45,7 @@ The command for checking on running work depends on which approach you used: * For background sessions, `claude agents` opens [agent view](</docs/en/agent-view>): one screen showing every session, its state, and which ones need your input. - * For subagents in the current session, `/agents` opens a panel with a **Running** tab listing live subagents and a **Library** tab where you [create and edit custom subagents](</docs/en/sub-agents#use-the-%2Fagents-command>). Despite the similar name, this is separate from `claude agents`. + * For subagents in the current session, named background subagents appear in the @-mention typeahead with their status. As of v2.1.198, `/agents` no longer opens a panel; it prints a notice pointing to the subagent file locations. To [create and edit custom subagents](</docs/en/sub-agents#configure-subagents>), ask Claude or edit the files directly. Despite the similar name, `/agents` is separate from `claude agents`. * For anything running in the background of the current session, `/tasks` lists each item and lets you check on, attach to, or stop it. * For dynamic workflows, `/workflows` lists running and completed runs, the phase each is in, and how many agents have finished.
modified
--- a/agents.md +++ b/agents.md @@ -5,7 +5,7 @@ [Subagents](</docs/en/sub-agents>)| Delegated workers inside one session that do a side task in their own context and return a summary| A side task would flood your main conversation with search results, logs, or file contents you won’t reference again [Agent view](</docs/en/agent-view>)| One screen to dispatch and monitor sessions running in the background, opened with `claude agents`. Research preview| You have several independent tasks and want to hand them off, check status at a glance, and step in only when one needs you [Agent teams](</docs/en/agent-teams>)| Multiple coordinated sessions with a shared task list and inter-agent messaging, managed by a lead. Experimental and disabled by default| You want Claude to split a project into pieces, assign them, and keep the workers in sync -[Dynamic workflows](</docs/en/workflows>)| A script that runs many subagents and cross-checks their results, for work too big to coordinate one turn at a time or that needs more than a single pass. Research preview| A job outgrows a handful of subagents, or you want findings verified against each other: a codebase-wide audit, a 500-file migration, cross-checked research, or a plan drafted from several angles +[Dynamic workflows](</docs/en/workflows>)| A script that runs many subagents and cross-checks their results, for work too big to coordinate one turn at a time or that needs more than a single pass| A job outgrows a handful of subagents, or you want findings verified against each other: a codebase-wide audit, a 500-file migration, cross-checked research, or a plan drafted from several angles In every approach the workers are Claude sessions. To involve a different tool, expose it to Claude as an [MCP server](</docs/en/mcp>). Two more tools support this work without being a way to run agents themselves:
modified
--- a/agents.md +++ b/agents.md @@ -1,9 +1,3 @@ -> ## Documentation Index -> -> Fetch the complete documentation index at: <https://code.claude.com/docs/llms.txt> -> -> Use this file to discover all available pages before exploring further. - [Subagents](</docs/en/sub-agents>), [agent view](</docs/en/agent-view>), [agent teams](</docs/en/agent-teams>), and [dynamic workflows](</docs/en/workflows>) each parallelize work in a different way. The right one depends on whether you want to stay in each conversation yourself, hand tasks off and check back later, or have Claude coordinate a group of workers for you. Approach| What it gives you| Use it when
modified
--- a/agents.md +++ b/agents.md @@ -4,17 +4,25 @@ > > Use this file to discover all available pages before exploring further. -[Subagents](</docs/en/sub-agents>), [agent view](</docs/en/agent-view>), [agent teams](</docs/en/agent-teams>), and [worktrees](</docs/en/worktrees>) each parallelize work in a different way. The right one depends on whether you want to stay in each conversation yourself, hand tasks off and check back later, or have Claude coordinate a group of workers for you. +[Subagents](</docs/en/sub-agents>), [agent view](</docs/en/agent-view>), [agent teams](</docs/en/agent-teams>), and [dynamic workflows](</docs/en/workflows>) each parallelize work in a different way. The right one depends on whether you want to stay in each conversation yourself, hand tasks off and check back later, or have Claude coordinate a group of workers for you. Approach| What it gives you| Use it when ---|---|--- [Subagents](</docs/en/sub-agents>)| Delegated workers inside one session that do a side task in their own context and return a summary| A side task would flood your main conversation with search results, logs, or file contents you won’t reference again [Agent view](</docs/en/agent-view>)| One screen to dispatch and monitor sessions running in the background, opened with `claude agents`. Research preview| You have several independent tasks and want to hand them off, check status at a glance, and step in only when one needs you [Agent teams](</docs/en/agent-teams>)| Multiple coordinated sessions with a shared task list and inter-agent messaging, managed by a lead. Experimental and disabled by default| You want Claude to split a project into pieces, assign them, and keep the workers in sync -[Worktrees](</docs/en/worktrees>)| Separate git checkouts so parallel sessions never touch each other’s files| You’re running several sessions yourself, or your subagents edit overlapping files -[`/batch`](</docs/en/commands>)| A planned split of one large change into 5 to 30 worktree-isolated subagents that each open a pull request| A repo-wide migration or mechanical refactor you can describe in one instruction +[Dynamic workflows](</docs/en/workflows>)| A script that runs many subagents and cross-checks their results, for work too big to coordinate one turn at a time or that needs more than a single pass. Research preview| A job outgrows a handful of subagents, or you want findings verified against each other: a codebase-wide audit, a 500-file migration, cross-checked research, or a plan drafted from several angles -In every approach the workers are Claude sessions. To involve a different tool, expose it to Claude as an [MCP server](</docs/en/mcp>). You can combine these approaches. Agent view automatically moves each dispatched session into its own worktree when it needs to edit files, and a session you’re working in can spawn subagents that each get their own worktree. +In every approach the workers are Claude sessions. To involve a different tool, expose it to Claude as an [MCP server](</docs/en/mcp>). Two more tools support this work without being a way to run agents themselves: + + * [Worktrees](</docs/en/worktrees>) give each session a separate git checkout, so parallel sessions never edit the same files. Use them for sessions you run yourself. Agent view moves each dispatched session into its own worktree automatically, and subagents you spawn can each get one too. + * [`/batch`](</docs/en/commands>) is a [skill](</docs/en/skills>) that has Claude split one large change into 5 to 30 worktree-isolated subagents that each open a pull request. It’s a packaged use of subagents and worktrees, not a separate coordination style. + +A few other features run Claude without you driving each step, but they solve a different problem than splitting work across agents: + + * A [background bash command](</docs/en/interactive-mode#background-bash-commands>) runs one shell command without blocking the conversation. It doesn’t spawn an agent. + * A [forked subagent](</docs/en/sub-agents#fork-the-current-conversation>) is a subagent that inherits your full conversation context instead of starting fresh. It’s a way to spawn a subagent, not a separate surface. + * A [routine](</docs/en/routines>) runs a session on a schedule in Anthropic’s cloud, not in parallel on your machine. Running several sessions or subagents at once multiplies token usage. See [Costs](</docs/en/costs>) for usage and rate-limit details. @@ -26,7 +34,11 @@ The right approach depends on who coordinates the work, whether the workers need to communicate, and whether they edit the same files: - * **Who coordinates the work?** If you want Claude to delegate and collect results inside one conversation, use [subagents](</docs/en/sub-agents>). If you’re handing off independent tasks and checking back on them, use [agent view](</docs/en/agent-view>). If you want Claude to plan, assign, and supervise a group of workers, use [agent teams](</docs/en/agent-teams>), which are experimental and disabled by default. + * **Who coordinates the work?** + * Claude delegates and collects results inside one conversation: [subagents](</docs/en/sub-agents>) + * You hand off independent tasks and check back later: [agent view](</docs/en/agent-view>) + * Claude plans, assigns, and supervises a group of workers: [agent teams](</docs/en/agent-teams>), experimental and disabled by default + * A script holds the plan instead of Claude’s turn-by-turn judgment: [dynamic workflows](</docs/en/workflows>). See [how workflows compare to subagents and skills](</docs/en/workflows#when-to-use-a-workflow>) * **Do the workers need to talk to each other?** Subagents report results back to the conversation that spawned them, and agent view sessions report only to you. Teammates in an agent team share a task list and message each other directly. * **Do the tasks touch the same files?** Isolate the work with [worktrees](</docs/en/worktrees>). Subagents and sessions you run yourself can each use a separate worktree. Agent teams don’t isolate teammates in worktrees, so [partition the work](</docs/en/agent-teams#avoid-file-conflicts>) so each teammate owns a different set of files. @@ -41,6 +53,7 @@ * For background sessions, `claude agents` opens [agent view](</docs/en/agent-view>): one screen showing every session, its state, and which ones need your input. * For subagents in the current session, `/agents` opens a panel with a **Running** tab listing live subagents and a **Library** tab where you [create and edit custom subagents](</docs/en/sub-agents#use-the-%2Fagents-command>). Despite the similar name, this is separate from `claude agents`. * For anything running in the background of the current session, `/tasks` lists each item and lets you check on, attach to, or stop it. + * For dynamic workflows, `/workflows` lists running and completed runs, the phase each is in, and how many agents have finished. For a desktop view of all your sessions, see [parallel sessions in the desktop app](</docs/en/desktop#work-in-parallel-with-sessions>). @@ -55,4 +68,5 @@ * [Create custom subagents](</docs/en/sub-agents>): define reusable specialists and control which tools they can use. * [Manage agents with agent view](</docs/en/agent-view>): dispatch sessions, watch their state, and attach when one needs you. * [Orchestrate agent teams](</docs/en/agent-teams>): set up a lead and teammates, assign tasks, and review their work. + * [Orchestrate dynamic workflows](</docs/en/workflows>): run a bundled workflow or have Claude write one that runs many subagents and verifies their findings against each other. * [Run parallel sessions with worktrees](</docs/en/worktrees>): start Claude in an isolated checkout, control what gets copied in, and clean up afterward.
added
--- a/agents.md +++ b/agents.md @@ -0,0 +1,58 @@ +> ## Documentation Index +> +> Fetch the complete documentation index at: <https://code.claude.com/docs/llms.txt> +> +> Use this file to discover all available pages before exploring further. + +[Subagents](</docs/en/sub-agents>), [agent view](</docs/en/agent-view>), [agent teams](</docs/en/agent-teams>), and [worktrees](</docs/en/worktrees>) each parallelize work in a different way. The right one depends on whether you want to stay in each conversation yourself, hand tasks off and check back later, or have Claude coordinate a group of workers for you. + +Approach| What it gives you| Use it when +---|---|--- +[Subagents](</docs/en/sub-agents>)| Delegated workers inside one session that do a side task in their own context and return a summary| A side task would flood your main conversation with search results, logs, or file contents you won’t reference again +[Agent view](</docs/en/agent-view>)| One screen to dispatch and monitor sessions running in the background, opened with `claude agents`. Research preview| You have several independent tasks and want to hand them off, check status at a glance, and step in only when one needs you +[Agent teams](</docs/en/agent-teams>)| Multiple coordinated sessions with a shared task list and inter-agent messaging, managed by a lead. Experimental and disabled by default| You want Claude to split a project into pieces, assign them, and keep the workers in sync +[Worktrees](</docs/en/worktrees>)| Separate git checkouts so parallel sessions never touch each other’s files| You’re running several sessions yourself, or your subagents edit overlapping files +[`/batch`](</docs/en/commands>)| A planned split of one large change into 5 to 30 worktree-isolated subagents that each open a pull request| A repo-wide migration or mechanical refactor you can describe in one instruction + +In every approach the workers are Claude sessions. To involve a different tool, expose it to Claude as an [MCP server](</docs/en/mcp>). You can combine these approaches. Agent view automatically moves each dispatched session into its own worktree when it needs to edit files, and a session you’re working in can spawn subagents that each get their own worktree. + +Running several sessions or subagents at once multiplies token usage. See [Costs](</docs/en/costs>) for usage and rate-limit details. + +## + +​ + +Choose an approach + +The right approach depends on who coordinates the work, whether the workers need to communicate, and whether they edit the same files: + + * **Who coordinates the work?** If you want Claude to delegate and collect results inside one conversation, use [subagents](</docs/en/sub-agents>). If you’re handing off independent tasks and checking back on them, use [agent view](</docs/en/agent-view>). If you want Claude to plan, assign, and supervise a group of workers, use [agent teams](</docs/en/agent-teams>), which are experimental and disabled by default. + * **Do the workers need to talk to each other?** Subagents report results back to the conversation that spawned them, and agent view sessions report only to you. Teammates in an agent team share a task list and message each other directly. + * **Do the tasks touch the same files?** Isolate the work with [worktrees](</docs/en/worktrees>). Subagents and sessions you run yourself can each use a separate worktree. Agent teams don’t isolate teammates in worktrees, so [partition the work](</docs/en/agent-teams#avoid-file-conflicts>) so each teammate owns a different set of files. + +## + +​ + +Check on running work + +The command for checking on running work depends on which approach you used: + + * For background sessions, `claude agents` opens [agent view](</docs/en/agent-view>): one screen showing every session, its state, and which ones need your input. + * For subagents in the current session, `/agents` opens a panel with a **Running** tab listing live subagents and a **Library** tab where you [create and edit custom subagents](</docs/en/sub-agents#use-the-%2Fagents-command>). Despite the similar name, this is separate from `claude agents`. + * For anything running in the background of the current session, `/tasks` lists each item and lets you check on, attach to, or stop it. + +For a desktop view of all your sessions, see [parallel sessions in the desktop app](</docs/en/desktop#work-in-parallel-with-sessions>). + +## + +​ + +Learn more + +Each guide below covers setup and configuration for one approach: + + * [Create custom subagents](</docs/en/sub-agents>): define reusable specialists and control which tools they can use. + * [Manage agents with agent view](</docs/en/agent-view>): dispatch sessions, watch their state, and attach when one needs you. + * [Orchestrate agent teams](</docs/en/agent-teams>): set up a lead and teammates, assign tasks, and review their work. + * [Run parallel sessions with worktrees](</docs/en/worktrees>): start Claude in an isolated checkout, control what gets copied in, and clean up afterward.