Support multiple Git repositories within one project directory #39559
Problem#
A project can span several independent Git repositories under one parent directory. Opening that parent in T3 Code provides one conversation for cross-repository work, but the built-in Git features do not treat its child repositories as one workspace.
For example:
workspace/ # opened as the T3 project; no .git
frontend/.git/
backend/.git/
The agent can work in both directories, subject to the provider's filesystem permissions, while T3's repository detection resolves a single repository from the project's or thread's working directory. It does not discover the child repositories. Git status, changed-file review, checkpoints/restore, and isolated worktrees therefore do not cover this layout as a multi-repository project.
This limitation was confirmed by source inspection, not a fresh UI reproduction.
Requested behavior#
Support opening a directory containing multiple Git repositories as one T3 project, keeping one thread for work across those repositories.
- Discover or explicitly register repositories within the project directory.
- Show changes grouped by repository, with enough context to identify the repository and branch.
- Run Git actions against the selected repository.
- Define checkpoint/restore and isolated-worktree behavior across the participating repositories, and clearly communicate any unsupported operations.
The initial scope is repositories inside the selected project directory. Attaching arbitrary external directories is a separate feature.
Example workflow#
- Open
workspace/containing thefrontendandbackendrepositories. - Start one thread and ask the agent to update an API and its frontend consumer.
- Review the changes in both repositories from that thread.
- Commit or publish each repository's changes with an explicit repository target.
Repository discovery and Git operations should run in the hosting environment so the same project works from web, desktop, and mobile clients over local or remote connections.
Current workaround#
Add each child repository as a separate T3 project to use its Git features. Opening the parent preserves one cross-repository conversation but leaves those Git features limited.
Related work#
- #1453 asked about this exact parent-directory workflow; it is closed.
- https://github.com/pingdotgg/t3code/discussions/7041 contains the earlier multi-repository proposal.
- #15752 proposed multi-repository workspaces and is closed without being merged.
- #18906 concerns review visibility and publication scope when an agent edits another repository, including repositories outside the project directory.
- #20378 concerns child-repository PR discovery and multiple remotes.
This issue tracks the overall parent-directory workspace capability and links the narrower reports rather than treating them as separate implementations of the full feature.
tanstack-source added labelsfeature
juliusmarminge closed this
Sign in to join this conversation.
Thanks for writing this up. It asks for new behaviour rather than reporting a defect, so it does not belong in the bug tracker and I'm closing it as not planned here. Feature ideas are discussed in Discussions: please post it there.