mcpField
C
clone

clone

github.com/ykdojoAgent workflows10.3k88 installsUpdated 5w ago
Repository

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

  1. 01Gets the current session and project path
  2. 02Finds the latest clone script
  3. 03Runs the conversation cloning script
  4. 04Explains how to resume the clone

Use cases

  1. 01Trying an alternative approach in a separate conversation
  2. 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 clone

After installing, type/clonein Claude Code to confirm it loaded.

Details

From the project README

Clone the current conversation so the user can branch off and try a different approach.

Steps:

  1. Get the current session ID and project path: tail -1 ~/.claude/history.jsonl | jq -r '[.sessionId, .project] | @tsv'
  2. 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
  3. Run: <script-path> <session-id> <project-path>
    • Always pass the project path from the history entry, not the current working directory
  4. Tell the user they can access the cloned conversation with claude -r and look for the one marked [CLONED <timestamp>] (e.g., [CLONED Jan 7 14:30])

Comments

Markdown supported