Theo-brainUnofficial. Not affiliated with Theo or t3.gg.
Sign inYou

T3 Code guide

Clone into host folders (ghq layout)

Source control and worktrees

A worktree is a separate copy of your project's files so agents can work without clashing.

Clone into host folders lays out new clones like ghq, under your add-project base directory, then host, owner, and repo. It is off by default.

What it’s for

Laying out clones like ghq, under host, owner, and repo folders in the add-project base directory.

When to use it

Use it if you want clones laid out like ghq.

T3 Code docs: source control

How to use it

  1. In Settings → Threads (or Source control on mobile), turn on Clone into host folders.

    T3 Code docs: source control

  2. Set Add project starts in to your base directory, such as ~/ghq to share ghq's folders. Clones then default to host / owner / repo under it.

  3. Clone a repository with Add Project in the command palette (Cmd/Ctrl+K), changing the suggested destination before cloning if needed.

    T3 Code docs: source control

Related settings

Unofficial notes. Not affiliated with Theo or t3.gg.