One-click install
npx skills add https://github.com/ToanPV90/dotfiles --skill half-clone-toanpv90
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: half-clone
Source: https://github.com/ToanPV90/dotfiles/tree/main/claude/.claude/skills/half-clone
Command: npx skills add https://github.com/ToanPV90/dotfiles --skill half-clone-toanpv90

SYSTEM DOCUMENTATION & REQUIREMENTS

What problem does it solve?

Long conversations can become too large to manage, slowing you down and increasing token usage when you only need the most recent progress.

Core Features & Use Cases

  • Halves the conversation context: Clones only the later half of the current chat so earlier messages are discarded.
  • Preserves continuity of recent work: Keeps the most relevant part of the dialogue for continuing from where you left off.
  • Adds provenance automatically: Appends a reference to the original conversation at the end of the cloned output for traceability.

Quick Start

Ask Claude to “half-clone the later half of my current conversation” and then use the resulting cloned chat marked with [HALF-CLONE timestamp] via claude -r.

Frequently Asked Questions about half-clone

High-intent search queries and answers about installing and using this skill.

FAQPage Schema
How do I reduce token usage in a long Claude Code conversation?

To reduce token usage in a long Claude Code conversation, you can clone only the later half of your existing chat. This discards earlier backstory while preserving recent decisions and work-in-progress for continued workspace continuity.

What is conversation cloning and how does it handle context truncation?

Conversation cloning for context truncation duplicates only the later half of an active chat session. It discards older messages to shrink the overall context size while appending provenance to the original conversation for traceability.

How do I clone the later half of my current Claude Code session?

To clone the later half of a Claude Code session, ask Claude to half-clone your current conversation. The tool reads the latest sessionId and project path from history, validates the session in preview mode, and executes the clone script.

Can I keep my recent work-in-progress when truncating earlier chat context?

Yes, you can keep recent work-in-progress when truncating earlier chat context. The half-clone method specifically preserves the later half of your dialogue, maintaining recent outputs and decisions while omitting prior backstory.

Do I need bash tooling to manage workspace continuity in Claude Code?

Yes, bash tooling is required to manage workspace continuity in Claude Code. The process relies on locating and executing a bash script, which reads session data from your local history file to perform the context truncation.

When should I not use half-cloning for conversation management?

You should not use half-cloning for conversation management when your earlier chat context contains critical backstory or decisions required for the ongoing project. This method permanently discards the earlier half of the conversation to save tokens.