Skip to main content
skill CX Codex

half-clone — Claude Code skill: what it does, how to install

This skill creates a new session from the later part of the current conversation. Use it when the early history is no longer needed but recent work should remain.

Install into Claude Code · Skills CLI (Vercel) All methods and platforms ↓
npx skills add ykdojo/claude-code-tips --skill half-clone -a claude-code
Open on GitHub

What half-clone does

half-clone reads the active session ID and project path from ~/.claude/history.jsonl. It locates the newest half-clone-conversation.sh, then lets the agent inspect the selected conversation with --preview before creating the clone.

The script writes a reference to the source conversation into the new session and prints its ID. The skill then gives the direct resume command, claude --resume <new-session-id>. Its workflow relies on tail, jq, find, and Bash.

The project path must come from the history entry rather than the current working directory. Using the wrong path can point the clone at the wrong project.

What it helps with

  • trim obsolete early conversation context
  • keep recent work in a new session
  • inspect the selected session before cloning
  • resume the cloned session by ID

Example prompts for the agent

  • Clone the later part of this conversation after showing me the preview.
  • Read the session ID and project path, then create a half-clone.
  • Create the new session and give me the exact command to resume it.

How to install half-clone

1Skills CLI (Vercel)

npx skills add ykdojo/claude-code-tips --skill half-clone -a claude-code

2Manually: put the files in place

~/.claude/skills/half-clone/SKILL.md

Copy the whole skill folder; for one project use .claude/skills/half-clone/

Step by step, with commands for each platform: How to install skills in Claude Code: five ways

Questions about half-clone

How do I install half-clone in Claude Code?

Run npx skills add ykdojo/claude-code-tips --skill half-clone -a claude-code, then check ~/.claude/skills/half-clone/SKILL.md.

What does half-clone do?

It creates a new session from the later portion of the current conversation. The workflow checks the session and project before cloning, then prints a direct resume command.

Why does the project path come from the history file?

The script uses the project path stored in ~/.claude/history.jsonl, not the current working directory. That keeps the clone tied to the intended project.

Similar skills

All skills for Agent setup: memory, context, orchestration →

From the same set4

Project sponsors

Companies that keep this analytics open
Gold sponsor

Impressions, clicks and code copies — open statistics. We keep the numbers public for the same reason NeBlask itself is public. Become a sponsor