dough thread view --open # http://127.0.0.1:4747
dough thread view --port 5000A local web page over the project store. It updates live whenever any process writes to the store: the CLI, either plugin, or a background launch.
The page has three columns: the explorer, the canvas, and the thread panel.
Explorer
The left column lists every project in the store. Only one project is open at a time, and opening another switches the canvas to it. The open project shows its thread tree, with each thread’s intent, harness, and whether it was never launched (○), is running (▶), failed (✗) or has an unknown outcome (⚠). Hovering a row highlights its card. Filter narrows the rows and dims the cards that don’t match.
Canvas
The open project’s threads are drawn as cards on a canvas you can pan and zoom:
- Continuations run straight down from their parent, as the main line.
- Branches (dashed edges) and handoffs (dotted edges) go off to the side.
- Context-limit cuts are marked ⚠, and a lime square marks a card that was cut.
- Cards show the thread’s harness and status: the session it ran in, not launched, ▶ running (with when it started), failed, or outcome unknown.
- Each root grows a small voxel tree, drawn in the shape of its thread tree.
To move around:
- Drag the background, or scroll, to pan.
- Use ctrl/⌘ + scroll, or pinch, to zoom.
+,-and0(fit) work too. - Drag a card to move it; its edges follow. Positions are saved per project in your browser, and Tidy puts everything back.
Thread panel
Click a card to open its panel. × or Esc closes it.
- Transcript: the thread’s events, numbered. For a child, it starts with the seed it received. Cut points are marked where children were made. Every message has ⑂ Start from here.
- Origin & seed: shown when you click an edge or a child. It has:
- the cutoff in the parent
- the intent and trigger
- the task
- each carried excerpt, linked back to its source event
- the exact first prompt
- Runs: the launch history, with buttons to launch the thread in Claude Code, Codex or Pi.
Views are deep-linkable: #<thread>, #<thread>~origin, #<thread>~runs or #<thread>~cut~<n>. Launches from the page run in the directory you started dough thread view from, with any THREADS_<HARNESS>_ARGS.
Starting a thread
Start from here, or the cut form, takes:
- intent
- task
- title (optional)
- the events to carry, with quick picks like
last:6,userandall - a context-limit checkbox
Preview shows the exact seed. Then choose Create, or Create & launch. Approval sends the previewed child id along with the request, so you always commit what you previewed.
Security
The server binds to 127.0.0.1 only. Because it can launch agents, it rejects:
- requests whose
Hostisn’t its own address (DNS rebinding) - POSTs from another
Origin(cross-site requests) - non-JSON POST bodies
The app
The page is a React app in packages/threads-viewer. It’s built to one self-contained HTML file, which the CLI inlines and serves. To work on it with hot reload:
dough thread view # the API, on port 4747
pnpm --filter @techsavvyash/threads-viewer dev # the app; /api is proxied to 4747Set THREADS_VIEW_URL to proxy to a viewer on another port.
API
The page is built on a renderer-neutral read API, which you can also use directly. See library > Read API.
| Route | Returns |
|---|---|
GET /api/forest | Projects, roots, and a summary of every thread |
GET /api/threads/:id?offset&limit | A page of events, runs, and the seed with its rendered prompt |
GET /api/changes | Server-sent events: data: change on every store write |
POST /api/cut | Preview ({preview, summary, childId, at}), or commit with approve and expect |
POST /api/launch | {thread, harness}. Returns 202 and runs the launch in the background |