DriversRecommendedOutdated drivers can make a good PC feel brokenScan driver issues before chasing fixes manually.Scan NowThanksgiving DealsAmazon USThanksgiving week: Black Friday picks start earlyAmazon US: current deals, useful picks and tech finds.Check DealsSlow PC?RecommendedPC slow today? Run a repair scan before it gets worseResolve common Windows issues and optimize system performance.Scan Now×
FREEDOM251

Freedom251 › Blog

Claude Code Forks vs Subagents: What /fork, /subtask, and subagent_type “fork” Actually Copy

By Freedom251 Team · · 10 min read

Special offer. See more information about Outbyte and uninstall instructions. Please review EULA and Privacy policy.

Some links on this page are affiliate links: if you buy through them we may earn a commission, at no extra cost to you.

Claude Code’s fork and subagent features are not interchangeable. A forked subagent inherits the parent session’s context and setup, while an ordinary subagent starts from its own definition and the prompt you give it. The biggest naming trap is /fork: with agent view off it starts a forked subagent, but with agent view on it copies the whole session into a separate background session. /subtask explicitly starts a forked subagent, and an Agent tool call with subagent_type: "fork" selects the same fork behavior programmatically.

Use the fork path when the delegated work depends on the conversation already in progress. Use a normal subagent when a self-contained brief is preferable and you want to control exactly what context it receives. Always check agent-view state before interpreting what /fork will do.

As an Amazon Associate I earn from qualifying purchases.

Special offer. See more information about Outbyte and uninstall instructions. Please review EULA and Privacy policy.

At a glance

Name Best for Key behavior Checked
/fork Starting either a forked subagent or a separate copied session Depends on agent view: forked subagent when off; whole-session copy in a background session when on November 2026
/subtask <task> Delegating a task while retaining the current conversation as context Starts a forked subagent from the current conversation; runs in the background and returns its result November 2026
subagent_type: "fork" Requesting fork behavior through the Agent tool Inherits the parent conversation, system prompt, tools, model and shared prompt cache at spawn time November 2026
Ordinary subagent Isolated, self-contained delegated work Starts from its own subagent definition and the prompt supplied to it; no parent conversation history November 2026

The authoritative descriptions are in Anthropic’s Claude Code subagents documentation. The table uses the behavior documented there; it does not represent a performance benchmark.

What does /fork do in Claude Code?

/fork has two documented meanings, controlled by agent-view state. When agent view is off, it starts a forked subagent. When agent view is on, it copies the whole session into a separate background session instead. The command name alone is therefore not enough to determine what receives the work.

Popular on Amazon
Sale
Silkland 40Gbps USB C 90 Degree Right Angle Adapter 2 Pack, 240W USB4 | Male to Female Extender, 8K@60Hz, Thunderbolt 4/3, Steam Deck, ROG Ally, MacBook, Switch 2, iPhone 18/17/16/15, Quest 3 VR
  • 【90 Degree Full Function USB C Adapter】Supports the latest USB4 standard for up to 40Gbps of bandwidth, 8K video support, and up to 240W Fast charging; Support USB PD 3.1 Extended Power Range (EPR) including 140W, 180W and 240W. Your productivity is easily doubled. *Warm Tip: For the best fit, please make sure the USB-C port is fully exposed; thick or bulky cases may affect compatibility.
  • 【Reliable Quality】Made from high-quality, scratch-resistant aluminum alloy, delicate metal frame. get excellent wear resistance and heat dissipation. Non-Slip Design for easier insertion and removal.
  • 【Small and portable】Ultra thin size, ultra compact design, a petite physique that matches the minimalist design of your modern laptops. Coming with a slim figure that won't block the port next to the one it's plugged into.
  • 【Compatibility】Widely work with most usb c, thunderbolt 4/3 devices. Compatibilit for ROG Ally, Steam Deck, Switch, MacBook Pro, Quest 3 VR headset, Surface Book 2, iPhone 18/17/16/15, Samsung Galaxy S23/S22/S21, Note 20/10, Google Pixel, ChromeBook, etc.
  • 【Excellence Customer Support】If you experience any issues or cable failure, simply reach out to our dedicated customer service team. We provide a prompt response within 18 hours, providing you with the necessary technical support to resolve any concerns.

Agent view off: a forked subagent

In this mode, /fork takes the current conversation as the starting point for a delegated subagent. The child can see the context that exists when it is spawned, so you do not need to paste the entire discussion into a new prompt. Its tool calls stay out of the main conversation, and its final result is returned to the main conversation.

This is useful when the task is a branch of the work already underway: for example, asking for a second implementation approach, a review of a design decision, or an investigation that relies on earlier requirements and error messages.

Special offer. See more information about Outbyte and uninstall instructions. Please review EULA and Privacy policy.

Agent view on: a copied background session

With agent view enabled, the documentation describes /fork as copying the whole session into a new background session. That is a session-level copy, not merely a request to run a short delegated task with the normal subagent interface. Treat it as a separate working session that starts from the copied state.

The practical consequence is that two people can read the same command as “make a fork,” yet mean different operations because their agent-view settings differ. Before explaining a result or writing automation around /fork, verify whether agent view is enabled in the running Claude Code environment.

Why the agent-view check matters

Many mistakes come from assuming that the slash command has one permanent meaning. If you expect a forked subagent but agent view is on, you may instead create a background session; if you expect a whole-session copy but agent view is off, you may get a delegated subagent whose result is sent back to the parent. The documentation’s behavior is configuration-sensitive, so record the agent-view state alongside any runbook or team instruction that mentions /fork.

What does /subtask copy?

/subtask <task> explicitly starts a forked subagent from the current conversation. Unlike the ambiguous /fork label, its documented purpose is to delegate a task using the current conversation as inherited context.

Free tools Windows power users keep installed

One-click scans. No signup required.

Special offer. See more information about Outbyte and uninstall instructions. Please review EULA and Privacy policy.

A typical invocation is:

/subtask Check the proposed API change for backwards-compatibility risks and report concrete fixes.

The forked subagent works in the background while the main conversation continues. When it finishes, its result comes back to the main conversation. The parent therefore remains available for another line of work instead of waiting synchronously for every delegated action.

Also popular on Amazon
Sale
Anker USB C Hub, 5-in-1 USBC to HDMI Splitter with 4K Display | 85W Max PD, 1 Powered USB-C 5Gbps & 2 Powered USB-A 3.0 5Gbps Data Ports, for MacBook Pro, MacBook Air, Dell and More (Black)
  • 5-in-1 Connectivity: Equipped with a 4K HDMI port, a 5 Gbps USB-C data port, two 5 Gbps USB-A ports, and a USB C 100W PD-IN port. Note: The USB C 100W PD-IN port supports only charging and does not support data transfer devices such as headphones or speakers.
  • Powerful Pass-Through Charging: Supports up to 85W pass-through charging so you can power up your laptop while you use the hub. Note: Pass-through charging requires a charger (not included). Note: To achieve full power for iPad, we recommend using a 45W wall charger.
  • Transfer Files in Seconds: Move files to and from your laptop at speeds of up to 5 Gbps via the USB-C and USB-A data ports. Note: The USB C 5Gbps Data port does not support video output.
  • HD Display: Connect to the HDMI port to stream or mirror content to an external monitor in resolutions of up to 4K@30Hz. Note: The USB-C ports do not support video output.
  • What You Get: Anker 332 USB-C Hub (5-in-1), welcome guide, our worry-free 18-month warranty, and friendly customer service.

What the subtask inherits

Because /subtask creates a fork, the child starts with the conversation and session setup available at the moment it is created. The documentation summarizes this rule as: “A fork inherits everything the main session has at the moment it spawns.” That inherited starting point is the reason a subtask can refer to requirements, files, decisions or failures already discussed without your repeating them.

Inheritance is a snapshot at spawn time, not a promise that later parent messages will be retroactively inserted into the child. Put any new constraint that appears after spawning into a follow-up message or a new task.

When /subtask is the clearest choice

  • Use it for a side investigation that depends on a long conversation.
  • Use it when you want the parent to continue while the delegated work runs.
  • Use it when you want the command’s meaning to remain “fork a subagent,” regardless of the ambiguity around /fork.

The documentation says /subtask can be used whether or not fork mode is enabled. That makes it a useful explicit alternative when an environment setting has changed how /fork behaves.

Special offer. See more information about Outbyte and uninstall instructions. Please review EULA and Privacy policy.

What does subagent_type: "fork" copy?

An Agent tool call with subagent_type: "fork" selects fork behavior programmatically. The fork receives the parent session’s state at the instant it is spawned: full conversation history, system prompt, available tools, model and shared prompt cache.

An abstract call looks like this:

Agent({
  subagent_type: "fork",
  prompt: "Review the migration plan and identify missing rollback steps."
})

The exact surrounding syntax depends on the interface or integration invoking the Agent tool; the significant field here is the value "fork". It tells Claude Code to create the inherited-context variant rather than an ordinary subagent.

The five pieces of inherited setup

  1. Conversation history: The fork starts with the parent discussion that exists when it is spawned.
  2. System prompt: The parent’s system-level instructions are part of the fork’s starting setup.
  3. Tools: The fork receives the tools available to the main session at spawn time.
  4. Model: The fork uses the model selected by the parent session at that point.
  5. Shared prompt cache: The fork shares the parent’s prompt-cache context as described in the documentation. No numeric speed or cost improvement is stated by the source.

Forked tool calls remain separate from the main conversation while the work is running; the parent receives the completed result rather than an interleaved transcript of every child action.

How is an ordinary subagent different?

An ordinary, non-fork subagent starts fresh from its own subagent definition and the prompt you pass to it. It does not inherit the parent conversation history. Its model is determined by that subagent definition, and it uses a separate prompt cache.

Special offer. See more information about Outbyte and uninstall instructions. Please review EULA and Privacy policy.
Also popular on Amazon
Sale
Anker USB C Hub, 7in1 Multi-Port USB Adapter, 4K@60Hz USBC to HDMI Splitter | 85W Max PD, 2 USB 3.0 & 1 USBC Data Ports, SD/TF Card Reader, for Laptops/Mac and Other Type C Devices (Charger Not Included)
  • Sleek 7-in-1 USB-C Hub: Features an HDMI port, two USB-A 3.0 ports, and a USB-C data port, each providing 5Gbps transfer speeds. It also includes a USB-C PD input port for charging up to 100W and dual SD and TF card slots, all in a compact design.
  • Flawless 4K@60Hz Video with HDMI: Delivers exceptional clarity and smoothness with its 4K@60Hz HDMI port, making it ideal for high-definition presentations and entertainment. (Note: Only the HDMI port supports video projection; the USB-C port is for data transfer only.)
  • Double Up on Efficiency: The two USB-A 3.0 ports and a USB-C port support a fast 5Gbps data rate, significantly boosting your transfer speeds and improving productivity.
  • Fast and Reliable 85W Charging: Offers high-capacity, speedy charging for laptops up to 85W, so you spend less time tethered to an outlet and more time being productive.
  • What You Get: Anker USB-C Hub (7-in-1), welcome guide, 18-month warranty, and our friendly customer service.

That isolation is intentional. Instead of relying on hidden or lengthy context, give the subagent a complete brief:

Task: Review the API migration plan.
Repository area: services/billing and docs/migrations.
Known constraint: clients on version 3 must keep working.
Deliverable: list risks, affected files and rollback steps.

The more the task depends on details from the parent discussion, the more important it is to copy those details into the prompt. Include paths, decisions, assumptions, error messages, acceptance criteria and the desired output format. A short instruction such as “review this” may be insufficient when the subagent cannot see the preceding conversation.

Isolation versus convenience

The trade-off is straightforward:

  • Fork: less prompt re-entry and more continuity, because the child inherits the parent’s context and setup.
  • Ordinary subagent: more explicit briefing and stronger context isolation, because the child begins from its own definition.

Neither choice is universally better. A fork is convenient for a branch of the same investigation; an ordinary subagent is easier to reason about when you want a narrowly scoped, reproducible brief that does not depend on everything said earlier.

What exactly is copied in each mode?

The following comparison separates the parts that are documented as inherited from the parts you must provide yourself.

Special offer. See more information about Outbyte and uninstall instructions. Please review EULA and Privacy policy.
Context item Forked subagent (/subtask or subagent_type: "fork") Ordinary subagent
Parent conversation Inherited at spawn time Not inherited
System prompt Inherited Comes from the subagent’s own definition
Tools Inherited from the main session at spawn time Uses the tools configured for that subagent
Model Inherited from the main session at spawn time Selected by the subagent definition
Prompt cache Shared with the parent session, as documented Separate prompt cache
Task-specific instructions Add them in the fork command or Agent prompt Supply them in the prompt; include all necessary context
Child tool-call transcript Kept out of the main conversation while running; final result returns Controlled by the ordinary subagent workflow

For /fork with agent view on, use the documentation’s separate-session description rather than assuming the table’s forked-subagent row applies. The command has changed meaning at that branch, which is why agent-view state must be checked first.

Which option should you choose?

Choose based on context inheritance first, then on session behavior. The following decision rule covers most workflows.

  1. Does the work rely on the full conversation? Choose /subtask or an Agent call with subagent_type: "fork". The inherited history avoids reconstructing the requirements.
  2. Is a concise, self-contained brief enough? Choose an ordinary subagent. Write the paths, constraints and expected deliverable directly in its prompt.
  3. Do you specifically want a copied background session? Check that agent view is on and use /fork with that behavior in mind.
  4. Do you need predictable slash-command semantics? Prefer /subtask for a forked subagent, because /fork is agent-view dependent.
  5. Are you calling the Agent tool from automation? Set subagent_type: "fork" when inherited conversation and session setup are required.

Examples

Parallel design review: You have discussed requirements, rejected two approaches and recorded a failing example. Start a forked subagent so the reviewer sees that history, then continue drafting in the parent.

Also popular on Amazon
Sale
BENFEI USB C Hub 5-in-1 with 4K HDMI(Certified), 100W Power Delivery, 3 USB-A, Silicone Cable, Aluminum Case Compatible with MacBook Pro/Air, iPad Pro, iMac, iPhone 15 Pro/Pro Max, XPS, Thinkpad
  • Portable and powerful USB-C HUB: BENFEI USB Type-C HUB, with super-soft and knot-free silicone woven design cable, meets most mobile office needs. Compact, lightweight, stylish, and powerful portable USB C Hub equipped with 1 x HDMI port, 1 x 100W charging, and 3 x USB ports. 18-month warranty, 24-hour response, to ensure you feel at ease when using our product.
  • Design centered on comfort and reliability: Thanks to BENFEI's end-to-end in-house cable production capability, in-house PCBA and assembly capability, using the industry's most advanced silicone woven design and process, 20cm cable in length, no knots, super-soft, the HUB is easy to use in all scenarios: laptop, tablet, stand etc. Super-soft, 25000+ life cycles, to meet your daily carrying and office needs.
  • 100W Charging: Support up to 90W USB C pass-through charging via Type-C port to keep your laptop powered. 10W is reserved for other interface operations. No data and video function on the Type-C port.
  • 4K HDMI Display: The HDMI port supports media display at resolutions up to 4K 30Hz, keeping every incredible moment detailed and ultra vivid. Please note that the C port of the Host device needs to support video output.
  • Transfer Files in Seconds: Transfer files and from your laptop at speeds up to 10 Gbps with USB A 3.2 port. Extra 2 USB A 2.0 ports are perfectly for your keyboards and mouse.

Independent linting checklist: Give an ordinary subagent the repository paths, coding standard and output format. There is no need to expose the entire conversation, and an explicit brief makes the result easier to reproduce.

Special offer. See more information about Outbyte and uninstall instructions. Please review EULA and Privacy policy.

Long-running alternate workstream: If your interface’s agent view presents /fork as a whole-session copy, use it when you deliberately want a separate background session rather than a child whose final answer is simply returned to the parent.

Independent reader supportYour contribution helps us test, update, and keep practical guides available for everyone.Support on Ko-Fi

How can you avoid common fork and subagent mistakes?

1. Check agent view before interpreting /fork

Do not document /fork as having one unconditional meaning. Note whether agent view is enabled in the environment where the command will run.

2. Distinguish inherited context from a copied task prompt

A fork can see the parent conversation, but an ordinary subagent cannot. If you switch mechanisms, rewrite the task brief so it contains the facts the child needs.

3. Treat inheritance as a point-in-time snapshot

Spawned work starts from the state available at creation. Later edits or decisions in the parent should be sent explicitly if the child must act on them.

Special offer. See more information about Outbyte and uninstall instructions. Please review EULA and Privacy policy.

4. Define the expected result

Ask for a concrete output such as a list of affected files, a risk register, a patch outline or a yes/no recommendation with reasons. This is particularly important for ordinary subagents, which have no surrounding conversation to infer the desired format.

5. Do not infer performance from cache sharing

The documentation describes shared versus separate prompt caches but publishes no measured cost, speed or quality comparison. Treat cache behavior as a context and configuration fact, not as a guaranteed numeric advantage.

Also popular on Amazon
𝟒𝐏𝐚𝐜𝐤 𝐔𝐩𝐠𝐫𝐚𝐝𝐞𝐝 USB to USB C Adapter,Type-C Female to A Male Charger Converter for iPhone 18 Charger,iWatch Ultra SE 9 10,iPhone 17 Pro Max 16 15 14,Samsung S25,AirPods,iPad,Car,Xbox
  • 【Read before You Buy】 Note: This adapter is USB 2.0 version and cannot transmit HDM, VGA, or other video signals. Nevertheless, they are fully capable of charging devices,duplicating files, and can be seamlessly integrated with USB-C earphones, wireless network adapters, and SD card adapters.
  • 【Easy to Use and Safe】Thanks to modern manufacturing techniques, we've made these adapters sufficiently compact so that they can remain inserted in your device without noticeable protrusion or inconvenience. This means you don't have to constantly plug and unplug them, reducing the likelihood of wear and misalignment, and making them more convenient to carry around.
  • 【Reliable Quality】Engineered for enhanced durability, durable aluminum alloy shell material,get excellent wear resistance and heat dissipation,the male USB C and female USB connectors & the male USB and female USB C connectors are designed to be plugged and unplugged up to 20000 times. Provides data transfer, device charging, memory space expansion, and additional computer peripherals.
  • 【Think more for you】Do you need to connect a USB-C-enabled device to an odd device that only has USB-A ports? Then these USB-A male to USB-C female adapters are made for you.Simply insert the adapter into the USB-A port on the device, and you can instantly connect your USB-C device to the device that originally didn't have the correct connection port.
  • 【Trusted xiwxi Quality and Service】As a responsible brand seller, you will receive xiwxi's 12-month Quality assurance and lifetime friendly customer service, you're not just buying a product,you're investing in peace of mind with all-round quality and exceptional customer service.

6. Keep parent and child responsibilities clear

A fork’s tool calls stay out of the main conversation while it runs, and the final result is returned to the parent. Decide in advance whether the parent should integrate the result, request another pass or abandon the branch.

What version and configuration caveats apply?

Fork mode is release-sensitive. The documentation states that fork mode is on by default from Claude Code v2.1.302, and in interactive terminal sessions from v2.1.232. It also states that setting CLAUDE_CODE_FORK_SUBAGENT=0 turns fork mode off.

What’s actually slowing this PC down?

Pick the symptom - the matching free tool is one click away.

Special offer. See more information about Outbyte and uninstall instructions. Please review EULA and Privacy policy.

/subtask remains usable whether or not fork mode is on. The cited documentation does not establish a minimum version for every use of /subtask or for every explicit subagent_type: "fork" call, so do not infer one. Check the version installed in your environment and the current Claude Code subagents documentation before writing a team standard.

When troubleshooting, record the Claude Code version, whether the session is interactive, the value of CLAUDE_CODE_FORK_SUBAGENT, and agent-view state. Those four details can explain why two apparently identical /fork commands produce different session behavior.

What is the simplest rule to remember?

Fork means “inherit the current session”; ordinary subagent means “start from a definition and a brief.” Use /subtask or subagent_type: "fork" when that inheritance is the point. Treat /fork as conditional: first determine agent-view state, then decide whether you are creating a forked subagent or a copied background session.

Frequently Asked Questions

Can I turn fork mode off without removing /subtask?

Yes. The documented control is CLAUDE_CODE_FORK_SUBAGENT=0, which turns fork mode off. The documentation says /subtask can still be used whether fork mode is enabled or disabled, so the explicit command remains available.

Special offer. See more information about Outbyte and uninstall instructions. Please review EULA and Privacy policy.

Does a fork automatically include messages I send after it starts?

No automatic retroactive update is documented. A fork inherits the parent state at the moment it spawns, so send later requirements explicitly or start another task if the new information is essential.

Does shared prompt-cache context guarantee that a fork is faster or cheaper?

No. Shared prompt-cache behavior is documented, but the source provides no measured speed, cost or quality comparison. Treat it as an implementation detail rather than a promised performance result.

What should I put in an ordinary subagent’s prompt?

Include the task objective, relevant repository paths or artifacts, constraints, decisions already made, known errors and the exact format you want back. Since an ordinary subagent does not receive the parent conversation, those details replace the context a fork would inherit.

Product prices and availability are accurate as of the date/time indicated and are subject to change. Any price and availability information displayed on Amazon at the time of purchase will apply. Prices as of November 23, 2026 9:53 pm GMT+0530.

Leave a Reply

Your email address will not be published. Required fields are marked *

Special offer. See more information about Outbyte and uninstall instructions. Please review EULA and Privacy policy.

Recommended PC Tool
Recommended PC Tool
PC Slower Than It Used to Be?Free scan - under a minute
Crashes, No Sound, or Screen Glitches?Free driver scan

Two free Windows tools

One Free Minute Could Fix That PC

Before you go - each of these free tools takes about a minute and tackles what quietly slows a Windows PC down.

Special offer. View Outbyte info, uninstall instructions, EULA, and Privacy Policy.