From dx
Clones later half of current Claude conversation via bash script to cut token usage, preserving recent work. Preview first, then access new session via claude -r as [HALF-CLONE timestamp].
How this skill is triggered — by the user, by Claude, or both
Slash command
/dx:half-cloneThe summary Claude sees in its skill listing — used to decide when to auto-load this skill
Clone the later half of the current conversation, discarding earlier context to reduce token usage while preserving recent work.
Clone the later half of the current conversation, discarding earlier context to reduce token usage while preserving recent work.
Steps:
tail -1 ~/.claude/history.jsonl | jq -r '[.sessionId, .project] | @tsv'find ~/.claude -name "half-clone-conversation.sh" 2>/dev/null | sort -V | tail -1
<script-path> --preview <session-id> <project-path>
<script-path> <session-id> <project-path>
claude -r and look for the one marked [HALF-CLONE <timestamp>] (e.g., [HALF-CLONE Jan 7 14:30]). The script automatically appends a reference to the original conversation at the end of the cloned file.npx claudepluginhub guangyans/claude-code-tipsClones the later half of a Claude Code conversation to reduce token usage while preserving recent work. Used when conversation context grows too large.
Preserves conversation continuity across token budget cycles by automatically archiving session history before compaction and restoring it on session restart.
Retrieves previous Claude Code or Codex CLI session transcripts, printing recent turns and metadata to resume work. Supports UUID lookup and automatic detection of most recent session.