Skip to content
tangle-networkPublic

About

A universal terminal interface for portable agent profiles.

Resources

Stars

0 stars

Watchers

0 watching

Forks

Latest commit

 

History

765 Commits

Folders and files

Repository files navigation

Braid

Run Claude Code, Codex or OpenCode from one terminal, and check what any finished run proved.
Switch agents mid-conversation, or branch the conversation to try another approach.

Braid in a terminal on a small JavaScript project. Claude Code reads the code and the tests, edits src/slugify.js and runs npm test: all six tests pass. /ask then reviews the run and lists three findings, each quoting the test run, the test file or the source, and the finding about inputs that are still untested is sent into the conversation. Waits are cut; the clock in the title bar shows real elapsed time.

Install Braid

npm install --global @tangle-network/braid

Braid works with the coding agents you have already installed and signed in to: Claude Code, Codex, Pi and OpenCode. CLI Bridge connects them to Braid. Start it in a second terminal and leave it running. It needs pnpm.

git clone https://github.com/drewstone/cli-bridge.git && cd cli-bridge
pnpm install
# List only the agents you are signed in to: claude, codex, pi, opencode
BRIDGE_BACKENDS=claude,codex pnpm start

Then open Braid in your project:

cd your-project
braid

Pick an agent and model, choose Local CLI Bridge, apply it, and type a task. /help searches every command.

Braid runs on macOS and Linux. It needs the Node.js version listed under engines in its package.json. Braid is free, and local runs use your own agent subscriptions. To work in a cloud sandbox instead, create a Tangle account and follow the cloud setup. Cloud runs bill to that account.

Check what a run proved

/ask What did this run prove, and what is still untested?

A separate review reads the finished run and lists its findings. Each finding quotes the part of the run it rests on, such as the edit or the test run. Nothing reaches your conversation until you press p and pick a finding to send. A review makes its own model calls through your current connection, and Braid downloads a Python analysis environment the first time. Set up reviews before your first one; a cloud sandbox connection cannot run them.

Switch agents mid-conversation

/runner opencode
/model zai-coding-plan/glm-5.4

/runner picks the agent for the next turn and /model picks its model. When OpenCode takes over a conversation that Claude Code started, Braid opens a new OpenCode session with the conversation copied in, and the transcript says "Continued on OpenCode with this conversation". Messages and tool calls carry over as text; the previous agent's private reasoning does not. If part of the conversation cannot be carried over, or the agent you pick cannot take over a conversation at all, Braid refuses the turn and says why.

After the review, /runner opencode and /model zai-coding-plan/glm-5.4 switch the next turn to OpenCode. The sent finding appears above the request to fix the gap with a test. Braid notes that OpenCode continued with this conversation; OpenCode makes non-string input throw a TypeError, keeps non-Latin letters, adds three tests and reports all nine passing. Waits are cut; the clock shows real elapsed time.

Branch to try another approach

/fork
/graph

/fork starts a branch from the conversation so far. Its preview shows what the branch keeps, including whether it shares your project files, before you confirm. Add --runner opencode to give the branch to another agent. /graph maps the conversation's branches and hand-offs.

/fork previews a new branch that keeps the conversation and shares the project files. After confirming, the status line shows branch 2, and /graph shows the main branch and the new one.

Docs

MIT license · Third-party notices

About

A universal terminal interface for portable agent profiles.

Resources

Stars

0 stars

Watchers

0 watching

Forks

Releases

Packages

Used by

Contributors

Languages