{"id":8353,"date":"2026-12-03T16:14:57","date_gmt":"2026-12-03T16:14:57","guid":{"rendered":"https:\/\/jonjones.ai\/uncategorized\/claude-code-fork\/"},"modified":"2026-12-03T16:14:57","modified_gmt":"2026-12-03T16:14:57","slug":"%e5%85%8b%e5%8b%9e%e5%be%b7%e4%bb%a3%e7%a2%bc%e5%88%86%e5%8f%89","status":"publish","type":"post","link":"https:\/\/jonjones.ai\/zh\/%e4%ba%ba%e5%b7%a5%e6%99%ba%e6%85%a7\/%e5%85%8b%e5%8b%9e%e5%be%b7%e4%bb%a3%e7%a2%bc%e5%88%86%e5%8f%89\/","title":{"rendered":"Claude Code Fork \u8a73\u89e3\uff082026 \u5e74 12 \u6708\uff09\uff1a\/fork vs \/branch vs \/subtask vs context: fork\uff0c\u4ee5\u53ca\u54ea\u500b\u53ef\u4ee5\u7121\u4eba\u503c\u5b88\u904b\u884c"},"content":{"rendered":"<p>Search <strong>Claude Code fork<\/strong> and the top two explainers contradict each other. One says <code>\/fork<\/code> starts a new independent session. The other says it copies your conversation into a background agent, and that the thing it used to do is now called <code>\/subtask<\/code>. They&#8217;re both right. They&#8217;re describing different versions of the same CLI.<\/p>\n\n<p>Claude Code uses the word &#8220;fork&#8221; for at least four different things, and one command, <code>\/fork<\/code> itself, has changed meaning three times since it shipped. This guide pins every one of them to a version number from Anthropic&#8217;s own changelog, which I read on 4 December 2026 (the newest release then was v2.1.335). Then it answers the question nobody else covers: which of these forks still work when nobody is at the keyboard.<\/p>\n\n<p>That last part isn&#8217;t theory for me. My agent fleet has made 2,331 scheduled runs since 12 June 2026, every one of them a headless <code>claude --print<\/code> call from a cron dispatcher. So I tested every fork in that exact mode, on the CLI version my containers really run (v2.1.292), and I&#8217;ll show you what came back.<\/p>\n\n<h2>Claude Code Fork: The Short Answer (Four Features, One Word)<\/h2>\n<figure class=\"wp-block-image size-large\"><img loading=\"lazy\" decoding=\"async\" width=\"1344\" height=\"752\" src=\"https:\/\/jonjones.ai\/wp-content\/uploads\/2026\/12\/claude-code-fork-s1-20261204.jpg\" alt=\"Five frosted glass shapes in a row on a dark surface: a sphere, cube and cylinder lit teal, and a cone and square slab lit amber\" class=\"wp-image-8345\" srcset=\"https:\/\/jonjones.ai\/wp-content\/uploads\/2026\/12\/claude-code-fork-s1-20261204.jpg 1344w, https:\/\/jonjones.ai\/wp-content\/uploads\/2026\/12\/claude-code-fork-s1-20261204-768x430.jpg 768w, https:\/\/jonjones.ai\/wp-content\/uploads\/2026\/12\/claude-code-fork-s1-20261204-18x10.jpg 18w, https:\/\/jonjones.ai\/wp-content\/uploads\/2026\/12\/claude-code-fork-s1-20261204-600x336.jpg 600w\" sizes=\"auto, (max-width: 1344px) 100vw, 1344px\" \/><\/figure>\n\n<p>When someone types &#8220;Claude Code fork&#8221; into a search bar, they mean one of these. The difference that matters is the same every time: <strong>what does the copy inherit, and who keeps working on it?<\/strong><\/p>\n\n<figure class=\"wp-block-table\"><table>\n<thead><tr><th>What you type<\/th><th>What it copies<\/th><th>Where you end up<\/th><th>Reports back?<\/th><th>Own files?<\/th><\/tr><\/thead>\n<tbody>\n<tr><td><code>\/fork [prompt]<\/code> (agent view on)<\/td><td>The whole conversation, into a new background session<\/td><td>You stay put. The copy is its own row in agent view<\/td><td>No<\/td><td>Told to make its own git worktree (v2.1.221+)<\/td><\/tr>\n<tr><td><code>\/branch [name]<\/code><\/td><td>The whole conversation<\/td><td>You switch <em>into<\/em> the copy. The original waits in <code>\/resume<\/code><\/td><td>No<\/td><td>No. Same checkout<\/td><\/tr>\n<tr><td><code>claude --resume &lt;id&gt; --fork-session<\/code><\/td><td>The whole conversation, under a new session ID<\/td><td>A new process, from the command line<\/td><td>No<\/td><td>No. Same checkout<\/td><\/tr>\n<tr><td><code>\/subtask &lt;task&gt;<\/code> (a &#8220;forked subagent&#8221;)<\/td><td>The whole conversation, plus the same tools and model<\/td><td>You keep working. It runs in the background<\/td><td>Yes, its final result only<\/td><td>No, unless spawned with <code>isolation: \"worktree\"<\/code><\/td><\/tr>\n<tr><td><code>context: fork<\/code> in a skill<\/td><td><strong>Nothing.<\/strong> A fresh subagent gets the skill text as its prompt<\/td><td>You keep working<\/td><td>Yes, when it finishes<\/td><td>No<\/td><\/tr>\n<\/tbody><\/table><\/figure>\n\n<p>Two of those surprise people. First, <code>context: fork<\/code> doesn&#8217;t fork your conversation at all. Anthropic&#8217;s skills docs say so in as many words, and I&#8217;ll come back to it. Second, none of the conversation forks copy your files. Every one of them edits the same project folder unless a worktree gets involved.<\/p>\n\n<p>There&#8217;s also a fifth meaning that has nothing to do with sessions: forking a GitHub repo called claude-code-something. I&#8217;ll deal with that in the FAQ so it stops polluting the results.<\/p>\n\n<p>If you only need one rule: <strong>want a second opinion that knows the whole story and reports back? <code>\/subtask<\/code>. Want to try a different direction yourself? <code>\/branch<\/code>. Want a parallel session that runs on its own? <code>\/fork<\/code>.<\/strong><\/p>\n\n<h2>How \/fork Changed Meaning Three Times (and Why Old Tutorials Disagree)<\/h2>\n<figure class=\"wp-block-image size-large\"><img loading=\"lazy\" decoding=\"async\" width=\"1344\" height=\"752\" src=\"https:\/\/jonjones.ai\/wp-content\/uploads\/2026\/12\/claude-code-fork-s2-20261204.jpg\" alt=\"Three frosted glass plates floating and rising left to right, tinted dark teal, light cyan and amber, wrapped in faint looping light ribbons\" class=\"wp-image-8346\" srcset=\"https:\/\/jonjones.ai\/wp-content\/uploads\/2026\/12\/claude-code-fork-s2-20261204.jpg 1344w, https:\/\/jonjones.ai\/wp-content\/uploads\/2026\/12\/claude-code-fork-s2-20261204-768x430.jpg 768w, https:\/\/jonjones.ai\/wp-content\/uploads\/2026\/12\/claude-code-fork-s2-20261204-18x10.jpg 18w, https:\/\/jonjones.ai\/wp-content\/uploads\/2026\/12\/claude-code-fork-s2-20261204-600x336.jpg 600w\" sizes=\"auto, (max-width: 1344px) 100vw, 1344px\" \/><\/figure>\n\n<p>This is why the search results argue with each other. I pulled every fork-related line out of the <a href=\"https:\/\/github.com\/anthropics\/claude-code\/blob\/main\/CHANGELOG.md\" target=\"_blank\" rel=\"noopener\">official Claude Code changelog<\/a>. Here&#8217;s the timeline that matters:<\/p>\n\n<figure class=\"wp-block-table\"><table>\n<thead><tr><th>Version<\/th><th>What changed<\/th><\/tr><\/thead>\n<tbody>\n<tr><td>2.0.73<\/td><td><code>--fork-session<\/code> already exists. This release lets you pick a custom ID for the forked session with <code>--session-id<\/code><\/td><\/tr>\n<tr><td>2.1.0<\/td><td>Skills and slash commands can run &#8220;in a forked sub-agent context&#8221; with <code>context: fork<\/code> in the frontmatter<\/td><\/tr>\n<tr><td>2.1.77<\/td><td>&#8220;Renamed <code>\/fork<\/code> to <code>\/branch<\/code> (<code>\/fork<\/code> still works as an alias)&#8221;. <strong>Meaning #1: fork = branch the conversation<\/strong><\/td><\/tr>\n<tr><td>2.1.117<\/td><td>Forked subagents can be switched on with <code>CLAUDE_CODE_FORK_SUBAGENT=1<\/code><\/td><\/tr>\n<tr><td>2.1.121<\/td><td>That env var now works in <code>claude -p<\/code> and the SDK too<\/td><\/tr>\n<tr><td>2.1.212<\/td><td>&#8220;<code>\/fork<\/code> now copies your conversation into a new background session&#8230; the in-session subagent it used to launch is now <code>\/subtask<\/code>&#8220;. <strong>Meaning #2 (fork = forked subagent) ends, meaning #3 (fork = background session) begins<\/strong><\/td><\/tr>\n<tr><td>2.1.218<\/td><td><code>context: fork<\/code> skills run in the background by default (opt out with <code>background: false<\/code>)<\/td><\/tr>\n<tr><td>2.1.221<\/td><td>Sessions made with <code>\/fork<\/code> create their own worktree instead of editing your checkout<\/td><\/tr>\n<tr><td>2.1.232<\/td><td>Fork mode on by default in the interactive terminal (per the sub-agents docs)<\/td><\/tr>\n<tr><td>2.1.257<\/td><td><code>\/fork<\/code> keeps the original conversation&#8217;s prompt cache in the new session<\/td><\/tr>\n<tr><td>2.1.302<\/td><td>Fork subagents on by default in <code>claude -p<\/code>, the Agent SDK, the desktop app and VS Code<\/td><\/tr>\n<tr><td>2.1.330<\/td><td>VS Code gets its own <code>\/fork<\/code> &#8220;to fork a conversation after its last reply&#8221;<\/td><\/tr>\n<\/tbody><\/table><\/figure>\n\n<p>So a tutorial written in spring 2026 says <code>\/fork<\/code> branches your chat. One written in late summer says it launches a subagent that reports back. One written after 2.1.212 says it spins off a background session. Same command, three behaviours. I couldn&#8217;t find the exact release where <code>\/fork<\/code> stopped being a <code>\/branch<\/code> alias and became the subagent launcher. The changelog only confirms it had happened by 2.1.212. I&#8217;d rather tell you that than invent a number.<\/p>\n\n<p>There&#8217;s one more trap. If you turn <strong>agent view<\/strong> off, <code>\/fork<\/code> goes back to starting a forked subagent and <code>\/subtask<\/code> disappears. The <a href=\"https:\/\/code.claude.com\/docs\/en\/commands\" target=\"_blank\" rel=\"noopener\">commands reference<\/a> says this in both rows. So even on today&#8217;s version, the answer to &#8220;what does \/fork do?&#8221; starts with &#8220;which settings are you on?&#8221;<\/p>\n\n<p>Check yours with <code>claude --version<\/code> before you trust any guide, this one included. My <a href=\"https:\/\/jonjones.ai\/ai\/claude-code-cheat-sheet\/\">Claude Code cheat sheet<\/a> has the rest of the commands, checked against the same docs.<\/p>\n\n<h2>\/fork vs \/branch vs &#8211;fork-session: Copying the Conversation<\/h2>\n<figure class=\"wp-block-image size-large\"><img loading=\"lazy\" decoding=\"async\" width=\"1344\" height=\"752\" src=\"https:\/\/jonjones.ai\/wp-content\/uploads\/2026\/12\/claude-code-fork-s3-20261204.jpg\" alt=\"Two tall frosted glass slabs side by side, the left one grey-teal and the right one glowing warm amber, with a thin cyan line of light behind both\" class=\"wp-image-8348\" srcset=\"https:\/\/jonjones.ai\/wp-content\/uploads\/2026\/12\/claude-code-fork-s3-20261204.jpg 1344w, https:\/\/jonjones.ai\/wp-content\/uploads\/2026\/12\/claude-code-fork-s3-20261204-768x430.jpg 768w, https:\/\/jonjones.ai\/wp-content\/uploads\/2026\/12\/claude-code-fork-s3-20261204-18x10.jpg 18w, https:\/\/jonjones.ai\/wp-content\/uploads\/2026\/12\/claude-code-fork-s3-20261204-600x336.jpg 600w\" sizes=\"auto, (max-width: 1344px) 100vw, 1344px\" \/><\/figure>\n\n<p>All three of these make a full copy of the conversation. They differ in where the copy runs and who drives it.<\/p>\n\n<h3>\/branch: you move into the copy<\/h3>\n<p><code>\/branch try-streaming<\/code> copies the transcript and switches the running process to write to the copy. The original stays on disk and shows up in <code>\/resume<\/code>. If you don&#8217;t give it a name, Claude Code names it after the first prompt in the conversation. The confirmation prints both session IDs, so copy the original&#8217;s ID somewhere if you plan to go back.<\/p>\n\n<p>Because it&#8217;s the same process, the <a href=\"https:\/\/code.claude.com\/docs\/en\/sessions\" target=\"_blank\" rel=\"noopener\">sessions docs<\/a> list a few things that follow you into the branch:<\/p>\n<ul>\n<li>Your &#8220;allow for this session&#8221; permission grants carry over.<\/li>\n<li>Background subagents and background Bash commands that were already running keep running, and &#8220;their output appears in the new branch you switched into, not in the original session.&#8221;<\/li>\n<li>A phone or browser connected through Remote Control follows you into the branch.<\/li>\n<\/ul>\n<p>That second point catches people out. Start a long test run, <code>\/branch<\/code> to try something else, and the test results land in the branch, not in the conversation that asked for them.<\/p>\n\n<h3>\/fork: the copy runs without you<\/h3>\n<p><code>\/fork<\/code> copies the conversation into a <strong>new background session<\/strong> and leaves you where you were. Give it a prompt and the copy starts on it right away. Without one, it sits in agent view waiting for its first instruction. Nothing the copy does flows back into your conversation. It&#8217;s a separate session that you check on later.<\/p>\n\n<p>The docs add one limit worth knowing: sessions started with launch flags the copy wouldn&#8217;t inherit (a replaced system prompt, a <code>--tools<\/code> allowlist) can&#8217;t be forked this way.<\/p>\n\n<h3>&#8211;fork-session: the same idea from the command line<\/h3>\n<p><code>claude --resume &lt;id&gt; --fork-session<\/code> (or <code>claude --continue --fork-session<\/code>) loads an old conversation under a <strong>new<\/strong> session ID and leaves the original untouched. It&#8217;s the only one of the three that&#8217;s a launch flag rather than a slash command, which is why it matters for automation. More on that in the headless section.<\/p>\n\n<p>One difference from <code>\/branch<\/code>: the new process &#8220;starts without&#8221; your session permission grants, &#8220;and you re-approve there.&#8221; And one rule that applies to everyone running parallel terminals: <strong>if you resume the same session in two terminals or two <code>claude -p<\/code> runs at once, both write to one transcript, and messages from one of them can go missing.<\/strong> Anthropic&#8217;s fix is to add <code>--fork-session<\/code> to each command. That&#8217;s the single most useful sentence on the sessions page.<\/p>\n\n<style>#kt-layout-idsignup_mid > .kt-row-column-wrap{align-content:start;}:where(#kt-layout-idsignup_mid > .kt-row-column-wrap) > .wp-block-kadence-column{justify-content:start;}#kt-layout-idsignup_mid > .kt-row-column-wrap{column-gap:var(--global-kb-gap-md, 2rem);row-gap:var(--global-kb-gap-md, 2rem);padding-top:var( --global-kb-row-default-top, 25px );padding-bottom:var( --global-kb-row-default-bottom, 25px );padding-top:30px;padding-right:30px;padding-bottom:30px;padding-left:30px;grid-template-columns:repeat(2, minmax(0, 1fr));}#kt-layout-idsignup_mid{border-top-left-radius:16px;border-top-right-radius:16px;border-bottom-right-radius:16px;border-bottom-left-radius:16px;overflow:clip;isolation:isolate;}#kt-layout-idsignup_mid > .kt-row-layout-overlay{border-top-left-radius:16px;border-top-right-radius:16px;border-bottom-right-radius:16px;border-bottom-left-radius:16px;}#kt-layout-idsignup_mid{background-color:#0d1117;}#kt-layout-idsignup_mid > .kt-row-layout-overlay{opacity:0.30;}@media all and (max-width: 1024px){#kt-layout-idsignup_mid > .kt-row-column-wrap{grid-template-columns:minmax(0, 1fr);}}@media all and (max-width: 767px){#kt-layout-idsignup_mid > .kt-row-column-wrap{grid-template-columns:repeat(2, minmax(0, 1fr));}}<\/style>\n<div class=\"wp-block-kadence-rowlayout alignnone\">\n<style>.kadence-columnsignup_img_mid > .kt-inside-inner-col{border-top-width:0px;border-right-width:0px;border-bottom-width:0px;border-left-width:0px;}.kadence-columnsignup_img_mid > .kt-inside-inner-col,.kadence-columnsignup_img_mid > .kt-inside-inner-col:before{border-top-left-radius:0px;border-top-right-radius:0px;border-bottom-right-radius:0px;border-bottom-left-radius:0px;}.kadence-columnsignup_img_mid > .kt-inside-inner-col{column-gap:var(--global-kb-gap-sm, 1rem);}.kadence-columnsignup_img_mid > .kt-inside-inner-col{flex-direction:column;}.kadence-columnsignup_img_mid > .kt-inside-inner-col > .aligncenter{width:100%;}.kadence-columnsignup_img_mid > .kt-inside-inner-col:before{opacity:0.3;}.kadence-columnsignup_img_mid{position:relative;}@media all and (max-width: 1024px){.kadence-columnsignup_img_mid > .kt-inside-inner-col{flex-direction:column;justify-content:center;}}@media all and (max-width: 767px){.kadence-columnsignup_img_mid > .kt-inside-inner-col{flex-direction:column;justify-content:center;}}<\/style>\n<div class=\"wp-block-kadence-column inner-column-1\"><div class=\"kt-inside-inner-col\">\n\n<figure class=\"wp-block-image size-medium\"><img decoding=\"async\" src=\"https:\/\/jonjones.ai\/wp-content\/uploads\/2026\/06\/newsletter-cta-ai-playbook.jpg\" alt=\"Holographic AI playbook glowing teal above a dark surface\" \/><\/figure>\n\n<\/div><\/div>\n\n<style>.kadence-columnsignup_txt_mid > .kt-inside-inner-col{border-top-width:0px;border-right-width:0px;border-bottom-width:0px;border-left-width:0px;}.kadence-columnsignup_txt_mid > .kt-inside-inner-col,.kadence-columnsignup_txt_mid > .kt-inside-inner-col:before{border-top-left-radius:0px;border-top-right-radius:0px;border-bottom-right-radius:0px;border-bottom-left-radius:0px;}.kadence-columnsignup_txt_mid > .kt-inside-inner-col{column-gap:var(--global-kb-gap-sm, 1rem);}.kadence-columnsignup_txt_mid > .kt-inside-inner-col{flex-direction:column;}.kadence-columnsignup_txt_mid > .kt-inside-inner-col > .aligncenter{width:100%;}.kadence-columnsignup_txt_mid > .kt-inside-inner-col:before{opacity:0.3;}.kadence-columnsignup_txt_mid{position:relative;}@media all and (max-width: 1024px){.kadence-columnsignup_txt_mid > .kt-inside-inner-col{flex-direction:column;justify-content:center;}}@media all and (max-width: 767px){.kadence-columnsignup_txt_mid > .kt-inside-inner-col{flex-direction:column;justify-content:center;}}<\/style>\n<div class=\"wp-block-kadence-column inner-column-2\"><div class=\"kt-inside-inner-col\">\n\n<h3 class=\"wp-block-heading has-text-color\" style=\"color:#00d4b4\">Get the AI Playbook<\/h3>\n\n\n<p class=\"has-text-color\" style=\"color:#f0f6fc\">The playbook I use to decide which work goes to an AI agent first, which tool it belongs in, and how to check it actually ran. Free, unsubscribe anytime.<\/p>\n\n<div class='fluentform ff-default fluentform_wrapper_8 ffs_default_wrap'><form data-form_id=\"8\" id=\"fluentform_8\" class=\"frm-fluent-form fluent_form_8 ff-el-form-top ff_form_instance_8_1 ff-form-loading ffs_default\" data-form_instance=\"ff_form_instance_8_1\" method=\"POST\" ><fieldset  style=\"border: none!important;margin: 0!important;padding: 0!important;background-color: transparent!important;box-shadow: none!important;outline: none!important; min-inline-size: 100%;\">\n                    <legend class=\"ff_screen_reader_title\" style=\"display: block; margin: 0!important;padding: 0!important;height: 0!important;text-indent: -999999px;width: 0!important;overflow:hidden;\">Lead Magnet - AI Playbook<\/legend><input type='hidden' name='__fluent_form_embded_post_id' value='8353' \/><input type=\"hidden\" id=\"_fluentform_8_fluentformnonce\" name=\"_fluentform_8_fluentformnonce\" value=\"a0c624d9c5\" \/><input type=\"hidden\" name=\"_wp_http_referer\" value=\"\/zh\/wp-json\/wp\/v2\/posts\/8353\" \/><div class='ff-el-group'><div class='ff-el-input--content'><input type=\"email\" name=\"email\" id=\"ff_8_email\" class=\"ff-el-form-control\" placeholder=\"Your email address\" data-name=\"email\"  aria-invalid=\"false\" aria-required=true><\/div><\/div><div class='ff-el-group ff-text-left ff_submit_btn_wrapper ff_submit_btn_wrapper_custom'><button class=\"ff-btn ff-btn-submit ff-btn-md ff_btn_style wpf_has_custom_css\" type=\"submit\" name=\"custom_submit_button-8_1\" data-name=\"custom_submit_button-8_1\"  aria-label=\"GET THE PLAYBOOK\">GET THE PLAYBOOK<\/button><style>form.fluent_form_8 .wpf_has_custom_css.ff-btn-submit { background-color:#00ff88;border-color:#00ff88;color:#0a0a14;min-width:100%; }form.fluent_form_8 .wpf_has_custom_css.ff-btn-submit:hover { background-color:#00cc6a;border-color:#00cc6a;color:#0a0a14;min-width:100%; } <\/style><\/div><\/fieldset><\/form><div id='fluentform_8_errors' class='ff-errors-in-stack ff_form_instance_8_1 ff-form-loading_errors ff_form_instance_8_1_errors'><\/div><\/div>            <script type=\"text\/javascript\">\n                window.fluent_form_ff_form_instance_8_1 = {\"id\":\"8\",\"settings\":{\"layout\":{\"labelPlacement\":\"top\",\"helpMessagePlacement\":\"with_label\",\"errorMessagePlacement\":\"inline\",\"asteriskPlacement\":\"asterisk-right\"},\"restrictions\":{\"denyEmptySubmission\":{\"enabled\":false}}},\"form_instance\":\"ff_form_instance_8_1\",\"form_id_selector\":\"fluentform_8\",\"rules\":{\"email\":{\"required\":{\"value\":true,\"message\":\"This field is required\"},\"email\":{\"value\":true,\"message\":\"Please enter a valid email address\"}}},\"debounce_time\":300};\n                            <\/script>\n            \n\n<\/div><\/div>\n\n<\/div>\n\n\n<h2>Forked Subagents: \/subtask and Fork Mode<\/h2>\n<figure class=\"wp-block-image size-large\"><img loading=\"lazy\" decoding=\"async\" width=\"1344\" height=\"752\" src=\"https:\/\/jonjones.ai\/wp-content\/uploads\/2026\/12\/claude-code-fork-s4-20261204.jpg\" alt=\"A large frosted glass sphere joined to a smaller sphere, with a cyan trail carrying a small amber light from the small sphere into the large one\" class=\"wp-image-8350\" srcset=\"https:\/\/jonjones.ai\/wp-content\/uploads\/2026\/12\/claude-code-fork-s4-20261204.jpg 1344w, https:\/\/jonjones.ai\/wp-content\/uploads\/2026\/12\/claude-code-fork-s4-20261204-768x430.jpg 768w, https:\/\/jonjones.ai\/wp-content\/uploads\/2026\/12\/claude-code-fork-s4-20261204-18x10.jpg 18w, https:\/\/jonjones.ai\/wp-content\/uploads\/2026\/12\/claude-code-fork-s4-20261204-600x336.jpg 600w\" sizes=\"auto, (max-width: 1344px) 100vw, 1344px\" \/><\/figure>\n\n<p>A normal subagent starts from zero. It gets a task and its own tools, but none of your conversation. That&#8217;s great for research and review, where you <em>want<\/em> a clean pair of eyes and a short summary back. It&#8217;s terrible when the task depends on twenty minutes of decisions you&#8217;d have to re-explain.<\/p>\n\n<p>A <strong>forked subagent<\/strong> fixes that. In Anthropic&#8217;s words from the <a href=\"https:\/\/code.claude.com\/docs\/en\/sub-agents\" target=\"_blank\" rel=\"noopener\">sub-agents docs<\/a>, &#8220;a fork is a subagent that inherits the entire conversation so far instead of starting fresh.&#8221; It gets the same system prompt, tools, model and message history as the parent. Its own tool calls stay out of your conversation, and only its final result comes back as a message.<\/p>\n\n<p>You start one yourself with <code>\/subtask<\/code>:<\/p>\n\n<pre class=\"wp-block-code\"><code>\/subtask draft test cases for the parser changes we just agreed on<\/code><\/pre>\n\n<p>That works &#8220;whether or not fork mode is on.&#8221; Fork mode is the separate setting that lets <em>Claude<\/em> decide to spawn forks on its own. It&#8217;s on by default from v2.1.302 (v2.1.232 in the interactive terminal), and <code>CLAUDE_CODE_FORK_SUBAGENT=0<\/code> turns it off.<\/p>\n\n<h3>When a fork beats a fresh subagent<\/h3>\n<ul>\n<li><strong>The task needs the backstory.<\/strong> &#8220;Write tests for what we just decided&#8221; only makes sense if the tester heard the decision.<\/li>\n<li><strong>You want to try two approaches from the same starting point.<\/strong> Fork twice, compare the results.<\/li>\n<li><strong>Cost.<\/strong> A fork&#8217;s system prompt and tool definitions match the parent&#8217;s exactly, so its first request reuses the parent&#8217;s prompt cache. The docs say this makes a fork &#8220;cost less than a fresh subagent for tasks that need the same context.&#8221;<\/li>\n<\/ul>\n\n<h3>When it&#8217;s the wrong tool<\/h3>\n<ul>\n<li><strong>Reviews.<\/strong> A reviewer that inherited all your reasoning will tend to agree with it. For a second opinion, a fresh subagent is more honest.<\/li>\n<li><strong>Long, messy sessions.<\/strong> The fork inherits the mess too, including the dead ends.<\/li>\n<li><strong>Nested work.<\/strong> &#8220;A fork can&#8217;t spawn further forks.&#8221; Plan the fan-out from the main session.<\/li>\n<\/ul>\n\n<p>If you&#8217;re deciding between forks and full parallel teams, my <a href=\"https:\/\/jonjones.ai\/ai\/claude-code-agent-teams-operator-guide-2026\/\">Claude Code agent teams guide<\/a> covers when parallel agents pay for themselves and when they&#8217;re just burning tokens.<\/p>\n\n<h2>context: fork in Skills: The Fork That Doesn&#8217;t Fork<\/h2>\n<figure class=\"wp-block-image size-large\"><img loading=\"lazy\" decoding=\"async\" width=\"1344\" height=\"752\" src=\"https:\/\/jonjones.ai\/wp-content\/uploads\/2026\/12\/claude-code-fork-s5-20261204.jpg\" alt=\"An open frosted glass box holding one blank glass tablet, with a tangle of glowing amber wire lying on the floor outside the box\" class=\"wp-image-8352\" srcset=\"https:\/\/jonjones.ai\/wp-content\/uploads\/2026\/12\/claude-code-fork-s5-20261204.jpg 1344w, https:\/\/jonjones.ai\/wp-content\/uploads\/2026\/12\/claude-code-fork-s5-20261204-768x430.jpg 768w, https:\/\/jonjones.ai\/wp-content\/uploads\/2026\/12\/claude-code-fork-s5-20261204-18x10.jpg 18w, https:\/\/jonjones.ai\/wp-content\/uploads\/2026\/12\/claude-code-fork-s5-20261204-600x336.jpg 600w\" sizes=\"auto, (max-width: 1344px) 100vw, 1344px\" \/><\/figure>\n\n<p>This is the one that trips up skill authors. You&#8217;d assume <code>context: fork<\/code> in a skill&#8217;s frontmatter means &#8220;run this in a fork of my conversation.&#8221; It doesn&#8217;t. Straight from the <a href=\"https:\/\/code.claude.com\/docs\/en\/skills\" target=\"_blank\" rel=\"noopener\">skills docs<\/a>:<\/p>\n\n<blockquote><p>&#8220;Despite the name, a skill with <code>context: fork<\/code> doesn&#8217;t run in a fork of the current conversation, which would hand the subagent everything you&#8217;ve discussed so far. When the task depends on that history, fork the conversation instead of using <code>context: fork<\/code>.&#8221;<\/p><\/blockquote>\n\n<p>What it actually does: Claude Code starts a new subagent of whatever type you set in the <code>agent<\/code> field (<code>general-purpose<\/code> if you leave it out) and hands it the skill&#8217;s content as its prompt. The subagent never sees your chat. So the skill has to stand on its own:<\/p>\n\n<pre class=\"wp-block-code\"><code>---\nname: weekly-link-audit\ndescription: Check every internal link in \/content and list the broken ones\ncontext: fork\nagent: Explore\nbackground: false\n---\nCrawl every Markdown file under \/content. For each internal link,\nconfirm the target file exists. Return a table of broken links\nwith the file and line number. Do not edit anything.<\/code><\/pre>\n\n<p>A few rules worth knowing:<\/p>\n<ul>\n<li><strong>Give it a task, not guidelines.<\/strong> The docs warn that a skill full of conventions (&#8220;use these API patterns&#8221;) with no actual job returns &#8220;without meaningful output.&#8221;<\/li>\n<li><strong>Background by default since v2.1.218.<\/strong> Set <code>background: false<\/code> if the next step needs the result. In <code>claude -p<\/code> and the Agent SDK, Claude Code waits for the result anyway.<\/li>\n<li><strong>Interactive tools have been flaky inside it.<\/strong> In April 2026 one open-source team <a href=\"https:\/\/github.com\/mvanhorn\/cli-printing-press\/issues\/409\" target=\"_blank\" rel=\"noopener\">removed <code>context: fork<\/code> from two skills<\/a> because <code>AskUserQuestion<\/code> and other deferred tools weren&#8217;t loading in forked skill contexts (upstream issue anthropics\/claude-code#54892). Test any skill that needs to ask you something.<\/li>\n<\/ul>\n\n<p>Rule of thumb: <code>context: fork<\/code> is a <strong>fresh, isolated worker with a fixed brief<\/strong>. <code>\/subtask<\/code> is a <strong>worker who heard everything<\/strong>. If you want templates for the first kind, I audited <a href=\"https:\/\/jonjones.ai\/ai\/claude-agent-templates\/\">423 Claude agent templates<\/a> and the patterns that hold up are in there.<\/p>\n\n<h2>Conversation Isolation Is Not Filesystem Isolation<\/h2>\n<figure class=\"wp-block-image size-large\"><img loading=\"lazy\" decoding=\"async\" width=\"1344\" height=\"752\" src=\"https:\/\/jonjones.ai\/wp-content\/uploads\/2026\/12\/claude-code-fork-s6-20261204.jpg\" alt=\"Two separate glass bell domes with teal light inside, both standing on one shared glowing amber base\" class=\"wp-image-8349\" srcset=\"https:\/\/jonjones.ai\/wp-content\/uploads\/2026\/12\/claude-code-fork-s6-20261204.jpg 1344w, https:\/\/jonjones.ai\/wp-content\/uploads\/2026\/12\/claude-code-fork-s6-20261204-768x430.jpg 768w, https:\/\/jonjones.ai\/wp-content\/uploads\/2026\/12\/claude-code-fork-s6-20261204-18x10.jpg 18w, https:\/\/jonjones.ai\/wp-content\/uploads\/2026\/12\/claude-code-fork-s6-20261204-600x336.jpg 600w\" sizes=\"auto, (max-width: 1344px) 100vw, 1344px\" \/><\/figure>\n\n<p>This is the part of Claude Code fork behaviour that costs people real work. Credit where it&#8217;s due: Piotr Kaluzny at <a href=\"https:\/\/cybrec.com\/blog\/ai\/claude-code-fork\/\" target=\"_blank\" rel=\"noopener\">Cybrec<\/a> put this in one line, and it&#8217;s the most important idea in this whole topic. Every fork above separates <em>conversations<\/em>. Almost none of them separate <em>files<\/em>.<\/p>\n\n<p>The <a href=\"https:\/\/code.claude.com\/docs\/en\/agent-sdk\/sessions\" target=\"_blank\" rel=\"noopener\">Agent SDK sessions docs<\/a> are blunt about it: &#8220;Forking branches the conversation history, not the filesystem. If a forked agent edits files, those changes are real and visible to any session working in the same directory.&#8221;<\/p>\n\n<p>Here&#8217;s who touches what:<\/p>\n<ul>\n<li><strong><code>\/branch<\/code> and <code>--fork-session<\/code>:<\/strong> same folder, same files. Two branches editing the same file will overwrite each other.<\/li>\n<li><strong><code>\/subtask<\/code> forks:<\/strong> same folder by default. When Claude spawns one through the Agent tool it can pass <code>isolation: \"worktree\"<\/code>, which writes the fork&#8217;s edits to a separate git worktree.<\/li>\n<li><strong><code>\/fork<\/code> background sessions:<\/strong> since v2.1.221 the copy is told to make its own worktree before changing code, unless it&#8217;s set to edit in place. Note the word &#8220;told&#8221;. It&#8217;s an instruction to the model, which is why the docs describe it that way.<\/li>\n<li><strong><code>context: fork<\/code> skills:<\/strong> same folder.<\/li>\n<\/ul>\n\n<p>If you want real file isolation, don&#8217;t rely on the fork. Start the session in a worktree yourself with <code>claude --worktree<\/code> (<code>-w<\/code>), or <code>git worktree add<\/code> before you launch. And if the work might need undoing, commit before you fork. Git is the undo button that every copy shares.<\/p>\n\n<p>This is also why I keep my agents&#8217; long-term memory in files rather than in any one conversation. A fork copies the chat. A file is visible from every copy. The reasoning is in my <a href=\"https:\/\/jonjones.ai\/ai\/claude-code-memory\/\">Claude Code memory breakdown<\/a>.<\/p>\n\n<h2>Which Claude Code Fork Works Unattended? What I Ran in claude -p<\/h2>\n<figure class=\"wp-block-image size-large\"><img loading=\"lazy\" decoding=\"async\" width=\"1344\" height=\"752\" src=\"https:\/\/jonjones.ai\/wp-content\/uploads\/2026\/12\/claude-code-fork-s7-20261204.jpg\" alt=\"A long row of frosted teal-lit glass cubes on a dark rail, with one empty clear glass cube at the front of the line\" class=\"wp-image-8351\" srcset=\"https:\/\/jonjones.ai\/wp-content\/uploads\/2026\/12\/claude-code-fork-s7-20261204.jpg 1344w, https:\/\/jonjones.ai\/wp-content\/uploads\/2026\/12\/claude-code-fork-s7-20261204-768x430.jpg 768w, https:\/\/jonjones.ai\/wp-content\/uploads\/2026\/12\/claude-code-fork-s7-20261204-18x10.jpg 18w, https:\/\/jonjones.ai\/wp-content\/uploads\/2026\/12\/claude-code-fork-s7-20261204-600x336.jpg 600w\" sizes=\"auto, (max-width: 1344px) 100vw, 1344px\" \/><\/figure>\n\n<p>Every guide on Claude Code fork assumes you&#8217;re sitting at a terminal. Mine mostly aren&#8217;t. My fleet runs on a schedule inside Docker containers, so the real question for me is what survives <code>claude -p<\/code> with nobody there to type.<\/p>\n\n<p>On 4 December 2026 I tested each one on v2.1.292, the version in my containers, using Haiku and throwaway prompts. The whole test cost a few cents in tokens. Results:<\/p>\n\n<figure class=\"wp-block-table\"><table>\n<thead><tr><th>Test in <code>claude -p<\/code><\/th><th>Result<\/th><\/tr><\/thead>\n<tbody>\n<tr><td>Prompt <code>\/fork summarize nothing<\/code><\/td><td><code>\/fork isn't available in this environment.<\/code> 0 turns, $0<\/td><\/tr>\n<tr><td>Prompt <code>\/branch<\/code><\/td><td><code>\/branch isn't available in this environment.<\/code><\/td><\/tr>\n<tr><td>Prompt <code>\/subtask list files<\/code><\/td><td><code>\/subtask isn't available in this environment.<\/code><\/td><\/tr>\n<tr><td>Session A: &#8220;remember codeword AMBER-7&#8221;. Then <code>--resume A --fork-session<\/code>: &#8220;new codeword TEAL-3, list all&#8221;<\/td><td>New session ID. Answer: <code>AMBER-7, TEAL-3<\/code>. It inherited the history<\/td><\/tr>\n<tr><td>Then plain <code>--resume A<\/code>: &#8220;list all codewords&#8221;<\/td><td>Same ID as A. Answer: <code>AMBER-7<\/code>. The original never saw TEAL-3<\/td><\/tr>\n<tr><td>Ask for valid <code>subagent_type<\/code> values (default env)<\/td><td>claude, Explore, general-purpose, Plan, statusline-setup, web-fetch. <strong>No fork<\/strong><\/td><\/tr>\n<tr><td>Same, with <code>CLAUDE_CODE_FORK_SUBAGENT=1<\/code><\/td><td>Same list <strong>plus fork<\/strong><\/td><\/tr>\n<\/tbody><\/table><\/figure>\n\n<p>So, for any Claude Code fork in headless and scheduled work:<\/p>\n<ul>\n<li><strong>The slash-command forks don&#8217;t exist.<\/strong> <code>\/fork<\/code>, <code>\/branch<\/code> and <code>\/subtask<\/code> are interactive features. In <code>-p<\/code> they return a one-line refusal and do nothing.<\/li>\n<li><strong><code>--resume &lt;id&gt; --fork-session<\/code> works<\/strong> and does exactly what the docs say: a new ID, the old history, and the original left untouched. If you run two scheduled jobs off the same base session, this is how you stop them writing into one transcript.<\/li>\n<li><strong>Forked subagents depend on your version.<\/strong> Before v2.1.302 they&#8217;re off in <code>-p<\/code> unless you set <code>CLAUDE_CODE_FORK_SUBAGENT=1<\/code>. From 2.1.302 they&#8217;re on. My containers are 43 releases behind v2.1.335, so they still get the old default. If you upgrade a pipeline across 2.1.302, its subagent behaviour can change without you touching a line.<\/li>\n<li><strong><code>context: fork<\/code> skills work headless.<\/strong> Claude Code just waits for the result instead of running it in the background.<\/li>\n<li><strong>The Agent SDK has the same thing in code:<\/strong> <code>resume=session_id, fork_session=True<\/code> in Python, <code>forkSession: true<\/code> in TypeScript.<\/li>\n<\/ul>\n\n<h3>What my fleet actually uses instead<\/h3>\n<p>None of the above, on purpose. All 2,331 run logs since 12 June come from the same dispatcher line: one fresh <code>claude --print<\/code> per job. Zero of them use <code>--resume<\/code> or <code>--fork-session<\/code>. Each job reads its state from files and Airtable when it starts and writes its results back before it exits. No job depends on a conversation that might have been compacted, branched or overwritten.<\/p>\n\n<p>That&#8217;s the honest takeaway for unattended work. Forking is a tool for a human juggling ideas in a live session. A scheduled agent is better off starting clean and keeping its memory somewhere every run can read. I cover the rest of that setup in <a href=\"https:\/\/jonjones.ai\/ai\/claude-code-best-practices\/\">Claude Code best practices from four months of unattended runs<\/a>, and why the fancy interactive features never fire in a cron fleet in my <a href=\"https:\/\/jonjones.ai\/ai\/claude-code-ultracode\/\">Ultracode breakdown<\/a>.<\/p>\n\n<h2>Claude Code Fork FAQ<\/h2>\n\n<h3>What&#8217;s the difference between \/fork and \/branch in Claude Code?<\/h3>\n<p>Both copy the whole conversation. <code>\/branch<\/code> switches <em>you<\/em> into the copy and parks the original in <code>\/resume<\/code>. <code>\/fork<\/code> leaves you where you are and runs the copy as a separate background session in agent view. Neither reports back into your conversation. On versions before 2.1.77, <code>\/fork<\/code> was what is now <code>\/branch<\/code>.<\/p>\n\n<h3>What does \/subtask do?<\/h3>\n<p>It starts a forked subagent: a background worker that inherits your full conversation, does one task, and sends back only its final result. Before v2.1.212 this was what <code>\/fork<\/code> did. With agent view turned off, <code>\/subtask<\/code> isn&#8217;t available and <code>\/fork<\/code> does this job instead.<\/p>\n\n<h3>Does context: fork give the skill my conversation history?<\/h3>\n<p>No. Despite the name, it starts a fresh subagent (type set by the <code>agent<\/code> field) with the skill&#8217;s text as its prompt. If the skill needs your conversation, use <code>\/subtask<\/code> instead.<\/p>\n\n<h3>Can I merge a fork back into the original session?<\/h3>\n<p>Not as a merge. The docs describe creating branches and returning to either one, but nothing that combines two sessions. A <code>\/subtask<\/code> fork is the exception in spirit: its final result arrives as a message in your conversation. For everything else, copy the conclusion into a file both sessions can read.<\/p>\n\n<h3>Do forks copy my files or give me a separate git branch?<\/h3>\n<p>Mostly no. Forks copy the conversation, not the project folder. Only <code>\/fork<\/code> background sessions (told to create a worktree since v2.1.221) and forks spawned with <code>isolation: \"worktree\"<\/code> keep their edits separate. Everything else edits your working copy.<\/p>\n\n<h3>Does Claude Code fork work in claude -p or cron jobs?<\/h3>\n<p>The slash commands don&#8217;t: <code>\/fork<\/code>, <code>\/branch<\/code> and <code>\/subtask<\/code> all reply &#8220;isn&#8217;t available in this environment.&#8221; <code>claude -p --resume &lt;id&gt; --fork-session<\/code> works, and so does the Agent SDK&#8217;s <code>fork_session<\/code>. Forked subagents are on by default in <code>-p<\/code> from v2.1.302.<\/p>\n\n<h3>Is &#8220;claude-code-fork&#8221; on GitHub the same thing?<\/h3>\n<p>No. Repos with names like claude-code-fork are forks of <em>code<\/em> by third parties, not the session feature, and they aren&#8217;t Anthropic&#8217;s. Codex CLI also has its own <code>\/fork<\/code> command, which is a different product. And in the Claude chat apps, editing an earlier message branches that chat, which again is a separate thing from Claude Code.<\/p>\n\n<h2>Final Thoughts: Pick the Fork by What It Inherits<\/h2>\n\n<p>&#8220;Claude Code fork&#8221; is one phrase covering four features, and the changelog shows it&#8217;s still moving. Don&#8217;t memorise the commands. Ask two questions instead: <strong>should the copy know everything I know, and who keeps working on it?<\/strong><\/p>\n\n<ul>\n<li>Knows everything, reports back to me: <code>\/subtask<\/code>.<\/li>\n<li>Knows everything, I take it in a new direction: <code>\/branch<\/code>.<\/li>\n<li>Knows everything, runs on its own: <code>\/fork<\/code>, or <code>--fork-session<\/code> from a script.<\/li>\n<li>Knows nothing but its brief: <code>context: fork<\/code> or a plain subagent.<\/li>\n<\/ul>\n\n<p>Then remember the line from Cybrec: conversation isolation is not filesystem isolation. If two copies can touch the same files, give them separate worktrees or expect collisions. And if it has to run at 3am with nobody watching, skip the slash commands entirely. Start clean, keep the state in files, and use <code>--fork-session<\/code> only when two jobs really need the same history.<\/p>\n\n<p>If you&#8217;re running Claude Code unattended and want a second pair of eyes on how your sessions, permissions and state are wired, that&#8217;s the kind of build I do. Start with the <a href=\"https:\/\/jonjones.ai\/ai\/claude-code-harness\/\">Claude Code harness walkthrough<\/a> to see what mine looks like, and the <a href=\"https:\/\/jonjones.ai\/ai\/claude-code-dangerously-skip-permissions\/\">&#8211;dangerously-skip-permissions guide<\/a> for the safety side.<\/p>\n\n<style>#kt-layout-idsignup_end > .kt-row-column-wrap{align-content:start;}:where(#kt-layout-idsignup_end > .kt-row-column-wrap) > .wp-block-kadence-column{justify-content:start;}#kt-layout-idsignup_end > .kt-row-column-wrap{column-gap:var(--global-kb-gap-md, 2rem);row-gap:var(--global-kb-gap-md, 2rem);padding-top:var( --global-kb-row-default-top, 25px );padding-bottom:var( --global-kb-row-default-bottom, 25px );padding-top:30px;padding-right:30px;padding-bottom:30px;padding-left:30px;grid-template-columns:repeat(2, minmax(0, 1fr));}#kt-layout-idsignup_end{border-top-left-radius:16px;border-top-right-radius:16px;border-bottom-right-radius:16px;border-bottom-left-radius:16px;overflow:clip;isolation:isolate;}#kt-layout-idsignup_end > .kt-row-layout-overlay{border-top-left-radius:16px;border-top-right-radius:16px;border-bottom-right-radius:16px;border-bottom-left-radius:16px;}#kt-layout-idsignup_end{background-color:#0d1117;}#kt-layout-idsignup_end > .kt-row-layout-overlay{opacity:0.30;}@media all and (max-width: 1024px){#kt-layout-idsignup_end > .kt-row-column-wrap{grid-template-columns:minmax(0, 1fr);}}@media all and (max-width: 767px){#kt-layout-idsignup_end > .kt-row-column-wrap{grid-template-columns:repeat(2, minmax(0, 1fr));}}<\/style>\n<div class=\"wp-block-kadence-rowlayout alignnone\">\n<style>.kadence-columnsignup_img_end > .kt-inside-inner-col{border-top-width:0px;border-right-width:0px;border-bottom-width:0px;border-left-width:0px;}.kadence-columnsignup_img_end > .kt-inside-inner-col,.kadence-columnsignup_img_end > .kt-inside-inner-col:before{border-top-left-radius:0px;border-top-right-radius:0px;border-bottom-right-radius:0px;border-bottom-left-radius:0px;}.kadence-columnsignup_img_end > .kt-inside-inner-col{column-gap:var(--global-kb-gap-sm, 1rem);}.kadence-columnsignup_img_end > .kt-inside-inner-col{flex-direction:column;}.kadence-columnsignup_img_end > .kt-inside-inner-col > .aligncenter{width:100%;}.kadence-columnsignup_img_end > .kt-inside-inner-col:before{opacity:0.3;}.kadence-columnsignup_img_end{position:relative;}@media all and (max-width: 1024px){.kadence-columnsignup_img_end > .kt-inside-inner-col{flex-direction:column;justify-content:center;}}@media all and (max-width: 767px){.kadence-columnsignup_img_end > .kt-inside-inner-col{flex-direction:column;justify-content:center;}}<\/style>\n<div class=\"wp-block-kadence-column inner-column-1\"><div class=\"kt-inside-inner-col\">\n\n<figure class=\"wp-block-image size-medium\"><img decoding=\"async\" src=\"https:\/\/jonjones.ai\/wp-content\/uploads\/2026\/06\/newsletter-cta-ai-playbook.jpg\" alt=\"Holographic AI playbook glowing teal above a dark surface\" \/><\/figure>\n\n<\/div><\/div>\n\n<style>.kadence-columnsignup_txt_end > .kt-inside-inner-col{border-top-width:0px;border-right-width:0px;border-bottom-width:0px;border-left-width:0px;}.kadence-columnsignup_txt_end > .kt-inside-inner-col,.kadence-columnsignup_txt_end > .kt-inside-inner-col:before{border-top-left-radius:0px;border-top-right-radius:0px;border-bottom-right-radius:0px;border-bottom-left-radius:0px;}.kadence-columnsignup_txt_end > .kt-inside-inner-col{column-gap:var(--global-kb-gap-sm, 1rem);}.kadence-columnsignup_txt_end > .kt-inside-inner-col{flex-direction:column;}.kadence-columnsignup_txt_end > .kt-inside-inner-col > .aligncenter{width:100%;}.kadence-columnsignup_txt_end > .kt-inside-inner-col:before{opacity:0.3;}.kadence-columnsignup_txt_end{position:relative;}@media all and (max-width: 1024px){.kadence-columnsignup_txt_end > .kt-inside-inner-col{flex-direction:column;justify-content:center;}}@media all and (max-width: 767px){.kadence-columnsignup_txt_end > .kt-inside-inner-col{flex-direction:column;justify-content:center;}}<\/style>\n<div class=\"wp-block-kadence-column inner-column-2\"><div class=\"kt-inside-inner-col\">\n\n<h3 class=\"wp-block-heading has-text-color\" style=\"color:#00d4b4\">Get the AI Playbook<\/h3>\n\n\n<p class=\"has-text-color\" style=\"color:#f0f6fc\">Every week: one real job my agents ran unattended, what it cost, and what broke anyway. Receipts, not predictions. Unsubscribe anytime.<\/p>\n\n<div class='fluentform ff-default fluentform_wrapper_8 ffs_default_wrap'><form data-form_id=\"8\" id=\"fluentform_8\" class=\"frm-fluent-form fluent_form_8 ff-el-form-top ff_form_instance_8_2 ff-form-loading ffs_default\" data-form_instance=\"ff_form_instance_8_2\" method=\"POST\" ><fieldset  style=\"border: none!important;margin: 0!important;padding: 0!important;background-color: transparent!important;box-shadow: none!important;outline: none!important; min-inline-size: 100%;\">\n                    <legend class=\"ff_screen_reader_title\" style=\"display: block; margin: 0!important;padding: 0!important;height: 0!important;text-indent: -999999px;width: 0!important;overflow:hidden;\">Lead Magnet - AI Playbook<\/legend><input type='hidden' name='__fluent_form_embded_post_id' value='8353' \/><input type=\"hidden\" id=\"_fluentform_8_fluentformnonce\" name=\"_fluentform_8_fluentformnonce\" value=\"a0c624d9c5\" \/><input type=\"hidden\" name=\"_wp_http_referer\" value=\"\/zh\/wp-json\/wp\/v2\/posts\/8353\" \/><div class='ff-el-group'><div class='ff-el-input--content'><input type=\"email\" name=\"email\" id=\"ff_8_2_email\" class=\"ff-el-form-control\" placeholder=\"Your email address\" data-name=\"email\"  aria-invalid=\"false\" aria-required=true><\/div><\/div><div class='ff-el-group ff-text-left ff_submit_btn_wrapper ff_submit_btn_wrapper_custom'><button class=\"ff-btn ff-btn-submit ff-btn-md ff_btn_style wpf_has_custom_css\" type=\"submit\" name=\"custom_submit_button-8_1\" data-name=\"custom_submit_button-8_1\"  aria-label=\"GET THE PLAYBOOK\">GET THE PLAYBOOK<\/button><style>form.fluent_form_8 .wpf_has_custom_css.ff-btn-submit { background-color:#00ff88;border-color:#00ff88;color:#0a0a14;min-width:100%; }form.fluent_form_8 .wpf_has_custom_css.ff-btn-submit:hover { background-color:#00cc6a;border-color:#00cc6a;color:#0a0a14;min-width:100%; } <\/style><\/div><\/fieldset><\/form><div id='fluentform_8_errors' class='ff-errors-in-stack ff_form_instance_8_2 ff-form-loading_errors ff_form_instance_8_2_errors'><\/div><\/div>            <script type=\"text\/javascript\">\n                window.fluent_form_ff_form_instance_8_2 = {\"id\":\"8\",\"settings\":{\"layout\":{\"labelPlacement\":\"top\",\"helpMessagePlacement\":\"with_label\",\"errorMessagePlacement\":\"inline\",\"asteriskPlacement\":\"asterisk-right\"},\"restrictions\":{\"denyEmptySubmission\":{\"enabled\":false}}},\"form_instance\":\"ff_form_instance_8_2\",\"form_id_selector\":\"fluentform_8\",\"rules\":{\"email\":{\"required\":{\"value\":true,\"message\":\"This field is required\"},\"email\":{\"value\":true,\"message\":\"Please enter a valid email address\"}}},\"debounce_time\":300};\n                            <\/script>\n            \n\n<\/div><\/div>\n\n<\/div>\n\n","protected":false},"excerpt":{"rendered":"<p>\u201c\u300cClaude Code fork\u300d \u6307\u7684\u662f\u56db\u500b\u4e0d\u540c\u7684\u529f\u80fd\uff0c\u800c \/fork \u672c\u8eab\u7684\u610f\u7fa9\u4e5f\u767c\u751f\u4e86\u4e09\u6b21\u8b8a\u5316\u3002\u4ee5\u4e0b\u662f \/fork\u3001\/branch\u3001\/subtask\u3001\u2013fork-session \u548c context: fork \u7684\u7248\u672c\u9396\u5b9a\u6620\u5c04\uff0c\u4ee5\u53ca\u5728\u7121\u982d Claude -p \u4e2d\u5be6\u969b\u6709\u6548\u7684\u529f\u80fd\u3002.<\/p>","protected":false},"author":2,"featured_media":8347,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"_kad_blocks_custom_css":"","_kad_blocks_head_custom_js":"","_kad_blocks_body_custom_js":"","_kad_blocks_footer_custom_js":"","_kadence_starter_templates_imported_post":false,"_kad_post_transparent":"","_kad_post_title":"","_kad_post_layout":"","_kad_post_sidebar_id":"","_kad_post_content_style":"","_kad_post_vertical_padding":"","_kad_post_feature":"","_kad_post_feature_position":"","_kad_post_header":false,"_kad_post_footer":false,"_kad_post_classname":"","footnotes":""},"categories":[28,44,46],"tags":[102,53,350,49],"class_list":["post-8353","post","type-post","status-publish","format-standard","has-post-thumbnail","hentry","category-ai","category-ai-automation","category-tutorials","tag-autonomous-ai-agents","tag-claude-code-2","tag-claude-code-fork","tag-claude-code"],"taxonomy_info":{"category":[{"value":28,"label":"AI"},{"value":44,"label":"AI Automation"},{"value":46,"label":"Tutorials"}],"post_tag":[{"value":102,"label":"autonomous ai agents"},{"value":53,"label":"claude code"},{"value":350,"label":"claude code fork"},{"value":49,"label":"claude-code"}]},"featured_image_src_large":["https:\/\/jonjones.ai\/wp-content\/uploads\/2026\/12\/claude-code-fork-feat-20261204.jpg",1344,752,false],"author_info":{"display_name":"Jon Jones","author_link":"https:\/\/jonjones.ai\/zh\/author\/jonjonjones-ai\/"},"comment_info":0,"category_info":[{"term_id":28,"name":"AI","slug":"ai","term_group":0,"term_taxonomy_id":28,"taxonomy":"category","description":"","parent":0,"count":127,"filter":"raw","cat_ID":28,"category_count":127,"category_description":"","cat_name":"AI","category_nicename":"ai","category_parent":0},{"term_id":44,"name":"AI Automation","slug":"ai-automation","term_group":0,"term_taxonomy_id":44,"taxonomy":"category","description":"","parent":0,"count":313,"filter":"raw","cat_ID":44,"category_count":313,"category_description":"","cat_name":"AI Automation","category_nicename":"ai-automation","category_parent":0},{"term_id":46,"name":"Tutorials","slug":"tutorials","term_group":0,"term_taxonomy_id":46,"taxonomy":"category","description":"","parent":0,"count":37,"filter":"raw","cat_ID":46,"category_count":37,"category_description":"","cat_name":"Tutorials","category_nicename":"tutorials","category_parent":0}],"tag_info":[{"term_id":102,"name":"autonomous ai agents","slug":"autonomous-ai-agents","term_group":0,"term_taxonomy_id":102,"taxonomy":"post_tag","description":"","parent":0,"count":13,"filter":"raw"},{"term_id":53,"name":"claude code","slug":"claude-code-2","term_group":0,"term_taxonomy_id":53,"taxonomy":"post_tag","description":"","parent":0,"count":70,"filter":"raw"},{"term_id":350,"name":"claude code fork","slug":"claude-code-fork","term_group":0,"term_taxonomy_id":350,"taxonomy":"post_tag","description":"","parent":0,"count":1,"filter":"raw"},{"term_id":49,"name":"claude-code","slug":"claude-code","term_group":0,"term_taxonomy_id":49,"taxonomy":"post_tag","description":"","parent":0,"count":5,"filter":"raw"}],"_links":{"self":[{"href":"https:\/\/jonjones.ai\/zh\/wp-json\/wp\/v2\/posts\/8353","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/jonjones.ai\/zh\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/jonjones.ai\/zh\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/jonjones.ai\/zh\/wp-json\/wp\/v2\/users\/2"}],"replies":[{"embeddable":true,"href":"https:\/\/jonjones.ai\/zh\/wp-json\/wp\/v2\/comments?post=8353"}],"version-history":[{"count":0,"href":"https:\/\/jonjones.ai\/zh\/wp-json\/wp\/v2\/posts\/8353\/revisions"}],"wp:featuredmedia":[{"embeddable":true,"href":"https:\/\/jonjones.ai\/zh\/wp-json\/wp\/v2\/media\/8347"}],"wp:attachment":[{"href":"https:\/\/jonjones.ai\/zh\/wp-json\/wp\/v2\/media?parent=8353"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/jonjones.ai\/zh\/wp-json\/wp\/v2\/categories?post=8353"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/jonjones.ai\/zh\/wp-json\/wp\/v2\/tags?post=8353"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}