---
title: "Open projects and isolate work"
description: "Add a folder or clone a Git repository, start a new project, choose between your local checkout and a Git worktree, and import existing Claude Code and Codex conversations."
slug: "working-with-autohand-code/code/desktop/projects"
sidebar:
  label: "Projects and worktrees"
---

## Add an existing folder

1. Choose **Add project** in the sidebar.
2. In **Create project**, keep **Folder** selected.
3. Drop the folder onto the dialog, browse for it, or type its path, such as `/path/to/project`.
4. Optional: choose **Add folder** to include more folders in the same project, for example a frontend and a backend that live side by side.
5. Choose **Create project**.

The first folder is the project root the agent works in. It can be a Git repository, a package inside a monorepo, or a plain folder. Git features need a repository and a working Git install.

Adding a project links the folder. It does not copy it, clean it, or discard existing edits. Run `git status` before you hand a checkout with uncommitted work to an agent.

## Clone a Git repository

In **Create project**, choose **Git repository**. Desktop can clone from GitHub, GitLab, and Bitbucket. Pick the repository and the destination folder, then choose **Clone and add**. Cloning and pushing use your Git host's permissions; your Autohand or agent sign-in does not grant them.

A repository already on disk can always be added with **Folder** instead.

## Start a new project

Create an empty folder, initialize Git if you want branches and diffs, then add it with **Folder**. Ask the agent to scaffold the project and name the runtime, package manager, and test command:

```text
Create a small Node.js command-line tool in this empty folder that totals
an order from JSON. Use built-in Node APIs and node:test, with no external
dependencies. Add a README with usage examples. Run the tests and one
example command. Do not commit or push.
```

Desktop works with a plain folder, but Git history, branches, and worktrees need a repository.

## Use a worktree [#use-a-worktree]

Open the environment control in the composer to see the **Work in** menu, then choose **New worktree**. A worktree is a separate checkout of the same repository, with its own files and branch. The composer then shows **Worktree** and the base branch, such as **From main**.

<img src="/images/desktop/app/composer-worktree-light.webp" alt="Composer above the prompt showing harbor-web, Worktree, and From main." width="2880" height="1800" />

A new thread set to Worktree, branching from main. (This capture is available in the light theme only.)

- Use **New worktree** for a feature or fix you want isolated, and when several agents work on the same repository.
- Use **Local project** when you want the agent to edit the folder you opened.

Changes in a worktree do not appear in your original folder. Review, test, and commit in the worktree, then merge or open a pull request as usual. **Settings > General > New threads** sets whether new threads start in **Local** or **New worktree**.

:::warning
Threads that use the same local checkout share its files, so two agents can overwrite each other. A worktree isolates files only. Databases, ports, and other services are still shared.
:::

To find every worktree on your machine, choose where new ones are created, or clean them up, use the [Worktrees manager](/working-with-autohand-code/code/desktop/worktrees).

## Bring existing conversations [#bring-existing-conversations]

A new thread can show an **Import your Claude Code and Codex projects** banner. You can also start an import from the sidebar with **Import projects from...**.

<img className="ah-shot-light" src="/images/desktop/app/newthread-light.webp" alt="New thread with a banner reading 'Import your Claude Code and Codex projects. Bring your chats and continue them in Autohand.'" width="2880" height="1800" loading="lazy" />
<img className="ah-shot-dark" src="/images/desktop/app/newthread-dark.webp" alt="New thread with a banner reading 'Import your Claude Code and Codex projects. Bring your chats and continue them in Autohand.'" width="2880" height="1800" loading="lazy" />

The import banner at the top of a new thread offers to bring Claude Code and Codex projects into Autohand.

Pick the source, review the projects and conversations it finds, choose a destination, and start the import. Desktop links the existing folders and copies the conversation history; your repositories stay where they are and the original sessions are not changed. Imported history does not sync back to the original CLI.

If a project folder has moved, Desktop lets you point it at the new location without losing the thread.

See [sessions and context](/working-with-autohand-code/code/desktop/sessions-and-context) for continuing imported work, and [the CLI and Web](/working-with-autohand-code/code/desktop/cli-and-web) for opening a folder from a terminal with `ad .`.
