Problem
T3 Code is oriented around creating projects by cloning or creating new
worktrees. There is no clear way to open an already-existing local checkout
and adopt it as a T3 Code project.
This affects:
- repositories already cloned on the machine;
- the repository's main checkout;
- worktrees created by Git or another tool;
- checkouts containing existing uncommitted work.
Without an adoption flow, users may create duplicate clones or project records,
making it easy to work in the wrong checkout. T3 Code should be able to attach
to the checkout that already exists.
Proposed solution
Add an Open existing checkout / Adopt existing project option alongside
the current clone/new-project flow.
The user should be able to:
- Select an existing local directory.
- Have T3 Code validate and resolve its Git repository root.
- See the detected branch, checkout path, and whether it is a worktree.
- Create a T3 Code project record pointing at that directory.
- Start threads in that checkout without cloning, moving, or creating another
worktree.
The selected checkout should be allowed to contain uncommitted changes.
If the path or repository is already registered, T3 Code should focus or reuse
the existing project instead of creating a duplicate.
Removing the T3 Code project should remove only T3 Code's project record; it
must not delete or modify the checkout.
Expected behavior
An existing checkout should become usable in T3 Code without requiring:
git clone;
git worktree add;
- moving the directory;
- creating a duplicate project;
- manually editing T3 Code state.
This is different from cloning a repository from a URL and different from
relinking a project after its directory has moved.
Related issues
Problem
T3 Code is oriented around creating projects by cloning or creating new
worktrees. There is no clear way to open an already-existing local checkout
and adopt it as a T3 Code project.
This affects:
Without an adoption flow, users may create duplicate clones or project records,
making it easy to work in the wrong checkout. T3 Code should be able to attach
to the checkout that already exists.
Proposed solution
Add an Open existing checkout / Adopt existing project option alongside
the current clone/new-project flow.
The user should be able to:
worktree.
The selected checkout should be allowed to contain uncommitted changes.
If the path or repository is already registered, T3 Code should focus or reuse
the existing project instead of creating a duplicate.
Removing the T3 Code project should remove only T3 Code's project record; it
must not delete or modify the checkout.
Expected behavior
An existing checkout should become usable in T3 Code without requiring:
git clone;git worktree add;This is different from cloning a repository from a URL and different from
relinking a project after its directory has moved.
Related issues