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.mdCopy 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
For Claude Code, Codex or Cursor: run it in your project folder and the skill gets installed.
Download the SKILL.md and drop it into your agent’s skills folder.
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:
- Get the current session ID and project path:
tail -1 ~/.claude/history.jsonl | jq -r '[.sessionId, .project] | @tsv' - 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
- 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
- Run the clone:
<script-path> <session-id> <project-path>- Always pass the project path from the history entry, not the current working directory
- 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:
The script automatically appends a reference to the original conversation at the end of the cloned file. (The new session is also markedclaude --resume <new-session-id>[HALF-CLONE <timestamp>], e.g.[HALF-CLONE Jan 7 14:30], soclaude -rand 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
Comments
- …
More skills from this repository
gha
10kHelps your agent find out why a GitHub Actions workflow failed, and whether the same job keeps failing.
handoff
10kHelps your agent write a handoff document that lets a new chat pick up your project with clear goals, progress and next steps.
hn-summarize
10kHelps your agent summarize the top Hacker News stories, or one story and its comments, using the official Hacker News data.
private-github-search
10kHelps your agent search all of your GitHub repositories, including private ones, using a local copy and a fast text search.
Similar skills
blucli
394kHelps your agent find, play, pause, group, and adjust the volume of Bluesound and NAD speakers through the blu command.
camsnap
394kHelps your agent grab snapshots, short clips, or motion events from network cameras and local webcams that you have set up.
eightctl
394kHelps your agent check and control an Eight Sleep pod, including its temperature, alarms, and sleep schedules.