Listed from the MCP registry; nobody on Odel publishes it.
Search local AI conversations by file or phrase and recall source turns. Four read-only tools.
Runs on your machine from its package; the steps are below.

Not assessed yet.
Odel charges nothing per call. The publisher may charge for its own service.
Runs locally over stdio
This server isn't hosted — your MCP client launches it from a package registry. Use one of the commands below, or drop the config into your client (e.g. Claude Desktop).
Run
npx -y weft-canvas
MCP client config
{
"mcpServers": {
"weft": {
"command": "npx",
"args": [
"-y",
"weft-canvas"
]
}
}
}Make the context a model reads visible and editable.
Every exchange with a model or an agent is a node on an infinite canvas; the wires between nodes are the context.
What a node sees is exactly what flows into it along the arrows. Cut one wire, and the next answer changes.
· 中文 · Docs · User manual
Weft is for people who run long model or agent sessions (development, research, debugging over dozens of turns) and want to decide exactly what the next turn reads. It is a local web app plus a small proxy; it is not a model, an agent runtime or a hosted service.
Fork notice. Weft is a fork of ThoughtDAG by Xia Chen (MIT). It keeps the canvas and adds a packaged
weftcommand, an agent Skill and a live canvas bridge for terminal agents. See Relationship to ThoughtDAG.
Requires Node.js 20 or newer and git.
git clone https://github.com/zyaochen/weft.git
cd weft
npm install
npm run server # model proxy: "Weft proxy (Vercel AI SDK) running on http://localhost:3001"
npm run dev # canvas: http://localhost:5173 (second terminal)
Open http://localhost:5173, click Connect a model (top right) and paste a
provider key or the URL of any OpenAI-compatible endpoint. Then type a question
on the start page and press Enter. To look around without a model, click
Load example canvas.
Without cloning. The weft-canvas package on npm carries the built canvas, the proxy and the weft command:
npm install -g weft-canvas
weft serve # serves the canvas on http://localhost:3001 and opens it
npx weft-canvas serve runs it once without a global install. Canvases are saved in the browser (IndexedDB), so open the same address each time.
As a Claude Code or Codex plugin. The plugin adds the session command (/weft:weft in Claude Code, the weft Skill in Codex), the weft-canvas Skill and the read-only MCP server, which runs from the CLI bundled in the plugin (about 0.3 MB; nothing is downloaded from npm). It does not include the canvas app; start that with weft serve or the desktop app. --sparse keeps the checkout to the plugin files instead of the whole repository.
claude plugin marketplace add zyaochen/weft --sparse .claude-plugin plugins
claude plugin install weft@weft
codex plugin marketplace add zyaochen/weft --sparse .claude-plugin --sparse plugins
codex plugin add weft@weft
The problem it targets. Forty turns into an agent session, the model is still chasing a theory that died at turn 8, because every new turn re-reads all the turns before it. Re-explaining in a fresh window loses the evidence; compaction drops information without telling you which. In Weft the next turn's input is a set of wires you can see, cut and reconnect.
| On the canvas | What the model receives |
|---|---|
| A follow-up grows a solid-wired child | The full upstream chain, nothing else |
| A branch forks from an answer or a selected passage | Sibling branches never see each other |
| A dashed reference wires in a node from elsewhere | That node's own Q/A, not its ancestry |
| A material (note, file, PDF, image, web snapshot) is wired in | It goes first, labelled with its source |
| A wire is cut | That history leaves the next request; Cmd+Z brings it back |
| Several wires flow into one node | Merged threads, model comparison, synthesis |
See Branch a conversation and Conversation nodes.
Example from the user manual walk-through (pre-send estimates, not billed tokens): cutting the wire between a branch and the first question drops the branch's next request from about 2,603 to about 1,384 tokens.
Cut (select a wire, Delete), connect and reconnect (drag a handle; cycles are refused), right-click a solid wire for Insert a step here, archive a node (it stays visible, its content leaves the context), and replay: rerun affected nodes in dependency order, each adding a new version. See Edit AI context and Versions and replay.
/weft in Claude Code ($weft in Codex) opens the current session.weft setup skill --apply installs the Skill; in the host handoff panel (bottom right) tick 允许本机 Agent 编辑此画布 ("allow local agents to edit this canvas"; this panel is not translated yet). Concurrent writers get REVISION_CONFLICT and reread instead of overwriting.weft why src/lib/api.ts lists the turns that touched a file; weft mcp offers the same lookups as a read-only MCP server.See Session Atlas, Why layer and cli/README.md.
Model access needs one of these; any one is enough.
| Option | Where | Notes |
|---|---|---|
| Provider key | Connect a model in the browser | Kept in this browser (localStorage) and the proxy's memory, never written to disk |
| OpenAI-compatible endpoint | Connect a model → Custom endpoint | Your own gateway, vLLM, LM Studio, a relay |
Keys in .env | cp .env.example .env | OPENAI_API_KEY, ANTHROPIC_API_KEY, GOOGLE_API_KEY, DEEPSEEK_API_KEY, MOONSHOT_API_KEY, OPENROUTER_API_KEY, ZHIPU_API_KEY, DASHSCOPE_API_KEY; restart the proxy after editing |
| Local model | .env: OLLAMA_MODELS=qwen3:8b,llama3.2 | OLLAMA_BASE_URL defaults to http://localhost:11434 |
Optional pieces:
/v1/systemone endpoint, or the chat model as an uncalibrated stand-in. Without one, every decision falls back to a rule. See docs/setup.md.claude (Claude Code) or codex on PATH; each runs on its own login.PORT in .env for the proxy (default 3001); VITE_API_BASE if the canvas should call a proxy elsewhere; weft serve --port N.| Symptom | Cause and fix |
|---|---|
Proxy prints No LLM API key in .env — starting empty | Expected without .env. Connect a model in the browser, or add a key to .env and restart npm run server. |
weft serve says the port is in use | Another program holds 3001. Run weft serve --port 3002. |
| Codex / Claude Code missing from the model menu | The CLI is not on PATH. The menu lists the directories it searched; install the CLI or add it to PATH, then reopen the menu. |
| The canvas loads but every request fails | The page is not reaching the proxy. Keep npm run server running, or set VITE_API_BASE to the proxy's URL. |
More in docs/reference/troubleshooting.md.
| Start here | Read |
|---|---|
| Walk through one session step by step | User manual · 中文 |
| Install and connect a model | docs/index.md · Connect a model |
| Look up a feature | Guide map · Tutorials · Reference |
| CLI, why layer, MCP | cli/README.md |
| Design and acceptance | ARCHITECTURE.md · VERIFICATION.md · DEPLOYING.md |
| How Weft differs from similar tools | COMPARISON.md |
The docs render as a VitePress site with search: npm run docs:dev, or the
copy the Pages workflow publishes at https://zyaochen.github.io/weft/docs/.
| Command | What it does |
|---|---|
npm run build | Typecheck and production web build in dist/ |
npm run lint | ESLint |
npm test | CLI unit tests (builds the CLI first) plus layout, live-log and subagent checks |
npm run cli:pack | The weft-canvas CLI tarball (canvas, Skill and CLI together), the same artifact that is published to npm |
node scripts/verify-cli-package.mjs cli/weft-canvas-<version>.tgz | Install the tarball into an empty project and drive it in Chrome |
npm run docs:dev | Documentation site |
npm run desktop | Electron shell from source |
| Path | Contents |
|---|---|
src/ | React 19 + Vite canvas: components/, zustand store/, graph and context lib/, i18n/ (English, Chinese) |
server.mjs | Express proxy on the Vercel AI SDK, with agentic web search |
cli/ · skill/ · protocol/ | weft CLI, the canvas Skill, the context-bundle protocol and host adapters |
runtime/ | Local agent runtimes (Claude Code, Codex, Pi) and the canvas bridge |
desktop/ · dsh/ | Electron shell; DeepSeek Harness plugin |
scripts/ | Build helpers, Skill installer, acceptance scripts (verify-*.mjs) |
docs/ · website/ · video/ | Docs, static website, Remotion video sources |
benchmark/ | Context-intervention benchmark: cases, gold answers, captured runs, tools |
Contributions: see CONTRIBUTING.md. Security reports: see SECURITY.md.
Weft started from ThoughtDAG (chenxiachan/thoughtdag,
MIT, © 2026 Xia Chen) and was renamed. The canvas model (nodes, wires as
context, versions, replay, Session Atlas), the why layer (why, mcp) and the
context-bundle protocol come from that project. This repository adds the
packaged CLI (weft serve, open, graph, bundle, setup skill), the canvas
Skill and its installer, the live canvas bridge that lets terminal agents edit
an open canvas, and the acceptance scripts in scripts/. Its git history starts
fresh; upstream's history is in the upstream repository. The two projects evolve
independently: upstream changes are not merged into Weft on a schedule.
MIT, see LICENSE. The upstream copyright notice is retained as the license requires.