Skip to content
Skillpedia
βœ“ Official Β· Xia Chen● Free and open sourceπŸ’» LocalπŸ”“ No API keyAI, memory and agents

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

Node.js (the CLI runs with npx thoughtdag). Local sessions and recall need the desktop app or a local run.

Skills that pair well

⭐ Skillpedia MCP Β· freeYour agent finds the right skill on its ownInstall our MCP and your agent searches 15,000+ skills whenever it needs one.Install for free β†’

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.