We've updated /fork in Claude Code
/fork now runs a background agent with your exact context (system prompt, tools, history, model) and prompt cache. The result gets returned to your session.
/branch (the old /fork) still copies the transcript to a new session you drive.
Claude Code's dispatch_agent is cool, it's like spawning a new process, but what if you can call fork()?
I think it'll be a lot more powerful, so I created a repo to explore this pattern 👇