ThoughtDAG is an open-source project whose core idea is to turn LLM conversations into an editable thought graph: each exchange becomes a node, and the connections between nodes represent context. Users can explore branching questions on an infinite canvas, connect useful paths, and decide what the model sees next.
Purpose and Positioning ThoughtDAG is aimed at users who need to manage complex, branching AI conversations. It visualizes conversation history as a graph structure, allowing users to start side branches from a particular detail, explore them separately, and then connect the useful parts into subsequent questions. The connections change the model's input, not just the layout. The project explicitly states that it is not an autonomous research agent, nor a replacement for coding tools.
Main Capabilities
- Infinite canvas and node connections: each exchange becomes a node, and connections are context; a path can be disconnected without deleting its content, and reconnected later.
- Context preview: before sending, you can preview what the model will receive; connections select the conversation path, while explicit references and enabled recall can add additional material.
- Side branches and comparison: select text in a response to start a side branch, disconnect that branch and regenerate it for comparison, and the node remains on the canvas.
- Reading and clipping: open PDFs, images, or HTML beside the graph, ask questions about a passage, or clip a diagram as a standalone node; PDF clips retain page references.
- Condense and Weave: Condense creates a shorter copy while preserving the original conversation path; Weave weaves selected key points into text with citations, which can be continued or exported as Markdown.
- Session Atlas: open supported local agent sessions as graphs, choose where to branch or continue, and use the history index to find related discussions in other sessions. Supports local Claude Code, Codex, DeepSeek Harness, and Pi sessions, with source sessions kept read-only.
- Export Thought Map: export the canvas's nodes, connections, and structure counts, without the full conversation text, to share how an investigation branched, narrowed, and converged.
New in version 0.5: History and Recall A local index makes supported agent sessions and ThoughtDAG canvases searchable. Topic dossiers collect decisions and open questions and link back to their sources. An optional Jev decision layer helps identify topics and rank relevant excerpts, with answers generated by a user-selected language model. When recall is enabled, the context panel lists the dossiers and excerpts added to the request, and you can inspect sources or exclude individual items before continuing. If there is no recpolicy model, recall falls back to rules. The project mentions a small relevance selection pilot: the Jev median was 391 ms, while the GLM adapter was 24,813 ms; this is selection-stage time, not end-to-end search or answer time, nor a controlled ranking of model speed.
How to use
- CLI: npm install -g thoughtdag; run thoughtdag setup mcp to expose read-only history tools to the agent, for retrieving relevant turns rather than replaying the entire session.
- DeepSeek Harness plugin: in the desktop app (0.2.0-rc.2 or higher), open Plugins, search for dsh-thoughtdag and install it, then restart Harness. Versions released within 24 hours require specifying a version number, such as dsh-thoughtdag@<version>. The plugin requires Node 22.19+ (22.x) or 24+, and DeepSeek Harness 0.1.2-rc.1 or higher.
- Desktop app: downloadable for macOS, Windows, or Linux, connect your own model and open the example canvas.
- Run from source: configure the model in the app or via environment variables.
- Browser demo: includes example canvases that require no API key, but it is only a subset; local session discovery, Session Atlas, and the local history/memory layer require the desktop version or local hosting.
Use cases Suitable for users who need to sort out multi-branch AI conversations, track decisions and open questions, bring relevant content from past sessions into the current question, and want to share their thinking process in a graph structure.
Limitations and privacy The canvas, documents, index, and archive are stored locally; remote model calls send relevant content to the provider configured by the user, including decision and archive generation calls, and may incur provider fees; disabling Jev does not disable ordinary model calls. Retrieval may miss relevant history, and generated archives still need to be checked. The project also mentions a context intervention benchmark pilot (9 model endpoints, 1,485 scored answers, exact-match scoring), which is a context intervention experiment, not a general model leaderboard. The project uses the MIT license.