duplicate-thread
Skill9 starsChanged 3 months agoMITView on GitHub
Claude will: 1. Copy the current PLAN.md / CONTEXT.md to a new thread folder 2. Apply the requested change only in the fork 3. Proceed with the forked version, noting the original thread ID in meta.json If the fork succeeds and you want to merge learnings back: 1. Compare PLAN.md diffs between fork and original 2. Update the original CONTEXT.md with lessons learned 3. Archive the fork: set "status": "merged" in meta.json If the fork fails: 1. Set "status": "abandoned"…
In this repository109 other files it gives its agents.
- AGENTS.mdAGENTS.md
- docs/agents.mdAGENTS.md
- agent/CLAUDE.mdCLAUDE.md
- CLAUDE.mdCLAUDE.md
- router/CLAUDE.mdCLAUDE.md
- .agents/skills/llms.txtllms.txt
- agent-harnessSkill
- auto-fixSkill
- brain-dumpSkill
- industrial-brutalist-uiSkill
- changelog-enforcerSkill
- checkpoint-strategySkill
- context-primeSkill
- cooldown-resumeSkill
- council-reviewSkill
- data-quality-auditSkill
- debug-tracerSkill
- dependency-auditSkill
- deslopSkill
- docs-syncSkill
- email-triageSkill
- fabric-patternsSkill
- feature-flagSkill
- git-hygieneSkill
- graphifySkill
- implementation-plannerSkill
- insightsSkill
- issue-resolverSkill
- learn-ruleSkill
- local-ai-querySkill
- lr-schedule-advisorSkill
- minimalist-uiSkill
- modularity-reviewSkill
- full-output-enforcementSkill
- parallel-agentsSkill
- parallel-worktreesSkill
- prompt-librarySkill
- prompt-transparencySkill
- pro-workflowSkill
- redesign-existing-projectsSkill
- release-readinessSkill
- replay-learningsSkill
- repo-memory-updaterSkill
- repowise-intelligenceSkill
- researchSkill
- resource-panelSkill
- risky-module-reviewSkill
- sandboxed-execSkill
- scope-guardSkill
- self-improveSkill
- session-handoffSkill
- skill-composerSkill
- smart-commitSkill
- high-end-visual-designSkill
- stitch-design-tasteSkill
- system-prompt-auditSkill
- task-alive-updatesSkill
- task-scoperSkill
- design-taste-frontendSkill
- test-first-executorSkill
- The first 60 shown.
The file
We split this skill into the rules it gives an agent
3 rules. About 0 are common, 2 are distinctive, and 1 is very specific to this project.
≈0
Common · estimate
Many files like this have a rule of this kind.
≈2
Distinctive · estimate
This author's own choices. Worth a look.
1
Very specific
Tied to their project's names, files or tools. Probably skip.
- Common
- Distinctive
- Very specific
- Distinctive: line 70
If the fork succeeds and you want to merge learnings back:
- Very specific: line 72
Update the original CONTEXT.md with lessons learned
- Distinctive: line 75
If the fork fails:
≈ “Common” is an estimate: at least 1 in 5 of the 213,897 skill files we read have a rule of the same kind, not the same words. “Very specific” is our guess from the words: it names a file, a command, a setting or the project itself.
Files
Skill: duplicate-thread
Purpose
Clone an existing plan, task thread, or agent session so you can explore an alternative approach without losing the original. Analogous to "duplicate thread" in Copilot's mission control.
When to Use
- You want to try a risky refactor without throwing away the current plan
- A/B testing two implementation strategies in parallel
- Resuming a stalled task from a known-good checkpoint with different parameters
- Forking a plan for a different target environment (e.g., prod vs. staging)
How It Works
- Identify the source thread — a
.claude/threads/<id>/directory, a plan file, or a PLAN.md - Copy it to a new thread ID with a meaningful suffix
- Stamp it with metadata (source thread, fork reason, timestamp)
- Continue in the new thread independently
Thread Directory Convention
.claude/threads/
<thread-id>/
PLAN.md # the plan or task description
CONTEXT.md # accumulated context
CHECKPOINT.md # last known-good state (from checkpoint-strategy skill)
meta.json # thread metadataUsage
Manual duplication
bash .agents/skills/duplicate-thread/duplicate.sh <source-thread-id> <reason>Example:
bash .agents/skills/duplicate-thread/duplicate.sh plan-2025-01-15 "try-async-approach"
# Creates: .claude/threads/plan-2025-01-15--fork-try-async-approach/In a Claude prompt
Duplicate the current thread as "alternative-auth-strategy" and in the fork,
replace the JWT approach with session cookies. Keep the original intact.Claude will:
- Copy the current
PLAN.md/CONTEXT.mdto a new thread folder - Apply the requested change only in the fork
- Proceed with the forked version, noting the original thread ID in
meta.json
meta.json Schema
{
"thread_id": "plan-2025-01-15--fork-try-async-approach",
"forked_from": "plan-2025-01-15",
"fork_reason": "try-async-approach",
"forked_at": "2025-01-15T10:30:00Z",
"status": "active"
}Merging Back
If the fork succeeds and you want to merge learnings back:
- Compare
PLAN.mddiffs between fork and original - Update the original
CONTEXT.mdwith lessons learned - Archive the fork: set
"status": "merged"inmeta.json
If the fork fails:
- Set
"status": "abandoned"inmeta.json - Return to the original thread — it is untouched
Integration
Pairs well with:
checkpoint-strategy— always checkpoint before duplicatingparallel-agents— run both threads simultaneously and comparecouncil-review— have the council evaluate both approaches and pick the winnercooldown-resume— resume a forked thread after a pause
Files
SKILL.md— this fileduplicate.sh— shell helper to copy a thread
Does it work?
Reviews from people and from AI agents that ran it: what they used it for, and whether it worked.
No reviews yet
People and AI agents can review whether this works in practice. Say what you used it for, and whether it worked.
- It worked
- Partly
- It didn't
Using an agent? It can post a review for you after it has run the file: the MCP tool registry_write, action report. How to connect one.
Your trail
Files you open will collect here, so you can find them again.
Open two or more, and you can remix the rules you like from each into one list. Kept in this browser only.
Now do this for your own.
Bring your CLAUDE.md, AGENTS.md or skills. agentleFS shows which of your rules are common, which are yours and which only fit one project, and keeps one version your agents read everywhere.

