In this article
Use conversation branching to preserve an alternate reasoning path, and establish a separate workspace when experiments require independent file changes.
Identify what should be independent
A developer wants to try another fix while preserving the original investigation. A conversation fork can preserve the original event history, but that does not answer whether files are independent. The SDK fork guide explicitly separates copied conversation components from a shared workspace. Decide whether the experiment needs independent reasoning, independent files or both before choosing the mechanism.
Read the copy boundary precisely
The documented fork deep-copies events and agent state into a conversation with its own identity. Its working directory remains shared. A later message in the fork does not append to the source conversation’s events, yet a file edit can still change a path the original conversation uses. The phrase “source unchanged” must therefore identify conversation state, not promise that every resource reachable through the copied agent is frozen or private.
Distinguish branching from a message and reverting code
The Canvas conversation guide lets a user branch from an earlier message on a supporting local backend. Branching a user message allows editing and resending that prompt; branching an assistant message retains history through that response. Neither operation should be interpreted as automatically rewinding files to what they contained at that moment. Inspect the actual workspace before running an alternative implementation based on earlier conversational assumptions.
Prepare a fair comparison
For an implementation comparison, establish equivalent source revisions and independent writable locations when required. Keep inputs and acceptance checks comparable. The architecture guide assigns file state to the workspace and execution to the backend. Merely seeing separate conversation titles in the browser does not supply filesystem separation. A comparison can otherwise measure the second attempt against files already modified by the first attempt.
Preserve both histories and artifacts
Record the branch point, conversation identity, workspace and resulting diff for each candidate. Tool observations establish which operations ran; the task-contract guide defines the comparison’s allowed edits and success conditions. Use the conversation history to understand reasoning and the source revision to understand code state. A useful fork keeps an audit trail without implying a private copy of resources the documented API shares.
Earn rental income from GPUs
Have idle GPUs or looking to fund AI infrastructure? Retrivium finds a rental platform, sets up the server and helps you assess income and costs with a pilot.