feat(agent): add delegated worktree threads - #346
Open
fcoury-oai wants to merge 1 commit into
Open
fcoury-oai wants to merge 1 commit into
fcoury-oai wants to merge 1 commit into
Conversation
fcoury
force-pushed
the
fcoury/delegate-threads
branch
from
August 27, 2026 03:49
65b5dfb to
264036f
Compare
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Delegated tasks need isolation without forcing the user to leave their current pair session or manually manage another Red instance.
This change adds Pair and Delegate modes to the existing Agent experience. Delegate mode previews and creates a sibling Git worktree, starts a Codex conversation rooted there, and leaves the current Pair thread selected. A new Threads workspace groups conversations by attention, failure, running, review-ready, current, and historical state, and selecting a thread reuses the Agent pane.
Agent conversations now persist as a collection, carry their own workspace roots and branch metadata, and keep editor tools scoped to the owning session. This prevents a delegated task from reading or following the active Pair buffer while still allowing multiple sessions to share the existing Codex app-server connection.
How to Test
Targeted automated coverage includes the Agent plugin mode picker and delegate preview, multi-session root isolation and status transitions, session persistence, and Codex session cwd routing.