MindGeniusAI

An AI agent that reads your PDFs and draws editable mind maps — visible tool-calling loop, built-in RAG, bring-your-own-key, multi-provider (OpenAI / Claude / DeepSeek / Kimi). Self-hostable.

280
Stars
60
Forks
TypeScript
Language
8/23/2026
Added
View on GitHubDownload ZIP

⚠️ Third-Party Software Notice

This skill is third-party open-source software developed and hosted independently on GitHub. SkillTip is an informational directory and does not control or maintain the underlying repository. Any security checks displayed are automated and limited in scope. Review the source code before installing.

Read the Terms of Service

Installation

Add to your Claude Code skills directory:

# Add to your Claude Code skills
git clone https://github.com/xianjianlf2/MindGeniusAI

Getting Started

Guides for using skills like MindGeniusAI.

Security Report

Verified

Last scanned: —

{
  "status": "PASSED",
  "issues": []
}

README.md

MindGenius AI

A self-hostable AI agent that turns your documents into editable mind maps — your files and API keys never leave your machine.

Live Demo CI License: BSL 1.1 Node

English · 简体中文

Chat with Hermas, an AI agent that plans, reads your PDFs, and draws editable mind maps live — every tool call visible as it works.

Most AI mind-map tools are cloud SaaS — your documents get uploaded to their servers and your model key lives in their backend. MindGenius runs entirely on infrastructure you control: one Docker image, bring-your-own-key, nothing stored server-side. Built for privacy-conscious knowledge workers, self-hosters, and teams with sensitive documents (legal, research, internal specs) that can't be pasted into a third-party cloud.

🔗 Try the live demo → · bring your own API key (stays in your browser). First load may take ~30s to wake. · ⭐ Star it if it's useful — it helps others find it.

MindGenius AI — Hermas plans, then draws an editable mind map live

🔒 Why MindGenius

MindGeniusTypical cloud AI mind-map tools
Runs on your own machine✅ one Docker image❌ their cloud only
Your documents stay local✅ never leave your box❌ uploaded to their servers
Model API key✅ in your browser only❌ held in their backend
Bring your own model✅ OpenAI · Claude · DeepSeek · Kimi · any compatible endpoint❌ locked to their pick
Real multi-step agent✅ visible tool calls (plan → retrieve → draw → edit)❌ one-shot prompt → static tree
Edits the existing map✅ surgical, by node id❌ regenerates the whole thing
Source-available & hackable✅ BSL 1.1, RAG in ~100 lines❌ closed SaaS

⚡️ Quick Start

pnpm install
pnpm setup     # pick a provider, paste a key → writes apps/server/.env
pnpm dev       # web on :5173, api on :3000

No key at setup? Skip it and paste one later in the app's Settings (top-right) — it stays in your browser only.

✨ Features

  • 🔒 Self-hosted & private — ships as one Docker image you run anywhere; your PDFs are chunked/embedded in memory and your key lives in the browser. Nothing is written to the server's disk, no telemetry on your content.
  • 🤖 Real agent, not a prompt wrapper — multi-step tool loop (Vercel AI SDK v5) that decides when to search docs, generate the map, and expand branches, each shown as a live tool card.
  • ✏️ Surgical edits — "rename the pricing branch" patches exact nodes by id, so your manual tweaks survive (no full re-render).
  • 🤝 Two-way canvas — edit nodes by hand (rename, add, drag, delete) and Hermas sees exactly what you changed on your next message, then builds on it like a collaborator — not just the latest snapshot.
  • 📄 Reads your PDFs — attach one or more PDFs (📎): chunk → embed → in-memory retrieval (~100 lines, no LangChain). rag_query searches across all attached docs at once.
  • ⌨️ Keyboard-first canvasTab child · Enter sibling · F2 rename · Del delete · ⌘Z undo · drag a node onto another to re-parent it.
  • Command palette (⌘K) — Cursor-style overlay to fuzzy-search your saved maps + uploaded docs; opens a map or attaches a doc.
  • 🔁 Import / export — import Markdown / OPML, export PNG · SVG · Markdown · OPML · Mermaid.
  • 🔑 Bring your own key — OpenAI / Claude / DeepSeek / Kimi, or any OpenAI-compatible endpoint. Keys never touch the server's disk.
  • 🎨 One focused workbench — chat + canvas + doc drawer; persists across refresh; bilingual (EN / 中文); dark, dependency-free UI.

🔧 Configure

pnpm setup writes apps/server/.env for you. To edit by hand, copy apps/server/.env.exampleapps/server/.env.

ProviderEmbeddings (RAG)
OpenAI · Claude✅ full RAG
DeepSeek · Kimi⚠️ no embeddings — RAG auto-degrades; set EMBEDDING_API_KEY to any OpenAI-compatible endpoint to keep it on

🚀 Docker

The whole app ships as one image (server serves the web bundle + API):

docker run -p 3000:3000 -e OPENAI_API_KEY=sk-... ghcr.io/xianjianlf2/mindgeniusai
# open http://localhost:3000

Or build locally: cp apps/server/.env.example apps/server/.env && docker compose up --build.

Omit the key to let each visitor bring their own from Settings. To run a public demo, set a server key and DEMO_DAILY_LIMIT=5 — visitors get a few free runs per day (per IP) before being nudged to add their own key; BYO-key users are never limited.

Deploy to Spaces — free on Hugging Face Spaces (Docker). Keep sdk: docker / app_port: 3000; set OPENAI_API_KEY as a secret or leave it empty.

🗂 Scripts

CommandWhat it does
pnpm setupfirst-run config wizard
pnpm devweb + server in parallel
pnpm buildtypecheck & build all packages
pnpm testrun vitest workspace
pnpm linteslint

🏗 Architecture

apps/web/      React 18 + Vite + Zustand + AntV X6 (custom design system)
apps/server/   Hono + Vercel AI SDK v5 (Hermas agent, RAG, SSE streaming)
packages/shared/  SSE / agent-event protocol shared by both ends
  • Agent loopstreamText + stopWhen: stepCountIs(8), four zod-typed tools (mindmap_generate / node_expand / rag_query / mindmap_edit).
  • Live editsmindmap_edit returns add/update/remove ops applied to the tree by node id.
  • Two-way sync — your manual canvas ops share that same op model; they're buffered (coalesced) and sent as recentEdits so the agent knows what you changed since its last turn, not just the current outline.
  • RAG — pdf-parse → overlap chunking → embedMany → cosine retrieval, in-process.
  • Multi-provider — resolved per request from request headers; keys never stored server-side.

Full design: docs/REFACTOR_PLAN.md.

Analytics (optional)

Cookieless, count-only (page views + an agent_run event) via Umami / GoatCounter / Cloudflare. Never sends chat, PDFs, or keys. See apps/web/.env.example.

License

Business Source License 1.1. Free for personal, academic, research, and non-profit use. Commercial use requires a license — contact mark-xian@foxmail.com. Each version converts to Apache-2.0 four years after release (Change Date: 2030-06-29).

Star History

Star History Chart

Frequently Asked Questions

What is MindGeniusAI?

MindGeniusAI is an open-source ai agents skill for AI coding assistants such as Claude Code, Codex CLI, and ChatGPT, built by xianjianlf2. An AI agent that reads your PDFs and draws editable mind maps — visible tool-calling loop, built-in RAG, bring-your-own-key, multi-provider (OpenAI / Claude / DeepSeek / Kimi). Self-hostable. It has 280 GitHub stars.

Is MindGeniusAI safe to use?

MindGeniusAI failed SkillsLLM's automated security scan, which flagged one or more high-severity issues. Review the Security Report section carefully before using it.

How do I install MindGeniusAI?

Clone the repository with "git clone https://github.com/xianjianlf2/MindGeniusAI" and add it to your Claude Code skills directory (see the Installation section above).

What programming language is MindGeniusAI written in?

MindGeniusAI is primarily written in TypeScript. It is open-source under xianjianlf2 on GitHub, so you can review or fork the full source.

Are there alternatives to MindGeniusAI?

Yes. SkillsLLM lists many other AI Agents skills you can browse and compare side by side. Open the AI Agents category from the badge at the top of this page, or use the Related Skills and comparison links further down to weigh MindGeniusAI against similar tools.

Comments (0)

No comments yet. Be the first to share your thoughts!

ECC

by affaan-m

10

The agent harness performance optimization system. Skills, instincts, memory, security, and research-first development for Claude Code, Codex, Opencode, Cursor and beyond.

242,21936,702JavaScript
AI Agentsai-agentsanthropicclaude-code
View details
15

An agentic skills framework & software development methodology that works.

234,96620,863Shell
AI Agentsai-agentsbrainstorming
View details

The agent harness performance optimization system. Skills, instincts, memory, security, and research-first development for Claude Code, Codex, Opencode, Cursor and beyond.

185,94028,768JavaScript
AI Agentsai-agentsanthropicclaude-code
View details

cc-switch

by farion1231

3

A cross-platform desktop All-in-One assistant for Claude Code, Codex, OpenCode, OpenClaw, Grok Build & Hermes Agent. Only official website: ccswitch.io

128,8688,826Rust
AI Agentsclaude-codeai-tools
View details

claude-code

by anthropics

Claude Code is an agentic coding tool that lives in your terminal, understands your codebase, and helps you code faster by executing routine tasks, explaining complex code, and handling git workflows - all through natural language commands.

120,03119,897Shell
AI Agents
View details

Developers Also Liked

Based on votes and bookmarks from developers who liked this skill

ECC

by affaan-m

10

The agent harness performance optimization system. Skills, instincts, memory, security, and research-first development for Claude Code, Codex, Opencode, Cursor and beyond.

242,21936,702JavaScript
AI Agentsai-agentsanthropicclaude-code
View details
15

An agentic skills framework & software development methodology that works.

234,96620,863Shell
AI Agentsai-agentsbrainstorming
View details

n8n

by n8n-io

12

Fair-code workflow automation platform with native AI capabilities. Combine visual building with custom code, self-host or cloud, 400+ integrations.

201,88160,308TypeScript
MCP Serversapisai-tools
View details

The agent harness performance optimization system. Skills, instincts, memory, security, and research-first development for Claude Code, Codex, Opencode, Cursor and beyond.

185,94028,768JavaScript
AI Agentsai-agentsanthropicclaude-code
View details

cc-switch

by farion1231

3

A cross-platform desktop All-in-One assistant for Claude Code, Codex, OpenCode, OpenClaw, Grok Build & Hermes Agent. Only official website: ccswitch.io

128,8688,826Rust
AI Agentsclaude-codeai-tools
View details