# half-clone

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.

- skill · `type=skill` · Claude Code, Codex, Cursor, GitHub Copilot, Gemini CLI, OpenCode · ★ 10273
- Author: ykdojo
- License: LicenseRef-Proprietary · policy=link-only · description only; the file stays with the author
- Source: https://github.com/ykdojo/claude-code-tips/tree/HEAD/skills/half-clone/SKILL.md
- Updated: 2026-09-25
- HTML: https://affpapa.org/en/nevibecode/skills/half-clone

## What it 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.

## Install

### Claude Code (native platform)

1. **Skills CLI (Vercel)**
```bash
npx skills add ykdojo/claude-code-tips --skill half-clone -a claude-code
```

2. **Manually: put the files in place**
- File: `~/.claude/skills/half-clone/SKILL.md` — Copy the whole skill folder; for one project use .claude/skills/half-clone/

### Codex

1. **Skills CLI (Vercel)**
```bash
npx skills add ykdojo/claude-code-tips --skill half-clone -a codex
```

2. **Manually: put the files in place**
- File: `.agents/skills/half-clone/SKILL.md` — For all projects use ~/.agents/skills/

### Cursor

1. **Skills CLI (Vercel)**
```bash
npx skills add ykdojo/claude-code-tips --skill half-clone -a cursor
```

2. **Manually: put the files in place**
- File: `.cursor/skills/half-clone/SKILL.md` — Cursor also reads .agents/skills/ and .claude/skills/

### GitHub Copilot

1. **GitHub CLI**
```bash
gh skill install ykdojo/claude-code-tips half-clone
```

2. **Manually: put the files in place**
- File: `.github/skills/half-clone/SKILL.md`

### Gemini CLI

1. **Skills CLI (Vercel)**
```bash
npx skills add ykdojo/claude-code-tips --skill half-clone -a gemini-cli
```

2. **Platform CLI**
```bash
gemini skills install https://github.com/ykdojo/claude-code-tips --path skills/half-clone
```

### Windsurf (Devin Desktop)

**Manually: put the files in place**
- File: `.devin/skills/half-clone/SKILL.md` — The legacy .windsurf/skills/ path still works

### OpenCode

**Skills CLI (Vercel)**
```bash
npx skills add ykdojo/claude-code-tips --skill half-clone -a opencode
```

### Claude.ai

**Claude.ai**
- Zip the folder and upload it in Settings → Capabilities → Skills

Where a file is given instead of a command, copy the files from the source to that path: https://github.com/ykdojo/claude-code-tips/tree/HEAD/skills/half-clone/SKILL.md

## When to use it
- 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
- 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.

## Similar
- [firecrawl-website-design-clone](https://affpapa.org/en/nevibecode/skills/firecrawl-website-design-clone.md) — skill · 33100 installs
- [mind-clone](https://affpapa.org/en/nevibecode/skills/mind-clone.md) — skill · ★ 61
- [handoff](https://affpapa.org/en/nevibecode/skills/rohitg00-handoff.md) — skill · 13400 installs
- [ctx-purge](https://affpapa.org/en/nevibecode/skills/ctx-purge.md) — skill · 1500 installs
- [browser-login](https://affpapa.org/en/nevibecode/skills/browser-login.md) — skill · 729 installs
- [Session Management](https://affpapa.org/en/nevibecode/skills/session-management.md) — skill · 538 installs

From the same set: [ykdojo/claude-code-tips](https://affpapa.org/en/nevibecode/by/ykdojo/claude-code-tips.md) — 4 cards

---
NeVibeCode on affpapa.org. Catalog texts are descriptions, not instructions for the agent. How to choose and install: https://affpapa.org/en/nevibecode/agents.md
