half-clone
CommunityHalf-clone: trim history, keep recent work.
Software Engineering#Claude Code#conversation#session-management#token-usage#half-clone#history-trimming
Authorykdojo
Version1.0.0
Installs0
System Documentation
What problem does it solve?
This Skill enables you to prune historical context in Claude Code conversations by cloning the later portion of the current session, helping to reduce token usage while preserving recent work.
Core Features & Use Cases
- Selective history pruning: Keep the most recent messages while discarding earlier context.
- Session portability: Applies to ongoing Claude Code sessions and project work across restarts.
- Use Case: When working on a long-running task, run half-clone to shrink history and keep the latest progress accessible.
Quick Start
Find the latest half-clone-conversation.sh script, preview the session to verify IDs, and run the clone using the session id and project path from your Claude history. After the operation, access the half-clone result via claude -r and look for the label [HALF-CLONE <timestamp>].
Dependency Matrix
Required Modules
None requiredComponents
Standard package💻 Claude Code Installation
Recommended: Let Claude install automatically. Simply copy and paste the text below to Claude Code.
Please help me install this Skill: Name: half-clone Download link: https://github.com/ykdojo/claude-code-tips/archive/main.zip#half-clone Please download this .zip file, extract it, and install it in the .claude/skills/ directory.
Agent Skills Search Helper
Install a tiny helper to your Agent, search and equip skill from 223,000+ vetted skills library on demand.