Claude Codeparallel-agentsbuilt-in

/fork

Spawn a forked subagent that inherits the full conversation and works on a directive while you keep going in the main session.

Syntax

/fork <directive>

Example

/fork write unit tests for the changes we just made

When to use

  • Delegating a side task without switching away from current work
  • Running tests or docs generation in parallel with main implementation
  • Getting a second agent to explore an alternative approach

More Claude Code commands