From dx
Clones the later half of a Claude Code conversation to reduce token usage while preserving recent work. Used when conversation context grows too large.
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>
New session: <id> line). Give the user the exact command to resume it directly, no picker needed:
claude --resume <new-session-id>
The script automatically appends a reference to the original conversation at the end of the cloned file. (The new session is also marked [HALF-CLONE <timestamp>], e.g. [HALF-CLONE Jan 7 14:30], so claude -r and picking it works as a fallback.)4plugins reuse this skill
First indexed Jun 29, 2026
npx claudepluginhub mattfirtion/claude-code-tips-docsClones the later half of a Claude Code conversation to reduce token usage while preserving recent work. Used when conversation context grows too large.
Recovers actionable context from local .claude session artifacts to continue interrupted work without running claude --resume. Extracts compact summaries, pending work, errors, and workspace state.
Guides managing Claude Code context window with /compact, /clear commands, auto-compaction config, sub-agents, targeted reads, background tasks, and conversation flows for long sessions.