ThoughtDAG
Lets your AI agent search your local AI conversations by file or phrase and recall the original turns.
742 stars on GitHubby Xia ChenLicense MITUpdated 22 days ago
How to install
This MCP is local: it runs on your computer.
It works in apps installed on your PC (Claude Desktop, Claude Code, Cursor, VS Codeβ¦). Choose your app:
Paste in the terminal:
claude mcp add thoughtdag -- npx -y thoughtdag mcp
Ready! Now test it
Restart the app and paste one of these requests in the chat:
Why did we change src/lib/api.ts?
Find the earlier conversation where we talked about caching.
What it is
ThoughtDAG is an open-source AI canvas where each exchange becomes a node and wires set the context. It also has a command line tool and a read-only MCP server with four tools. The agent can search past local sessions from Claude Code, Codex, DeepSeek Harness and Pi and recall the source turns.
What it can do
- Search past conversations by file
- Search past conversations by phrase
- Recall source turns from earlier sessions
- Four read-only tools in total
When to use
- βΊWhen you want to know why a file was changed in an earlier AI session.
- βΊWhen you want to find a past discussion by a phrase.
- βΊWhen you want an agent to pull earlier context into a new question.
What you need
Skills that pair well
MCP or skill?
The MCP gives the agent the hands. The skill teaches the right way to use them. Together, the result is better and uses fewer tokens.
memory-searchLets your agent search past conversations and decisions by meaning, keyword or code symbol, so earlier context can be recalled across sessions.session-logsHelps your agent search older conversation logs with a JSON tool, so it can answer what was said in earlier chats that are not in its memory notes.hindsight-recallHelps your agent search long-term memory for past decisions, project context, and preferences when you ask about earlier work.Frequently asked questions
Is it free and open source?
Yes, it is MIT licensed.
Is the MCP server read-only?
Yes. The readme describes the CLI and MCP as read-only.
Where is my data kept?
Canvases, documents and the history index stay on your machine.
Do remote model calls cost money?
Remote calls send content to the providers you configure, and those providers may charge. Local Ollama and OpenAI-compatible endpoints also work.
Which sessions can it read?
Local Claude Code, Codex, DeepSeek Harness and Pi sessions.
Is there a demo?
Yes, a browser demo opens an example canvas without an API key.
If it does not work
- βΊCheck that Node.js is installed so npx thoughtdag can run.
- βΊLocal session recall needs the desktop app or a local run, not the browser demo.
- βΊSee the CLI guide in the cli folder of the repository for setup.
5 new skills a week. 1 minute to read.