chenxiachan/thoughtdag

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

What it solves

ThoughtDAG addresses the problem of linear chat histories and automatic RAG systems where irrelevant or incorrect information (noise) persists in the model's context, leading to hallucinations and wasted tokens. It allows users to visually manage and prune the context that a language model sees for any given turn, ensuring only relevant information is passed forward.

How it works

The project implements a Directed Acyclic Graph (DAG) where nodes represent messages, materials, or conclusions, and wires (edges) explicitly define the context. A model's input for a specific node is determined solely by the paths that wire into it. Users can delete edges to remove noise or merge multiple paths of thought into a single conclusion.

Who it’s for

Researchers, developers, and power users who need to maintain high precision in LLM interactions, manage complex investigations across multiple agent sessions (e.g., Claude Code, Codex, DeepSeek Harness), and visually map out their thinking process.

Highlights

  • Editable Context Canvas: Visually prune or merge conversational branches to change model output.
  • Session Atlas: Integrates and indexes conversations from various local agents into a single editable graph.
  • Clipped Material Integration: Read PDFs or files and ask questions directly from selected passages, with provenance tracking.
  • Context Search CLI: A command-line tool to find specific code mentions or phrases across all local agent sessions.
  • DeepSeek Harness Plugin: Integrates directly into the DeepSeek Harness web UI as a visual context switch.
  • Local-first Privacy: Can run fully offline via Ollama, keeping keys and documents on the user's machine.

Related

  • Dispatch
  • Project
  • Project
  • Project
  • Project