cursorrules-695a3b — independently scanned and version-tracked by SaferSkills.
SaferSkills independently audited cursorrules-695a3b (Rules) and scored it 100/100 (green). The audit ran 55 deterministic rules across Security, Supply Chain, Maintenance, Transparency, and Community; it found 0 high-severity and 0 lower-severity findings. The full rule-by-rule trace and per-finding evidence are below. Free, methodology-open.
Findings & checks · 0 flagged
Every scanned point with the score it earned and what moved between them.
First recorded scan — no prior version to compare against.
The primary manifest — the file an agent reads to learn what this artifact does.
<p align="center"> <h1 align="center">🧠 AI Mind Map</h1> <p align="center"> <strong>Local codebase intelligence, route graphs, and persistent project memory</strong> </p> <p align="center"> <a href="https://github.com/shdra06/ai-mind-map/actions/workflows/ci.yml"><img src="https://github.com/shdra06/ai-mind-map/actions/workflows/ci.yml/badge.svg" alt="CI"></a> <a href="https://github.com/shdra06/ai-mind-map/releases"><img src="https://img.shields.io/github/v/release/shdra06/ai-mind-map?label=release" alt="Release"></a> <a href="LICENSE"><img src="https://img.shields.io/github/license/shdra06/ai-mind-map" alt="License"></a> <a href="https://www.npmjs.com/package/ai-mind-map"><img src="https://img.shields.io/npm/v/ai-mind-map" alt="npm"></a> <a href="https://www.npmjs.com/package/ai-mind-map"><img src="https://img.shields.io/npm/dm/ai-mind-map" alt="npm downloads"></a> </p> <p align="center"> Stop wasting tokens re-reading your codebase. Give your AI agent a persistent memory. </p> </p>
[ai-mind-map-website.vercel.app](https://ai-mind-map-website.vercel.app) — Interactive landing page with a live D3.js knowledge graph of the real codebase (120 nodes, 300 edges), token savings calculator, tools explorer, and one-command install wizard.
This project is a submission for the TestSprite Season 3 Hackathon. The TestSprite verification loop ran against the live website across 2 rounds, finding and fixing 4 real product bugs.
| Test | Priority | Status |
|---|---|---|
| Live brain graph renders real codebase data | P0 | ✅ passed |
| Homepage hero + comparison cards | P0 | ⚠️ inconclusive (agent: PASS, D3 render overhead) |
| Tools explorer search filtering | P1 | ✅ passed |
| Token savings calculator sliders | P1 | ✅ passed |
| Install wizard agent switching | P1 | ✅ passed |
| Full site navigation | P2 | ✅ passed |
Bugs found by TestSprite:
Copy buttons with no unique identifiersCopy buttons — agent blockedSee LOOP.md for the full iteration log, root cause analysis, and fixes.
CI/CD: TestSprite runs automatically on every push via GitHub Actions.
npx ai-mind-map installAuto-detects Claude, Cursor, VS Code, Windsurf, Antigravity, Zed, Continue.dev — configures all of them instantly. No config files. No manual setup. Just run and restart your agent.
<p align="center"> <a href="#-quick-start">Quick Start</a> • <a href="#-how-it-works">How It Works</a> • <a href="#-50-mcp-tools">All 50+ Tools</a> • <a href="#-connect-to-your-ai-agent">Connect</a> • <a href="#-cli-commands">CLI</a> • <a href="#-configuration">Config</a> </p>
For exact repository comparisons without sending patches to a model, use the packaged git-diff skill. ai-mind-map diff HEAD~1 HEAD compares two commits; ai-mind-map diff --fetch compares current staged, unstaged, and non-ignored new files against the refreshed configured push destination. The command returns local patch and viewer paths. Generating and viewing the artifacts makes no LLM calls; chat and model analysis still use tokens.
AI Mind Map helps agents reuse indexed project knowledge, resolve supported symbol relationships, and inspect routes. Native search and bounded reads are often cheaper for exact names, literals, known files, and small configurations. The skill chooses between these paths rather than requiring extra index calls for every task.
Repeated local benchmarks compare actual MCP responses against ripgrep and targeted reads, including correctness checks and separate indexing/schema costs. See the benchmark report and run npm run benchmark -- --rounds 5 --files 250 to reproduce the comparison. Token counts are estimates, not billing measurements; there is no universal savings percentage.
AI Mind Map is an MCP (Model Context Protocol) server that gives your AI agent:
| Feature | What It Does | Boundary |
|---|---|---|
| 🗺️ Knowledge Graph | Parses your entire codebase into a queryable graph of functions, classes, and relationships | Depends on task and baseline |
| 📝 Change Tracker | Knows exactly what changed since the AI's last session | Source verification still matters |
| 🧠 Persistent Memory | Remembers architecture decisions, conventions, and context across sessions | Depends on task and baseline |
| 🗜️ Smart Compression | Compresses build logs, test output, stack traces intelligently | Lossy; inspect retained evidence |
| 📊 Progressive Loading | Loads only what's needed — signatures first, full code only when asked | Depends on task and baseline |
| ⚡ Real-time Sync | File watcher keeps the graph updated as you code | Size/mtime freshness is heuristic |
This project combines proven techniques from:
| Source | Technique | Their Result |
|---|---|---|
| codebase-memory-mcp | Knowledge Graph + SQLite | 99% reduction (120x fewer tokens) |
| Aider | PageRank-based Repo Map | 90%+ reduction |
| Mem0 | Persistent Memory with Decay | 3-4x cost reduction |
| context-mode | Context Sandboxing + BM25 | 98% context reduction |
| context-mem | Progressive Disclosure | 90%+ savings |
npm install -g ai-mind-map
# Auto-detect and configure all your AI agents
ai-mind-map install
# Check everything is working
ai-mind-map doctor# Run directly without installing anything
npx ai-mind-map install
# ⚠️ If you get "bindings.js" errors, use Method 1 instead (npx cache can corrupt native modules)git clone https://github.com/shdra06/ai-mind-map.git
cd ai-mind-map
npm install --legacy-peer-deps
npm run build
node dist/cli.js installinstall Doesai-mind-map doctorOutput:
🩺 AI Mind Map — Diagnostics
────────────────────────────────────────────────────────
✔ Node.js v24.x (>= 18 required)
✔ SQLite In-memory test passed
✔ TypeScript Build dist/index.js exists
✔ Agents 3 detected, 3 configurednpm install -g ai-mind-map
ai-mind-map installThis auto-detects all 7 agents and writes the config for you. Done.
After running install, each agent's config file contains:
{
"mcpServers": {
"ai-mind-map": {
"command": "ai-mind-map",
"args": []
}
}
}💡 Note: If you installed globally, the command isai-mind-map. If using npx, it writes"command": "npx", "args": ["-y", "ai-mind-map"]. Both work, but global is more reliable for native dependencies.
If you want to configure manually, add this to your agent's config:
<details> <summary><b>Claude Code</b> — <code>~/.claude/claude_desktop_config.json</code></summary>
{
"mcpServers": {
"ai-mind-map": {
"command": "npx",
"args": ["-y", "ai-mind-map"]
}
}
}</details>
<details> <summary><b>Cursor</b> — <code>~/.cursor/mcp.json</code></summary>
{
"mcpServers": {
"ai-mind-map": {
"command": "npx",
"args": ["-y", "ai-mind-map"]
}
}
}</details>
<details> <summary><b>VS Code</b> — Settings JSON (<code>Ctrl+Shift+P</code> → "Open User Settings JSON")</summary>
{
"mcp.servers": {
"ai-mind-map": {
"command": "npx",
"args": ["-y", "ai-mind-map"]
}
}
}</details>
<details> <summary><b>Antigravity (Gemini)</b> — <code>~/.gemini/config/mcp.json</code></summary>
{
"mcpServers": {
"ai-mind-map": {
"command": "npx",
"args": ["-y", "ai-mind-map"]
}
}
}</details>
<details> <summary><b>Windsurf</b> — Settings JSON</summary>
{
"mcp.servers": {
"ai-mind-map": {
"command": "npx",
"args": ["-y", "ai-mind-map"]
}
}
}</details>
<details> <summary><b>Any MCP-Compatible Agent</b></summary>
Command: npx
Args: -y ai-mind-map
Transport: stdio</details>
💡 After configuring, restart your AI agent so it picks up the new MCP server.
Once connected, your AI agent automatically gets all tools + a built-in guide telling it which tool to call first and when to use each one.
AI Agent connects → Server sends 3 things:
1. ✅ instructions → "Call mindmap_session_resume FIRST" (auto-loaded)
2. ✅ tools/list → All 50 tools with descriptions + schemas (auto-loaded)
3. ✅ prompts/list → Interactive guides (on request)| Client | Works? | How AI Learns Our Tools |
|---|---|---|
| Claude Code / Desktop | ✅ | instructions + tools/list + prompts + rules file (CLAUDE.md) |
| Cursor | ✅ | tools/list + rules file (.cursorrules) |
| VS Code Copilot | ✅ | tools/list + rules file (.github/copilot-instructions.md) |
| Windsurf | ✅ | tools/list + rules file (.windsurfrules) |
| Antigravity (Gemini) | ✅ | tools/list + rules file (.agents/AGENTS.md) |
| Zed | ✅ | tools/list + MCP config |
| Continue.dev | ✅ | tools/list + MCP config |
| Any MCP client | ✅ | tools/list (universal MCP spec) |
| Ollama / LM Studio | ⚠️ | Not MCP clients natively — use via Continue.dev or Open WebUI |
| Codex (OpenAI) | ⚠️ | Not MCP natively — requires MCP bridge |
Key:tools/listworks with every MCP client. Rules files (CLAUDE.md,.cursorrules, etc.) are deployed bynpx ai-mind-map installas a fallback for clients that don't honor theinstructionsfield.
| Tool | What It Does | Token Savings |
|---|---|---|
mindmap_session_resume ⭐⭐ | Resume from last session — returns what was worked on, what changed, project stats | 15-30K/session |
mindmap_session_start | Start tracking a new AI coding task | — |
mindmap_session_end | End session with summary for next agent | — |
mindmap_changelog ⭐ | Symbol-level diffs — added/modified/deleted functions since a time | 20-50K/session |
mindmap_hotspots | Most frequently changed files + symbols | 5-10K |
mindmap_digest ⭐ | Full project summary in <2000 tokens | 10-25K/session |
mindmap_file_digest ⭐ | Understand a file WITHOUT reading it | 3-10K/file |
mindmap_verify | Hash-based content verification — check if cached code is still valid | 3-10K/file |
| Tool | What It Does |
|---|---|
mindmap_search | Search codebase by function/class name or free text |
mindmap_get_structure | Project architecture overview in ~100 tokens |
mindmap_trace_dependencies | Trace call chains — who calls what |
mindmap_get_signature | Function signature without reading the file |
mindmap_find_references | Find everywhere a symbol is used |
mindmap_get_file_map | All symbols in a file with line ranges |
| Tool | What It Does |
|---|---|
mindmap_explain | Everything about a symbol in 1 call — signature, callers, callees, layer, blast radius, git history |
mindmap_git_changes | Git-aware symbol-level diffs — which functions changed, who's impacted |
mindmap_smart_search | Rich search — returns full context so AI never reads files |
| Tool | What It Does |
|---|---|
mindmap_semantic_search | Search by meaning — "authentication", "error handling", "data validation" |
mindmap_semantic_stats | Vocabulary size, index coverage |
mindmap_synonyms | Programming synonym lookup |
| Tool | What It Does |
|---|---|
mindmap_what_changed | Summary of recent code changes |
mindmap_session_diff | What changed since last AI session |
mindmap_impact_analysis | Blast radius of a change |
| Tool | What It Does |
|---|---|
mindmap_recall | Retrieve relevant memories |
mindmap_remember | Store a fact or convention |
mindmap_get_decisions | Past architectural decisions |
mindmap_decide | Record a new decision |
mindmap_session_summary | Previous session summaries |
| Tool | What It Does |
|---|---|
mindmap_query_graph | Cypher-like graph queries |
mindmap_dead_code | Detect unused functions |
mindmap_architecture | Full architecture overview |
mindmap_get_code_snippet | Read source by symbol name |
mindmap_search_code | Grep-like text search |
mindmap_list_projects | List indexed projects |
mindmap_health | System diagnostics |
| Tool | What It Does |
|---|---|
mindmap_trace_flow | Trace behavioral flows through layers |
mindmap_interaction_map | Full interaction map of the codebase |
mindmap_classify_file | Classify a file's architectural layer |
mindmap_layer_overview | Layer distribution overview |
| Tool | What It Does |
|---|---|
mindmap_debug_changes | Detailed change analysis |
mindmap_file_before | File content before changes |
mindmap_file_history | Full file change history |
| Tool | What It Does |
|---|---|
mindmap_teach | AI teaches new patterns — persists per-project |
mindmap_get_learned | View all rules the system has learned |
mindmap_forget | Remove a learned rule |
All commands work with npx (no install) or after global install (npm install -g ai-mind-map):
# Setup & Diagnostics
npx ai-mind-map install # Auto-configure all AI agents
npx ai-mind-map doctor # Check everything is working
npx ai-mind-map install --uninstall # Remove configs from all agents
# Index & Search
npx ai-mind-map index /path/to/project # Index a codebase
npx ai-mind-map search "authenticate" # Search the knowledge graph
npx ai-mind-map trace "processOrder" # Trace call chains
# Memory
npx ai-mind-map recall "authentication" # Recall past knowledge
npx ai-mind-map remember "We use JWT" # Store a convention
# Status
npx ai-mind-map status # Show index stats
npx ai-mind-map changes # Show recent changesCreate a .mindmap.json file in your project root to customize behavior:
{
"languages": ["typescript", "python", "javascript"],
"ignore": ["node_modules", "dist", "*.test.*", "coverage"],
"tokenBudgets": {
"graphResults": 2000,
"changeSummary": 1000,
"memoryRetrieval": 1500,
"fileContent": 3000,
"totalContext": 10000
},
"memory": {
"maxMemories": 500,
"decayRate": 0.95,
"importanceThreshold": 0.1,
"maxDecisions": 200
},
"compression": "moderate",
"watchEnabled": true
}node dist/index.js [options]
Options:
--project-root <path> Root of the project to index (default: auto-detect from git)
--db-path <path> SQLite database location (default: .mindmap/mindmap.db)
--log-level <level> debug | info | warn | error (default: info)Tree-sitter AST parsing with automatic regex fallback:
| Language | AST Parsing | Regex Fallback | Extracts |
|---|---|---|---|
| JavaScript | ✅ | ✅ | Functions, classes, imports, exports |
| TypeScript | ✅ | ✅ | + Interfaces, types, enums, decorators |
| Python | ✅ | ✅ | Functions, classes, decorators, docstrings |
| Java | ✅ | ✅ | Classes, methods, interfaces, annotations |
| Go | ✅ | ✅ | Functions, structs, interfaces, methods |
| Rust | ✅ | ✅ | Functions, structs, traits, impls, enums |
| C/C++ | ✅ | ✅ | Functions, classes, structs, macros |
| C# | ✅ | ✅ | Classes, methods, interfaces, properties |
| Ruby | ✅ | ✅ | Classes, modules, methods, blocks |
| PHP | ✅ | ✅ | Classes, functions, traits, namespaces |
| Bash | ✅ | ✅ | Functions, variables, aliases |
| CSS/HTML | ✅ | ✅ | Selectors, classes, IDs |
┌─────────────────────────────────────────────────────┐
│ AI Mind Map MCP Server │
│ │
│ ┌─────────────────┐ ┌────────────────┐ ┌────────┐ │
│ │ Knowledge Graph │ │ Change Tracker │ │ Memory │ │
│ │ ─────────────── │ │ ────────────── │ │ ────── │ │
│ │ Tree-sitter AST │ │ Chokidar Watch │ │ Mem0 │ │
│ │ SQLite + FTS5 │ │ Git Diff │ │ Style │ │
│ │ PageRank │ │ BM25 Search │ │ Decay │ │
│ └────────┬────────┘ └───────┬────────┘ └───┬────┘ │
│ │ │ │ │
│ ┌────────┴───────────────────┴────────────────┴────┐ │
│ │ Context Engine │ │
│ │ Content-Aware Compression (9 types) │ │
│ │ Progressive Disclosure (3 tiers) │ │
│ │ Token Budget Manager │ │
│ └──────────────────────┬────────────────────────────┘ │
│ │ │
│ 41 MCP Tools │
└─────────────────────────┼───────────────────────────────┘
│ stdio
┌─────────┴──────────┐
│ Your AI Agent │
│ Claude / Cursor / │
│ Copilot / Windsurf │
└────────────────────┘AI Mind Map uses a three-tier memory architecture (inspired by cognitive science):
| Layer | What | Token Cost | Lifespan |
|---|---|---|---|
| Working Memory | Current task context | Full price | This conversation |
| Episodic Memory | Session summaries, recent decisions | On-demand retrieval | Days to weeks |
| Semantic Memory | Codebase graph, architecture, conventions | Queried, never dumped | Permanent (with decay) |
Memories have importance scores that:
This means frequently-useful memories stick around, while stale ones naturally fade.
Run npm run benchmark -- --rounds 5 --files 250 for a repeatable local comparison. The report records correct answers, UTF-8 bytes, estimated tokens, latency, and cold indexing cost. Native tools can win. Full-file-read illustrations are not evidence of savings against an agent that already searches narrowly.
Contributions are welcome! Here's how:
git checkout -b feature/amazing-featurenpm run buildgit commit -m "Add amazing feature"git push origin feature/amazing-feature# Watch mode (auto-recompile on changes)
npm run dev
# Type check without building
npx tsc --noEmit
# Run the server locally
node dist/index.js --project-root . --log-level debugMIT — use it however you want. See LICENSE.
Built on the shoulders of giants:
<p align="center"> <strong>⭐ Star this repo if it saves you tokens!</strong> </p>
~30 seconds. Free. No account. Every finding cites a rule and a line of evidence.