Skip to content
Skillpedia
Misc10k · #11903

quarter-clone

What it does

This skill makes a new copy of the last quarter of your current conversation, dropping the earlier context. It is for people whose chat is long and who want to keep only the most recent work.

When to use it

  • ✓When your conversation is very long and only its latest work matters right now.
  • ✓When you want an even shorter copy of a chat than the half-clone skill makes.
  • ✓When you need a shorter session that uses fewer tokens for each new message.

Skill link

https://github.com/ykdojo/claude-code-tips/blob/main/skills/quarter-clone/SKILL.md

Copy it and paste it into your AI (Claude, ChatGPT or Cursor), asking it to follow the instructions.

How to use

The easiest way: copy the message and paste it into your AI. It reads the skill and follows the instructions.

Ready-to-paste message

Use this skill to help me: https://github.com/ykdojo/claude-code-tips/blob/main/skills/quarter-clone/SKILL.md Read the SKILL.md file at that link and follow its instructions for my task.
Want your AI to find skills like this on its own?Install the free Skillpedia MCP: one line, and it searches 15,000+ skills before each task.Install in 1 minute →

Example of what to ask your AI

“Make a quarter-clone of this conversation so I can keep working with less context.”

5 new skills a week. 1 minute to read.

How it works

The skill finds the current session, previews the copy to confirm the messages match, and runs a script to create a new session from the last quarter. It then gives you a command to open it.

Technical content (original SKILL.md)

Original text by the author, straight from GitHub.

Clone the last quarter of the current conversation, discarding earlier context to reduce token usage while preserving recent work.

Steps:

  1. Get the current session ID and project path: tail -1 ~/.claude/history.jsonl | jq -r '[.sessionId, .project] | @tsv'
  2. Find half-clone-conversation.sh with bash: find ~/.claude -name "half-clone-conversation.sh" 2>/dev/null | sort -V | tail -1
    • This finds the script whether installed via plugin or manual symlink
    • Uses version sort to prefer the latest version if multiple exist
    • The same script handles both half and quarter cloning; --quarter selects quarter mode
  3. Preview the conversation to verify the session ID: <script-path> --preview <session-id> <project-path>
    • Check that the first and last messages match the current conversation
  4. Run the clone: <script-path> --quarter <session-id> <project-path>
    • Always pass the project path from the history entry, not the current working directory
  5. The script prints the new session ID (the 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 [QUARTER-CLONE <timestamp>], e.g. [QUARTER-CLONE Jan 7 14:30], so claude -r and picking it works as a fallback.)
FAQ

How is this different from half-clone?

It keeps only the last quarter of the conversation, so the copy is shorter than a half clone.

Will I lose my latest messages?

No. The copy keeps the most recent part of the conversation.

How do I open the new session?

The skill gives you a command with the new session ID so you can resume it directly.

Details

Original description by the author

Clone the last quarter of the current conversation, discarding earlier context to reduce token usage while preserving recent work.

repo: ykdojo/claude-code-tips

Popularity

GitHub stars
10k
Ranking position
#11903
License
—
Updated
9/25/2026

Is this skill useful?

0

Sign in to vote.

Comments

  • …

More skills from this repository

Similar skills