A graph-based conversation tool for LLMs. Think mind-map meets chat interface — branch conversations, explore ideas in parallel, and keep your research organized as a DAG rather than linear chat threads.
Linear chat interfaces force sequential thinking. When doing R&D or exploring complex topics, you often want to:
- Branch a conversation to explore "what if" scenarios
- Return to earlier points and try different directions
- Compare responses across branches
- Keep context visible across related threads
ThoughtTree treats conversations as a directed acyclic graph (DAG) where each node is a conversation state you can branch from.
ThoughtTree supports macOS. Codex is the default provider. Claude Code is also available.
For Codex, install Node.js and the ACP adapter:
npm install -g @agentclientprotocol/codex-acp@latest
codex-acp loginThe adapter includes a compatible Codex CLI. It uses your Codex authentication. The model menus read the models available to your account from the adapter. See the Codex model documentation for model availability.
For Claude Code, follow the installation guide, then run claude to authenticate.
Gemini is no longer an available provider. Saved Gemini messages remain readable.
For macOS on Apple silicon, download ThoughtTree_<version>_aarch64.dmg from GitHub Releases.
- Open the
.dmgfile. - Drag ThoughtTree onto the Applications link.
- Open ThoughtTree. The app has an ad-hoc signature and is not notarized, so macOS blocks the first launch. Open System Settings > Privacy & Security and select Open Anyway.
From v0.7.0, the release contains the native GPUI app. It replaces the Tauri app on macOS and keeps your settings and recent Projects. v0.6.0 is the final release for Linux and Windows. It gets no further fixes.
ThoughtTree is a native GPUI app. It uses Rust for its interface and does not require a webview. Desktop interaction checks currently cover macOS. Linux and Windows desktop behavior remains unverified.
Install Rust stable and the Xcode command line tools on macOS. Install Bun to build the bundled Claude adapter and to run the Project format checks. Clone the repository:
git clone https://github.com/davidchris/thoughttree.git
cd thoughttreeRun the desktop app:
cargo run --locked -p thoughttree-gpuiKeep --locked for builds. GPUI's archive dependency requires libc 0.2.189 on Linux; Cargo.lock records this compatible version.
To open a Project at launch, pass its path inside your configured Vault:
cargo run --locked -p thoughttree-gpui -- "/path/to/vault/research.thoughttree"Build a local macOS application bundle:
bun install --frozen-lockfile
bun run build:sidecar
./scripts/build-gpui.shThe bundle is target/release/bundle/ThoughtTree.app.
The script includes the Claude adapter when it exists.
It applies a local signature. It does not notarize or publish the app.
Package the release bundle as the release DMG:
./scripts/build-dmg.shThe DMG is target/release/bundle/ThoughtTree_<version>_aarch64.dmg.
It contains ThoughtTree.app and a link to /Applications.
- On a branch, run
./scripts/release.sh <version>to update the version files. - Merge the change through a pull request.
- Tag the squash commit
v<version>and push the tag.
The Release workflow then builds the DMG on macOS arm64.
It stops before publishing when the tag does not match the bundle version.
Otherwise it publishes the GitHub Release ThoughtTree v<version> with the DMG attached.
A pull request that changes the workflow or the build scripts builds the same DMG as a workflow artifact and publishes nothing.
A manual run of the workflow does the same.
Run every check that CI requires:
just verifyThe checks need Bun: a test opens a Project that the app saved with the TypeScript Project reader of v0.6.0. Run the portable model and desktop service tests:
cargo test --locked -p thoughttree-gpui-model -p thoughttree-desktopOn macOS, run the native view and interaction tests:
cargo test --locked -p thoughttree-gpuiThe desktop service tests use an offline ACP fixture. They do not use your provider account. The fixture guide explains how to run the app with isolated settings and synthetic data. The parity checklist tracks behavior and screenshot evidence.
On first launch, ThoughtTree will prompt you to select a notes directory — this is where your .thoughttree files are saved and where your selected agent can read files (via @/path mentions).
A file node puts a file from your notes directory on the canvas, so one file can anchor several independent branches of conversation.
Add a file. Drag a file from your notes directory onto the canvas, or right-click the canvas and choose "Add file…". Only files inside the notes directory can be linked; the picker and the drop target refuse anything outside it. One file per node — add several nodes for several files.
Preview. The card shows a type badge (PNG, MD, RS, … or FILE), the file name and size, and a preview: a thumbnail for PNG, JPG, GIF, and WebP; the first 16 KB for text-like files (Markdown, code, JSON, YAML, CSV, …). Other types show only the badge, name, and size. Double-click the card to open the file in the side panel.
Use it as context. Connect the file node to a user node. Every node downstream receives the file. File nodes have no incoming edges — they are a source, not a reply.
How the file reaches the agent.
- Images are read from disk when you send and delivered inline. Limits: 5 MB per image, 8000 px on the longest side, 20 images per prompt. A larger image shows "too large for the agent" and blocks sending on that branch.
- Every other file is delivered as a pointer (path, type, size). The agent reads the file with its own tools, through the usual permission prompts. There is no size limit.
Always fresh. The node stores only the path, never the file content, so the agent always gets the file as it is on disk at send time. When the file changes, the card shows "changed on disk"; click Refresh to adopt the current version and update the preview. A deleted or moved file shows "file missing" and blocks sending until you restore the file or delete the node.
Project files are saved in format v5 once this version runs; older ThoughtTree builds cannot open v5 files.
GPUI + gpui-component
│ │
Desktop service Graph model
│ (pure Rust)
thoughttree-core
ACP sessions and permissions
Vault files and guarded saves
Recovery and provider discovery
│
codex-acp or bundled claude-code-acp
ThoughtTree uses the Agent Client Protocol (ACP) to communicate with Codex and Claude Code. Automatic node headings use the default provider: Codex Luna or Claude Haiku.
thoughttree-gpui-model owns native Graph edits, undo history, layout, search, import, and Project format migrations.
thoughttree-desktop connects the native interface to the shared core through asynchronous events.
Neither crate depends on GPUI.
thoughttree-gpui owns the canvas, native controls, dialogs, and rich text rendering.
Settings live in config.json in the app data directory, ~/Library/Application Support/com.david.thoughttree on macOS.
THOUGHTTREE_CONFIG_DIR selects a separate directory for config.json.
THOUGHTTREE_LOCAL_STATE_DIR selects separate recovery and lock storage.
These overrides support isolated tests and development sessions.
ThoughtTree does not collect telemetry or analytics. Project files remain in your notes directory. Your selected provider receives prompts and attached file content for processing. Provider CLI configuration also applies to ThoughtTree sessions.
The integration was checked with @agentclientprotocol/codex-acp 1.11.0 on 2026-09-14.
The shared core uses the 2.x Rust ACP SDK.
The app adds known runtime directories to the adapter PATH for macOS desktop launches.
Current adapters receive model and reasoning effort through CODEX_CONFIG.
Legacy adapters receive equivalent -c flags.
The app uses live model discovery, with a static catalog for adapters that return no models.
To check discovery, streaming, and node headings with your existing Codex login, run:
cargo run -p thoughttree-core --example acp_smoke -- codexThis check sends two small prompts from a temporary directory.