Braid chat: Claude and Duet in one woven thread (v0.2) (#4) A Braid chat view weaves a Claude chat and Claude Duet into one timeline. Plain messages go to both, @claude or @duet makes a DM, and a reply that tags the other side is passed across, with a hop limit before Braid waits. Send for me presses send. Pins move to a drawer. Rules in weave.js, view and plumbing in chat.js, jsdom tests in test/. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_01FAqjv3jLGUcj852KRGypo9
Braid — browser extension (v0.2, dev build)
Every thread is a strand. Braid them.
Braid sits in Chrome's side panel next to the AI chat apps you already use. Pin the lines that matter, braid threads together into one cord (a summary, your pins word for word, and links to every strand), and spin new threads that start with that cord already in the message box. A braid can be a strand in another braid, so context stacks.
Landing page: https://braid.here (also at braid.yolopreneur.lol)
Words
- Strand: a thread or a page that's part of a braid. Include it linked (just the link) or as a summary.
- Pin: a line kept word for word, with a link back to where it came from.
- Cord: what a braid looks like from the outside: summary, pins and strands. This is what goes into new threads.
- Home thread: the thread a braid lives in. Turn any thread into a braid, and that thread is where you talk to it.
- Loose end: a strand you kept but left out of the cord.
- Braid chat: a Claude thread and Claude Duet woven into one conversation in the panel.
What v0.2 does
- Turn this tab into a braid (the thread becomes the braid's home) or start an empty one.
- Name it: click the braid's name (or the pencil beside it) and type. A braid still called New braid takes its home thread's name once that thread has one.
- Braid in this tab, or right-click any page or link and choose Braid in this page / Braid in this link.
- Pin from anywhere: select text on any site, right-click, Pin to braid; images in the selection come along. Right-click an image for Pin image to braid, a video for Pin this frame to braid, or the page for Pin a screenshot to braid. The panel's Pin selection and Pin a screenshot do the same for the tab beside it (on sites other than the chat apps, Chrome asks once whether Braid may read all sites). You can also paste into the panel: text becomes a pin, an image an image pin, a lone link a strand. Pinned images show in the panel as small copies; the cord lists them with where they came from. Pins work like pinned messages in a chat app: out of the way until you want them, behind the pin button (with a count) next to the braid's name. A pin from braid chat jumps back to its message.
- Spin a strand: opens a new thread in Claude, ChatGPT or Venice with the cord in the message box. When the new thread gets its address it joins the braid by itself and picks up its name.
- Ask the braid: puts the cord into the home thread's message box so you can ask about everything at once. Ask the thread to write it asks the home thread for a fresh summary; Use its last reply saves that reply as the summary, and waits if the thread is still writing. Strands work the same way (Ask this thread to summarize, Use its last reply). The summary box saves as you type. With Send for me on, the prompts Braid writes itself go out right away.
- Braid chat (new in v0.2): put a Claude chat and Claude Duet side by side (Chrome's split view is ideal) and
open Braid chat in the panel. It finds the two tabs by itself (the split view pair if Chrome reports one, or
the only tab of each kind), or you pick them once. Then it's a group chat:
- a plain message goes to both (
@allis the default);@claudeor@duetmakes it a DM to that side; - replies from both tabs land in one timeline, tagged by side, from the moment you open it (earlier messages stay in their tabs);
- a reply that tags the other side (Claude writes
@duet ...) is passed across word for word, marked "Claude (via Braid):", so the two can talk directly. After 3 hand-offs in a row (you can pick 1 to 5) Braid holds the next one and waits for you; writing again starts a fresh count; - Pass to Duet / Pass to Claude on any reply passes it across by hand, and Pin pins it;
- the first message to each side starts with a short note telling that side how the room works.
- a plain message goes to both (
- Braid in a braid: nest one braid inside another; its cord goes in, loops are refused.
- Copy cord (Markdown) and Export (JSON).
Send for me is off unless you turn it on. Off, Braid fills the box and you read it and press send. On, Braid presses the site's send button (or Enter) for the prompts it writes (Ask the thread to write it, Ask this thread to summarize) and for braid chat. Spin a strand and Ask the braid always wait for you, since they expect your own ask. Braid never touches a box that already has your draft in it. A copy of what it fills for the cord buttons also goes to your clipboard, in case a site's page has changed.
Everything stays in chrome.storage.local. No servers, no accounts, no keys, no analytics.
Install (dev build)
- Download https://teahub.xyz/braid/extension/releases/download/dev/braid-extension.zip and unzip it (rebuilt on every push to main).
- Open
chrome://extensions, turn on Developer mode, click Load unpacked, and pick the unzipped folder. - Pin Braid to the toolbar and click it to open the side panel.
Files
| File | What it is |
|---|---|
manifest.json |
MV3 manifest: side panel, right-click menus, content scripts on the chat apps |
core.js |
Data model, storage and the cord (shared by the panel and the worker) |
background.js |
Opens the panel, owns the right-click menus |
sidepanel.html / .css / .js |
The panel |
chat.js |
Braid chat: the woven timeline, the composer, watching both tabs |
weave.js |
Braid chat's rules: who a message goes to, what gets passed across, the hop limit |
content.js |
Fills a thread's message box, presses send when asked, reads replies and watches for new ones |
capture.js |
Copies images for a pin in the page they're on, scaled down to keep them small |
adapters.js |
Where each chat app keeps its message box and replies. When filling or reading breaks, fix the selectors here. |
icons/ |
Extension icons: the mark on the night tile, rendered from mark.svg |
mark.svg, tools/mark.py |
The mark, and the script that draws it: every strand goes over, under, over |
wordmark.svg, tools/wordmark.py |
The wordmark: "Braid" in Podkova ExtraBold, as outlines |
.gitea/workflows/pack.yml |
Zips the extension on every push to main and attaches it to the public dev release |
test/, .gitea/workflows/test.yml |
Tests on stand-in Claude and Duet pages in jsdom (cd test && npm install && npm test), run on every PR |
Tested so far
- In headless Chrome, with the extension loaded and the chat apps stood in by local pages: panel UI, right-click menus, spin with a contenteditable box (Claude-style) and a textarea (ChatGPT-style), strands joining and picking up names, reading the last reply (and leaving the summary alone while a reply is still being written), Ask the braid, image pins (a selection with an image in it, and a right-clicked image), renaming, and a braid taking its home thread's name.
- On claude.ai, signed in and read only (Nov 18, 2026): the message box (
div[contenteditable="true"].ProseMirror) and the replies ([data-testid="assistant-message"]) match, and a reply still being written carriesdata-is-streaming="true", which Use its last reply now waits out. - On Claude Duet (claude.ai/duet), signed in and read only (Nov 18, 2026), as a braid's home: the conversation is
claude.ai/duet(claude.ai/messageslands there; a side pane only adds?pane=..., which home matching ignores). The message box istextarea[data-cds="ChatComposerEditor"]outside the side pane ([data-testid="task-page"]), and replies are[data-side="agent"][data-row-bubble], read whole when one reply is several bubbles. Duet posts each message whole, so there is no streaming mark. Checked against a stand-in Duet page, in jsdom and end to end with the extension loaded in headless Chrome (the summary from a two-bubble reply, Ask the braid into the main box with a side pane open); not yet run on the live page. - Braid chat and Send for me (v0.2), in jsdom against stand-in Claude and Duet pages wired to the real panel
(
test/): picking the split view pair,@all, DMs, intro once per side, Duet replies of several bubbles read whole, waiting out a streaming Claude reply, passing tagged replies across, the hop limit, Send for me on and off, leaving drafts alone, pins from the chat. Not yet run on the live pages: the send buttons on claude.ai and in Duet are best guesses (Braid falls back to Enter), and Chrome's split view pairing needs a Chrome that reportssplitViewIdon tabs. - ChatGPT and Venice aren't checked live yet; their selectors in
adapters.jsare best guesses.
Next
- Braid chat: weave in messages you type straight into either tab, and let any chat app be a side.
- Sync braids to Teahub issues (a braid = an issue whose body is the cord; strands link to their issues).
- A hover toolbar on messages (Pin to braid, Spin a strand from here).
- Chrome Web Store listing.