
half-clone
Clone the later half of the current conversation, discarding earlier context to reduce token usage while preserving recent work.
- Installs
- 91
- Last 24h
- —
- Trending rank
- —
- Security
- Not audited
Install
Works with every agent the skills CLI supports.
npx skills add https://github.com/ykdojo/claude-code-tips --skill half-clone- 01
Install
Run the command in your project. The CLI asks which agents to install for.
- 02
Describe the task
Ask your agent for something this skill covers. It loads half-clone automatically when relevant.
- 03
Review the result
The agent follows the SKILL.md steps, scripts and references bundled with the skill.
SKILL.md
The instructions your agent reads when the skill is triggered.
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
What does the half-clone skill do?
Clone the later half of the current conversation, discarding earlier context to reduce token usage while preserving recent work.
How do I install half-clone?
Run npx skills add https://github.com/ykdojo/claude-code-tips --skill half-clone in your project. The skills CLI detects the agents you use and copies the skill into the right folder. For Claude Code you can also place the skill folder at ~/.claude/skills/half-clone/ (personal) or .claude/skills/half-clone/ (project).
Which AI agents can use half-clone?
Any agent that supports the open Agent Skills format (a folder with a SKILL.md file), including Claude Code, Codex, Cursor, GitHub Copilot, Gemini CLI, Windsurf, Cline, OpenCode and more.
Is half-clone safe to install?
No partner security audit is available yet. Skills can run commands and scripts, so read the SKILL.md and any bundled files before installing.
Who maintains half-clone?
It is published by ykdojo in ykdojo/claude-code-tips. It has 91 recorded installs.
More from ykdojo/claude-code-tips
reddit-fetch
ykdojo/claude-code-tips
Fetch content from Reddit via its JSON API using a browser session (DuckDuckGo-hop unlock). Use when accessing Reddit URLs, researching topics on Reddit, or when Reddit returns 403/blocked errors.
review-claudemd
ykdojo/claude-code-tips
Review recent conversations to find improvements for CLAUDE.md files.
handoff
ykdojo/claude-code-tips
Write or update a handoff document so the next agent with fresh context can continue this work.
clone
ykdojo/claude-code-tips
Clone the current conversation so the user can branch off and try a different approach.
gha
ykdojo/claude-code-tips
Analyze GitHub Actions failures and identify root causes
quarter-clone
ykdojo/claude-code-tips
Clone the last quarter of the current conversation, discarding earlier context to reduce token usage while preserving recent work.
Popular other skills
hyperframes-cli
heygen-com/hyperframes
The HyperFrames CLI by job - scaffold, check, look at frames, edit the timeline, preview, render locally or in the cloud, publish, project history - plus reading its JSON and recovering from build or render failures.
triage
mattpocock/skills
Move issues and external PRs through a state machine of triage roles, categorise, verify, grill if needed, and write agent-ready briefs.
ask-matt
mattpocock/skills
Ask which skill or flow fits your situation. A router over the skills in this repo.
to-questionnaire
mattpocock/skills
Turn a decision you can't fully answer into a questionnaire for someone else to fill in.
loop-me
mattpocock/skills
Grill me about specs for the workflows I want to build, within this workspace.