27 October 2026

دليل · Guide6 min read

سلّم المهام الجانبية لـ fork في كلود كود بأمر subtaskHand side tasks to a Claude Code fork with subtask

Learn to spin a fork off your Claude Code conversation. It works on a side task with full knowledge of what you said, while you keep going in the main session.

Who this guide is for

Anyone using Claude Code who loses context every time they delegate a side task.

Key terms

Fork
A subagent that inherits the whole conversation at the moment it starts. It has the same system prompt, tools and model, and sends back only its final result.
Regular subagent
A subagent that starts from a clean context. You give it the task in a message and it knows nothing about your conversation.
Prompt cache
A fork reuses the main session's cache, so it costs less than a fresh subagent that needs the same background.
Worktree
A separate copy of your project in git. It lets a fork edit files away from your main folder.

The steps

  1. Step 1

    Check you are on a recent version

    Forks run on their own in the interactive terminal from version 2.1.232, and are on by default everywhere else from 2.1.302.

    Run claude --version and confirm your number is at or above those.

    If you are older, update Claude Code first.

    The claude --version command in a terminal
    IllustrationThe command that checks your version

    Tip: The /subtask command works whether or not fork mode is on.

6 more steps wait for you after access

With the ready prompts and the takeaway

Bought this before?

Bought this before? Restore your access

Your access is tied to your email. Enter it here and the content opens right away, any time, on any device

Most value

Start building with me now

We sit together, break down your problem, and I build the AI solution with you step by step

60minutes
  • A private session with you
  • Real building during the session
  • Results you take with you when we finish
Book a build session

100% free

A free consultation about your problem

Start