About clone
clone is an agent skill for branching the current Claude conversation so work can continue with a different approach. It locates and runs a clone script using the session and project path from Claude’s history.
Key features
- 01Gets the current session and project path
- 02Finds the latest clone script
- 03Runs the conversation cloning script
- 04Explains how to resume the clone
Use cases
- 01Trying an alternative approach in a separate conversation
- 02Creating a branch from the current Claude session
Install
Copy the command and run it in a terminal.
$
npx skills add https:/ / github.com/ ykdojo/ claude-code-tips --skill cloneAfter installing, type/clonein Claude Code to confirm it loaded.
Details
From the project READMEClone the current conversation so the user can branch off and try a different approach.
Steps:
- Get the current session ID and project path:
tail -1 ~/.claude/history.jsonl | jq -r '[.sessionId, .project] | @tsv' - Find clone-conversation.sh with bash:
find ~/.claude -name "clone-conversation.sh" 2>/dev/null | sort -V | tail -1- This finds the script whether installed via plugin or manual symlink
- Uses version sort to prefer the latest version if multiple exist
- Run:
<script-path> <session-id> <project-path>- Always pass the project path from the history entry, not the current working directory
- Tell the user they can access the cloned conversation with
claude -rand look for the one marked[CLONED <timestamp>](e.g.,[CLONED Jan 7 14:30])
Comments
Markdown supported