Skip to content

Latest commit

 

History

485 Commits

Folders and files

NameName
Last commit message
Last commit date
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

ThoughtDAG logo

ThoughtDAG

Your thinking deserves a map. An infinite canvas where LLM conversations grow into an editable thought graph.

License Status

中文 · Quick start · How it differs · Research · Models & privacy

Hero demo, recorded from the live app: selecting a passage in the PDF reader and asking about it; deleting a noise edge and regenerating a clean answer; zooming out through three semantic tiers to the map; opening the backup control center and exporting a real file

YouTube thumbnail for the ThoughtDAG narrated tour

▶ The 33-second narrated tour

The one rule

Wires are the context. What the model sees is exactly what wires into the node. Editing the graph edits the model's memory.

Many tools put conversations on a canvas. In ThoughtDAG, a wire is not decoration or an execution route. It determines what the model sees next.

In action

One principle behind every gesture: the human in the loop, the model on the wires. No autonomous agent redraws your graph.

Illustration: the research chain wired to a summary node, with the edge to a dinner node cut into a red dashed line

✂️ Delete one edge, get a different answer

The model sees only what wires in. Delete the noise edge, ask again, and the same prompt returns a clean answer. Reproduce it in chapter ③ of the example canvas.

📖 Read a paper into a map

Select a passage, ask right there. The answer lands on the canvas with its page number, and the p.N chip jumps back to the page. Finish the paper, and the map is drawn.

Illustration: a passage selected on the original page, a purple ask bubble beside it, the paragraph tagged p.3
Illustration: three takeaway plaques with ruled-out, decided and pivoted badges, linked by dashed lines

💎 Condense, zoom out, and export the shape

Merge nodes into a higher conclusion; weave highlights into cited prose. Zoom through full cards, takeaway plaques and an icon skeleton. Then export the current structure as a light or dark Thought Map.

How ThoughtDAG differs

Many products use nodes and edges, but the graph does a different job in each category.

Product category How it differs from ThoughtDAG
Linear chat Context follows one chronological thread; ThoughtDAG selects and merges visible paths.
Mind maps and whiteboards Edges organize ideas for people; ThoughtDAG edges also change model input.
Branching chat canvases They usually follow one inherited branch; ThoughtDAG can merge or prune several paths.
Workflow and agent canvases Edges run tasks and data; ThoughtDAG edges control conversational context.
RAG and automatic memory The system retrieves context automatically; ThoughtDAG makes the selection visible and editable.

ThoughtDAG is a user-authored context graph: incoming paths and explicit references form the next request, while excluded work stays visible on the canvas.

🗺️ Export the shape of your thinking

The export keeps the nodes, wires and high-level structural counts. Different questions and different ways of exploring them leave visibly different maps.

Four Thought Map exports showing a deep single thread, five explored branches, a three-week investigation and a literature review season

Quick start

Desktop app

On macOS, install with Homebrew:

brew install --cask thoughtdag

Or use the download page, which detects your platform and gives you the right installer; Releases keeps every build. macOS builds are signed and notarized. Windows builds are not signed yet and may show a SmartScreen warning.

Run from source

npm install
npm run server    # LLM proxy :3001
npm run dev       # → localhost:5173
# No .env? Connect any OpenAI-compatible endpoint inside the app

Environment variables, local models and connection details → docs/setup.md

Browser demo

Want a ten-second look before installing anything? The hosted demo runs in the browser, and the example canvas needs no key. It is a feature subset: keyless web search, some direct-connection tools and the subscription bridge are desktop/local-only.

🧪 Research: Why editable context matters

Context Intervention Benchmark · Pilot v2

9 models · 1,485 test runs · $0 in free tiers · answers scored by exact match

Context does not only fade as conversations grow longer. A wrong statement flows into the replies that come after it and undermines the truthfulness of every later conclusion. Our benchmark verified this across nine language models and found the effect to be widespread: deleting the message that introduced the error is often not enough, because the follow-up replies still carry it. Restoring correct answers required cleaning up the affected passage as a whole, or letting the model rewrite it. In one model whose step-by-step thinking we could switch on and off, the minimal cleanup only worked while thinking was on. Managing context, not just accumulating it, decides what a model gets right.

The full report explains the method, the numbers and their statistics, and what this does and does not establish. It does not rank models and does not explain their inner workings; it tests one observable claim: changing what a model sees changes what it answers next.

📖 Read the first case study · 📊 Methodology and results · 🗳️ Suggest the next model · 🧪 Contribute a run or case

More capabilities

Capability What it does
📤 Read-only share One link carries the whole graph: no account, no server storage
🧭 Staleness & replay Upstream edits mark the answers they invalidate; replay in dependency order, token estimate first
✂️ Clipping Select a passage or drag a rectangle in the reader; it becomes canvas material with page provenance
🔌 Any model Per-node pins that follow the line; text-only models read images through their companion text
🔒 Local-first Automatic folder backup writes real files; point it at a synced folder for cross-device

Full feature list (60+, grouped by area) → docs/features.md

Works beside your coding agent

Automatic folder backup keeps the canvas as a live .thoughtdag.json file in your project; Markdown export turns any context chain or selection into a plain .md. Coding agents can read either without a plugin, API or server.

Models, cost & privacy

Connect a local Ollama or any OpenAI-compatible endpoint. Built-in presets, subscription connections and environment variables are documented in setup.

  • The free model tier covers every feature; a local Ollama runs fully offline
  • In the desktop app everything lives on your machine: canvases, keys, documents; on the web demo, model traffic runs browser-direct and keys never touch the server
  • PDFs never leave your machine; only extracted text travels when you ask
  • The backup format stays backward compatible; Markdown export is the permanent escape hatch

Supporters

With gratitude to @andreilaiter, ThoughtDAG's first supporter, and to everyone helping this independent open-source project grow.

Support ThoughtDAG


The graph is acyclic. You are the loop.

MIT © 2026 Xia Chen · Roadmap · Feedback · Cite

About

Your thinking deserves a map: an infinite canvas where LLM conversations grow into an editable thought graph. Wires are the context.

Topics

Resources

Contributing

Stars

276 stars

Watchers

4 watching

Forks

Releases

Sponsor this project

Packages

Contributors

Languages