Thread Orchestration lets you start, continue, branch and hand off coding-agent conversations without rewriting the conversation you came from.

Pick a point in a conversation, say what the new thread should do, and choose which earlier messages it should see. You get a preview of the exact first prompt the new thread will receive. Once you approve it, the new thread is saved, and it can be launched in Pi, Claude Code or Codex. Every project’s conversations form a forest you can browse in the terminal or in a local web visualiser.

The library is harness-agnostic and renderer-neutral. It supports Claude Code, Codex and Pi, through adapters plus a plugin, hooks or an extension for each.

Why

Agent conversations are linear and they run out of context. The usual answers have problems:

  • Compaction rewrites history in place and hides what was dropped.
  • Copying a transcript into a new session carries everything, including what the new task doesn’t need.

A thread cut is explicit instead:

  • Explicit parent: the new thread records the exact message it was cut from. The parent thread is never changed.
  • Explicit context: the new thread gets the task plus the messages you selected, copied verbatim.
  • Fixed after approval: the seed you approved is stored, and it isn’t regenerated or truncated later.

What’s in the box

PackageWhat it is
@techsavvyash/threadsThe library, built on Effect: store, adapters and operations
@techsavvyash/dough-cliThe dough CLI (dough thread) and the visualiser
@techsavvyash/threads-piPi extension: live capture, context warning, /thread, agent tools
@techsavvyash/threads-claudeClaude Code plugin: hooks, MCP tools, /threads:thread

Start here