ThoughtDAG: An Editable Context Graph for LLM Conversations
ThoughtDAG is a desktop app that replaces the linear chat log with an editable context graph. Instead of hiding which parts of a conversation feed the next request, ThoughtDAG shows the structure — and lets you change it. The core idea: the graph is the context.
Wires as context
In ThoughtDAG, nodes are sources and messages; edges (wires) determine what gets included in the next LLM request. You can clip a passage from a PDF, ask a question directly from a source node, or spawn an unrelated branch for a detour — all while keeping the main path clean.
- Branch: explore an alternative interpretation without overwriting your current path.
- Prune: keep a useful detour on the canvas but exclude it from the next request.
- Merge: bring selected evidence and reasoning paths back together in one answer.
- Inspect: preview exactly what the model will receive before generation — including order and token count.
One rule governs everything: Wires are context. No hidden memory selector. Deleting an edge actually removes that branch from the prompt — it's not just a visual aid.
Visible diffs and reproducible answers
The interface shows a token diff when you change edges. For example, removing an unrelated detour about dinner saves 47 tokens. And because the prompt is deterministic from the graph, the same prompt regenerates the same clean answer — reproducible context.
Pilot results
ThoughtDAG includes a Context Repair Pilot with 4 models and 540 runs. It tested three ways to remove an outdated branch from a merged answer:
- Delete source only: 68/72 fixed
- Recompute downstream: 71/72 fixed
- Remove whole subgraph: 72/72 fixed
The pilot demonstrates that context repair works best when you prune the entire offending subgraph — exactly what ThoughtDAG's graph editing enables.
Desktop app
The app is available as a desktop build (v0.3.19):
- macOS (Apple Silicon): .dmg ≈126MB, signed and notarized
- Windows x64: installer ≈106MB (unsigned; SmartScreen shows a warning)
- Linux x64: .AppImage ≈133MB
All versions and history are on GitHub Releases. The macOS build runs with no terminal; the Windows build requires clicking "More info" then "Run anyway" on SmartScreen.
Who it's for
This is for developers and researchers who use LLMs for long, complex reasoning tasks and need to control exactly what context goes into each prompt — without the pollution of unrelated chat detours.
📖 Read the full source: HN AI Agents
👀 See Also

Claude Code CLI Toolkit: Four Tools for Code Review, Project Briefs, Auto-Journaling Git Hooks
A developer has released four CLI tools built around Claude Code's print mode that handle code reviews, project brief generation, auto-journaling git hooks, and Claude session status. The tools use existing Claude Code authentication and are available as open source.

Brain-MCP Developer Documents Tools for Claude AI Instead of Humans
A developer maintaining the Brain-MCP server added a 'For AI Assistants' section to documentation with behavioral instructions, resulting in Claude using tools more intelligently and proactively injecting context when topics change.

Efficient Workflow Using Claude Code: Planning Before Execution
Boris Tane leverages Claude Code with a structured planning-first approach, focusing on detailed research and planning to maintain control over architecture decisions.

Nyx: Autonomous Testing Harness for AI Agents
Nyx is a blackbox testing harness that probes AI agents for failure modes like logic bugs, reasoning failures, and security vulnerabilities through multi-turn adaptive conversations. It tests in under 10 minutes what manual audits take hours to surface.