> ## Documentation Index
> Fetch the complete documentation index at: https://docs.piebald.ai/llms.txt
> Use this file to discover all available pages before exploring further.

# Relocating & duplicating

> Seamlessly move chats from one worktree to another and duplicate chats.

## Relocating

<Badge color="green">Available in [Piebald Pro](https://piebald.ai/pricing)</Badge>

Sometimes you might create a chat in one worktree, and work with the AI to build a plan, but then you want to implement that plan in the same chat but in a different worktree.  Piebald allows you to **relocate** chats from one directory to another, which will move a chat to the specified directory and automatically rewrite all occurences of the old path to the new path across all user and AI messages and tool call inputs and outputs.

To duplicate a chat, click the <Icon icon="ellipsis" /> icon on a chat in the sidebar and choose **<Icon icon="arrow-right-left" /> Relocate.**  You'll be prompted to select a target directory.  Once you select one, Piebald will update the entire chat history to point to the new path, and the AI will never know that it worked in the old directory.

You can also relocate a chat by manually editing the directory path in the config sidebar.  To do that, open the chat config sidebar by clicking the <Icon icon="settings" /> icon in the top-right corner of the chat view, and edit the **Working Directory** field, and click **Relocate:**

<img className="shadow-md rounded-xl" width="500" alt="Screenshot of the 'Working Directory' section of a chat's config sidebar, showing a modified path of 'C:\new\directory\' and the existing 'Change' and the new 'Relocate' buttons." src="https://mintcdn.com/piebald/IoW_K4K3FWzhbrMB/imgs/v0-1-7/relocate_working_directory.png?fit=max&auto=format&n=IoW_K4K3FWzhbrMB&q=85&s=957c21eef2d857e14db36bb395bb41ba" data-path="imgs/v0-1-7/relocate_working_directory.png" />

Chat relocation requires [Piebald Pro](https://piebald.ai/pricing).

## Duplicating

<Badge color="green">Available in [Piebald Pro](https://piebald.ai/pricing)</Badge>

Piebald also allows you to duplicate chats.  All user and AI messages and all tool calls are preserved in the copy.

To duplicate a chat, click the <Icon icon="ellipsis" /> icon on a chat in the sidebar and choose **<Icon icon="copy" /> Duplicate.**

Chat duplication requires [Piebald Pro](https://piebald.ai/pricing).
