DevMind - Semantic Codebase Memory and Agentic Search for Developers
Project description
DevMind – Codebase Memory for Developers
"Your codebase finally has a memory."
DevMind is a developer CLI tool and local web interface that gives your codebase a persistent, queryable memory powered by Cognee. It scans source files, git commit history, comments, and architectural decisions, building a hybrid graph-vector knowledge store. This persistent memory allows developers and AI coding assistants (via MCP) to query the codebase in plain English and carry context across infinite sessions.
Features
- One-Command Ingestion (
devmind remember): Scans the codebase, git logs, and code comments to feedcognee.remember(). - Plain-English Q&A (
devmind ask "..."): Usescognee.recall()to retrieve grounded, context-aware answers from the memory graph. - Decision Logging (
devmind log "..."): Records Architecture Decision Records (ADRs) to capture design reasoning. - Memory Refresh (
devmind refresh): Automatically detects modified files, updates the graph, and runscognee.improve(). - Surgical Forget (
devmind forget --file ...): Prunes specific file memory from the knowledge graph usingcognee.forget(). - Claude Code MCP Server (
devmind mcp): Seamlessly integrates with Claude Code or Cursor via standard Model Context Protocol (MCP). - Local Dashboard UI (
devmind dashboard): Provides a clean visual panel showing memory status, search queries, and recent decisions. - Smart API Key Rotation: Automatically detects, formats, and rotates between multiple Groq and OpenRouter API keys to balance rate limits on free-tier LLM access.
Installation & Setup
1. Clone the repository
git clone https://github.com/Anishp-cell/devmind-CLI.git
cd devmind-CLI
2. Configure Environment Variables
Copy .env.example to .env and fill in your keys:
cp .env.example .env
To run for free, configure your .env with a list of rotated API keys:
LLM_PROVIDER="groq"
# Add a comma-separated list of Groq keys (gsk_...) and/or OpenRouter keys (sk-or-v1-...)
# The CLI automatically load-balances and routes requests to the correct endpoints!
GROQ_API_KEYS="gsk_key1,sk-or-v1-key2,gsk_key3"
EMBEDDING_PROVIDER="fastembed"
EMBEDDING_MODEL="BAAI/bge-small-en-v1.5"
EMBEDDING_DIMENSIONS="384"
3. Install DevMind
Install the package in editable mode:
pip install -e .
CLI Command Reference
- Ingest Codebase:
devmind remember - Ask a Question:
devmind ask "Why did we switch to redis for the queue?"
- Log an Architectural Decision (ADR):
devmind log "Chose FastAPI for the web UI because it supports async routes natively."
- Refresh Changed Memory:
devmind refresh - Forget a Specific File:
devmind forget --file devmind/web/app.py
- Wipe Local Database Cache:
devmind forget --all
- Launch Web Dashboard:
devmind dashboard --port 8000
- Start MCP Server:
devmind mcp
Running the Mock Demo Project
To test DevMind on a smaller project without polluting your main repo:
- Navigate to the demo directory:
cd examples/demo_project
- Build the memory of the demo:
devmind remember --dir .
- Query its memory:
devmind ask "What open TODO tasks are left in main.py?" devmind ask "Why do we use SQLite according to our architecture decisions?"
Claude Code MCP Integration
To connect Claude Code to DevMind's memory, add the server to your Claude MCP config:
claude mcp add devmind "devmind mcp"
Alternatively, configure your project-level .mcp.json file in your project root:
{
"mcpServers": {
"devmind": {
"command": "devmind",
"args": ["mcp"]
}
}
}
AI Assistant Declaration
Per the rules of The Hangover Part AI Hackathon, this project declares the use of Claude (via the Antigravity IDE agent) as an AI pair programmer.
Project details
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
Built Distribution
Filter files by name, interpreter, ABI, and platform.
If you're not sure about the file name format, learn more about wheel file names.
Copy a direct link to the current filters
File details
Details for the file devmind_cli-0.1.6.tar.gz.
File metadata
- Download URL: devmind_cli-0.1.6.tar.gz
- Upload date:
- Size: 21.1 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/6.2.0 CPython/3.10.11
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
62b8ef4dfe7d5a965d649ed4e3a3c1662f792e965a8f47e63bc2ceb2bbbddd92
|
|
| MD5 |
001b94bfe37e4df3463023c976a8a992
|
|
| BLAKE2b-256 |
be0ee88dc3869ae4e6c9b091c84d0f949508d9e778656671c97f169098a9e21e
|
File details
Details for the file devmind_cli-0.1.6-py3-none-any.whl.
File metadata
- Download URL: devmind_cli-0.1.6-py3-none-any.whl
- Upload date:
- Size: 21.4 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/6.2.0 CPython/3.10.11
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
f827669f94968eb9dcc20bc4e7ae48f36031c3e39188039271d1d5e5a7dbc6ad
|
|
| MD5 |
826c96d991dfd9bbdab305d80c46c5fc
|
|
| BLAKE2b-256 |
56fd9efeabc2e7d5af700fb0979309c49207df3a855876065067c325f350af82
|