Skip to main content

DevMind — Semantic Codebase Memory & Intelligence Engine

"Your codebase finally has a persistent memory."
An open-source, local-first Codebase Memory and Static Intelligence Engine powered by Cognee, FastEmbed, LanceDB, and FastMCP.

PyPI Version License: MIT Python 3.10+ FastMCP


⚡ Quickstart (30 Seconds)

Get up and running in any project with just three commands:

# 1. Install via PyPI
pip install devmind-cli

# 2. Interactive Setup (Configure free Cloud API or 100% Local Ollama)
devmind init

# 3. Index Codebase & Ask Questions
devmind remember
devmind ask "Where is the authentication flow handled and how are tokens validated?"

🦙 100% Local & Offline Setup with Ollama (Step-by-Step)

If you want complete data privacy with zero tokens leaving your machine, you can run DevMind entirely on local models using Ollama:

Step 1: Install Ollama

Download and install Ollama for your operating system:

  • macOS / Windows: Download from ollama.com
  • Linux:
    curl -fsSL https://ollama.com/install.sh | sh
    

Step 2: Download a Coding Model

Open your terminal and pull your preferred model:

# Recommended lightweight model (Fast & works on any laptop):
ollama pull llama3.2

# Recommended for high-accuracy coding tasks:
ollama pull qwen2.5-coder:7b
# or
ollama pull mistral

Step 3: Ensure Ollama Server is Running

Ollama runs in the background automatically. To verify, run:

ollama serve

(By default, Ollama is accessible at http://localhost:11434)

Step 4: Configure DevMind for Ollama

Run the DevMind setup wizard:

devmind init
  1. Select option [5] 🦙 Ollama.
  2. Press Enter to accept the default base URL (http://localhost:11434).
  3. Enter the model name you pulled (e.g. llama3.2 or qwen2.5-coder:7b).
  4. DevMind will test the local connection and save your configuration globally.

💡 Zero-Cost Local Embeddings: DevMind uses local CPU-accelerated FastEmbed (BAAI/bge-small-en-v1.5) for vector indexing. No embeddings are sent to external APIs!


⚡ Free Cloud AI Providers (Groq & Google Gemini)

If you prefer cloud models without needing local GPU/RAM:

  • ⚡ Groq (Recommended - Ultra Fast & 100% Free):
    1. Get a free API key at console.groq.com/keys.
    2. Run devmind init and choose [1] Groq.
  • ♊ Google Gemini (Generous Free Tier):
    1. Get a free API key at aistudio.google.com/app/apikey.
    2. Run devmind init and choose [2] Gemini.
  • 🟣 Anthropic Claude / 🟢 OpenAI / 🌐 OpenRouter: Run devmind init to configure Claude (claude-3-5-sonnet), OpenAI (gpt-4o-mini, o3-mini), or OpenRouter keys.

🛠️ CLI Command Reference

🧠 1. Memory & Knowledge Ingestion

  • devmind remember: Scans files, AST symbols, comments, and git history into local graph-vector memory.
    devmind remember                # Fast local mode (0 API calls, instant)
    devmind remember --incremental  # Only scan changed files in git diff
    devmind remember --deep         # Run LLM entity extraction
    
  • devmind ask "<query>": Ask plain-English questions about codebase architecture.
    devmind ask "How does payment retry logic work on webhook timeout?"
    
  • devmind chat: Start an interactive terminal REPL session to explore code.
    devmind chat
    
  • devmind log "<decision>": Record an Architectural Decision Record (ADR) into persistent memory.
    devmind log "Chose SQLite/LanceDB locally to ensure zero infrastructure overhead."
    

🔬 2. Code Quality & Health Analysis

  • devmind health: Scans the codebase for technical debt, complexity hotspots, code smells, dead imports, and test coverage gaps (100% offline).
    devmind health                        # Rich terminal dashboard
    devmind health --output report.md     # Export Markdown report
    devmind health --threshold 75         # CI quality gate (exit code 1 if score < 75)
    

🗺️ 3. Visual Graphs & Architecture Digests

  • devmind graph: Launch an interactive browser graph of codebase symbols and relationships.
    devmind graph --port 8000
    
  • devmind digest: Generate a structured Markdown architecture map of classes, functions, and files.
    devmind digest --output ARCHITECTURE_MINDMAP.md
    
  • devmind dashboard: Open the local web management dashboard.
    devmind dashboard
    

⚙️ 4. Configuration & Maintenance

  • devmind init / devmind config: Interactive setup wizard to switch providers or keys.
  • devmind refresh: Re-scan changed files and refine relationship links in graph memory.
  • devmind forget: Surgically remove a file or wipe local memory.
    devmind forget --file auth/middleware.py   # Delete specific file memory
    devmind forget --all                      # Wipe local memory databases
    

🤖 Agentic IDE Integration (Claude Code & Cursor via MCP)

Connect DevMind's persistent memory directly to autonomous agents like Claude Code, Cursor Agent, or Windsurf using the Model Context Protocol:

Claude Code Setup:

claude mcp add devmind "devmind mcp"

Cursor / Project .mcp.json Setup:

Create a .mcp.json file in your repository root:

{
  "mcpServers": {
    "devmind": {
      "command": "devmind",
      "args": ["mcp"]
    }
  }
}

Your AI assistant can now call query_codebase_memory and log_decision_record automatically instead of burning 50,000+ tokens blindly reading random files!


📄 License

DevMind is open-source software licensed under the MIT License.

Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

devmind_cli-1.0.0.tar.gz (112.5 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

devmind_cli-1.0.0-py3-none-any.whl (105.6 kB view details)

Uploaded Python 3

File details

Details for the file devmind_cli-1.0.0.tar.gz.

File metadata

  • Download URL: devmind_cli-1.0.0.tar.gz
  • Upload date:
  • Size: 112.5 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.2.0 CPython/3.10.11

File hashes

Hashes for devmind_cli-1.0.0.tar.gz
Algorithm Hash digest
SHA256 2fcf2ceef553255753329c8ceeb68abf8ebc13ab8473d6b889478983d3f3852a
MD5 4fc3e910ac1c73220f91cb1a8eef4733
BLAKE2b-256 8ffd12477a2994bceff9ec1c41a22f1b17fc151b90cde55e5499a44ec9d206c1

See more details on using hashes here.

File details

Details for the file devmind_cli-1.0.0-py3-none-any.whl.

File metadata

  • Download URL: devmind_cli-1.0.0-py3-none-any.whl
  • Upload date:
  • Size: 105.6 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.2.0 CPython/3.10.11

File hashes

Hashes for devmind_cli-1.0.0-py3-none-any.whl
Algorithm Hash digest
SHA256 c3102a1a610de2af87b7a4d361e1ece39873cdf9d631974fb2e330dc0c1fc8b2
MD5 70cffa706342fd455b4160d40c582a18
BLAKE2b-256 5a74cf9c47fcfe3c4dcc82c7c409c10d151a44965194fd8e15143c517cf0316e

See more details on using hashes here.

Release history Release notifications | RSS feed

This release

1.0.0 This release

2 files

0.3.7

2 files

0.3.6

2 files

0.3.5

2 files

0.3.4

2 files

0.3.3

2 files

0.3.2

2 files

0.3.1

2 files

0.3.0

2 files

0.2.0

2 files

0.1.9

2 files

0.1.6

2 files

0.1.5

2 files

0.1.3

2 files

0.1.2

2 files

0.1.1

2 files

0.1.0

2 files

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page