ProjectMind
Provides MCP configuration for GitHub Copilot in VS Code, enabling the agent to use ProjectMind's persistent project memory and context retrieval tools.
Configures ProjectMind's MCP server integration for Google Gemini CLI, providing the agent with persistent project memory and intelligence tools.
Sets up MCP server integration for OpenAI Codex, allowing it to leverage ProjectMind's project intelligence and persistent memory capabilities.
This server does not currently have a deployable release on Glama. Follow the repository's setup instructions to install and configure it for your MCP client, including any required credentials and local dependencies.
ProjectMind is a local-first, privacy-preserving project intelligence and persistent context engine that enables AI coding agents to understand, remember, and work with software repositories without repeatedly scanning the entire codebase.
ProjectMind is not a separate chatbot or code editor. It is an autonomous intelligence and persistent memory layer used directly by your existing coding agents: Google Antigravity, Anthropic Claude Code, Cursor, Google Gemini CLI, OpenAI Codex, GitHub Copilot in VS Code, OpenCode, Hermes Agent, and DeepSeek Harness / Hermes.
Table of Contents
Related MCP server: DIP
Quick Start
Get ProjectMind running on your system in under 60 seconds:
# 1. Install ProjectMind via the official installer
curl -fsSL https://raw.githubusercontent.com/Rootx202/ProjectMind/main/install.sh | bash
# 2. Ensure ~/.local/bin is in your PATH (if not already added)
export PATH="$HOME/.local/bin:$PATH"
# 3. Verify installation and inspect detected coding agents
projectmind plugin doctor
# 4. Install integration for your preferred agent (or install all 9 supported agents)
projectmind plugin install --allOnce installed, open any project in your coding agent (e.g. Antigravity, Claude Code, Cursor, Gemini CLI) and work normally. Smart Auto Mode automatically initializes project memory on first encounter, retrieves selective task-scoped context before coding, and synchronizes modified files after edits without requiring manual commands.
Prerequisites & System Requirements
ProjectMind operates entirely on your local machine with zero external cloud dependencies.
Requirement | Supported Versions | Notes |
Node.js |
| Required for MCP server and CLI execution. |
npm |
| Required when building or installing from source. |
Operating System | Linux (Ubuntu, Debian, Fedora, Arch, Alpine, etc.)macOS (Intel & Apple Silicon)Windows 10/11 (PowerShell 5.1+ / PowerShell 7+) | Cross-platform with POSIX and Windows-native installers. |
SQLite3 Engine | Embedded SQLite 3 with FTS5 virtual tables | Bundled automatically via |
Network | 100% Offline by default | Network access is only used during explicit update checks. |
Installation Guide
ProjectMind supports two primary installation methods on Linux & macOS, plus a dedicated Windows PowerShell installer.
Option A: One-Line Remote Installer (curl | bash)
Best for users who want to install the ProjectMind CLI and agent integrations directly without cloning or managing the monorepo source:
curl -fsSL https://raw.githubusercontent.com/Rootx202/ProjectMind/main/install.sh | bashHow it works:
Runs safely via pipe without
BASH_SOURCEunbound variable errors.Installs runtime files into
~/.projectmind(or custom$PROJECTMIND_HOME).Generates the executable wrapper in
~/.local/bin/projectmind.Executes diagnostic verification (
projectmind plugin doctor) before declaring success. If diagnostics fail, the installer exits with a non-zero code and reports the error immediately.
Customizing remote installation:
# Install integration for a specific agent directly
curl -fsSL https://raw.githubusercontent.com/Rootx202/ProjectMind/main/install.sh | bash -s -- --agent antigravity
# Install all 9 agent integrations during setup
curl -fsSL https://raw.githubusercontent.com/Rootx202/ProjectMind/main/install.sh | bash -s -- --all
# Custom installation directory
curl -fsSL https://raw.githubusercontent.com/Rootx202/ProjectMind/main/install.sh | bash -s -- --prefix /opt/projectmind --bin-dir /usr/local/binOption B: Local Repository Installation
Best for contributors, developers modifying ProjectMind, or air-gapped environments:
# 1. Clone the repository
git clone https://github.com/Rootx202/ProjectMind.git
cd ProjectMind
# 2. Run the local installer
./install.shHow it works:
Automatically detects that it is executing inside a local repository checkout.
Installs dependencies and links all internal
@projectmind/*packages via npm workspaces.Compiles TypeScript sources to JavaScript (
dist/) and verifies all 13 internal packages are resolvable.Creates a symlink wrapper
~/.local/bin/projectmindpointing directly toapps/cli/dist/index.js.Runs
projectmind plugin doctorto verify environment health.
Options for local installer:
# Install integrations for all 9 agents
./install.sh --all
# Install integration for a single agent
./install.sh --agent claude-code
# Perform dry-run without writing files
./install.sh --dry-runWindows Installation (PowerShell)
For Windows 10, Windows 11, or Windows Server:
# In PowerShell (run as regular user or Administrator):
.\install.ps1
# Or specify a target agent:
.\install.ps1 -Agent antigravity -AllThe Windows installer automatically resolves directory boundaries, adds %USERPROFILE%\.local\bin to user PATH, and configures agent MCP settings with Windows path separators. See WINDOWS.md for detailed Windows instructions.
First Command After Installation
Immediately after installation, verify your environment and check agent integration health:
# 1. Verify system environment, Node.js version, and agent detection
projectmind plugin doctorSample output:
✓ Node.js Runtime: v20.19.5 (>= 18.0.0 supported)
✓ Filesystem Storage: ~/.projectmind (read/write verified)
✓ SQLite Engine: SQLite 3.46.1 with FTS5 virtual table support
✓ Workspace Linkage: All 13 internal @projectmind/* packages resolvable
✓ Agent Integrations: 9 supported (Google Antigravity, Claude Code, Cursor, Gemini CLI, etc.)Next, view all supported coding agent integrations:
projectmind plugin listTo configure ProjectMind inside your current project repository:
cd /path/to/my-project
projectmind init(Or simply open your project in your coding agent — Smart Auto Mode initializes automatically!)
Essential CLI Commands
ProjectMind provides a unified CLI (projectmind or node apps/cli/dist/index.js):
Goal | Command | Description |
System Diagnostics |
| Runs health check on Node.js, SQLite/FTS5, permissions, and agents. |
List Integrations |
| Displays status of all 9 supported agent plugins and adapters. |
Install Integration |
| Installs MCP server, skills, and hooks for |
Install All Agents |
| Configures integrations across all 9 supported coding environments. |
Verify Integration |
| Inspects configuration files and validates schema integrity. |
Inspect Task Context |
| Displays token-budgeted context package that would be fed to the agent. |
Incremental Sync |
| Manually synchronizes modified files and updates affected modules. |
Storage Health |
| Verifies SQLite integrity, event-chain hashes, and cache status. |
Event Log |
| Inspects append-only hash-chained memory audit events. |
Check for Updates |
| Checks for ProjectMind core releases on GitHub. |
Plugin Outdated |
| Checks installed agent plugins against latest releases. |
Uninstall Integration |
| Cleanly removes agent configuration while preserving project memory. |
Troubleshooting & Diagnostics
Resolving @projectmind/shared / Missing Workspace Links
Symptom:
Error: Cannot find module '@projectmind/shared'
or: npm workspace links are missing under node_modules/@projectmindRoot Cause: This issue occurs in local repository checkouts when:
npm installwas run before workspace definitions were synced, causing npm not to link@projectmind/*packages insidenode_modules/@projectmind/.The project was executed before running
node scripts/build.js, so package entry points (dist/index.js) were not yet compiled.
Permanent Fix: Run the following two commands from the root of the repository:
# 1. Link all internal workspace packages natively
npm install
# 2. Compile TypeScript sources and verify package resolution
node scripts/build.jsscripts/build.js includes an automated workspace symlink safeguard (ensureWorkspaceLinks()) and a post-build verification step that tests require.resolve() on all 13 @projectmind/* packages. The build will exit with an error code if any internal dependency cannot be resolved.
Running Health Diagnostics
Whenever you encounter unexpected behavior, run the built-in doctor:
projectmind plugin doctorTo run diagnostics for a specific project folder:
projectmind plugin doctor --project-root /path/to/my-projectCommon Issues & Solutions
Agent does not show ProjectMind MCP tools after installation:
Solution: Certain agents (such as Anthropic Claude Code, Google Gemini CLI, and OpenAI Codex) load MCP servers at startup. Restart your agent session or run
/mcp reloadinside the agent.
Lifecycle hooks do not fire in Cursor or Google Gemini CLI:
Solution: Ensure your workspace is marked as Trusted in Cursor or Gemini CLI settings. Untrusted workspaces disable local lifecycle hooks for security reasons.
Corrupted SQLite Database:
Solution: ProjectMind checks database integrity on every startup. If a file is corrupted, ProjectMind automatically moves the corrupted file to
.projectmind/backups/corrupted-<timestamp>.db.bakand re-initializes a fresh database without losing Git history.
Moved Repository Folder:
Solution: ProjectMind uses stable cryptographic project identifiers. If you move or rename a repository folder, ProjectMind automatically detects the move, updates
projectRoot, and preserves all historical memory.
See TROUBLESHOOTING.md for more in-depth solutions.
Architecture & Visual Overview
ProjectMind's modular architecture decouples high-level AI agent interaction from local persistent storage and selective retrieval.
System Architecture
The 4-tier stack integrates coding agents via native hooks and MCP protocols into a unified core engine backed by local SQLite3 storage:
3-Layer Persistent Memory Architecture
Memory is partitioned into three strictly isolated tiers to ensure ultra-fast bootstrapping, fact verification, and prevent hallucination contamination:
Memory Layer | SQLite Tables | Contents & Lifecycle |
Layer 1: Core Memory |
| Permanent, ultra-compact project metadata: |
Layer 2: Project Knowledge |
| Structural records with full-file SHA-256 and chunk hashes, AST symbols, resolved import edges, modules, HTTP routes, DB models, ADRs, and an append-only hash-chained event log. |
Layer 3: Task Context |
| Ephemeral task-specific retrieval packages, token budget tracking, and snapshot-bound cache entries. Caches are keyed by workspace snapshot plus parser/retrieval/embedder versions and are never served after unsynchronized changes. |
Smart Auto Mode Lifecycle Workflow
Continuous autonomous synchronization runs behind the scenes during normal development sessions without manual user commands:
Universal Agent Integration Matrix
Grounded adapter support for 9 distinct AI coding agent ecosystems across hooks, MCP servers, rules, and skills:
CLI Visual Walkthrough
The following captures demonstrate real terminal executions from ProjectMind running locally:
1. Diagnostics & Environment Health Check (projectmind plugin doctor)
Validates Node.js runtime, filesystem read/write permissions, and inspects detection status across all 9 agent platforms:
2. Multi-Agent Ecosystem Status (projectmind plugin list)
Displays all 9 supported coding agent integrations, installed plugins, detected environments, and adapter capabilities:
3. Selective Context Retrieval & Token Budgeting (projectmind context)
Demonstrates intelligent task scoping, module dependency multi-hop traversal, and token budget allocation (using only 768 tokens of a 4,000 token budget for multi-module tasks):
4. Continuous Update Management (projectmind update check & plugin outdated)
Verifies Core engine updates and individual plugin versions directly against official GitHub Releases with SHA-256 integrity verification:
Agent Compatibility Matrix
All adapter implementations are grounded in official documentation for each coding environment:
Coding Agent | Native Plugin | MCP Server | Agent Skills | Lifecycle Hooks | Automatic Invocation Mechanism | Restart Required | Official Documentation |
Google Antigravity | Yes ( | Yes ( | Yes ( | Yes ( | Native Lifecycle Hooks + Autonomous Skill + MCP | No ( | |
Anthropic Claude Code | Yes ( | Yes ( | Yes ( | Yes ( | Native Lifecycle Hooks + Skill + | Yes (or | |
Cursor | No (uses | Yes ( | Yes ( | Yes ( | Native Lifecycle Hooks + | No (auto-watched in trusted workspaces) | |
Google Gemini CLI | No (uses | Yes ( | Yes ( | Yes ( | Native Lifecycle Hooks (Strict JSON stdout) + Skill + | Yes (or | |
OpenAI Codex | No (uses | Yes ( | Yes ( | Limited (Cloud/Managed hooks restricted via | MCP | Yes (restart CLI or MCP server in IDE) | |
GitHub Copilot (VS Code) | No (uses | Yes ( | Yes ( | No (No pre/post file edit shell hooks in standard local chat) |
| No ( | |
OpenCode | No (uses | Yes ( | Yes ( | Yes ( | MCP Server + Skill + | No (auto-reloads on file change) | |
Hermes Agent | Yes (Native MCP Client + Skill Dir) | Yes ( | Yes ( | Yes ( | Native MCP + | No ( | |
DeepSeek Harness | Yes ( | Yes ( | Yes ( | Yes ( | MCP Server + Profile Plugin + | Yes (restart |
Key Capabilities
Zero-Command Daily Workflow (Smart Auto Mode): Once installed, the agent automatically initializes project memory on first encounter, retrieves selective task-scoped context before coding, and incrementally synchronizes modified files after edits.
7-Stage Controlled Bootstrap: Analyzes project metadata, file inventory, entry points, architectural docs, module topology, symbols/routes/models, and SHA-256 fingerprints without blindly reading large or binary files or modifying source code.
Knowledge Reliability & Provenance: Every record tracks
verificationStatus(verified,inferred,planned,unverified,outdated), confidence score, source file references, and SHA-256 fingerprints. Inferences and planned prompt specifications are never presented as verified implementation facts.Existing & Greenfield Project Support: Supports indexing existing codebases and initializing brand-new projects from an initial prompt or specification (
mode: "prompt"), automatically transitioning records fromplannedtoverifiedas code is implemented.Strict Local-First Security & Privacy: Indexing, retrieval, and memory writes work 100% offline with zero mandatory cloud accounts or paid embedding APIs. Enforces secret exclusion (
.env,.pem,.key,.ssh, tokens), path traversal and symlink escape protection, and prompt-injection sanitization.
The 27 MCP Intelligence Tools
ProjectMind exposes 27 structured tools over standard JSON-RPC 2.0 stdio transport:
Category | Tool Name | Purpose |
Project Discovery |
| Runs 7-stage controlled bootstrap on an existing codebase or extracts |
Project Discovery |
| Returns Layer 1 Core Memory and high-level module summaries. |
Project Discovery |
| Reports initialization state, schema version, entity counts, and pending file changes. |
Project Discovery |
| Compares SHA-256 file fingerprints and Git status to detect added, modified, deleted, and renamed files. |
Context Retrieval |
| Classifies task scope ( |
Context Retrieval |
| Returns detailed module purpose, entry files, exported symbols, routes, models, dependencies, and ADRs. |
Context Retrieval |
| Executes hybrid retrieval: SQLite FTS5 BM25, AST symbol matching, code-graph neighbour expansion, and local feature-hash vector reranking (lexical, not learned embeddings). Returns per-hit explanations and path/line evidence. |
Context Retrieval |
| Discovers files related by module membership, imports, or symbol references. |
Context Retrieval |
| Returns compact file metadata, role, SHA-256 hash, exported symbols, and imports without dumping raw source code. |
Context Retrieval |
| Returns system-wide module dependency topology, API catalog, database models, and key constraints. |
Impact Analysis |
| Computes direct and transitive dependents, affected routes/models, risk level, and deep-analysis recommendations. |
Impact Analysis |
| Lists direct internal module dependencies, transitive dependencies, and external packages. |
Impact Analysis |
| Lists all modules that directly or transitively depend on a target module or file. |
Impact Analysis |
| Maps changed file paths to directly and transitively affected modules. |
Memory Management |
| Lists recent synchronization events and recent Layer 3 task context summaries. |
Memory Management |
| Upserts a Layer 2 knowledge item with explicit |
Memory Management |
| Incrementally indexes modified/added/renamed/deleted files, updates affected modules, and transitions |
Memory Management |
| Records a structured Architectural Decision Record (ADR) and invalidates affected module caches. |
Memory Management |
| Retrieves ADRs and project constraints, optionally filtered by module. |
Context Efficiency |
| Approximates token usage and calculates token savings of ProjectMind summaries vs. raw source files. |
Context Efficiency |
| Returns an ultra-compact (<800 token) project digest. |
Context Efficiency |
| Returns the index manifest (snapshot id, parser/chunker/embedder versions), module fingerprints, and entity counts. |
Context Efficiency |
| Reports SQLite integrity, append-only event-chain verification, cache stats, open conflicts, and the latest snapshot. |
Memory Integrity |
| Returns the append-only memory event log filtered by entity, namespace, or time. |
Memory Integrity |
| Appends a durable, attributed memory event with explicit namespace and visibility. |
Memory Integrity |
| Lists optimistic-concurrency conflicts produced by concurrent writers. |
Memory Integrity |
| Merges or rejects a conflict proposal with an audit note. |
What's New in v1.1.0
Resilient Multi-Mode Installer:
install.shsupports both piped execution (curl | bash) and local repository installations, with safe variable expansions, robust dependency linking, and non-zero exit codes on diagnostic failures.Strict Workspace Linkage: All internal packages declare mutual workspace dependencies, eliminating missing
@projectmind/sharederrors during offline local builds.Snapshot-bound context: Change detection runs before any retrieval cache lookup; caches are keyed by workspace tree hash plus parser/retrieval/embedder versions. Stale context is never returned.
Verified updates only: Plugin artifacts are downloaded over HTTPS with mandatory SHA-256 checksums, extracted with traversal/symlink/size limits, validated against signed manifests, and rolled back on verification failure.
Real code structure:
@babel/parserAST extraction for TypeScript/JavaScript, resolving relative, workspace, and tsconfig path aliases into symbol tables and file-level code-graph edges.Full-file integrity: Streamed SHA-256 over entire files plus bounded chunk hashes, removing any prefix blind spots.
Shared memory foundation: Append-only hash-chained
memory_events, namespaces, actor identities, optimistic concurrency with conflict proposals, and bi-temporal validity (asOfretrieval).Honest retrieval: Hybrid FTS5 + AST symbols + code graph + local feature-hash reranking with per-hit explanations and path/line evidence.
Monorepo Build & Test
For developers contributing to ProjectMind:
# 1. Install dependencies & link npm workspaces
npm install
# 2. Compile all packages, adapters, apps, and test suites
node scripts/build.js
# 3. Run the complete automated test suite (93/93 tests passing)
node scripts/test.js
# 4. Run the retrieval/freshness benchmark
node scripts/benchmark.js
# 5. Build verified release assets (core archive + 9 plugin bundles + SHA256SUMS)
node scripts/package-release.jsDocumentation Guides
Installation Guide (INSTALL.md) — Comprehensive cross-platform installation instructions, options, and offline setups.
Troubleshooting Guide (TROUBLESHOOTING.md) — Diagnostic workflows, recovery commands, backup restoration, and solutions for common issues.
Security Architecture (SECURITY.md) — Local-first guarantees, secret exclusion engine, path traversal defense, and prompt injection mitigation.
Linux Guide (LINUX.md) — Linux distributions, XDG directory compliance, file descriptor tuning, and headless/systemd configurations.
Windows Guide (WINDOWS.md) — PowerShell setup, execution policies, path handling (drive letters, spaces, Unicode, UNC), and Windows Terminal.
Marketplace Specification (MARKETPLACE.md) — Distribution model, native agent marketplace integration, packaging, and catalog metadata.
Plugin Development Guide (PLUGIN_DEVELOPMENT.md) — Authoring new plugins, Plugin SDK APIs, lifecycle events, and testing.
Release Engineering (RELEASE.md) — Release checklists, automated packaging, checksum verification, and publishing workflows.
Implementation Status (docs/IMPLEMENTATION_STATUS.md) — What is implemented and tested vs. experimental vs. planned, with known limits.
Memory Model (docs/MEMORY_MODEL.md) — Namespaces, actors, append-only events, temporal validity, conflicts, and
asOfretrieval.Repair & Verification Report (PROJECTMIND_REPAIR_REPORT.md) — Detailed audit report, fixes, and measurements.
License
ProjectMind is open-source software licensed under the MIT License.
Tool Schema Changelog
Recent tool additions, removals, and schema changes observed during successful MCP inspections.
Loading tool schema changelog…
This server cannot be deployed
Maintenance
Related MCP Connectors
Project memory, documentation and controlled secret access for AI coding agents.
Shared memory for coding agents. Stop re-explaining your codebase every session.
Shared, scoped, reviewable team memory for AI coding agents.
Shared project memory that keeps teammates and AI agents aligned across sessions.
Related MCP Servers
- AlicenseNot gradedqualityBmaintenanceEnables agents to maintain persistent project context locally, with source-backed memory and structured handoffs for seamless handover between interchangeable agents.Apache 2.0
- AlicenseNot gradedqualityBmaintenanceEnables coding agents to maintain local-first project memory, coordinate task ownership across Git worktrees, and verify completion against project-defined checks with durable evidence stored in the repository.1Apache 2.0
- FlicenseNot gradedqualityAmaintenanceEnables AI coding agents to read and write persistent, local-first memory across sessions and projects, with semantic search, global guidelines, and optional autonomous task execution.-
- FlicenseNot gradedqualityAmaintenanceEnables AI coding agents to read and write persistent project-scoped and cross-project memory during sessions, using local semantic search to surface relevant decisions, preferences, error patterns, and guidelines across sessions. It also optionally exposes an autonomous task queue that draws on that same stored context.-