Repository navigation
Replies: 1 comment
|
Relation to #28859. #28859 lets
The sidebar part answers what filipechagas described in #17415: with top-level Happy to wait for a decision on #28859 and then send just that follow-up. Drafted with Claude Opus 5.5 in T3 Code and posted by the account owner. |
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
TL;DR: A multi-project is a small folder project whose threads plan a change and hand each part to a normal thread in the project it belongs to, in that project's own worktree. The children know they are being orchestrated and who their siblings are. The parent is woken with their results and checks them. Nothing new to learn: these are the projects, threads,
delegate_task, worktrees and sidebar T3 already has. It works on our fork, and we would like to send it as a PR next to #26254, not instead of it.The problem, from the other side
Work that spans repos is one of the most requested things here: #7041 has 130+ upvotes, and #26254 answers it by letting one project track several repos, so one agent sees all of them.
That fits tightly coupled repos. But many of us split cross-repo work into workstreams: one thread per repo, each with its own branch, review and PR, and one coordinating thread above them. That is what #17415 asks for: "An orchestrating thread can't hand work to a nested child that runs somewhere other than its own checkout." (11 upvotes, about ten people adding the same setup, and the target of a closed duplicate.)
Multi-projects implement #17415 with almost no new concepts.
How it works
<T3 home>/multi/<name>, with anAGENTS.mdthat lists the members and the orchestration rules, plus aspecs/folder. It never becomes a Git repo, and the member repos stay where they already are.specs/, then callsdelegate_taskwithtarget.projectIdfor each part. Each child is a real thread in the member project, in a fresh worktree from that project's default branch.t3_thread_send.A real run on a demo product, Tablewise: "Parties of 6 or more pay a €10/guest deposit", across
tablewise-api,tablewise-webandtablewise-ios. The planner wrote the spec and decided on its own that web and iOS must wait for the API's field names, so it started the API part first:After all three children committed on their own branches, the planner checked each against the spec and reported what still needed a decision:
Why it fits T3
delegate_taskthat already wakes parents. The only additions aretarget.projectIdondelegate_task, alistedflag on the child's lineage, and a folder template. There are no new tables and no migrations.How it differs from #26254
#26254 is a big, careful piece of work, and both approaches can live side by side. The difference matters for setups like these:
No Git home. Task folders in feat(projects): projects with several repos get per-repo review and worktrees #26254 need the wrapper folder to be a Git repo; a plain folder is offered "Initialize Git and commit home files". Several people can't or don't want that:
In practice the workaround is an umbrella repo whose
.gitignorelists the nested clones. A multi-project folder is never a repo, so none of this applies.Repos stay where they are. Members are existing projects anywhere on disk. You don't need a common parent ("Moving the repositories just to give them a common parent is not a good workaround either", comment).
Workstreams, not one big context. "As soon as the project you're working on goes beyond 1 repo I want to stop orchestrating just threads but want to orchestrate collections of threads / workstreams" (comment). See also Orchestrator mode: one agent per project that delegates all the work, and a sidebar of projects #31208, "one agent per project that delegates all the work".
The honest trade-off: no single agent sees every repo at once. The planner can read them all, but each edit happens in one repo's thread. For a few tightly coupled repos that one agent must change together, #26254 is the better tool. For parallel per-repo work that needs separate branches and PRs, multi-projects are. They don't conflict: a member of a multi-project could itself be a multi-repo project.
What it costs in tokens
We ran the same task with the same model (Claude Haiku 5.5), counted from the Claude transcripts once per API message:
Token volume is the same within a few percent. Each child is a full session, but its prompt is short, because the shared context lives in the spec file, not in the prompt. One caveat: in our run the planner chose Sonnet 5.5 for the children (
delegate_tasktakes a model per child), so that run cost more in dollars. That is the planner's model choice, not overhead from orchestration. This is one run of each, so treat it as a sanity check, not a benchmark.The question
Would you accept a PR for this direction? The scope would be:
delegate_taskacceptstarget.projectIdwhen the parent thread is in a multi-project. The child starts in a new worktree of that project, with its lineage markedlisted.projects.createNewwithmembers.It works on our fork today. The change is ready as one commit on a branch, not opened as a PR until you say so: compare
main...wixlit:feat/multi-projects.vp run check:changedpasses on it, and we'll rebase it onto currentmainbefore opening the PR. We're happy to change the shape: for example, gate it in Labs, drop the dedicated folder in favour of any project acting as a coordinator (closer to #17415's ask), or make it a flag on #26254's model.Drafted with Claude Opus 5.5 in T3 Code and posted by the account owner. The screenshots and numbers come from a real run on throwaway demo repos.
All reactions