branch-session
Create a new conversation from the complete local transcript through a selected turn.
Install
Copy this folder into your Claude Code project (needs Node.js):
npx degit WhiteBr1ck/agy-powertools/skills/branch-session .claude/skills/branch-sessionOr install it for every project:
npx degit WhiteBr1ck/agy-powertools/skills/branch-session ~/.claude/skills/branch-sessionFile content
Made by its original authors and shared under MIT. We show it unchanged, with credit and a link to the source. Source ↗
--- name: branch-session description: Create a new conversation from the complete local transcript through a selected turn. --- # Session Branching When the user invokes `/branch-session` or asks to branch the current conversation from a specific turn: 1. Use `分支会话` in the original conversation's right-click or three-dot menu. This calls Antigravity's native `ForkConversation` operation with the current workspace. 2. For a specific completed turn, run `node <PLUGIN_ROOT>/scripts/fork-session.mjs <conversation-id> <turn-number>`. Omit the turn number to inherit the complete latest history. 3. Return the new conversation ID from the command. The native fork inherits the stored conversation steps and generation metadata, including all original tool calls and outputs. It does not send a new model prompt. 4. Do not substitute an exported file, summary, replayed messages or `startConversation` for a fork. A fork shares the current workspace files. It does not revert files or create a separate Git worktree.