Skip to content

About

An intelligent project memory system for AI coding agents.

Topics

Resources

Contributing

Security policy

Stars

2 stars

Watchers

0 watching

Forks

Latest commit

Β 

History

15 Commits

Folders and files

NameName
Last commit message
Last commit date
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 

Repository files navigation

ProjectMind Logo

ProjectMind

Universal Local-First AI Project Intelligence & Persistent Context Engine
Gives your coding agent a persistent memory, offline code intelligence, and a local dashboard β€” with zero cloud accounts required.

npm version MIT License Issues Node.js >= 18 100% Offline


What is ProjectMind?

ProjectMind is not a coding agent or chatbot. It is a local intelligence and persistent memory layer that plugs directly into your existing coding agents:

  • πŸ€– Google Antigravity
  • πŸ€– Anthropic Claude Code
  • πŸ€– Google Gemini CLI
  • πŸ€– OpenAI Codex
  • πŸ€– Cursor
  • πŸ€– GitHub Copilot (VS Code)
  • πŸ€– Hermes Agent
  • πŸ€– DeepSeek Harness
  • πŸ€– OpenCode

Once installed, your agent automatically remembers your project, retrieves the right context before every task, and syncs changes β€” all offline, all local.


System Architecture

ProjectMind System Architecture


3-Layer Memory Model

3-Layer Memory Architecture

Layer Name What it stores
1 Core Memory Project identity, tech stack, key constraints β€” permanent
2 Project Knowledge SQLite + FTS5 searchable knowledge, code graph, symbols, routes, models, ADRs
3 Task Context Temporary, token-budgeted retrieval state per task

Smart Auto Workflow

Smart Auto Workflow

Once installed into your agent, ProjectMind runs fully automatically:

  1. On first use β†’ initializes project memory (7-stage bootstrap)
  2. Before each task β†’ retrieves scoped context
  3. After each edit β†’ syncs changed files incrementally

Installation

Requires Node.js β‰₯ 18


πŸ€– Let Your Agent Do It (Recommended)

Just paste this prompt into your AI coding agent β€” it will detect itself, install ProjectMind globally, and verify everything automatically:

Set up ProjectMind so it works automatically in ALL my projects.

Steps:
1. Run: npm install -g @rootx202/projectmind
2. Detect which coding agent you are (antigravity / claude-code / gemini-cli / cursor / codex / github-copilot / hermes-agent / deepseek-harness / opencode)
3. Run: projectmind plugin install <your-agent-name> --scope global --yes
4. Run: projectmind doctor
5. Tell me which config files were updated and confirm everything is working.

Global scope configures ProjectMind at the user level β€” it activates automatically in every project you open, with zero per-project setup.


Manual Install (Global β€” works in all projects)

Step 1: Install globally

npm install -g @rootx202/projectmind

Step 2: Install your agent integration globally

# Pick your agent:
projectmind plugin install claude-code      --scope global --yes
projectmind plugin install antigravity      --scope global --yes
projectmind plugin install gemini-cli       --scope global --yes
projectmind plugin install cursor           --scope global --yes
projectmind plugin install codex            --scope global --yes
projectmind plugin install github-copilot  --scope global --yes
projectmind plugin install hermes-agent    --scope global --yes
projectmind plugin install deepseek-harness --scope global --yes
projectmind plugin install opencode         --scope global --yes

Step 3: Verify

projectmind doctor

Manual Install (Per-Project)

If you prefer to install only for a specific project:

npx -y @rootx202/projectmind plugin install claude-code --yes

Or via MCP directly:

npx -y @rootx202/projectmind mcp

Agent Compatibility Matrix

Agent Integration Matrix

Agent Native Plugin MCP Skills Hooks Auto Mode
Google Antigravity βœ… βœ… βœ… βœ… βœ…
Claude Code βœ… βœ… βœ… βœ… βœ…
Gemini CLI β€” βœ… βœ… βœ… βœ…
Cursor β€” βœ… βœ… βœ… βœ…
OpenAI Codex β€” βœ… βœ… Limited βœ…
GitHub Copilot β€” βœ… βœ… β€” βœ…
Hermes Agent βœ… βœ… βœ… βœ… βœ…
DeepSeek Harness β€” βœ… βœ… βœ… βœ…
OpenCode β€” βœ… βœ… βœ… βœ…

CLI Commands

After installation, run diagnostics or manage your project memory:

# Run diagnostics
projectmind doctor

# View current context
projectmind context

# List installed plugins
projectmind plugin list

# Update plugins
projectmind update

CLI Screenshots

Command Preview
projectmind doctor doctor
projectmind context context
projectmind plugin list plugin list
projectmind update update

Key Features

  • 🧠 Persistent Memory β€” Project knowledge survives agent restarts and new sessions
  • 🌳 AST Code Analysis β€” Tree-sitter/WASM for Python, Go, Rust, Java, C, C++, C# + Babel for JS/TS
  • πŸ“Š Local Dashboard β€” HTML dashboard at 127.0.0.1 with memory layers, code graph, symbols, search, ADRs, and estimated token savings β€” zero CDN or external services
  • πŸ”’ 100% Offline & Private β€” Zero mandatory cloud accounts, zero paid APIs
  • 🚫 Secret Protection β€” Auto-excludes .env, .pem, .key, .ssh, tokens
  • πŸ›‘οΈ Path Traversal Protection β€” Symlink escape & prompt-injection sanitization
  • ♻️ Incremental Sync β€” Only re-indexes changed files using SHA-256 fingerprints
  • πŸ—οΈ Greenfield + Existing Projects β€” Works on new and existing codebases

Local Dashboard

The built-in dashboard runs on 127.0.0.1 only (never exposed to the network):

projectmind dashboard

Shows: memory layers Β· code graph Β· symbols Β· HTTP routes Β· database models Β· ADRs Β· search Β· events Β· token savings


Privacy & Security

ProjectMind is designed to be strictly local-first:

  • βœ… All indexing, retrieval, and writes work 100% offline
  • βœ… SQLite database stored in <project>/.projectmind/projectmind.db only
  • βœ… Network access only for explicit, verified update checks (HTTPS + allowlist)
  • βœ… Secrets automatically excluded from indexing
  • βœ… .projectmind/ added to .gitignore automatically

Repository Structure

ProjectMind/
β”œβ”€β”€ apps/
β”‚   β”œβ”€β”€ cli/              # Main CLI entry point
β”‚   β”œβ”€β”€ setup/            # Agent detection & idempotent installer
β”‚   └── diagnostics/      # Runtime, SQLite, MCP & adapter health checks
β”œβ”€β”€ packages/
β”‚   β”œβ”€β”€ core/             # Project root detection, stable Project ID
β”‚   β”œβ”€β”€ storage/          # SQLite3 + FTS5, 3-layer memory schema
β”‚   β”œβ”€β”€ shared/           # Types, security validators, token estimator
β”‚   β”œβ”€β”€ retrieval/        # BM25 + feature-hash reranker
β”‚   β”œβ”€β”€ knowledge/        # Knowledge record management
β”‚   β”œβ”€β”€ context-engine/   # Task context retrieval
β”‚   β”œβ”€β”€ mcp-server/       # MCP stdio transport + local dashboard
β”‚   β”œβ”€β”€ plugin-sdk/       # Plugin lifecycle, update, verification
β”‚   └── agent-sdk/        # Smart Auto Mode engine + hook dispatcher
β”œβ”€β”€ adapters/             # Per-agent native integrations
β”œβ”€β”€ plugins/              # Plugin manifests for each agent
β”œβ”€β”€ skills/               # Canonical SKILL.md bundle
β”œβ”€β”€ templates/            # Default config template
β”œβ”€β”€ docs/                 # Architecture, diagrams, screenshots
└── tests/                # Full test suite

Changelog

See CHANGELOG.md for the full version history.

Latest: v2.0.0 β€” Unified @rootx202/projectmind npm package, native plugin support for all agents, single MCP entry point via npx, removal of shell installers in favor of npm-backed integration.


Contributing

See CONTRIBUTING.md and PLUGIN_DEVELOPMENT.md for development guides.


License

MIT Β© Rootx202

About

An intelligent project memory system for AI coding agents.

Topics

Resources

Contributing

Security policy

Stars

2 stars

Watchers

0 watching

Forks

Releases

Packages

Contributors

Languages