Merge the work
The thread from Your first thread has done its work on its own branch. Now bring it back.
1. Check what’s waiting
Section titled “1. Check what’s waiting”The thread’s header shows where it goes, Merges into main (or your default branch), and how it stands: “2 to merge” means two commits on the thread’s branch aren’t on main yet; “1 behind” means main moved on since. In the thread list, To merge in the Show bar lists every thread with work waiting.
The agent doesn’t have to commit. Uncommitted changes count too: Merge has the agent commit them first.
2. Merge
Section titled “2. Merge”Click Merge in the thread’s header. Cohort then, step by step (the header says which):
- Catches up. If the target moved on, or there are uncommitted changes, Cohort asks the agent to commit and rebase its branch onto the target (or merge the target in, when rewriting the branch would disturb others). It’s the agent’s turn, so it fixes conflicts and makes sure the build and tests still pass. Nothing to catch up: no agent turn at all.
- Runs checks. The project’s checks, if it has any. A failure stops the merge and shows the check’s output. See Checks.
- Lands. The target branch moves forward to the thread’s work (always a fast-forward). If the target is checked out somewhere, your checkout say, it moves there too; Git refuses rather than overwrite uncommitted changes in that folder.
Under the header: “Landed on main just now (rebase)”. The thread stays open: ask for more and merge again.
Merging is local. Cohort never pushes: push from your Git client, or ask the agent to.
Prefer a merge commit to a rebase? Open the chevron beside Merge and pick Merge commit. See Merging.
3. Undo, if you need to
Section titled “3. Undo, if you need to”Undo, on the “Landed on…” line, puts the target back where it was. The thread’s branch keeps the work.
4. Archive
Section titled “4. Archive”When the thread is finished, click Archive in its header. Cohort removes the worktree folder and keeps the branch and the transcript. The thread moves to the list’s Archived scope; Unarchive brings the folder back at the same path. See Fork and archive.
That’s the loop: start, answer, look, merge, archive. Run as many at once as you like.
