# Claude Code 更新 /fork 命令

- 来源：ClaudeDevs (@ClaudeDevs)
- 发布时间：2026-06-03 07:05
- AIHOT 分数：66
- AIHOT 链接：https://aihot.virxact.com/items/cmpx9m7ed01vhslckj4rnteqy
- 原文链接：https://x.com/ClaudeDevs/status/2061947411141169494

## AI 摘要

我们已更新 Claude Code 中的 /fork 命令。
/fork 现在会在后台运行一个智能体，使用您的完整上下文（系统提示词、工具、历史记录、模型）和提示词缓存。结果将返回到您的会话中。
/branch（旧的 /fork）仍然会将对话记录复制到您驱动的新会话中。

## 正文

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.
