Skip to content
CohortDocs

Fork, pin and archive

A fork is a new thread that carries on the same conversation, so you can try another direction without losing the first.

  • From a message: hover one of your messages and click Fork from this message. The fork keeps the conversation up to the end of that turn and drops what came after.
  • From the latest: /fork in the composer, or ⌘K Fork thread.

The fork opens at once, named “<title> (fork)”. It is a thread of its own: in a worktree it gets a new branch from the source’s branch (committed work only), under the same login. Claude Code and Codex can fork at an earlier turn; other agents fork from the latest.

From the CLI: cohort thread fork <id> [--after <seq>] [--prompt "…"] [--login <login>].

Pinned threads lead their project’s group, with a pin on the row. Archiving a pinned thread asks first.

Pin and Unpin are in the row’s menu (right-click, or ⌥↵), ⌘K Pin thread, or a swipe right on a touch screen. CLI: cohort thread pin <id>.

Archive a thread when you’re done with it: Archive in the thread’s toolbar, the row’s menu, /archive, ⌘K Archive thread, or a full swipe left.

  • Uncommitted work is committed to its branch first, so nothing is lost.
  • The worktree folder is removed (after .cohort-teardown.sh runs, if the repository has one). The branch stays.
  • The transcript stays, under the Archived tab at the foot of the thread list.
  • Threads it started (its children) are archived with it.

Cohort asks first when:

  • the agent is still at work: “Archive a running thread?” (it is stopped);
  • its work isn’t merged: “Archive … without merging?”, then Archive anyway. The work stays on its branch; unarchive it to merge later;
  • it’s pinned.

Open it from the Archived tab and click Unarchive (or the row’s menu). Its worktree comes back at the same path on its branch, set up again as a new one is, and you can carry on.

Delete thread (the trash in an archived thread’s toolbar, or Delete… in the row’s menu) removes its transcript for good. Its branch goes if it was merged; unmerged work stays on its branch, and Cohort asks once more before deleting a thread with unmerged work. The Archived tab can delete every archived thread shown at once.

Terminal window
cohort thread archive <id> # --force: even when its work isn't merged or it's pinned
cohort thread unarchive <id>
cohort thread delete <id>
cohort thread delete --archived --older-than 30d
Made by Bussin Bytes© 2026 Bussin Bytes Ltdcohort.bussinbytes.io