Skip to content
Skillpedia
Misc10k · #11899

half-clone

What it does

This skill makes a new copy of the second half of your current conversation, dropping the earlier part. It is for people whose chat has grown long and who want to keep working with less context.

When to use it

  • ✓When your conversation has become very long and slow to continue.
  • ✓When you want to keep your recent work but drop the early part of the chat.
  • ✓When you want to reduce how many tokens each new message uses.

Skill link

https://github.com/ykdojo/claude-code-tips/blob/main/skills/half-clone/SKILL.md

Copy it and paste it into your AI (Claude, ChatGPT or Cursor), asking it to follow the instructions.

How to use

The easiest way: copy the message and paste it into your AI. It reads the skill and follows the instructions.

Ready-to-paste message

Use this skill to help me: https://github.com/ykdojo/claude-code-tips/blob/main/skills/half-clone/SKILL.md Read the SKILL.md file at that link and follow its instructions for my task.
Want your AI to find skills like this on its own?Install the free Skillpedia MCP: one line, and it searches 15,000+ skills before each task.Install in 1 minute →

Example of what to ask your AI

“My chat is very long. Make a half-clone of this conversation so I can keep working.”

5 new skills a week. 1 minute to read.

How it works

The skill finds the current session and runs a script that copies the later half into a new session. It then gives you a command to open that new session.

Technical content (original SKILL.md)

Original text by the author, straight from GitHub.

Clone the later half of the current conversation, discarding earlier context to reduce token usage while preserving recent work.

Steps:

  1. Get the current session ID and project path: tail -1 ~/.claude/history.jsonl | jq -r '[.sessionId, .project] | @tsv'
  2. Find half-clone-conversation.sh with bash: find ~/.claude -name "half-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. Preview the conversation to verify the session ID: <script-path> --preview <session-id> <project-path>
    • Check that the first and last messages match the current conversation
  4. Run the clone: <script-path> <session-id> <project-path>
    • Always pass the project path from the history entry, not the current working directory
  5. The script prints the new session ID (the New session: <id> line). Give the user the exact command to resume it directly, no picker needed:
    claude --resume <new-session-id>
    
    The script automatically appends a reference to the original conversation at the end of the cloned file. (The new session is also marked [HALF-CLONE <timestamp>], e.g. [HALF-CLONE Jan 7 14:30], so claude -r and picking it works as a fallback.)
FAQ

Will I lose my recent messages?

No. The copy keeps the later half of the conversation, which holds your recent work.

How do I open the new session?

The skill gives you a command with the new session ID, so you can resume it directly.

Is the original conversation kept?

A reference to the original conversation is added at the end of the new copy.

Details

Original description by the author

Clone the later half of the current conversation, discarding earlier context to reduce token usage while preserving recent work.

repo: ykdojo/claude-code-tips

Popularity

GitHub stars
10k
Ranking position
#11899
License
—
Updated
9/25/2026

Is this skill useful?

0

Sign in to vote.

Comments

  • …

More skills from this repository

Similar skills